84bdeee136204e12e3ff9e846f49dbcb5bbeb3fb
[gnulib.git] / ChangeLog
1 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2
3         ioctl: Fix compilation error on mingw.
4         * lib/ioctl.c: Include <windows.h>.
5         Also reported by Ray Satiro <raysatiro@yahoo.com>.
6
7 2012-04-04  Jim Meyering  <meyering@redhat.com>
8
9         regex: correct #pragma guard expression
10         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
11         not 4.3.  Correct its cpp guard expression.
12
13 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14
15         regex: remove unnecessary type punning
16         Problem reported by Vladimir Serbinenko in
17         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
18         * lib/regex.h (struct re_pattern_buffer): Change the type of
19         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
20         Fix comment to match code.
21         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
22         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
23         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
24         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
25         (set_regs):
26         Omit no-longer-necessary casts.
27
28 2012-04-03  Bruno Haible  <bruno@clisp.org>
29
30         Tests for module 'ilogbl'.
31         * modules/ilogbl-tests: New file.
32         * tests/test-ilogbl.c: New file.
33
34         New module 'ilogbl'.
35         * lib/math.in.h (ilogbl): New declaration.
36         * lib/ilogbl.c: New file.
37         * m4/ilogbl.m4: New file.
38         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
39         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
40         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
41         Split sed invocation, to avoid the limit of 100 substitutions of
42         HP-UX 'sed'.
43         * modules/ilogbl: New file.
44         * tests/test-math-c++.cc: Check the declaration of ilogbl.
45         * doc/posix-functions/ilogbl.texi: Mention the new module.
46
47 2012-04-03  Bruno Haible  <bruno@clisp.org>
48
49         Tests for module 'ilogbf'.
50         * modules/ilogbf-tests: New file.
51         * tests/test-ilogbf.c: New file.
52
53         New module 'ilogbf'.
54         * lib/math.in.h (ilogbf): New declaration.
55         * lib/ilogbf.c: New file.
56         * m4/ilogbf.m4: New file.
57         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
58         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
59         REPLACE_ILOGBF.
60         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
61         REPLACE_ILOGBF.
62         * modules/ilogbf: New file.
63         * tests/test-math-c++.cc: Check the declaration of ilogbf.
64         * doc/posix-functions/ilogbf.texi: Mention the new module.
65
66 2012-04-03  Bruno Haible  <bruno@clisp.org>
67
68         Tests for module 'ilogb'.
69         * modules/ilogb-tests: New file.
70         * tests/test-ilogb.c: New file.
71         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
72         tests/test-logb-ieee.h.
73
74         New module 'ilogb'.
75         * lib/math.in.h (ilogb): New declaration.
76         * lib/ilogb.c: New file.
77         * m4/ilogb.m4: New file.
78         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
79         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
80         REPLACE_ILOGB.
81         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
82         REPLACE_ILOGB.
83         * modules/ilogb: New file.
84         * tests/test-math-c++.cc: Check the declaration of ilogb.
85         * doc/posix-functions/ilogb.texi: Mention the new module.
86
87 2012-04-03  Bruno Haible  <bruno@clisp.org>
88
89         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
90         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
91         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
92         (main): Check their values.
93         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
94         problem.
95
96 2012-04-03  Bruno Haible  <bruno@clisp.org>
97
98         Tests for module 'logbl-ieee'.
99         * modules/logbl-ieee-tests: New file.
100         * tests/test-logbl-ieee.c: New file.
101
102         New module 'logbl-ieee'.
103         * modules/logbl-ieee: New file.
104
105         Tests for module 'logb-ieee'.
106         * modules/logb-ieee-tests: New file.
107         * tests/test-logb-ieee.c: New file.
108
109         New module 'logb-ieee'.
110         * modules/logb-ieee: New file.
111
112         Tests for module 'logbf-ieee'.
113         * modules/logbf-ieee-tests: New file.
114         * tests/test-logbf-ieee.c: New file.
115         * tests/test-logb-ieee.h: New file.
116
117         New module 'logbf-ieee'.
118         * modules/logbf-ieee: New file.
119
120 2012-04-03  Bruno Haible  <bruno@clisp.org>
121
122         Tests for module 'logbl'.
123         * modules/logbl-tests: New file.
124         * tests/test-logbl.c: New file.
125
126         New module 'logbl'.
127         * lib/math.in.h (logbl): New declaration.
128         * lib/logbl.c: New file.
129         * m4/logbl.m4: New file.
130         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
132         REPLACE_LOGBL.
133         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
134         REPLACE_LOGBL.
135         * modules/logbl: New file.
136         * tests/test-math-c++.cc: Check the declaration of logbl.
137         * doc/posix-functions/logbl.texi: Mention the new module.
138
139 2012-04-02  Bruno Haible  <bruno@clisp.org>
140
141         Tests for module 'logbf'.
142         * modules/logbf-tests: New file.
143         * tests/test-logbf.c: New file.
144
145         New module 'logbf'.
146         * lib/math.in.h (logbf): New declaration.
147         * lib/logbf.c: New file.
148         * m4/logbf.m4: New file.
149         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
151         REPLACE_LOGBF.
152         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
153         REPLACE_LOGBF.
154         * modules/logbf: New file.
155         * tests/test-math-c++.cc: Check the declaration of logbf.
156         * doc/posix-functions/logbf.texi: Mention the new module.
157
158 2012-04-02  Bruno Haible  <bruno@clisp.org>
159
160         logb tests: More tests.
161         * tests/test-logb.h: New file, based on tests/test-logb.c and
162         tests/test-frexp.h.
163         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
164         (main): Just invoke test_function.
165         * modules/logb-tests (Files): Add tests/test-logb.h,
166         tests/minus-zero.h, tests/randomd.c.
167         (Makefile.am): Add randomd.c to test_logb_SOURCES.
168
169         logb: Provide replacement and workarounds.
170         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
171         is 1.
172         * lib/logb.c: New file.
173         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
174         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
176         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
177         * modules/logb (Files): Add lib/logb.c.
178         (Depends-on): Add isfinite, frexp, isnand.
179         (configure.ac): Compile the replacement code logb.c if needed.
180         * tests/test-math-c++.cc: Check the declaration of logb.
181         * doc/posix-functions/logb.texi: Mention the replacement and the bug
182         with subnormal numbers.
183
184 2012-04-02  Bruno Haible  <bruno@clisp.org>
185
186         log10* tests: Speed up.
187         * tests/test-log10.h (test_function): Reduce amount of random numbers
188         to test.
189
190 2012-04-01  Bruno Haible  <bruno@clisp.org>
191
192         logf-ieee: Fix test whether logf works.
193         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
194
195 2012-04-01  Bruno Haible  <bruno@clisp.org>
196
197         log10l: Work around log10l-ieee test failure on IRIX 6.5.
198         * lib/log10l.c: Include <float.h>
199         (log10l): On IRIX, normalize the +Infinity value.
200         * modules/log10l (Depends-on): Add 'float'.
201         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
202         +Infinity.
203
204         log10f-ieee: Work around test failure on NetBSD 5.1.
205         * m4/log10f-ieee.m4: New file.
206         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
207         test whether log10f works with a negative argument. Replace it if not.
208         * lib/log10f.c (log10f): For negative arguments, return NaN.
209         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
210         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
211         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
212
213         log10f-ieee: Work around test failure on Solaris 9.
214         * modules/log10f-ieee (Depends-on): Add log10-ieee.
215         (configure.ac): Require gl_FUNC_LOG10F.
216
217         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
218         * m4/log10-ieee.m4: New file.
219         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
220         whether log10 works with a negative argument. Replace it if not.
221         * lib/log10.c (log10): For negative arguments, return NaN.
222         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
223         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
224         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
225
226         Tests for module 'log10l-ieee'.
227         * modules/log10l-ieee-tests: New file.
228         * tests/test-log10l-ieee.c: New file.
229
230         New module 'log10l-ieee'.
231         * modules/log10l-ieee: New file.
232
233         Tests for module 'log10-ieee'.
234         * modules/log10-ieee-tests: New file.
235         * tests/test-log10-ieee.c: New file.
236
237         New module 'log10-ieee'.
238         * modules/log10-ieee: New file.
239
240         Tests for module 'log10f-ieee'.
241         * modules/log10f-ieee-tests: New file.
242         * tests/test-log10f-ieee.c: New file.
243         * tests/test-log10-ieee.h: New file.
244
245         New module 'log10f-ieee'.
246         * modules/log10f-ieee: New file.
247
248 2012-04-01  Bruno Haible  <bruno@clisp.org>
249
250         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
251         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
252         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
253         workaround.
254         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
255         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
257         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
258         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
259         (Depends-on): Update conditions.
260         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
261         IRIX 6.5, OSF/1 5.1 problems.
262
263 2012-04-01  Bruno Haible  <bruno@clisp.org>
264
265         log10f: Work around OSF/1 5.1 bug.
266         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
267         * lib/log10f.c (log10f): If logf exists, use it and provide just the
268         workaround.
269         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
270         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
272         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
273         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
274         (Depends-on): Update conditions.
275         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
276
277 2012-04-01  Bruno Haible  <bruno@clisp.org>
278
279         log10: Work around OSF/1 5.1 bug.
280         * lib/math.in.h (log10): New declaration.
281         * lib/log10.c: New file.
282         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
283         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
284         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
286         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
287         * modules/log10 (Files): Add lib/log10.c.
288         (Depends-on): Add math.
289         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
290         * tests/test-math-c++.cc: Check the declaration of log10.
291         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
292
293 2012-03-31  Bruno Haible  <bruno@clisp.org>
294
295         log10l tests: More tests.
296         * modules/log10l-tests (Files): Add tests/test-log10l.h,
297         tests/minus-zero.h, tests/randoml.c.
298         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
299         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
300         (main): Invoke test_function.
301
302         log10f tests: More tests.
303         * modules/log10f-tests (Files): Add tests/test-log10.h,
304         tests/minus-zero.h, tests/randomf.c.
305         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
306         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
307         (main): Invoke test_function.
308
309         log10 tests: More tests.
310         * tests/test-log10.h: New file.
311         * modules/log10-tests (Files): Add tests/test-log10.h,
312         tests/minus-zero.h, tests/randomd.c.
313         (Makefile.am): Add randomd.c to test_log10_SOURCES.
314         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
315         (main): Invoke test_function.
316
317 2012-03-31  Simon Josefsson  <simon@josefsson.org>
318
319         fflush: Fix syntax error.
320         * lib/fflush.c: Include unused-parameter.h, needed for
321         _GL_UNUSED_PARAMETER.
322         * modules/fflush (Depends-on): Add snippet/unused-parameter.
323
324 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
325
326         regex: pacify GCC when compiling GRUB
327         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
328         a diagnostic.  Reported by Vladimir Serbinenko in
329         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
330
331 2012-03-29  Eric Blake  <eblake@redhat.com>
332
333         stdio: don't assume gets any more
334         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
335         support.
336         * modules/stdio (Makefile.am): Likewise.
337         * lib/stdio-read.c (gets): Likewise.
338         * tests/test-stdio-c++.cc: Likewise.
339         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
340         * lib/stdio.in.h (gets): Make warning occur in more places.
341         * doc/posix-functions/gets.texi (gets): Update documentation.
342         Reported by Christer Solskogen.
343
344         maint.mk: fix syntax checks without exclusions
345         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
346         Reported by Daniel P. Berrange.
347
348         strerror_r: avoid compiler warning
349         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
350         level.
351
352         fflush: avoid compiler warning
353         * lib/fflush.c (update_fpos_cache): Mark variables that are
354         potentially unused.
355
356 2012-03-25  Bruno Haible  <bruno@clisp.org>
357
358         Tests for module 'localeconv'.
359         * modules/localeconv-tests: New file.
360         * tests/test-localeconv.c: New file.
361
362         New module 'localeconv'.
363         * lib/locale.in.h (localeconv): New declaration.
364         * lib/localeconv.c: New file.
365         * m4/localeconv.m4: New file.
366         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
367         REPLACE_LOCALECONV.
368         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
369         REPLACE_LOCALECONV.
370         * modules/localeconv: New file.
371         * modules/nl_langinfo (Depends-on): Add localeconv.
372         * modules/human (Depends-on): Likewise.
373         * doc/posix-functions/localeconv.texi: Mention the new module.
374
375 2012-03-25  Bruno Haible  <bruno@clisp.org>
376
377         locale: Provide a complete 'struct lconv'.
378         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
379         'struct lconv' does not contain int_p_cs_precedes.
380         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
381         * doc/posix-headers/locale.texi: Update.
382
383         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
384         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
385         * doc/posix-headers/locale.texi: Update.
386
387         locale: Provide a working 'struct lconv'.
388         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
389         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
390         'struct lconv' does not even contain decimal_point.
391         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
392         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
393         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
394         * doc/posix-headers/locale.texi: Mention the problems with
395         'struct lconv'.
396         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
397
398 2012-03-24  Bruno Haible  <bruno@clisp.org>
399
400         Enable common subexpression optimization in GCC.
401         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
402         macros.
403         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
404         GCC attribute 'const'.
405         (uc_locale_language): Declare with GCC attribute 'pure'.
406         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
407         with GCC attribute 'const'.
408         * lib/unictype.in.h (uc_is_general_category_withtable,
409         uc_combining_class, uc_combining_class_name,
410         uc_combining_class_long_name, uc_bidi_class_name,
411         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
412         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
413         uc_decimal_value, uc_digit_value, uc_numeric_value,
414         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
415         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
416         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
417         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
418         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
419         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
420         Declare with GCC attribute 'const'.
421         (uc_general_category_name, uc_general_category_long_name,
422         uc_general_category_byname, uc_general_category,
423         uc_is_general_category, uc_combining_class_byname,
424         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
425         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
426         Declare with GCC attribute 'pure'.
427         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
428         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
429         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
430         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
431         with GCC attribute 'pure'.
432         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
433         'const'.
434         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
435         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
436         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
437         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
438         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
439         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
440         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
441         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
442         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
443         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
444         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
445         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
446         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
447         GCC attribute 'pure'.
448         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
449         'const'.
450         * lib/uniwidth.in.h (uc_width): Simplify declaration.
451         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
452         u32_strwidth): Declare with GCC attribute 'pure'.
453
454         Enable common subexpression optimization in GCC.
455         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
456         (alphasort): Declare with GCC attribute 'pure'.
457         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
458         (atoll): Declare with GCC attribute 'pure'.
459         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
460         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
461         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
462         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
463         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
464         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
465         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
466
467 2012-03-24  Bruno Haible  <bruno@clisp.org>
468
469         gnulib-tool: Avoid unintended error output from 'cmp'.
470         * gnulib-tool (func_add_file, func_update_file, func_import): Use
471         "cmp -s", not "cmp > /dev/null".
472
473 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
474
475         gnulib-tool: fix imprecise comments w.r.t. an automake bug
476
477         It's not just Automake versions < 1.9b that creates an empty
478         pkgdatadir at installation time if pkgdata_DATA is specified
479         to empty; modern automake versions do this as well, at least
480         until automake 1.11.4 (not yet released at the moment of writing,
481         but soon to appear).  That behaviour was generally considered a
482         feature rather than a bug, at least until this discussion:
483         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
484
485         See also automake bugs #10997 and #11030.
486
487         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
488         reference to relevant automake bug numbers.
489         (func_emit_tests_Makefile_am): Likewise.
490
491 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
492
493         announce-gen: use Digest::SHA when possible
494         * build-aux/announce-gen: Use Digest::SHA when possible, falling
495         back to Digest::SHA1 if necessary.
496
497 2012-03-20  Jim Meyering  <meyering@redhat.com>
498
499         tests: avoid gcc warnings about argv vs. const initializers
500         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
501         warnings about discarding 'const' qualifier from pointer target type.
502         * tests/test-posix_spawn2.c (main): Likewise.
503
504 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
505
506         README-release: simplify slightly
507         * top/README-release: Run "git checkout master" only once.
508
509 2012-03-15  Mark Wielaard  <mark@klomp.org>
510
511         git-merge-changelog: add specific example on how to use with hg.
512         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
513
514 2012-03-18  Mark Wielaard  <mark@klomp.org>
515
516         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
517
518 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
519
520         git-version-gen: don't let "prefix" envvar cause trouble
521         * build-aux/git-version-gen (prefix): Initialize properly,
522         so as not to use a value specified via the environment.
523         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
524
525 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
526
527         regex: diagnose too-large repeat counts in EREs
528         Previously, the code did not diagnose the too-large repeat count
529         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
530         as if it were 'b\{1000000000}', which is unexpected.
531         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
532         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
533         is a reasonable one for this problem.  Another option would be to
534         create a new REG_OVERFLOW error for repeat counts that are too large.
535         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
536         count is too large, so that the caller can distinguish the two cases.
537         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
538         "Too large" return code, and that repeat counts are one example of this.
539
540 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
541
542         doc: some glibc x32 integer width issues
543         * doc/posix-headers/sys_types.texi (sys/types.h):
544         * doc/posix-headers/time.texi (time.h):
545         Mention that glibc x32 does not conform to POSIX in a couple of
546         areas related to integer widths.
547
548 2012-03-15  Bruno Haible  <bruno@clisp.org>
549
550         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
551         * lib/fma.c (VOLATILE): New macro.
552         (FUNC): Use it to work around a GCC compiler bug.
553
554 2012-03-13  Bruno Haible  <bruno@clisp.org>
555
556         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
557         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
558         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
559         REPLACE_HYPOTL to 1.
560         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
561
562 2012-03-13  Bruno Haible  <bruno@clisp.org>
563
564         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
565         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
566         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
567         REPLACE_REMAINDERL to 1.
568         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
569         bug.
570
571 2012-03-13  Bruno Haible  <bruno@clisp.org>
572
573         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
574         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
575         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
576         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
577         too big rounding errors.
578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
579         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
580         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
581         (Depends-on): Update conditions.
582         * tests/test-sqrtl.c (my_ldexpl): New function.
583         (main): Add test of a particular value.
584         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
585
586 2012-03-13  Pádraig Brady  <P@draigBrady.com>
587
588         doc: Update timer_* platform portability notes.
589         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
590         that always return ENOSYS.
591         * doc/posix-functions/timer_delete.texi: Likewise.
592         * doc/posix-functions/timer_gettime.texi: Likewise.
593         * doc/posix-functions/timer_settime.texi: Likewise.
594
595 2012-03-13  Bruno Haible  <bruno@clisp.org>
596
597         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
598         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
599         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
600         REPLACE_CBRTL to 1.
601         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
602
603 2012-03-13  Bruno Haible  <bruno@clisp.org>
604
605         remainderl: Avoid compilation error on AIX >= 5.2.
606         * lib/math.in.h (remainderl): Undefine macro from the system header.
607
608 2012-03-13  Bruno Haible  <bruno@clisp.org>
609
610         Avoid compilation errors with MSVC option -fp:strict.
611         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
612         * lib/cbrtf.c: Likewise.
613         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
614
615 2012-03-12  Bruno Haible  <bruno@clisp.org>
616
617         uninorm: Don't crash in out-of-memory conditions.
618         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
619         gracefully.
620         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
621         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
622
623 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
624
625         quote: fix syntax-check
626         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
627         also exports quote_quoting_options.
628
629 2012-03-12  Simon Josefsson  <simon@josefsson.org>
630
631         Collapse list of copyright years to ranges.  See
632         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
633         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
634         build-aux/csharpexec.sh.in, build-aux/gnupload,
635         build-aux/install-reloc, build-aux/javacomp.sh.in,
636         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
637         build-aux/move-if-change, build-aux/reloc-ldflags,
638         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
639
640 2012-03-11  Bruno Haible  <bruno@clisp.org>
641
642         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
643         * m4/log2f-ieee.m4: New file.
644         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
645         whether log2f works with a minus zero argument. Replace it if not.
646         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
647         (Depends-on): Add log2-ieee.
648         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
649         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
650
651         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
652         * m4/log2-ieee.m4: New file.
653         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
654         whether log2 works with a minus zero argument. Replace it if not.
655         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
656         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
657         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
658
659         Tests for module 'log2l-ieee'.
660         * modules/log2l-ieee-tests: New file.
661         * tests/test-log2l-ieee.c: New file.
662
663         New module 'log2l-ieee'.
664         * modules/log2l-ieee: New file.
665
666         Tests for module 'log2-ieee'.
667         * modules/log2-ieee-tests: New file.
668         * tests/test-log2-ieee.c: New file.
669
670         New module 'log2-ieee'.
671         * modules/log2-ieee: New file.
672
673         Tests for module 'log2f-ieee'.
674         * modules/log2f-ieee-tests: New file.
675         * tests/test-log2f-ieee.c: New file.
676         * tests/test-log2-ieee.h: New file.
677
678         New module 'log2f-ieee'.
679         * modules/log2f-ieee: New file.
680
681 2012-03-11  Bruno Haible  <bruno@clisp.org>
682
683         Tests for module 'log2l'.
684         * modules/log2l-tests: New file.
685         * tests/test-log2l.c: New file.
686
687         New module 'log2l'.
688         * lib/math.in.h (log2l): New declaration.
689         * lib/log2l.c: New file.
690         * m4/log2l.m4: New file.
691         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
693         REPLACE_LOG2L.
694         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
695         REPLACE_LOG2L.
696         * modules/log2l: New file.
697         * tests/test-math-c++.cc: Check the declaration of log2l.
698         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
699         and OSF/1 problems.
700
701 2012-03-11  Bruno Haible  <bruno@clisp.org>
702
703         Tests for module 'log2f'.
704         * modules/log2f-tests: New file.
705         * tests/test-log2f.c: New file.
706
707         New module 'log2f'.
708         * lib/math.in.h (log2f): New declaration.
709         * lib/log2f.c: New file.
710         * m4/log2f.m4: New file.
711         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
713         REPLACE_LOG2F.
714         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
715         REPLACE_LOG2F.
716         * modules/log2f: New file.
717         * tests/test-math-c++.cc: Check the declaration of log2f.
718         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
719         and OSF/1 and Cygwin problems.
720
721 2012-03-11  Bruno Haible  <bruno@clisp.org>
722
723         Tests for module 'log2'.
724         * modules/log2-tests: New file.
725         * tests/test-log2.c: New file.
726         * tests/test-log2.h: New file.
727
728         New module 'log2'.
729         * lib/math.in.h (log2): New declaration.
730         * lib/log2.c: New file.
731         * m4/log2.m4: New file.
732         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
734         REPLACE_LOG2.
735         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
736         REPLACE_LOG2.
737         * modules/log2: New file.
738         * tests/test-math-c++.cc: Check the declaration of log2.
739         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
740         and OSF/1 and Cygwin problems.
741
742 2012-03-11  Bruno Haible  <bruno@clisp.org>
743
744         exp2* tests: More tests.
745         * tests/test-exp2.h (test_function): Test all integral arguments that
746         don't need to overflow or denormalized numbers.
747         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
748         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
749         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
750
751 2012-03-10  Bruno Haible  <bruno@clisp.org>
752
753         log1pl-ieee: Work around test failure on AIX 7.1.
754         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
755
756         log1pl-ieee: Work around test failure on IRIX 6.5.
757         * m4/log1pl-ieee.m4: New file.
758         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
759         test whether log1pl works with a minus zero argument. Replace it if
760         not.
761         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
763         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
764         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
765         (Depends-on): Update conditions.
766         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
767         m4/signbit.m4.
768         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
769         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
770
771         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
772         * m4/log1pf-ieee.m4: New file.
773         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
774         test whether log1pf works with a minus zero argument. Replace it if
775         not.
776         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
777         m4/signbit.m4.
778         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
779         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
780
781         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
782         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
783         (configure.ac): Require gl_FUNC_LOG1PF.
784
785         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
786         * m4/log1p-ieee.m4: New file.
787         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
788         whether log1p works with a minus zero argument. Replace it if not.
789         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
791         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
792         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
793         (Depends-on): Update conditions.
794         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
795         m4/signbit.m4.
796         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
797         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
798
799         Tests for module 'log1pl-ieee'.
800         * modules/log1pl-ieee-tests: New file.
801         * tests/test-log1pl-ieee.c: New file.
802
803         New module 'log1pl-ieee'.
804         * modules/log1pl-ieee: New file.
805
806         Tests for module 'log1p-ieee'.
807         * modules/log1p-ieee-tests: New file.
808         * tests/test-log1p-ieee.c: New file.
809
810         New module 'log1p-ieee'.
811         * modules/log1p-ieee: New file.
812
813         Tests for module 'log1pf-ieee'.
814         * modules/log1pf-ieee-tests: New file.
815         * tests/test-log1pf-ieee.c: New file.
816         * tests/test-log1p-ieee.h: New file.
817
818         New module 'log1pf-ieee'.
819         * modules/log1pf-ieee: New file.
820
821 2012-03-10  Bruno Haible  <bruno@clisp.org>
822
823         Tests for module 'log1pl'.
824         * modules/log1pl-tests: New file.
825         * tests/test-log1pl.c: New file.
826
827         New module 'log1pl'.
828         * lib/math.in.h (log1pl): New declaration.
829         * lib/log1pl.c: New file.
830         * m4/log1pl.m4: New file.
831         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
833         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
834         * modules/log1pl: New file.
835         * tests/test-math-c++.cc: Check the declaration of log1pl.
836         * doc/posix-functions/log1pl.texi: Mention the new module.
837
838 2012-03-10  Bruno Haible  <bruno@clisp.org>
839
840         Tests for module 'log1pf'.
841         * modules/log1pf-tests: New file.
842         * tests/test-log1pf.c: New file.
843
844         New module 'log1pf'.
845         * lib/math.in.h (log1pf): New declaration.
846         * lib/log1pf.c: New file.
847         * m4/log1pf.m4: New file.
848         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
850         REPLACE_LOG1PF.
851         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
852         REPLACE_LOG1PF.
853         * modules/log1pf: New file.
854         * tests/test-math-c++.cc: Check the declaration of log1pf.
855         * doc/posix-functions/log1pf.texi: Mention the new module.
856
857 2012-03-10  Bruno Haible  <bruno@clisp.org>
858
859         log1p tests: More tests.
860         * tests/test-log1p.h: New file.
861         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
862         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
863         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
864         (main): Invoke test_function.
865
866         log1p: Provide replacement for Minix and MSVC.
867         * lib/math.in.h (log1p): New declaration.
868         * lib/log1p.c: New file.
869         * m4/log1p.m4: New file.
870         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
872         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
873         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
874         (Depends-on): Add math, isnand, log, round.
875         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
876         HAVE_LOG1P is 0.
877         * tests/test-math-c++.cc: Check the declaration of log1p.
878         * doc/posix-functions/log1p.texi: Mention the replacement.
879
880 2012-03-10  Bruno Haible  <bruno@clisp.org>
881
882         math tests: Small simplification.
883         * tests/test-exp.h (test_function): Use the same err_bound for
884         'double' on platforms with sizeof (long double) == sizeof (double)
885         than on platforms with sizeof (long double) > sizeof (double).
886         * tests/test-exp2.h (test_function): Likewise.
887         * tests/test-expm1.h (test_function): Likewise.
888         * tests/test-log.h (test_function): Likewise.
889
890 2012-03-10  Bruno Haible  <bruno@clisp.org>
891
892         Fix some comments.
893         * lib/expl.c: Fix an ambiguous comment.
894         * lib/expm1.c: Likewise.
895         * lib/expm1l.c: Likewise.
896         * lib/exp2.c: Likewise.
897         * lib/exp2l.c: Likewise.
898
899 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
900
901         regex: allow inclusion of <regex.h> before <limits.h>
902         Without this patch, portable programs had to include <limits.h> before
903         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
904         I ran into this problem with a test version of GNU grep on Solaris 8.
905         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
906         This is done conditionally so that this change can be merged
907         back to glibc.
908         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
909         using the included regex.
910
911         fts: depend on fdopendir
912         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
913         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
914         problem was introduced when fdopendir was split out.
915
916 2012-03-10  Bruno Haible  <bruno@clisp.org>
917
918         Remove unused variables.
919         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
920         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
921
922 2012-03-10  Bruno Haible  <bruno@clisp.org>
923
924         isnanf-nolibm: Fix last commit.
925         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
926
927         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
928         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
929
930 2012-03-10  Bruno Haible  <bruno@clisp.org>
931
932         logf-ieee: Work around test failure on NetBSD 5.1.
933         * m4/logf-ieee.m4: New file.
934         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
935         whether logf works with a negative argument. Replace it if not.
936         * lib/logf.c (logf): For negative arguments, return NaN.
937         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
938         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
939         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
940
941         logf-ieee: Work around test failure on Solaris 9.
942         * modules/logf-ieee (Depends-on): Add log-ieee.
943         (configure.ac): Require gl_FUNC_LOGF.
944
945         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
946         * m4/log-ieee.m4: New file.
947         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
948         log works with a negative argument. Replace it if not.
949         * lib/log.c (log): For negative arguments, return NaN.
950         * modules/log-ieee (Files): Add m4/log-ieee.m4.
951         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
952         * doc/posix-functions/log.texi: Mention the log-ieee module.
953
954         Tests for module 'logl-ieee'.
955         * modules/logl-ieee-tests: New file.
956         * tests/test-logl-ieee.c: New file.
957
958         New module 'logl-ieee'.
959         * modules/logl-ieee: New file.
960
961         Tests for module 'log-ieee'.
962         * modules/log-ieee-tests: New file.
963         * tests/test-log-ieee.c: New file.
964
965         New module 'log-ieee'.
966         * modules/log-ieee: New file.
967
968         Tests for module 'logf-ieee'.
969         * modules/logf-ieee-tests: New file.
970         * tests/test-logf-ieee.c: New file.
971         * tests/test-log-ieee.h: New file.
972
973         New module 'logf-ieee'.
974         * modules/logf-ieee: New file.
975
976 2012-03-10  Bruno Haible  <bruno@clisp.org>
977
978         log: Fix bug introduced on 2012-03-09.
979         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
980
981 2012-03-10  Pádraig Brady  <P@draigBrady.com>
982
983         timer-time: link explicitly with pthreads on glibc
984         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
985         to support static linking, when newer glibc is
986         detected, as that contains pthread emulation of
987         POSIX timer functions where required.
988         * modules/timer-time: Depend on threadlib to
989         pull in the appropriate library to link.
990
991 2012-03-10  Bruno Haible  <bruno@clisp.org>
992
993         log* tests: More tests.
994         * tests/test-log.h: New file.
995         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
996         (main): Invoke test_function.
997         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
998         (main): Invoke test_function.
999         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1000         (main): Invoke test_function.
1001         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1002         tests/randomd.c.
1003         (Makefile.am): Add randomd.c to test_log_SOURCES.
1004         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1005         tests/randomf.c.
1006         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1007         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1008         tests/randoml.c.
1009         (Depends-on): Add 'float'.
1010         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1011
1012 2012-03-09  Bruno Haible  <bruno@clisp.org>
1013
1014         logl: Work around OSF/1 5.1 bug.
1015         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1016         * lib/logl.c (logl): If logl exists, use it and provide just the
1017         workaround.
1018         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1019         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1021         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1022         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1023         (Depends-on): Update conditions.
1024         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1025
1026 2012-03-09  Bruno Haible  <bruno@clisp.org>
1027
1028         logf: Work around OSF/1 5.1 bug.
1029         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1030         * lib/logf.c (logf): If logf exists, use it and provide just the
1031         workaround.
1032         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1033         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1035         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1036         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1037         (Depends-on): Update conditions.
1038         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1039
1040 2012-03-09  Bruno Haible  <bruno@clisp.org>
1041
1042         log: Work around OSF/1 5.1 bug.
1043         * lib/math.in.h (log): New declaration.
1044         * lib/log.c: New file.
1045         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1046         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1047         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1049         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1050         * modules/log (Files): Add lib/log.c.
1051         (Depends-on): Add math.
1052         (configure.ac): If REPLACE_LOG is 1, compile an override.
1053         * tests/test-math-c++.cc: Check the declaration of log.
1054         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1055
1056 2012-03-09  Jim Meyering  <meyering@redhat.com>
1057
1058         readtokens.c: adjust wording in a comment
1059         * lib/readtokens.c: Insert omitted "that" in a comment.
1060
1061 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1062
1063         modechange: add notations +40, 00440, etc.
1064         * lib/modechange.c (mode_compile): Support new notations
1065         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1066
1067 2012-03-08  Bruno Haible  <bruno@clisp.org>
1068
1069         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1070         * m4/exp2l-ieee.m4: New file.
1071         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1072         test whether exp2l works with a NaN argument and with a negative
1073         infinity argument. Replace it if not.
1074         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1076         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1077         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1078         (Depends-on): Update conditions.
1079         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1080         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1081         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1082
1083         Tests for module 'exp2l-ieee'.
1084         * modules/exp2l-ieee-tests: New file.
1085         * tests/test-exp2l-ieee.c: New file.
1086
1087         New module 'exp2l-ieee'.
1088         * modules/exp2l-ieee: New file.
1089
1090         Tests for module 'exp2-ieee'.
1091         * modules/exp2-ieee-tests: New file.
1092         * tests/test-exp2-ieee.c: New file.
1093
1094         New module 'exp2-ieee'.
1095         * modules/exp2-ieee: New file.
1096
1097         Tests for module 'exp2f-ieee'.
1098         * modules/exp2f-ieee-tests: New file.
1099         * tests/test-exp2f-ieee.c: New file.
1100         * tests/test-exp2-ieee.h: New file.
1101
1102         New module 'exp2f-ieee'.
1103         * modules/exp2f-ieee: New file.
1104
1105 2012-03-08  Bruno Haible  <bruno@clisp.org>
1106
1107         Tests for module 'exp2l'.
1108         * modules/exp2l-tests: New file.
1109         * tests/test-exp2l.c: New file.
1110
1111         New module 'exp2l'.
1112         * lib/math.in.h (exp2l): New declaration.
1113         * lib/exp2l.c: New file.
1114         * lib/expl-table.c: New file, extracted from lib/expl.c.
1115         * lib/expl.c (gl_expl_table): New declaration.
1116         (expl): Remove expl_table. Update reference.
1117         * m4/exp2l.m4: New file.
1118         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1120         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1121         * modules/exp2l: New file.
1122         * modules/expl (Files): Add lib/expl-table.c.
1123         (configure.ac): Compile also expl-table.c.
1124         * tests/test-math-c++.cc: Check the declaration of exp2l.
1125         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1126         problem.
1127
1128 2012-03-08  Bruno Haible  <bruno@clisp.org>
1129
1130         Tests for module 'exp2f'.
1131         * modules/exp2f-tests: New file.
1132         * tests/test-exp2f.c: New file.
1133
1134         New module 'exp2f'.
1135         * lib/math.in.h (exp2f): New declaration.
1136         * lib/exp2f.c: New file.
1137         * m4/exp2f.m4: New file.
1138         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1140         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1141         * modules/exp2f: New file.
1142         * tests/test-math-c++.cc: Check the declaration of exp2f.
1143         * doc/posix-functions/exp2f.texi: Mention the new module and the
1144         IRIX problem.
1145
1146 2012-03-08  Bruno Haible  <bruno@clisp.org>
1147
1148         Tests for module 'exp2'.
1149         * modules/exp2-tests: New file.
1150         * tests/test-exp2.c: New file.
1151         * tests/test-exp2.h: New file.
1152
1153         New module 'exp2'.
1154         * lib/math.in.h (exp2): New declaration.
1155         * lib/exp2.c: New file.
1156         * m4/exp2.m4: New file.
1157         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1159         REPLACE_EXP2.
1160         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1161         REPLACE_EXP2.
1162         * modules/exp2: New file.
1163         * tests/test-math-c++.cc: Check the declaration of exp2.
1164         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1165         and OpenBSD problems.
1166
1167 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1168
1169         savedir: fix comment typo
1170         * lib/savedir.c (savedirstream): Fix typo in comment.
1171
1172 2012-03-08  Bruno Haible  <bruno@clisp.org>
1173
1174         test-readtokens.c: use const; remove unwarranted cast
1175         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1176
1177 2012-03-08  Bruno Haible  <bruno@clisp.org>
1178
1179         fmal: Avoid compilation error on AIX.
1180         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1181         AIX 5.2..7.1.
1182
1183 2012-03-08  Bruno Haible  <bruno@clisp.org>
1184
1185         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1186         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1187         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1188         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1189         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1190         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1191         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1192
1193 2012-03-08  Bruno Haible  <bruno@clisp.org>
1194
1195         remainderf: Override buggy system function on IRIX 6.5.
1196         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1197         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1198         when it exists.
1199         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1200
1201 2012-03-08  Jim Meyering  <meyering@redhat.com>
1202
1203         test-readtokens.c: avoid const-related compilation warnings
1204         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1205
1206 2012-03-07  Jim Meyering  <meyering@redhat.com>
1207             Bruno Haible  <bruno@clisp.org>
1208
1209         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1210         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1211         tests/randomd.c.
1212         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1213         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1214         tests/randoml.c.
1215         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1216
1217 2012-03-07  Bruno Haible  <bruno@clisp.org>
1218
1219         expm1l: Avoid compilation error on AIX.
1220         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1221         AIX 5.2..7.1.
1222
1223 2012-03-07  Bruno Haible  <bruno@clisp.org>
1224
1225         expm1l: Don't override undeclared system function on IRIX 6.5.
1226         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1227         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1228         it exists. Set HAVE_DECL_EXPM1L.
1229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1230         HAVE_EXPM1L.
1231         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1232         HAVE_EXPM1L.
1233         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1234
1235 2012-03-07  Bruno Haible  <bruno@clisp.org>
1236
1237         remainderl: Don't override undeclared system function on IRIX 6.5.
1238         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1239         HAVE_REMAINDERL.
1240         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1241         declared when it exists. Set HAVE_DECL_REMAINDERL.
1242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1243         not HAVE_REMAINDERL.
1244         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1245         HAVE_REMAINDERL.
1246         * doc/posix-functions/remainderl.texi: Mention missing declaration
1247         problem.
1248
1249 2012-03-07  Bruno Haible  <bruno@clisp.org>
1250
1251         rintf: Don't override undeclared system function on IRIX 6.5.
1252         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1253         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1254         exists. Set HAVE_DECL_RINTF.
1255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1256         HAVE_RINTF.
1257         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1258         HAVE_RINTF.
1259         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1260
1261 2012-03-07  Bruno Haible  <bruno@clisp.org>
1262
1263         roundl: Avoid compilation error on AIX.
1264         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1265         AIX 5.2..7.1.
1266
1267 2012-03-07  Bruno Haible  <bruno@clisp.org>
1268
1269         roundl: Don't override undeclared system function on IRIX 6.5.
1270         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1271         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1272         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1273         * modules/roundl (configure.ac): For replacement code, test
1274         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1275         (Depends-on): Update conditions.
1276         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1277
1278 2012-03-07  Bruno Haible  <bruno@clisp.org>
1279
1280         roundf: Don't override undeclared system function on IRIX 6.5.
1281         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1282         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1283         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1284         * modules/roundf (configure.ac): For replacement code, test
1285         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1286         (Depends-on): Update conditions.
1287         * modules/roundf-ieee (Depends-on): Update conditions.
1288         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1289
1290 2012-03-07  Bruno Haible  <bruno@clisp.org>
1291
1292         round: Don't override undeclared system function on IRIX 6.5.
1293         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1294         argument.
1295         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1296         also when it is not declared. Set HAVE_ROUND. For replacement code,
1297         test HAVE_ROUND, not HAVE_DECL_ROUND.
1298         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1299         not HAVE_DECL_ROUND.
1300         (Depends-on): Update conditions.
1301         * modules/round-ieee (Depends-on): Update conditions.
1302         * doc/posix-functions/round.texi: Mention the IRIX problem.
1303
1304 2012-03-07  Bruno Haible  <bruno@clisp.org>
1305
1306         copysignf: Don't override undeclared system function on IRIX 6.5.
1307         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1308         HAVE_COPYSIGNF.
1309         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1310         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1312         not HAVE_COPYSIGNF.
1313         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1314         HAVE_COPYSIGNF.
1315         * doc/posix-functions/copysignf.texi: Mention missing declaration
1316         problem.
1317
1318 2012-03-07  Jim Meyering  <meyering@redhat.com>
1319
1320         readtokens: add tests
1321         * modules/readtokens-tests: New file.
1322         * tests/test-readtokens.c: New file.
1323
1324 2012-03-07  Jim Meyering  <meyering@redhat.com>
1325
1326         quotearg: the module must now include quote.h
1327         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1328         So must the module.
1329         * modules/quotearg (Files): Add quote.h.
1330
1331 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1332
1333         readtokens: avoid core dumps with unusual calling patterns
1334         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1335         * lib/readtokens.c: Include limits.h.
1336         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1337         (readtoken): Don't cache the delimiters; the cache code was buggy
1338         if !delim && saved_delim, or if the new n_delim differs from the old.
1339         Also, it wasn't thread-safe.
1340
1341 2012-03-07  Bruno Haible  <bruno@clisp.org>
1342
1343         quote: Adhere to common module description layout.
1344         * modules/quote (Makefile.am): Add back empty section.
1345
1346 2012-03-06  Akim Demaille  <demaille@gostai.com>
1347
1348         quote: fuse into quotearg
1349         This patch is made for the benefit of Bison.
1350         quote does not leave the choice of the quoting style to the user.
1351         quoting_style provides poor customizability, yet quoting_options,
1352         which is very rich, is hidden inside quotearg.c.  So in order to
1353         allow quote customization, move its implementation to quotearg.c.
1354         * lib/quote.c: Remove.
1355         * modules/quote: Adjust.
1356         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1357         warning: provide all the members of literal structs.
1358         (quote_quoting_options): New.
1359         (quote, quote_n): Import implementation from quote.c.
1360         * lib/quote.h: Import the comments from quote.c.
1361         (quote_quoting_options): New.
1362
1363 2012-03-06  Bruno Haible  <bruno@clisp.org>
1364
1365         Tests for module 'expm1l-ieee'.
1366         * modules/expm1l-ieee-tests: New file.
1367         * tests/test-expm1l-ieee.c: New file.
1368
1369         New module 'expm1l-ieee'.
1370         * modules/expm1l-ieee: New file.
1371
1372         Tests for module 'expm1f-ieee'.
1373         * modules/expm1f-ieee-tests: New file.
1374         * tests/test-expm1f-ieee.c: New file.
1375
1376         New module 'expm1f-ieee'.
1377         * modules/expm1f-ieee: New file.
1378
1379         Tests for module 'expm1-ieee'.
1380         * modules/expm1-ieee-tests: New file.
1381         * tests/test-expm1-ieee.c: New file.
1382         * tests/test-expm1-ieee.h: New file.
1383
1384         New module 'expm1-ieee'.
1385         * modules/expm1-ieee: New file.
1386         * m4/expm1-ieee.m4: New file.
1387         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1388         whether expm1 works with a minus zero argument. Replace it if not.
1389         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1391         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1392         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1393         (Depends-on): Update conditions.
1394         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1395         AIX problem.
1396
1397 2012-03-06  Bruno Haible  <bruno@clisp.org>
1398
1399         Work around expm1f bug on IRIX 6.5.
1400         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1401         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1402         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1403         not work.
1404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1405         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1406         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1407         (Depends-on): Update conditions.
1408         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1409
1410 2012-03-06  Bruno Haible  <bruno@clisp.org>
1411
1412         Tests for module 'expm1l'.
1413         * modules/expm1l-tests: New file.
1414         * tests/test-expm1l.c: New file.
1415
1416         New module 'expm1l'.
1417         * lib/math.in.h (expm1l): New declaration.
1418         * lib/expm1l.c: New file.
1419         * m4/expm1l.m4: New file.
1420         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1422         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1423         * modules/expm1l: New file.
1424         * tests/test-math-c++.cc: Check the declaration of expm1l.
1425         * doc/posix-functions/expm1l.texi: Mention the new module.
1426
1427 2012-03-06  Bruno Haible  <bruno@clisp.org>
1428
1429         Tests for module 'expm1f'.
1430         * modules/expm1f-tests: New file.
1431         * tests/test-expm1f.c: New file.
1432
1433         New module 'expm1f'.
1434         * lib/math.in.h (expm1f): New declaration.
1435         * lib/expm1f.c: New file.
1436         * m4/expm1f.m4: New file.
1437         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1438         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1439         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1440         * modules/expm1f: New file.
1441         * tests/test-math-c++.cc: Check the declaration of expm1f.
1442         * doc/posix-functions/expm1f.texi: Mention the new module.
1443
1444 2012-03-06  Bruno Haible  <bruno@clisp.org>
1445
1446         Tests for module 'expm1'.
1447         * modules/expm1-tests: New file.
1448         * tests/test-expm1.c: New file.
1449         * tests/test-expm1.h: New file.
1450
1451         New module 'expm1'.
1452         * lib/math.in.h (expm1): New declaration.
1453         * lib/expm1.c: New file.
1454         * m4/expm1.m4: New file.
1455         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1457         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1458         * modules/expm1: New file.
1459         * tests/test-math-c++.cc: Check the declaration of expm1.
1460         * doc/posix-functions/expm1.texi: Mention the new module.
1461
1462 2012-03-06  Bruno Haible  <bruno@clisp.org>
1463
1464         math: Ensure declarations of math functions.
1465         * modules/acosf (Depends-on): Add 'extensions'.
1466         * modules/asinf (Depends-on): Likewise.
1467         * modules/atan2f (Depends-on): Likewise.
1468         * modules/atanf (Depends-on): Likewise.
1469         * modules/cbrt (Depends-on): Likewise.
1470         * modules/cbrtf (Depends-on): Likewise.
1471         * modules/cbrtl (Depends-on): Likewise.
1472         * modules/copysignf (Depends-on): Likewise.
1473         * modules/copysignl (Depends-on): Likewise.
1474         * modules/cosf (Depends-on): Likewise.
1475         * modules/coshf (Depends-on): Likewise.
1476         * modules/expf (Depends-on): Likewise.
1477         * modules/fabsf (Depends-on): Likewise.
1478         * modules/fabsl (Depends-on): Likewise.
1479         * modules/fmaf (Depends-on): Likewise.
1480         * modules/fmal (Depends-on): Likewise.
1481         * modules/fmodf (Depends-on): Likewise.
1482         * modules/fmodl (Depends-on): Likewise.
1483         * modules/frexpf (Depends-on): Likewise.
1484         * modules/frexpl (Depends-on): Likewise.
1485         * modules/hypot (Depends-on): Likewise.
1486         * modules/hypotf (Depends-on): Likewise.
1487         * modules/hypotl (Depends-on): Likewise.
1488         * modules/ldexpf (Depends-on): Likewise.
1489         * modules/ldexpl (Depends-on): Likewise.
1490         * modules/log10f (Depends-on): Likewise.
1491         * modules/log10l (Depends-on): Likewise.
1492         * modules/log1p (Depends-on): Likewise.
1493         * modules/logb (Depends-on): Likewise.
1494         * modules/logf (Depends-on): Likewise.
1495         * modules/modff (Depends-on): Likewise.
1496         * modules/modfl (Depends-on): Likewise.
1497         * modules/powf (Depends-on): Likewise.
1498         * modules/remainderf (Depends-on): Likewise.
1499         * modules/remainderl (Depends-on): Likewise.
1500         * modules/rintf (Depends-on): Likewise.
1501         * modules/rintl (Depends-on): Likewise.
1502         * modules/sinf (Depends-on): Likewise.
1503         * modules/sinhf (Depends-on): Likewise.
1504         * modules/sqrtf (Depends-on): Likewise.
1505         * modules/tanf (Depends-on): Likewise.
1506         * modules/tanhf (Depends-on): Likewise.
1507         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1508         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1509         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1510         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1511         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1512         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1513         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1514         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1515         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1516         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1517         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1518         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1519         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1520         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1521         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1522         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1523         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1524         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1525         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1526         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1527         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1528         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1529         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1530         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1532         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1533         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1534         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1535         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1536         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1537         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1538         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1539         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1540         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1541         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1542         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1543         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1544         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1545         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1546         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1547         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1548
1549 2012-03-06  Bruno Haible  <bruno@clisp.org>
1550
1551         math: Update module names in warnings.
1552         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1553         tanl): Use specific module name in warn-on-use warning.
1554
1555 2012-03-06  Bruno Haible  <bruno@clisp.org>
1556
1557         expl: Simplify computation.
1558         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1559
1560 2012-03-05  Bruno Haible  <bruno@clisp.org>
1561
1562         exp* tests: More tests.
1563         * tests/test-exp.h: New file.
1564         * tests/test-exp.c: Include <float.h> and test-exp.h.
1565         (main): Invoke test_function.
1566         * tests/test-expf.c: Include <float.h> and test-exp.h.
1567         (main): Invoke test_function.
1568         * tests/test-expl.c: Include <float.h> and test-exp.h.
1569         (main): Invoke test_function.
1570         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1571         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1572         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1573         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1574         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1575         (Depends-on): Add 'float'.
1576         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1577
1578         expl: Fix precision of computed result.
1579         * lib/expl.c: Completely rewritten.
1580         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1581         (Maintainer): Add me.
1582         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1583
1584 2012-03-05  Bruno Haible  <bruno@clisp.org>
1585
1586         cbrt* tests: More tests.
1587         * tests/test-cbrt.h: New file.
1588         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1589         (main): Invoke test_function.
1590         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1591         (main): Invoke test_function.
1592         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1593         (main): Invoke test_function.
1594         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1595         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1596         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1597         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1598         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1599         (Depends-on): Add 'float'.
1600         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1601
1602 2012-03-05  Bruno Haible  <bruno@clisp.org>
1603
1604         hypot* tests: More tests.
1605         * tests/test-hypot.h: New file, partially extracted from
1606         tests/test-hypotl.c.
1607         * tests/test-hypot.c: Include test-hypot.h.
1608         (main): Invoke test_function.
1609         * tests/test-hypotf.c: Include test-hypot.h.
1610         (main): Invoke test_function.
1611         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1612         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1613         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1614         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1615         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1616         tests/randomf.c.
1617         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1618         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1619         tests/randoml.c.
1620         (Depends-on): Add 'fpucw', 'float'.
1621         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1622
1623 2012-03-05  Bruno Haible  <bruno@clisp.org>
1624
1625         fpucw: Doc about FreeBSD.
1626         * lib/fpucw.h: Mention FreeBSD in comments.
1627
1628 2012-03-04  Bruno Haible  <bruno@clisp.org>
1629
1630         sqrt* tests: More tests.
1631         * tests/test-sqrt.h: New file.
1632         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1633         (main): Invoke test_function.
1634         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1635         (main): Invoke test_function.
1636         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1637         (main): Invoke test_function.
1638         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1639         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1640         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1641         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1642         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1643         (Depends-on): Add 'float'.
1644         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1645
1646 2012-03-04  Bruno Haible  <bruno@clisp.org>
1647
1648         remainder* tests: More tests.
1649         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1650         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1651         (main): Invoke test_function.
1652         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1653         (main): Invoke test_function.
1654         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1655         (main): Invoke test_function.
1656         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1657         tests/randomd.c.
1658         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1659         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1660         tests/randomf.c.
1661         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1662         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1663         tests/randoml.c.
1664         (Depends-on): Add 'float'.
1665         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1666
1667 2012-03-04  Bruno Haible  <bruno@clisp.org>
1668
1669         remainder, remainderf, remainderl: Fix computation for large quotients.
1670         * lib/remainder.c: Completely rewritten.
1671         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1672         USE_FLOAT.
1673         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1674         USE_LONG_DOUBLE.
1675         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1676         isnand, isinf. Remove round, fma.
1677         * modules/remainderf (Files): Add lib/remainder.c.
1678         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1679         Remove roundf, fmaf.
1680         * modules/remainderl (Files): Add lib/remainder.c.
1681         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1682         isinf. Remove roundl, fmal.
1683         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1684         REMAINDER_LIBM.
1685         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1686         REMAINDERF_LIBM.
1687         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1688         REMAINDERL_LIBM.
1689
1690 2012-03-04  Bruno Haible  <bruno@clisp.org>
1691
1692         fmod* tests: More tests.
1693         * tests/test-fmod.h (my_ldexp): New function.
1694         (test_function): Reduce amount of random numbers to test. Add tests
1695         of very large quotients x / y.
1696         * tests/test-fmod.c (MAX_EXP): New macro.
1697         * tests/test-fmodf.c (MAX_EXP): Likewise.
1698         * tests/test-fmodl.c (MAX_EXP): Likewise.
1699
1700 2012-03-04  Bruno Haible  <bruno@clisp.org>
1701
1702         fmod, fmodl: Fix computation for large quotients x / y.
1703         * lib/fmod.c: Completely rewritten.
1704         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1705         USE_LONG_DOUBLE.
1706         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1707         isnand. Remove fma.
1708         * modules/fmodl (Files): Add lib/fmod.c.
1709         (Depends-on): Add float, isfinite, signbit, fabsl,
1710         frexpl, ldexpl, isnanl. Remove fma.
1711         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1712         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1713
1714 2012-03-03  Bruno Haible  <bruno@clisp.org>
1715
1716         fmod* tests: More tests.
1717         * tests/test-fmod.h: New file.
1718         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1719         (main): Invoke test_function.
1720         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1721         (main): Invoke test_function.
1722         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1723         (main): Invoke test_function.
1724         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1725         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1726         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1727         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1728         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1729         (Depends-on): Add 'float'.
1730         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1731
1732 2012-03-03  Bruno Haible  <bruno@clisp.org>
1733
1734         rint* tests: More tests.
1735         * tests/test-rint.h: New file, partially extracted from
1736         tests/test-rintl.c.
1737         * tests/test-rint.c: Include test-rint.h.
1738         (main): Invoke test_function.
1739         * tests/test-rintf.c: Include test-rint.h.
1740         (main): Invoke test_function.
1741         * tests/test-rintl.c: Include test-rint.h.
1742         (main): Invoke test_function.
1743         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1744         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1745         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1746         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1747         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1748         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1749
1750 2012-03-03  Bruno Haible  <bruno@clisp.org>
1751
1752         modf* tests: More tests.
1753         * tests/test-modf.h: New file.
1754         * tests/test-modf.c: Include <float.h> and test-modf.h.
1755         (main): Invoke test_function.
1756         * tests/test-modff.c: Include <float.h> and test-modf.h.
1757         (main): Invoke test_function.
1758         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1759         (main): Invoke test_function.
1760         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1761         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1762         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1763         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1764         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1765         (Depends-on): Add 'float'.
1766         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1767
1768 2012-03-03  Bruno Haible  <bruno@clisp.org>
1769
1770         fabs* tests: More tests.
1771         * tests/test-fabs.h: New file, partially extracted from
1772         tests/test-fabsl.c.
1773         * tests/test-fabs.c (RANDOM): New macro.
1774         * tests/test-fabsf.c (RANDOM): New macro.
1775         * tests/test-fabsl.c (RANDOM): New macro.
1776         * modules/fabs-tests (Files): Add tests/randomd.c.
1777         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1778         * modules/fabsf-tests (Files): Add tests/randomf.c.
1779         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1780         * modules/fabsl-tests (Files): Add tests/randoml.c.
1781         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1782
1783 2012-03-03  Bruno Haible  <bruno@clisp.org>
1784
1785         ldexp* tests: More tests.
1786         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1787         * tests/test-ldexp.c (RANDOM): New macro.
1788         * tests/test-ldexpf.c (RANDOM): New macro.
1789         * tests/test-ldexpl.c (RANDOM): New macro.
1790         * modules/ldexp-tests (Files): Add tests/randomd.c.
1791         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1792         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1793         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1794         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1795         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1796
1797 2012-03-03  Bruno Haible  <bruno@clisp.org>
1798
1799         frexp* tests: More tests.
1800         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1801         * tests/test-frexp.c (RANDOM): New macro.
1802         * tests/test-frexpf.c (RANDOM): New macro.
1803         * tests/test-frexpl.c (RANDOM): New macro.
1804         * modules/frexp-tests (Files): Add tests/randomd.c.
1805         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1806         * modules/frexpf-tests (Files): Add tests/randomf.c.
1807         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1808         * modules/frexpl-tests (Files): Add tests/randoml.c.
1809         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1810
1811 2012-03-03  Bruno Haible  <bruno@clisp.org>
1812
1813         Support for pseudo-random numbers in tests.
1814         * tests/randomf.c: New file.
1815         * tests/randomd.c: New file.
1816         * tests/randoml.c: New file.
1817         * tests/macros.h (randomf, randomd, randoml): New declarations.
1818
1819 2012-03-03  Bruno Haible  <bruno@clisp.org>
1820
1821         frexp* tests: Refactor.
1822         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1823         * tests/test-frexp.c: Include and use it.
1824         * tests/test-frexpf.c: Likewise.
1825         * tests/test-frexpl.c: Likewise.
1826         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1827         * modules/frexpf-tests (Files): Likewise.
1828         * modules/frexpl-tests (Files): Likewise.
1829
1830 2012-03-02  Jim Meyering  <meyering@redhat.com>
1831
1832         maint: don't specify XZ_OPT=-9ev in dist-related rule
1833         Using xz's -9 option is warranted only if you have a very large
1834         tarball (see xz's documentation for the sizes vs. presets), and
1835         requires 64MiB of memory at decompression time.
1836         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1837         Automake's default of just "-e" is fine.  Override on a
1838         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1839
1840 2012-03-01  Eric Blake  <eblake@redhat.com>
1841
1842         maint.mk: allow announcement for non-gnulib project
1843         * maint.mk (announcement): Skip gnulib version if not used.
1844
1845 2012-03-01  Jim Meyering  <meyering@redhat.com>
1846
1847         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1848         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1849         envvar settings cannot interfere.  Otherwise, setting envvars like
1850         prohibit=foo require=bar, etc. would cause spurious test failures.
1851
1852 2012-03-01  Eric Blake  <eblake@redhat.com>
1853
1854         maint.mk: add per-line exclusions to prohibitions
1855         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1856         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1857         (sc_const_long_option): Use it.
1858
1859 2012-03-01  Bruno Haible  <bruno@clisp.org>
1860
1861         Tests for module 'expl-ieee'.
1862         * modules/expl-ieee-tests: New file.
1863         * tests/test-expl-ieee.c: New file.
1864
1865         New module 'expl-ieee'.
1866         * modules/expl-ieee: New file.
1867
1868         Tests for module 'exp-ieee'.
1869         * modules/exp-ieee-tests: New file.
1870         * tests/test-exp-ieee.c: New file.
1871
1872         New module 'exp-ieee'.
1873         * modules/exp-ieee: New file.
1874
1875         Tests for module 'expf-ieee'.
1876         * modules/expf-ieee-tests: New file.
1877         * tests/test-expf-ieee.c: New file.
1878         * tests/test-exp-ieee.h: New file.
1879
1880         New module 'expf-ieee'.
1881         * modules/expf-ieee: New file.
1882
1883 2012-02-29  Bruno Haible  <bruno@clisp.org>
1884
1885         cbrtl-ieee: Work around test failure on IRIX 6.5.
1886         * m4/cbrtl-ieee.m4: New file.
1887         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1888         test whether cbrtl works with a minus zero argument. Replace it if not.
1889         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1891         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1892         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1893         (Depends-on): Update conditions.
1894         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1895         m4/signbit.m4.
1896         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1897         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1898         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1899
1900         Tests for module 'cbrtl-ieee'.
1901         * modules/cbrtl-ieee-tests: New file.
1902         * tests/test-cbrtl-ieee.c: New file.
1903
1904         New module 'cbrtl-ieee'.
1905         * modules/cbrtl-ieee: New file.
1906
1907         Tests for module 'cbrt-ieee'.
1908         * modules/cbrt-ieee-tests: New file.
1909         * tests/test-cbrt-ieee.c: New file.
1910
1911         New module 'cbrt-ieee'.
1912         * modules/cbrt-ieee: New file.
1913
1914         Tests for module 'cbrtf-ieee'.
1915         * modules/cbrtf-ieee-tests: New file.
1916         * tests/test-cbrtf-ieee.c: New file.
1917         * tests/test-cbrt-ieee.h: New file.
1918
1919         New module 'cbrtf-ieee'.
1920         * modules/cbrtf-ieee: New file.
1921
1922 2012-02-29  Bruno Haible  <bruno@clisp.org>
1923
1924         cbrtf: Work around bug in IRIX 6.5 system function.
1925         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1926         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1927         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1928         work.
1929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1930         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1931         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1932         (Depends-on): Update conditions.
1933         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1934
1935 2012-02-29  Bruno Haible  <bruno@clisp.org>
1936
1937         Tests for module 'cbrtl'.
1938         * modules/cbrtl-tests: New file.
1939         * tests/test-cbrtl.c: New file.
1940
1941         New module 'cbrtl'.
1942         * lib/math.in.h (cbrtl): New declaration.
1943         * lib/cbrtl.c: New file.
1944         * m4/cbrtl.m4: New file.
1945         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1947         HAVE_DECL_CBRTL.
1948         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1949         HAVE_DECL_CBRTL.
1950         * modules/cbrtl: New file.
1951         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1952         * doc/posix-functions/cbrtl.texi: Mention the new module.
1953
1954 2012-02-29  Bruno Haible  <bruno@clisp.org>
1955
1956         Tests for module 'cbrtf'.
1957         * modules/cbrtf-tests: New file.
1958         * tests/test-cbrtf.c: New file.
1959
1960         New module 'cbrtf'.
1961         * lib/math.in.h (cbrtf): New declaration.
1962         * lib/cbrtf.c: New file.
1963         * m4/cbrtf.m4: New file.
1964         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1966         HAVE_DECL_CBRTF.
1967         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1968         HAVE_DECL_CBRTF.
1969         * modules/cbrtf: New file.
1970         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1971         * doc/posix-functions/cbrtf.texi: Mention the new module.
1972
1973 2012-02-29  Bruno Haible  <bruno@clisp.org>
1974
1975         cbrt: Provide replacement on MSVC and Minix.
1976         * lib/math.in.h (cbrt): New declaration.
1977         * lib/cbrt.c: New file.
1978         * m4/cbrt.m4: New file.
1979         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1981         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1982         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1983         (Depends-on): Add dependencies.
1984         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1985         * tests/test-math-c++.cc: Check the declaration of cbrt.
1986         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1987         replacement.
1988
1989 2012-02-29  Bruno Haible  <bruno@clisp.org>
1990
1991         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1992         * m4/hypotl-ieee.m4: New file.
1993         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1994         test whether hypotl works with mixed NaN and Infinity arguments.
1995         Replace it if not.
1996         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1998         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1999         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2000         (Depends-on): Update conditions.
2001         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2002         (Depends-on): Add hypot-ieee.
2003         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2004         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2005
2006         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2007         * m4/hypotf-ieee.m4: New file.
2008         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2009         test whether hypotf works with mixed NaN and Infinity arguments.
2010         Replace it if not.
2011         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2012         (Depends-on): Add hypot-ieee.
2013         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2014         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2015
2016         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2017         * lib/math.in.h (hypot): New declaration.
2018         * lib/hypot.c: New file.
2019         * m4/hypot-ieee.m4: New file.
2020         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2021         whether hypot works with mixed NaN and Infinity arguments. Replace it
2022         if not.
2023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2024         REPLACE_HYPOT.
2025         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2026         * modules/hypot (Files): Add lib/hypot.c.
2027         (Depends-on): Add dependencies.
2028         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2029         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2030         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2031         * tests/test-math-c++.cc: Check the declaration of hypot.
2032         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2033
2034         Tests for module 'hypotl-ieee'.
2035         * modules/hypotl-ieee-tests: New file.
2036         * tests/test-hypotl-ieee.c: New file.
2037
2038         New module 'hypotl-ieee'.
2039         * modules/hypotl-ieee: New file.
2040
2041         Tests for module 'hypot-ieee'.
2042         * modules/hypot-ieee-tests: New file.
2043         * tests/test-hypot-ieee.c: New file.
2044
2045         New module 'hypot-ieee'.
2046         * modules/hypot-ieee: New file.
2047
2048         Tests for module 'hypotf-ieee'.
2049         * modules/hypotf-ieee-tests: New file.
2050         * tests/test-hypotf-ieee.c: New file.
2051         * tests/test-hypot-ieee.h: New file.
2052
2053         New module 'hypotf-ieee'.
2054         * modules/hypotf-ieee: New file.
2055
2056 2012-02-29  Bruno Haible  <bruno@clisp.org>
2057
2058         Remove unused variables.
2059         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2060         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2061         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2062         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2063
2064 2012-02-29  Eric Blake  <eblake@redhat.com>
2065
2066         termios: fix pid_t always, not just for tcgetsid
2067         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2068         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2069         just when building tcgetsid.
2070
2071 2012-02-29  Bruno Haible  <bruno@clisp.org>
2072
2073         Tests for module 'hypotl'.
2074         * modules/hypotl-tests: New file.
2075         * tests/test-hypotl.c: New file.
2076
2077         New module 'hypotl'.
2078         * lib/math.in.h (hypotl): New declaration.
2079         * lib/hypotl.c: New file.
2080         * m4/hypotl.m4: New file.
2081         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2083         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2084         * modules/hypotl: New file.
2085         * tests/test-math-c++.cc: Check the hypotl declaration.
2086         * doc/posix-functions/hypotl.texi: Mention the new module.
2087
2088 2012-02-29  Eric Blake  <eblake@redhat.com>
2089
2090         tcgetsid: fix cygwin header bug
2091         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2092
2093         docs: update cygwin progress
2094         * doc/posix-functions/llround.texi (llround): Added in cygwin
2095         1.7.8.
2096         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2097         * doc/glibc-functions/program_invocation_name.texi
2098         (program_invocation_name): Likewise.
2099         * doc/glibc-functions/program_invocation_short_name.texi
2100         (program_invocation_short_name): Likewise.
2101         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2102         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2103         Likewise.
2104         * doc/posix-functions/pthread_spin_destroy.texi
2105         (pthread_spin_destroy): Added in cygwin 1.7.10.
2106         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2107         Likewise.
2108         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2109         Likewise.
2110         * doc/posix-functions/pthread_spin_trylock.texi
2111         (pthread_spin_trylock): Likewise.
2112         * doc/posix-functions/pthread_spin_unlock.texi
2113         (pthread_spin_unlock): Likewise.
2114         * doc/posix-functions/pthread_setschedprio.texi
2115         (pthread_setschedprio): Likewise.
2116         * doc/posix-functions/pthread_attr_getstack.texi
2117         (pthread_attr_getstack): Likewise.
2118         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2119         (pthread_attr_getstackaddr): Likewise.
2120         * doc/glibc-functions/pthread_getattr_np.texi
2121         (pthread_getattr_np): Likewise.
2122         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2123         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2124         * doc/posix-functions/clock_settime.texi (clock_settime):
2125         Likewise.
2126         * doc/posix-functions/pthread_attr_getguardsize.texi
2127         (pthread_attr_getguardsize): Likewise.
2128         * doc/posix-functions/pthread_attr_setguardsize.texi
2129         (pthread_attr_setguardsize): Likewise.
2130         * doc/posix-functions/pthread_attr_setstack.texi
2131         (pthread_attr_setstack): Likewise.
2132         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2133         (pthread_attr_setstackaddr): Likewise.
2134         * doc/posix-functions/clock_getcpuclockid.texi
2135         (clock_getcpuclockid): Likewise.
2136         * doc/posix-functions/pthread_getcpuclockid.texi
2137         (pthread_getcpuclockid): Likewise.
2138         * doc/glibc-functions/error.texi (error): Likewise.
2139         * doc/glibc-functions/error_at_line.texi (error_at_line):
2140         Likewise.
2141         * doc/glibc-functions/error_message_count.texi
2142         (error_message_count): Likewise.
2143         * doc/glibc-functions/error_one_per_line.texi
2144         (error_one_per_line): Likewise.
2145         * doc/glibc-functions/error_print_progname.texi
2146         (error_print_progname): Likewise.
2147         * doc/posix-functions/pthread_condattr_getclock.texi
2148         (pthread_condattr_getclock): Likewise.
2149         * doc/posix-functions/pthread_condattr_setclock.texi
2150         (pthread_condattr_setclock): Likewise.
2151         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2152         Likewise.
2153         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2154         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2155         * doc/glibc-functions/get_current_dir_name.texi
2156         (get_current_dir_name): Likewise.
2157         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2158         Likewise.
2159         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2160         wrong return type.
2161         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2162         1.7.11.
2163
2164 2012-02-29  Bruno Haible  <bruno@clisp.org>
2165
2166         Tests for module 'hypotf'.
2167         * modules/hypotf-tests: New file.
2168         * tests/test-hypotf.c: New file.
2169
2170         New module 'hypotf'.
2171         * lib/math.in.h (hypotf): New declaration.
2172         * lib/hypotf.c: New file.
2173         * m4/hypotf.m4: New file.
2174         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2176         REPLACE_HYPOTF.
2177         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2178         REPLACE_HYPOTF.
2179         * modules/hypotf: New file.
2180         * tests/test-math-c++.cc: Check the hypotf declaration.
2181         * doc/posix-functions/hypotf.texi: Mention the new module.
2182
2183         hypot: Prepare for hypotf module.
2184         * m4/hypot.m4: New file.
2185         * modules/hypot (Files): Add m4/hypot.m4.
2186         (configure.ac): Invoke gl_FUNC_HYPOT.
2187
2188 2012-02-29  Bruno Haible  <bruno@clisp.org>
2189
2190         hypot tests: More tests.
2191         * tests/test-hypot.c: Include <float.h>.
2192         (main): Add tests about overflow and underflow.
2193
2194 2012-02-29  Bruno Haible  <bruno@clisp.org>
2195
2196         math code: Add comments.
2197         * lib/acosl.c: Add comment about related glibc source files.
2198         * lib/asinl.c: Likewise.
2199         * lib/atanl.c: Likewise.
2200         * lib/expl.c: Likewise.
2201         * lib/logl.c: Likewise.
2202         * lib/sincosl.c: Likewise.
2203         * lib/sinl.c: Likewise.
2204         * lib/tanl.c: Likewise.
2205         * lib/trigl.c: Likewise.
2206         * lib/cosl.c: Likewise. Fix comments.
2207
2208 2012-02-28  Bruno Haible  <bruno@clisp.org>
2209
2210         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2211         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2212         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2213         HUGE_VALL are defined.
2214         (numeric_equald): Renamed from numeric_equal.
2215         (numeric_equalf, numeric_equall): New functions.
2216         (main): Check also HUGE_VALF, HUGE_VALL.
2217         * modules/math-tests (Files): Add tests/macros.h.
2218         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2219         HUGE_VALL.
2220
2221 2012-02-28  Bruno Haible  <bruno@clisp.org>
2222
2223         doc: Move ISO C11 feature notes into POSIX chapters.
2224         * doc/posix-functions/aligned_alloc.texi: Renamed from
2225         doc/glibc-functions/aligned_alloc.texi.
2226         * doc/posix-functions/quick_exit.texi: Renamed from
2227         doc/glibc-functions/quick_exit.texi.
2228         * doc/posix-headers/uchar.texi: Renamed from
2229         doc/glibc-headers/uchar.texi.
2230         * doc/posix-functions/c16rtomb.texi: Renamed from
2231         doc/glibc-functions/c16rtomb.texi.
2232         * doc/posix-functions/c32rtomb.texi: Renamed from
2233         doc/glibc-functions/c32rtomb.texi.
2234         * doc/posix-functions/mbrtoc16.texi: Renamed from
2235         doc/glibc-functions/mbrtoc16.texi.
2236         * doc/posix-functions/mbrtoc32.texi: Renamed from
2237         doc/glibc-functions/mbrtoc32.texi.
2238         * doc/gnulib.texi: Update.
2239         (Glibc uchar.h): Remove section.
2240         Suggested by Eric Blake.
2241
2242 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2243
2244         stdnoreturn: port to MSVC better
2245         MSVC standard headers use __declspec(noreturn), so #define noreturn
2246         to empty on that platform.  Reported by Bruno Haible in
2247         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2248         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2249         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2250
2251 2012-02-28  Bruno Haible  <bruno@clisp.org>
2252
2253         doc: Mention new glibc headers and functions.
2254         * doc/glibc-headers/uchar.texi: New file.
2255         * doc/glibc-functions/aligned_alloc.texi: New file.
2256         * doc/glibc-functions/c16rtomb.texi: New file.
2257         * doc/glibc-functions/c32rtomb.texi: New file.
2258         * doc/glibc-functions/clock_adjtime.texi: New file.
2259         * doc/glibc-functions/fanotify_init.texi: New file.
2260         * doc/glibc-functions/fanotify_mark.texi: New file.
2261         * doc/glibc-functions/inet6_opt_append.texi: New file.
2262         * doc/glibc-functions/inet6_opt_find.texi: New file.
2263         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2264         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2265         * doc/glibc-functions/inet6_opt_init.texi: New file.
2266         * doc/glibc-functions/inet6_opt_next.texi: New file.
2267         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2268         * doc/glibc-functions/inet6_rth_add.texi: New file.
2269         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2270         * doc/glibc-functions/inet6_rth_init.texi: New file.
2271         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2272         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2273         * doc/glibc-functions/inet6_rth_space.texi: New file.
2274         * doc/glibc-functions/login.texi: New file.
2275         * doc/glibc-functions/mbrtoc16.texi: New file.
2276         * doc/glibc-functions/mbrtoc32.texi: New file.
2277         * doc/glibc-functions/name_to_handle_at.texi: New file.
2278         * doc/glibc-functions/ntp_gettimex.texi: New file.
2279         * doc/glibc-functions/open_by_handle_at.texi: New file.
2280         * doc/glibc-functions/prlimit.texi: New file.
2281         * doc/glibc-functions/process_vm_readv.texi: New file.
2282         * doc/glibc-functions/process_vm_writev.texi: New file.
2283         * doc/glibc-functions/recvmmsg.texi: New file.
2284         * doc/glibc-functions/scandirat.texi: New file.
2285         * doc/glibc-functions/sendmmsg.texi: New file.
2286         * doc/glibc-functions/setns.texi: New file.
2287         * doc/glibc-functions/timespec_get.texi: New file.
2288         * doc/gnulib.texi: Include them.
2289         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2290         sections.
2291         Reported by Eric Blake.
2292
2293 2012-02-28  Bruno Haible  <bruno@clisp.org>
2294
2295         Avoid compilation errors with MSVC option -fp:strict.
2296         * lib/floor.c: Use MSVC specific pragma fenv_access.
2297         * lib/ceil.c: Likewise.
2298         * lib/trunc.c: Likewise.
2299         * lib/round.c: Likewise.
2300         * lib/rint.c: Likewise.
2301         * lib/fma.c: Likewise.
2302         * lib/integer_length.c: Likewise.
2303         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2304         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2305         * tests/test-floor2.c: Likewise.
2306         * tests/test-floorf2.c: Likewise.
2307         * tests/test-ceil2.c: Likewise.
2308         * tests/test-ceilf2.c: Likewise.
2309         * tests/test-trunc2.c: Likewise.
2310         * tests/test-truncf2.c: Likewise.
2311         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2312
2313 2012-02-27  Bruno Haible  <bruno@clisp.org>
2314
2315         Tests for module 'sqrtl-ieee'.
2316         * modules/sqrtl-ieee-tests: New file.
2317         * tests/test-sqrtl-ieee.c: New file.
2318
2319         New module 'sqrtl-ieee'.
2320         * modules/sqrtl-ieee: New file.
2321
2322         Tests for module 'sqrt-ieee'.
2323         * modules/sqrt-ieee-tests: New file.
2324         * tests/test-sqrt-ieee.c: New file.
2325
2326         New module 'sqrt-ieee'.
2327         * modules/sqrt-ieee: New file.
2328
2329         Tests for module 'sqrtf-ieee'.
2330         * modules/sqrtf-ieee-tests: New file.
2331         * tests/test-sqrtf-ieee.c: New file.
2332         * tests/test-sqrt-ieee.h: New file.
2333
2334         New module 'sqrtf-ieee'.
2335         * modules/sqrtf-ieee: New file.
2336
2337 2012-02-27  Bruno Haible  <bruno@clisp.org>
2338
2339         remainderl-ieee: Work around test failure on OSF/1.
2340         * m4/remainderl-ieee.m4: New file.
2341         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2342         present, test whether remainderl works with a zero second argument.
2343         Replace it if not.
2344         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2346         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2347         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2348         (Depends-on): Update conditions.
2349         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2350         (Depends-on): Add remainder-ieee.
2351         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2352         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2353         module.
2354
2355         remainderf-ieee: Work around test failure on OSF/1.
2356         * m4/remainderf-ieee.m4: New file.
2357         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2358         present, test whether remainderf works with a zero second argument.
2359         Replace it if not.
2360         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2362         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2363         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2364         (Depends-on): Update conditions.
2365         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2366         (Depends-on): Add remainder-ieee.
2367         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2368         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2369         module.
2370
2371         remainder-ieee: Work around test failure on OSF/1.
2372         * m4/remainder-ieee.m4: New file.
2373         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2374         present, test whether remainder works with a zero second argument.
2375         Replace it if not.
2376         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2378         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2379         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2380         (Depends-on): Update dependencies.
2381         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2382         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2383         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2384
2385         Tests for module 'remainderl-ieee'.
2386         * modules/remainderl-ieee-tests: New file.
2387         * tests/test-remainderl-ieee.c: New file.
2388
2389         New module 'remainderl-ieee'.
2390         * modules/remainderl-ieee: New file.
2391
2392         Tests for module 'remainder-ieee'.
2393         * modules/remainder-ieee-tests: New file.
2394         * tests/test-remainder-ieee.c: New file.
2395
2396         New module 'remainder-ieee'.
2397         * modules/remainder-ieee: New file.
2398
2399         Tests for module 'remainderf-ieee'.
2400         * modules/remainderf-ieee-tests: New file.
2401         * tests/test-remainderf-ieee.c: New file.
2402         * tests/test-remainder-ieee.h: New file.
2403
2404         New module 'remainderf-ieee'.
2405         * modules/remainderf-ieee: New file.
2406
2407 2012-02-27  Bruno Haible  <bruno@clisp.org>
2408
2409         modff, modfl: Fix configure syntax error.
2410         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2411         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2412
2413 2012-02-27  Bruno Haible  <bruno@clisp.org>
2414
2415         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2416         * m4/fmodl-ieee.m4: New file.
2417         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2418         whether fmodl works with zero arguments. Replace it if not.
2419         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2420         (Depends-on): Add fmod-ieee.
2421         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2422         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2423
2424         fmodf-ieee: Work around test failure on OSF/1.
2425         * m4/fmodf-ieee.m4: New file.
2426         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2427         whether fmodf works with zero arguments. Replace it if not.
2428         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2430         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2431         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2432         (Depends-on): Update dependencies.
2433         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2434         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2435         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2436
2437         fmodf-ieee: Work around test failure on MSVC 9.
2438         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2439         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2440
2441         fmod-ieee: Work around test failures on OSF/1, mingw.
2442         * m4/fmod-ieee.m4: New file.
2443         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2444         whether fmod works with zero arguments. Replace it if not.
2445         * lib/math.in.h (fmod): New declaration.
2446         * lib/fmod.c: New file.
2447         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2449         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2450         * modules/fmod (Files): Add lib/fmod.c.
2451         (Depends-on): Add math, isinf, trunc, fma.
2452         (configure.ac): Arrange to compile lib/fmod.c if needed.
2453         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2454         m4/signbit.m4.
2455         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2456         * tests/test-math-c++.cc: Check the declaration of fmod.
2457         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2458
2459         fmodl-ieee: Fix test failures.
2460         * lib/fmodl.c (fmodl): Treat Inf specially.
2461         * modules/fmodl (Depends-on): Add isinf.
2462
2463         Tests for module 'fmodl-ieee'.
2464         * modules/fmodl-ieee-tests: New file.
2465         * tests/test-fmodl-ieee.c: New file.
2466
2467         New module 'fmodl-ieee'.
2468         * modules/fmodl-ieee: New file.
2469
2470         Tests for module 'fmod-ieee'.
2471         * modules/fmod-ieee-tests: New file.
2472         * tests/test-fmod-ieee.c: New file.
2473
2474         New module 'fmod-ieee'.
2475         * modules/fmod-ieee: New file.
2476
2477         Tests for module 'fmodf-ieee'.
2478         * modules/fmodf-ieee-tests: New file.
2479         * tests/test-fmodf-ieee.c: New file.
2480         * tests/test-fmod-ieee.h: New file.
2481
2482         New module 'fmodf-ieee'.
2483         * modules/fmodf-ieee: New file.
2484
2485 2012-02-27  Bruno Haible  <bruno@clisp.org>
2486
2487         Tests for module 'rintl-ieee'.
2488         * modules/rintl-ieee-tests: New file.
2489         * tests/test-rintl-ieee.c: New file.
2490
2491         New module 'rintl-ieee'.
2492         * modules/rintl-ieee: New file.
2493
2494         Tests for module 'rint-ieee'.
2495         * modules/rint-ieee-tests: New file.
2496         * tests/test-rint-ieee.c: New file.
2497
2498         New module 'rint-ieee'.
2499         * modules/rint-ieee: New file.
2500
2501         Tests for module 'rintf-ieee'.
2502         * modules/rintf-ieee-tests: New file.
2503         * tests/test-rintf-ieee.c: New file.
2504         * tests/test-rint-ieee.h: New file.
2505
2506         New module 'rintf-ieee'.
2507         * modules/rintf-ieee: New file.
2508
2509 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2510
2511         regex: re_search etc. should return -2 when memory exhausted
2512         This bug was uncovered when testing 'grep'.  Without the fix,
2513         re_search and friends return -1 when memory is exhausted, but -1
2514         means no match, and this causes grep to falsely report no-match
2515         instead of memory-exhaustion.  See
2516         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2517         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2518         trouble; this can occur if re_search_internal ran out of memory.
2519
2520 2012-02-26  Bruno Haible  <bruno@clisp.org>
2521
2522         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2523         * m4/modfl-ieee.m4: New file.
2524         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2525         whether modfl works with Inf. Replace it if not.
2526         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2528         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2529         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2530         (Depends-on): Update dependencies.
2531         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2532         m4/signbit.m4.
2533         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2534         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2535
2536         modfl-ieee: Fix dependencies.
2537         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2538
2539         modfl-ieee: Fix test failures.
2540         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2541         * modules/modfl (Depends-on): Add isfinite, isinf.
2542
2543         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2544         * m4/modff-ieee.m4: New file.
2545         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2546         whether modff works with NaN and Inf. Replace it if not.
2547         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2549         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2550         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2551         (Depends-on): Update dependencies.
2552         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2553         m4/signbit.m4.
2554         (Depends-on): Add modf-ieee.
2555         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2556         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2557
2558         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2559         * m4/modf-ieee.m4: New file.
2560         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2561         whether modf works with NaN and Inf. Replace it if not.
2562         * lib/math.in.h (modf): New declaration.
2563         * lib/modf.c: New file.
2564         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2566         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2567         * modules/modf (Files): Add lib/modf.c.
2568         (Depends-on): Add math, isfinite, trunc, isinf.
2569         (configure.ac): Addrange to compile lib/modf.c if needed.
2570         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2571         m4/signbit.m4.
2572         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2573         * tests/test-math-c++.cc: Check the declaration of modf.
2574         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2575
2576         Tests for module 'modfl-ieee'.
2577         * modules/modfl-ieee-tests: New file.
2578         * tests/test-modfl-ieee.c: New file.
2579
2580         New module 'modfl-ieee'.
2581         * modules/modfl-ieee: New file.
2582
2583         Tests for module 'modf-ieee'.
2584         * modules/modf-ieee-tests: New file.
2585         * tests/test-modf-ieee.c: New file.
2586
2587         New module 'modf-ieee'.
2588         * modules/modf-ieee: New file.
2589
2590         Tests for module 'modff-ieee'.
2591         * modules/modff-ieee-tests: New file.
2592         * tests/test-modff-ieee.c: New file.
2593         * tests/test-modf-ieee.h: New file.
2594
2595         New module 'modff-ieee'.
2596         * modules/modff-ieee: New file.
2597
2598 2012-02-26  Bruno Haible  <bruno@clisp.org>
2599
2600         Tests for module 'fabsl-ieee'.
2601         * modules/fabsl-ieee-tests: New file.
2602         * tests/test-fabsl-ieee.c: New file.
2603
2604         New module 'fabsl-ieee'.
2605         * modules/fabsl-ieee: New file.
2606
2607         Tests for module 'fabs-ieee'.
2608         * modules/fabs-ieee-tests: New file.
2609         * tests/test-fabs-ieee.c: New file.
2610
2611         New module 'fabs-ieee'.
2612         * modules/fabs-ieee: New file.
2613
2614         Tests for module 'fabsf-ieee'.
2615         * modules/fabsf-ieee-tests: New file.
2616         * tests/test-fabsf-ieee.c: New file.
2617         * tests/test-fabs-ieee.h: New file.
2618
2619         New module 'fabsf-ieee'.
2620         * modules/fabsf-ieee: New file.
2621
2622 2012-02-26  Bruno Haible  <bruno@clisp.org>
2623
2624         Tests for module 'fmal-ieee'.
2625         * modules/fmal-ieee-tests: New file.
2626         * tests/test-fmal-ieee.c: New file.
2627
2628         New module 'fmal-ieee'.
2629         * modules/fmal-ieee: New file.
2630
2631         Tests for module 'fma-ieee'.
2632         * modules/fma-ieee-tests: New file.
2633         * tests/test-fma-ieee.c: New file.
2634
2635         New module 'fma-ieee'.
2636         * modules/fma-ieee: New file.
2637
2638         Tests for module 'fmaf-ieee'.
2639         * modules/fmaf-ieee-tests: New file.
2640         * tests/test-fmaf-ieee.c: New file.
2641         * tests/test-fma-ieee.h: New file.
2642
2643         New module 'fmaf-ieee'.
2644         * modules/fmaf-ieee: New file.
2645
2646 2012-02-26  Bruno Haible  <bruno@clisp.org>
2647
2648         Tests for module 'ldexpl-ieee'.
2649         * modules/ldexpl-ieee-tests: New file.
2650         * tests/test-ldexpl-ieee.c: New file.
2651
2652         New module 'ldexpl-ieee'.
2653         * modules/ldexpl-ieee: New file.
2654
2655         Tests for module 'ldexp-ieee'.
2656         * modules/ldexp-ieee-tests: New file.
2657         * tests/test-ldexp-ieee.c: New file.
2658
2659         New module 'ldexp-ieee'.
2660         * modules/ldexp-ieee: New file.
2661
2662         Tests for module 'ldexpf-ieee'.
2663         * modules/ldexpf-ieee-tests: New file.
2664         * tests/test-ldexpf-ieee.c: New file.
2665         * tests/test-ldexp-ieee.h: New file.
2666
2667         New module 'ldexpf-ieee'.
2668         * modules/ldexpf-ieee: New file.
2669
2670 2012-02-26  Bruno Haible  <bruno@clisp.org>
2671
2672         Refactor frexp*-ieee tests.
2673         * tests/test-frexp-ieee.h: New file.
2674         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2675         (main): Just call test_function.
2676         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2677         (main): Just call test_function.
2678         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2679         (main): Just call test_function.
2680         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2681         * modules/frexp-ieee-tests (Files): Likewise.
2682         * modules/frexpl-ieee-tests (Files): Likewise.
2683
2684         Tests for module 'frexpl-ieee'.
2685         * modules/frexpl-ieee-tests: New file.
2686         * tests/test-frexpl-ieee.c: New file.
2687
2688         New module 'frexpl-ieee'.
2689         * modules/frexpl-ieee: New file.
2690
2691         Tests for module 'frexp-ieee'.
2692         * modules/frexp-ieee-tests: New file.
2693         * tests/test-frexp-ieee.c: New file.
2694
2695         New module 'frexp-ieee'.
2696         * modules/frexp-ieee: New file.
2697
2698         Tests for module 'frexpf-ieee'.
2699         * modules/frexpf-ieee-tests: New file.
2700         * tests/test-frexpf-ieee.c: New file.
2701
2702         New module 'frexpf-ieee'.
2703         * modules/frexpf-ieee: New file.
2704
2705 2012-02-26  Bruno Haible  <bruno@clisp.org>
2706
2707         roundl-ieee tests: More tests.
2708         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2709         (main): Add tests for [MX] shaded specification in POSIX.
2710         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2711         (Depends-on): Add isnanl-nolibm.
2712
2713         round-ieee tests: More tests.
2714         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2715         (main): Add tests for [MX] shaded specification in POSIX.
2716         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2717         (Depends-on): Add isnand-nolibm.
2718
2719         roundf-ieee tests: More tests.
2720         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2721         (main): Add tests for [MX] shaded specification in POSIX.
2722         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2723         (Depends-on): Add isnanf-nolibm.
2724
2725         truncl-ieee tests: More tests.
2726         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2727         (main): Add tests for [MX] shaded specification in POSIX.
2728         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2729         (Depends-on): Add isnanl-nolibm.
2730
2731         trunc-ieee tests: More tests.
2732         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2733         (main): Add tests for [MX] shaded specification in POSIX.
2734         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2735         (Depends-on): Add isnand-nolibm.
2736
2737         truncf-ieee tests: More tests.
2738         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2739         (main): Add tests for [MX] shaded specification in POSIX.
2740         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2741         (Depends-on): Add isnanf-nolibm.
2742
2743         ceill-ieee tests: More tests.
2744         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2745         (main): Add tests for [MX] shaded specification in POSIX.
2746         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2747         (Depends-on): Add isnanl-nolibm.
2748
2749         ceil-ieee tests: More tests.
2750         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2751         (main): Add tests for [MX] shaded specification in POSIX.
2752         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2753         (Depends-on): Add isnand-nolibm.
2754
2755         ceilf-ieee tests: More tests.
2756         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2757         (main): Add tests for [MX] shaded specification in POSIX.
2758         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2759         (Depends-on): Add isnanf-nolibm.
2760
2761         floorl-ieee tests: More tests.
2762         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2763         (main): Add tests for [MX] shaded specification in POSIX.
2764         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2765         (Depends-on): Add isnanl-nolibm.
2766
2767         floor-ieee tests: More tests.
2768         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2769         (main): Add tests for [MX] shaded specification in POSIX.
2770         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2771         (Depends-on): Add isnand-nolibm.
2772
2773         floorf-ieee tests: More tests.
2774         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2775         (main): Add tests for [MX] shaded specification in POSIX.
2776         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2777         (Depends-on): Add isnanf-nolibm.
2778
2779 2012-02-26  Bruno Haible  <bruno@clisp.org>
2780
2781         fpieee: More comments.
2782         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2783
2784 2012-02-25  Bruno Haible  <bruno@clisp.org>
2785
2786         Tests for module 'log10l'.
2787         * modules/log10l-tests: New file.
2788         * tests/test-log10l.c: New file.
2789         * tests/test-math-c++.cc: Check the declaration of log10l.
2790
2791         New module 'log10l'.
2792         * lib/math.in.h (log10l): New declaration.
2793         * lib/log10l.c: New file.
2794         * m4/log10l.m4: New file.
2795         * modules/log10l: New file.
2796         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2798         HAVE_DECL_LOG10L.
2799         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2800         HAVE_DECL_LOG10L.
2801         * doc/posix-functions/log10l.texi: Mention the new module.
2802
2803 2012-02-25  Bruno Haible  <bruno@clisp.org>
2804
2805         fmodl, remainder*: Avoid wrong results due to rounding errors.
2806         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2807         expected bounds.
2808         * lib/remainderf.c (remainderf): Likewise.
2809         * lib/remainder.c (remainder): Likewise.
2810         * lib/remainderl.c (remainderl): Likewise.
2811
2812 2012-02-25  Bruno Haible  <bruno@clisp.org>
2813
2814         Tests for module 'remainderl'.
2815         * modules/remainderl-tests: New file.
2816         * tests/test-remainderl.c: New file.
2817         * tests/test-math-c++.cc: Check the declaration of remainderl.
2818
2819         New module 'remainderl'.
2820         * lib/math.in.h (remainderl): New declaration.
2821         * lib/remainderl.c: New file.
2822         * m4/remainderl.m4: New file.
2823         * modules/remainderl: New file.
2824         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2826         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2827         HAVE_REMAINDERL.
2828         * doc/posix-functions/remainderl.texi: Mention the new module.
2829
2830 2012-02-25  Bruno Haible  <bruno@clisp.org>
2831
2832         Tests for module 'remainderf'.
2833         * modules/remainderf-tests: New file.
2834         * tests/test-remainderf.c: New file.
2835         * tests/test-math-c++.cc: Check the declaration of remainderf.
2836
2837         New module 'remainderf'.
2838         * lib/math.in.h (remainderf): New declaration.
2839         * lib/remainderf.c: New file.
2840         * m4/remainderf.m4: New file.
2841         * modules/remainderf: New file.
2842         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2844         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2845         HAVE_REMAINDERF.
2846         * doc/posix-functions/remainderf.texi: Mention the new module.
2847
2848 2012-02-25  Bruno Haible  <bruno@clisp.org>
2849
2850         remainder: Support for MSVC.
2851         * lib/math.in.h (remainder): New declaration.
2852         * lib/remainder.c: New file.
2853         * m4/remainder.m4: New file.
2854         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2855         (Depends-on): Add math, round, fma.
2856         (configure.ac): Use results of gl_FUNC_REMAINDER.
2857         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2859         HAVE_DECL_REMAINDER.
2860         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2861         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2862         * tests/test-math-c++.cc: Check the declaration of remainder.
2863         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2864         problems are fixed.
2865
2866 2012-02-25  Bruno Haible  <bruno@clisp.org>
2867
2868         Tests for module 'fmodl'.
2869         * modules/fmodl-tests: New file.
2870         * tests/test-fmodl.c: New file.
2871         * tests/test-math-c++.cc: Check the declaration of fmodl.
2872
2873         New module 'fmodl'.
2874         * lib/math.in.h (fmodl): New declaration.
2875         * lib/fmodl.c: New file.
2876         * m4/fmodl.m4: New file.
2877         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2879         REPLACE_FMODL.
2880         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2881         REPLACE_FMODL.
2882         * modules/fmodl: New file.
2883         * doc/posix-functions/fmodl.texi: Mention the new module.
2884
2885 2012-02-25  Bruno Haible  <bruno@clisp.org>
2886
2887         Tests for module 'modfl'.
2888         * modules/modfl-tests: New file.
2889         * tests/test-modfl.c: New file.
2890         * tests/test-math-c++.cc: Check the declaration of modfl.
2891
2892         New module 'modfl'.
2893         * lib/math.in.h (modfl): New declaration.
2894         * lib/modfl.c: New file.
2895         * m4/modfl.m4: New file.
2896         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2898         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2899         * modules/modfl: New file.
2900         * doc/posix-functions/modfl.texi: Mention the new module.
2901
2902 2012-02-25  Bruno Haible  <bruno@clisp.org>
2903
2904         Tests for module 'fabsl'.
2905         * modules/fabsl-tests: New file.
2906         * tests/test-fabsl.c: New file.
2907         * tests/test-math-c++.cc: Check the declaration of fabsl.
2908
2909         New module 'fabsl'.
2910         * lib/math.in.h (fabsl): New declaration.
2911         * lib/fabsl.c: New file.
2912         * m4/fabsl.m4: New file.
2913         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2915         REPLACE_FABSL.
2916         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2917         REPLACE_FABSL.
2918         * modules/fabsl: New file.
2919         * doc/posix-functions/fabsl.texi: Mention the new module.
2920
2921 2012-02-25  Bruno Haible  <bruno@clisp.org>
2922
2923         fabs tests: More tests.
2924         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2925         (zero): New variable.
2926         (main): Add tests for signed zero.
2927         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2928
2929         fabsf tests: More tests.
2930         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2931         (zero): New variable.
2932         (main): Add tests for signed zero.
2933         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2934
2935 2012-02-24  Bruno Haible  <bruno@clisp.org>
2936
2937         atanl: Provide function definition on MSVC.
2938         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2939         function pointer.
2940         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2941
2942 2012-02-24  Bruno Haible  <bruno@clisp.org>
2943
2944         acosl: Provide function definition on MSVC.
2945         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2946         function pointer.
2947         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2948
2949 2012-02-24  Bruno Haible  <bruno@clisp.org>
2950
2951         asinl: Provide function definition on MSVC.
2952         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2953         function pointer.
2954         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2955
2956 2012-02-24  Bruno Haible  <bruno@clisp.org>
2957
2958         tanl: Provide function definition on MSVC.
2959         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2960         function pointer.
2961         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2962
2963 2012-02-24  Bruno Haible  <bruno@clisp.org>
2964
2965         cosl: Provide function definition on MSVC.
2966         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2967         function pointer.
2968         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2969
2970 2012-02-24  Bruno Haible  <bruno@clisp.org>
2971
2972         sinl: Provide function definition on MSVC.
2973         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2974         function pointer.
2975         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2976
2977 2012-02-24  Bruno Haible  <bruno@clisp.org>
2978
2979         logl: Provide function definition on MSVC.
2980         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2981         function pointer.
2982         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2983
2984 2012-02-24  Bruno Haible  <bruno@clisp.org>
2985
2986         expl: Provide function definition on MSVC.
2987         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2988         function pointer.
2989         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2990
2991 2012-02-24  Bruno Haible  <bruno@clisp.org>
2992
2993         sqrtl: Provide function definition on MSVC.
2994         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2995         a function pointer.
2996         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2997
2998 2012-02-24  Bruno Haible  <bruno@clisp.org>
2999
3000         ceill: Provide function definition on MSVC.
3001         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3002         used as a function pointer.
3003         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3004
3005 2012-02-24  Bruno Haible  <bruno@clisp.org>
3006
3007         floorl: Provide function definition on MSVC.
3008         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3009         used as a function pointer.
3010         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3011
3012 2012-02-24  Bruno Haible  <bruno@clisp.org>
3013
3014         ceilf: Provide function definition on MSVC.
3015         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3016         used as a function pointer.
3017         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3018
3019 2012-02-24  Bruno Haible  <bruno@clisp.org>
3020
3021         floorf: Provide function definition on MSVC.
3022         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3023         used as a function pointer.
3024         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3025
3026 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3027
3028         stdnoreturn: new module
3029         This implements a replacement for C11's <stdnoreturn.h>.
3030         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3031         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3032         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3033         * tests/test-stdnoreturn.c: New files.
3034
3035 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3036
3037         regex: fix false multibyte matches in some regular expressions
3038         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3039         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3040         * lib/regex_internal.c (re_string_skip_chars):
3041         Fix miscomputation of remain_len that may cause incomplete
3042         multi-byte character and false match.
3043
3044 2012-02-24  Jim Meyering  <meyering@redhat.com>
3045
3046         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3047         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3048         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3049         Remove now-unnecessary str''cmp obfuscation.
3050         Suggested by Akim Demaille.
3051
3052 2012-02-24  Bruno Haible  <bruno@clisp.org>
3053
3054         streq: Rename macro.
3055         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3056         * NEWS: Mention the change.
3057         * lib/mbrtowc.c (mbrtowc): Update.
3058         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3059         * lib/wcwidth.c (wcwidth): Update.
3060         Suggested by Akim Demaille and Jim Meyering.
3061
3062 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3063
3064         regex: fix typo in definition of MIN
3065         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3066         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3067
3068 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3069             Bruno Haible  <bruno@clisp.org>
3070
3071         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3072         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3073         entries into a stack-allocated buffer directly.
3074         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3075
3076 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3077             Bruno Haible  <bruno@clisp.org>
3078
3079         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3080
3081          - There were several instances of this pattern:
3082
3083              for (;;) {
3084                n = acl (f, GETACLCNT, 0, NULL);
3085                [ allocate an array A of size N ]
3086                if (acl (f, GETACL, n, a) == n)
3087                  break;
3088              }
3089
3090            This loop might never terminate if some other process is constantly
3091            manipulating the file's ACL.  The loop should be rewritten to
3092            terminate.
3093
3094          - The acl (... GETACLNT ...) call is merely an optimization; its value
3095            is merely a hint as to how big to make the array.  A better
3096            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3097            and just guess a reasonably-big size, growing the size and trying
3098            again if it's not large enough.  This guarantees termination, and
3099            saves a system call.
3100
3101         * lib/acl-internal.h: Include <limits.h>.
3102         (MIN, SIZE_MAX): New macros.
3103         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3104         a stack-allocated buffer, and use malloc if it does not fit. Don't
3105         use GETACLCNT.
3106         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3107
3108 2012-02-19  Bruno Haible  <bruno@clisp.org>
3109
3110         acl: Fix endless loop on Solaris with vxfs.
3111         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3112         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3113         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3114         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3115         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3116         Reported by Bill Jones in
3117         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3118
3119 2012-02-19  Bruno Haible  <bruno@clisp.org>
3120
3121         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3122         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3123         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3124         that this function returns 0 in some more cases.
3125
3126 2012-02-19  Bruno Haible  <bruno@clisp.org>
3127
3128         acl: Update doc references.
3129         * doc/acl-resources.txt: Update links to Solaris documentation.
3130
3131 2012-02-19  Bruno Haible  <bruno@clisp.org>
3132
3133         Fix test failure in many locales on Solaris 11.
3134         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3135         'tr' arguments.
3136         * tests/test-pipe-filter-ii1.c (main): Likewise.
3137         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3138         expressions in the C locale.
3139         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3140         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3141
3142 2012-02-19  Bruno Haible  <bruno@clisp.org>
3143
3144         gnulib-tool: Improve usage message.
3145         * gnulib-tool (func_usage): Move doc of --help and --version to the
3146         section "Operation modes".
3147
3148 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3149
3150         README-release: make it easier to execute commands
3151         * top/README-release: break commands out on to separate lines.
3152
3153 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3154
3155         GNUmakefile: simplify detection of unconfigured trees
3156         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3157         whether the tree make is being run from is already configured or
3158         not.  Related simplifications.
3159
3160 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3161
3162         * gnulib-tool (func_usage): Document --help and --version.
3163
3164 2012-02-11  Jim Meyering  <meyering@redhat.com>
3165
3166         bootstrap: don't exit 0 upon gnulib-tool failure
3167         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3168         its exit status, not 0.
3169
3170 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3171
3172         README-release: various improvements
3173         * top/README-release: Give a command to push changes for the
3174         release.  Add "distcheck" to list of other pre-release checks.
3175         Fix instance of "make stable" which should be "make TYPE".
3176
3177 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3178
3179         maint: replace FSF snail-mail addresses with URLs
3180         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3181         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3182         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3183         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3184         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3185         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3186         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3187         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3188         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3189         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3190         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3191         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3192         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3193         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3194         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3195         * lib/glthread/thread.c, lib/glthread/thread.h:
3196         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3197         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3198         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3199         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3200         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3201         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3202         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3203         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3204         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3205         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3206         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3207         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3208         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3209         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3210         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3211         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3212         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3213         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3214         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3215         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3216         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3217         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3218         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3219         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3220         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3221         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3222         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3223         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3224         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3225         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3226         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3227         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3228         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3229         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3230         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3231         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3232         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3233         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3234         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3235         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3236         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3237         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3238         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3239         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3240         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3241         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3242         * tests/test-poll.c, tests/test-quotearg-simple.c:
3243         * tests/test-quotearg.c, tests/test-quotearg.h:
3244         * tests/test-round-ieee.c, tests/test-round1.c:
3245         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3246         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3247         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3248         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3249         * tests/test-strerror.c, tests/test-strerror_r.c:
3250         * tests/test-strsignal.c, tests/test-strverscmp.c:
3251         * tests/test-xmemdup0.c:
3252         Replace FSF snail mail addresses with URLs, as per GNU coding
3253         standards.  See glibc bug
3254         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3255
3256 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3257
3258         README-release: capitalize a word and split a line
3259         * top/README-release: Fix punctuation and spacing.
3260
3261 2012-02-08  Akim Demaille  <demaille@gostai.com>
3262
3263         fatal-signal: use C prototypes (with explicit void).
3264         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3265         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3266
3267 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3268
3269         regex: spelling fix
3270         * lib/regexec.c: spelling fix
3271
3272         regex: rely on stdint.h for SIZE_MAX
3273         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3274
3275 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3276
3277         regex: merge glibc changes
3278
3279         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3280         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3281         (init_word_char): Work even if bitset words are not exactly 32 or
3282         64 bits wide.  Don't assume there are no padding bits.
3283         * lib/regex.c [_LIBC]: Do not include <config.h>.
3284         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3285         and -Wtype-limits.
3286         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3287         needless disagreement with glibc.  All uses changed.  Define it to
3288         1 only if _GNU_SOURCE, to match glibc.
3289         (_REG_RM_NAME): Remove; no longer needed, since the names in
3290         question are now all protected by __USE_GNU.
3291         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3292         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3293         * lib/regex_internal.h (MIN): New macro.
3294
3295         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3296         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3297
3298         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3299         * lib/regex_internal.c (re_string_fetch_byte_case):
3300         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3301         is miscompiled, and it turns out it is because of an incorrect
3302         attribute on re_string_fetch_byte_case.  Unlike
3303         re_string_peek_byte_case, this one is really not pure, it modifies
3304         memory (increments pstr->cur_idx), and with the pure attribute GCC
3305         assumed it doesn't and it cached the presumed value of
3306         regexp->cur_idx in a variable across the
3307          for (;; ++i)
3308            {
3309              if (i >= BRACKET_NAME_BUF_SIZE)
3310                return REG_EBRACK;
3311              if (token->type == OP_OPEN_CHAR_CLASS)
3312                ch = re_string_fetch_byte_case (regexp);
3313              else
3314                ch = re_string_fetch_byte (regexp);
3315              if (re_string_eoi(regexp))
3316                return REG_EBRACK;
3317              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3318                break;
3319              elem->opr.name[i] = ch;
3320            }
3321
3322         2011-11-29 Andreas Schwab <schwab@redhat.com>
3323         * lib/regcomp.c (build_equiv_class):
3324         Fix access after end of search string in regex matcher.
3325
3326         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3327         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3328
3329         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3330         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3331
3332         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3333         * lib/regcomp.c (parse_branch, parse_sub_exp):
3334         More regex memory leak fixes and tests.
3335         (parse_sub_exp, parse_bracket_exp):
3336         Fix memory leak for some invalid regular expressions.
3337
3338         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3339         * lib/regex_internal.c, lib/regexec.c:
3340         Fix unnecessary overallocation due to incomplete character.  When
3341         incomplete characters are found at the end of a string the code
3342         ran amok and allocated lots of memory.  Stricter limits are now in
3343         place.
3344
3345         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3346         * lib/regex.h: Update documentation.
3347
3348         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3349         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3350
3351         2010-05-05 Andreas Schwab <schwab@redhat.com>
3352         * lib/regexec.c (find_collation_sequence_value):
3353         Fix lookup of collation sequence value during regexp matching.
3354
3355         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3356         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3357
3358         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3359         * lib/regex.h: Cleanup namespace.
3360
3361         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3362         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3363
3364         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3365         * lib/regex_internal.h: Prevent some declarations and definitions
3366         to be seen when used in tests.
3367
3368         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3369         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3370         __libc_lock_* macros if not _LIBC.
3371         (struct re_dfa_t): Add lock.
3372
3373 2012-02-07  Eric Blake  <eblake@redhat.com>
3374
3375         maint.mk: also prohibit lower-case @var@
3376         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3377         lower case, like @top_srcdir@.
3378
3379 2012-02-04  Eric Blake  <eblake@redhat.com>
3380
3381         canonicalize: avoid uninitialized memory use
3382         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3383         random '/' left in dest.
3384         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3385
3386 2012-02-04  Bruno Haible  <bruno@clisp.org>
3387
3388         isatty: Fix test failure of ptsname_r on native Windows.
3389         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3390         and don't set errno.
3391         (isatty): Test first whether fd is valid. Set errno when returning 0.
3392
3393 2012-02-04  Bruno Haible  <bruno@clisp.org>
3394
3395         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3396         * tests/test-spawn-pipe-main.c: Include progname.h.
3397         (main): Invoke set_program_name.
3398         * modules/spawn-pipe-tests (Depends-on): Add progname.
3399
3400         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3401         * tests/test-nonblocking-socket-main.c: Include progname.h.
3402         (main): Invoke set_program_name.
3403         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3404
3405         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3406         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3407         (main): Invoke set_program_name.
3408         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3409
3410 2012-02-04  Eric Blake  <eblake@redhat.com>
3411
3412         canonicalize-lgpl: fix // handling
3413         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3414
3415         canonicalize: fix // handling
3416         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3417         /// to //, since only // is special.
3418
3419 2012-02-04  Bruno Haible  <bruno@clisp.org>
3420
3421         ioctl: Fix test failure on native Windows.
3422         * lib/ioctl.c: Include msvc-nothrow.h.
3423         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3424
3425 2012-02-04  Bruno Haible  <bruno@clisp.org>
3426
3427         fsync: Avoid test failure on native Windows.
3428         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3429         read-only.
3430
3431 2012-02-04  Bruno Haible  <bruno@clisp.org>
3432
3433         sys_select: Avoid syntax error on OpenBSD 5.0.
3434         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3435         currently being included, just include the system's <sys/select.h>.
3436
3437 2012-02-04  Bruno Haible  <bruno@clisp.org>
3438
3439         sys_select: Avoid syntax error on OpenBSD 5.0.
3440         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3441         <sys/select.h>, not before.
3442         Reported by Jiri B <jirib@devio.us>.
3443
3444 2012-02-04  Bruno Haible  <bruno@clisp.org>
3445
3446         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3447         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3448         global variables.
3449         * tests/test-get-rusage-data.c (main): Likewise.
3450         Reported by Jim Meyering.
3451
3452 2012-02-04  Bruno Haible  <bruno@clisp.org>
3453
3454         stdioext: Fix last commit.
3455         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3456
3457 2012-02-03  Bruno Haible  <bruno@clisp.org>
3458
3459         stdioext: Add tentative support for Plan9.
3460         * lib/stdio-impl.h: Include <errno.h>.
3461         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3462         * lib/freadable.c (freadable): Likewise.
3463         * lib/fwritable.c (fwritable): Likewise.
3464         * lib/fbufmode.c (fbufmode): Likewise.
3465         * lib/freading.c (freading): Likewise.
3466         * lib/fwriting.c (fwriting): Likewise.
3467         * lib/freadptr.c (freadptr): Likewise.
3468         * lib/freadseek.c (freadptrinc): Likewise.
3469         * lib/freadahead.c (freadahead): Likewise.
3470         * lib/fpurge.c (fpurge): Likewise.
3471         * lib/fseeko.c (rpl_fseeko): Likewise.
3472         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3473         Reported by Jens Staal <staal1978@gmail.com>.
3474
3475 2012-02-02  Jim Meyering  <meyering@redhat.com>
3476
3477         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3478         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3479         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3480         not even to try to add the attribute.  Instead, add a pragma to suppress
3481         the suggestion/warning.
3482
3483 2012-01-31  Karl Berry  <karl@gnu.org>
3484
3485         setstate doc: typo.
3486         * doc/posix-functions/setstate.texi (setstate): { not (.
3487
3488 2012-01-31  Bruno Haible  <bruno@clisp.org>
3489
3490         popen: Make more robust on Windows.
3491         * lib/popen.c: On native Windows, use the _popen based code even if
3492         HAVE_POPEN is set.
3493         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3494         environment variable on native Windows.
3495
3496 2012-01-30  Bruno Haible  <bruno@clisp.org>
3497
3498         pclose: Fix typo.
3499         * lib/stdio.in.h (pclose): Fix typo in warning message.
3500
3501 2012-01-30  Bruno Haible  <bruno@clisp.org>
3502
3503         doc about getlogin_r, setstate.
3504         * doc/posix-functions/getlogin_r.texi: List the incompatible
3505         declaration problem under "not fixed by gnulib".
3506         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3507         problem on Solaris 11 and other platforms.
3508
3509 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3510             Bruno Haible  <bruno@clisp.org>
3511
3512         poll tests: Make test more robust.
3513         * tests/test-poll.c: Include macros.h.
3514         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3515         return value of various I/O operations.
3516         * modules/poll-tests (Files): Add tests/macros.h.
3517
3518 2012-01-30  Bruno Haible  <bruno@clisp.org>
3519
3520         sys_stat: Fix support for mingw64 and MSVC.
3521         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3522         header files already do it.
3523         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3524         stat itself.
3525         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3526
3527 2012-01-30  Bruno Haible  <bruno@clisp.org>
3528
3529         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3531         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3532
3533 2012-01-29  Bruno Haible  <bruno@clisp.org>
3534
3535         quotearg: Fix test failure on MacOS X 10.5.
3536         * tests/test-quotearg-simple.c: Include localcharset.h.
3537         (main): If the locale encoding is not ASCII, bypass the tests of
3538         locale_quoting_style and clocale_quoting_style.
3539         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3540
3541 2012-01-29  Jim Meyering  <meyering@redhat.com>
3542
3543         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3544         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3545         detect uses of canonicalize_file_name.
3546
3547 2012-01-28  Bruno Haible  <bruno@clisp.org>
3548
3549         test-framework-sh: Fix test failure with AIX 7.1 diff.
3550         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3551         in column 1, like 'diff -c' does.
3552         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3553         whether 'diff -u' is used. Instead, test whether the output contains
3554         some '@' character.
3555
3556 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3557
3558         strtoimax: eliminate need for stdint.h, inttypes.h checks
3559         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3560         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3561         the prerequisites for a recently-introduced strtoimax test.
3562         I guess this might cause strtoimax to be replaced when not
3563         strictly necessary on older hosts, but this shouldn't introduce
3564         any bugs and it should make Emacs 'configure' faster on typical
3565         modern hosts.  Problem discovered when importing the latest gnulib
3566         to an Emacs test version.
3567         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3568
3569 2012-01-28  Bruno Haible  <bruno@clisp.org>
3570
3571         sys_time: Override 'struct timeval' on some native Windows platforms.
3572         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3573         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3574         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3575         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3576         needs to be overridden.
3577         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3578         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3579         * tests/test-sys_select.c: Check that the tv_sec member has the same
3580         size as a 'time_t'.
3581         * tests/test-sys_time.c: Likewise.
3582         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3583         is set, set also REPLACE_GETTIMEOFDAY.
3584         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3585         convert the resulting 'struct timeval' before returning.
3586         * lib/select.c: Include <sys/time.h>.
3587         (select, timeval): Undefine at the right place.
3588         * modules/select (Depends-on): Add sys_time.
3589         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3590         some Windows platforms.
3591         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3592
3593 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3594
3595         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3596         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3597         an integer.
3598         * lib/fcntl.c (dupfd): Likewise.
3599         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3600
3601 2012-01-28  Bruno Haible  <bruno@clisp.org>
3602
3603         fcntl: Avoid compilation error on native Windows.
3604         * modules/fcntl (Depends-on): Add 'close'.
3605
3606 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3607
3608         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3609         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3610         pointer to an integer.
3611         * lib/poll.c (IsConsoleHandle): Likewise.
3612         * lib/isatty.c (IsConsoleHandle): Likewise.
3613
3614 2012-01-28  Jim Meyering  <meyering@redhat.com>
3615
3616         doc: clarify README-release
3617         * top/README-release: Clarify: you should make a point to have
3618         the latest stable versions of build tools in your PATH, and the
3619         reference to buildreq is solely for its list of tool names, not
3620         for its minimal-functional version numbers.
3621         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3622
3623         maint.mk: use more readable (yet functionally equivalent) quoting
3624         It is common to quote a single quote in a single quoted string like
3625         this:  '...'\''...'.  Unless you know the idiom, that looks like
3626         gibberish, so prefer to double-quote the string when possible.
3627         Then you can use a more readable, lone single quote: "...'..."
3628         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3629         "don't" is more readable than the equivalent 'don'\''t'.
3630         (sc_cast_of_x_alloc_return_value): Likewise.
3631         (sc_cast_of_alloca_return_value): Likewise.
3632         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3633         rather than '\'':'\''.
3634
3635 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3636
3637         stdalign: relax _Alignof and tighten _Alignas test
3638         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3639         as it was too strict: alignof must divide offsetof, but it need
3640         not equal offsetof.  Inspired by Joseph S. Myers's comment
3641         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3642         Conversely, tighten the _Alignas test a bit, as the resulting
3643         alignment must be exactly 8.
3644
3645 2012-01-27  Bruno Haible  <bruno@clisp.org>
3646
3647         stdalign: Document the last change.
3648         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3649
3650 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3651
3652         stdalign: check that alignof and offsetof are consistent
3653         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3654         Problem reported for gnulib by Richard W.M. Jones in
3655         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3656
3657 2012-01-27  Jim Meyering  <meyering@redhat.com>
3658
3659         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3660         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3661         convert a sequence with gaps to the minimal containing range.
3662         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3663         * tests/test-update-copyright.sh: Test for this.
3664         The FSF confirmed it is ok to do this, assuming there is at
3665         least one significant change per year in the affected range:
3666         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3667
3668 2012-01-26  Bruno Haible  <bruno@clisp.org>
3669
3670         pipe2: refine doc about thread-safety
3671         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3672         multithread-safety problem.
3673         * doc/glibc-functions/accept4.texi: Likewise.
3674
3675 2012-01-26  Bruno Haible  <bruno@clisp.org>
3676
3677         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3678         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3679         In the test program, include <fcntl.h>, for O_RDONLY.
3680
3681 2012-01-26  Eric Blake  <eblake@redhat.com>
3682
3683         pipe2: document lack of thread-safety in replacement
3684         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3685         issue in replacement.
3686         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3687         Based on a report by Eric Wong.
3688
3689 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3690             Bruno Haible  <bruno@clisp.org>
3691
3692         malloca: Avoid warnings on x86_64 mingw64.
3693         * lib/malloca.c: Include <stdint.h>.
3694         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3695         * modules/malloca (Depends-on): Add stdint.
3696         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3697
3698 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3699
3700         obstack: remove __STDC__ conditionals
3701         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3702         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3703         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3704         m4/include_next.m4 as the only gnulib-maintained places that still
3705         refer to __STDC__.
3706
3707 2012-01-24  Bruno Haible  <bruno@clisp.org>
3708
3709         havelib: Modern quoting.
3710         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3711         the recent change to the GNU coding standards.
3712
3713 2012-01-24  Bruno Haible  <bruno@clisp.org>
3714
3715         stdint: Improve support for Android.
3716         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3717         Reported by Simon Josefsson <simon@josefsson.org>.
3718
3719 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3720
3721         doc: omit trailing empty lines from INSTALL etc.
3722         * doc/Makefile (INSTALL): Omit trailing empty lines.
3723         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3724         omit trailing empty lines.  This simplifies the build procedure.
3725
3726 2012-01-23  Jim Meyering  <meyering@redhat.com>
3727
3728         tests: avoid spurious warnings about gl_sockets_startup
3729         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3730         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3731         reporting a "statement with no effect".
3732         * tests/test-accept.c (main): Mark as "(void)".
3733         * tests/test-accept4.c (main): Likewise.
3734         * tests/test-bind.c (main): Likewise.
3735         * tests/test-connect.c (main): Likewise.
3736         * tests/test-getpeername.c (main): Likewise.
3737         * tests/test-getsockname.c (main): Likewise.
3738         * tests/test-getsockopt.c (main): Likewise.
3739         * tests/test-listen.c (main): Likewise.
3740         * tests/test-recv.c (main): Likewise.
3741         * tests/test-recvfrom.c (main): Likewise.
3742         * tests/test-send.c (main): Likewise.
3743         * tests/test-sendto.c (main): Likewise.
3744         * tests/test-setsockopt.c (main): Likewise.
3745         * tests/test-shutdown.c (main): Likewise.
3746
3747 2012-01-21  Bruno Haible  <bruno@clisp.org>
3748
3749         locale-fr.m4: Fix for Android.
3750         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3751         failure of the test program on Bionic libc.
3752
3753 2012-01-21  Jim Meyering  <meyering@redhat.com>
3754
3755         bootstrap: fail when bootstrap_post_import_hook fails
3756         Otherwise, it's far too easy to miss diagnostics emitted
3757         between gnulib-tool's output and that of running configure.
3758         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3759
3760 2012-01-17  Jim Meyering  <meyering@redhat.com>
3761
3762         maint: enable sc_trailing_blank
3763         * build-aux/pmccabe.css: Remove trailing blanks.
3764         * doc/acl-cygwin.txt: Likewise.
3765         * doc/gnu-oids.texi: Likewise
3766         * cfg.mk: Enable sc_trailing_blank.
3767         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3768
3769 2012-01-17  Jim Meyering  <meyering@redhat.com>
3770
3771         maint: enable sc_prohibit_openat_without_use
3772         * cfg.mk: Enable sc_prohibit_openat_without_use.
3773         Exempt lib/selinux-at.c.
3774
3775 2012-01-17  Jim Meyering  <meyering@redhat.com>
3776
3777         maint: enable sc_prohibit_cloexec_without_use
3778         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3779         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3780
3781 2012-01-17  Jim Meyering  <meyering@redhat.com>
3782
3783         maint: enable sc_prohibit_intprops_without_use
3784         * cfg.mk: Enable sc_prohibit_intprops_without_use
3785         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3786
3787 2012-01-17  Jim Meyering  <meyering@redhat.com>
3788
3789         maint: enable sc_prohibit_hash_pjw_without_use
3790         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3791         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3792         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3793         following " (".
3794
3795 2012-01-17  Jim Meyering  <meyering@redhat.com>
3796
3797         maint: enable double-word-prohibiting rule
3798         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3799         Exempt three files.
3800
3801 2012-01-17  Jim Meyering  <meyering@redhat.com>
3802
3803         maint: remove empty lines at EOF, but excluding modules/*
3804         Apply syntax rules at home as well as abroad.  Most changes
3805         were induced by running this:
3806           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3807             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3808             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3809         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3810         Exempt modules/* and two binary files.
3811         Also exempt doc/INSTALL*, per request from Bruno Haible.
3812         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3813         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3814         * doc/Copyright/request-assign.future: Likewise.
3815         * doc/Copyright/request-disclaim.changes: Likewise.
3816         * doc/INSTALL: Likewise.
3817         * doc/INSTALL.ISO: Likewise.
3818         * doc/INSTALL.UTF-8: Likewise.
3819         * doc/acl-cygwin.txt: Likewise.
3820         * doc/acl-resources.txt: Likewise.
3821         * doc/fdl-1.2.texi: Likewise.
3822         * doc/fdl-1.3.texi: Likewise.
3823         * doc/fdl.texi: Likewise.
3824         * lib/argp-pin.c: Likewise.
3825         * lib/round.c: Likewise.
3826         * lib/unicase/u16-totitle.c: Likewise.
3827         * lib/unictype/block_test.c: Likewise.
3828         * lib/uninorm/canonical-decomposition.c: Likewise.
3829         * m4/README: Likewise.
3830         * m4/relocatable-lib.m4: Likewise.
3831         * tests/test-isnand-nolibm.c: Likewise.
3832         * tests/test-isnand.c: Likewise.
3833         * tests/uninorm/NormalizationTest.txt: Likewise.
3834
3835 2012-01-17  Jim Meyering  <meyering@redhat.com>
3836
3837         maint: add framework to run syntax-check rules against gnulib sources
3838         * cfg.mk: New file, to disable all currently-failing tests.
3839         We'll enable them one by one, as they are made to pass.
3840         * Makefile (sc_maint): New rule.
3841
3842 2012-01-21  Bruno Haible  <bruno@clisp.org>
3843
3844         stdint: Add support for Android.
3845         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3846         include the system's <stdint.h>.
3847         Reported by Simon Josefsson <simon@josefsson.org>.
3848
3849 2012-01-19  Jim Meyering  <meyering@redhat.com>
3850
3851         bootstrap: add bootstrap_post_import_hook
3852         Bison does still need something like the gnulib_mk_hook whose
3853         invocation I had to remove along with slurp in commit 767ccd40.
3854         Technically, we could get along without it, but doing so would
3855         have required living with a warning and a mandatory post-bootstrap
3856         automake rerun.
3857         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3858         (bootstrap_post_import_hook): New function.
3859         Invoke it after gnulib-tool --import and before autoreconf.
3860
3861 2012-01-18  Jim Meyering  <meyering@redhat.com>
3862
3863         gitlog-to-changelog: don't use "no_"-prefixed variable name
3864         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3865         to enable both --cluster and --no-cluster.  Change variable name,
3866         s/\$no_cluster/$cluster/, and reverse usage to match.
3867
3868         gitlog-to-changelog: use "||", not "or" in expressions
3869         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3870         expressions.
3871
3872 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3873
3874         gitlog-to-changelog: new option --no-cluster
3875         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3876         clustering of adjacent commit messages.
3877
3878 2012-01-17  Jim Meyering  <meyering@redhat.com>
3879
3880         maint: spell file systems with two words, not one
3881         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3882         two words, not one.
3883
3884 2012-01-16  Jim Meyering  <meyering@redhat.com>
3885
3886         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3887         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3888
3889 2012-01-16  Eric Blake  <eblake@redhat.com>
3890
3891         bootstrap: cater to autoconf 2.59
3892         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3893         is not available.
3894
3895         bootstrap: properly check for libtool
3896         * build-aux/bootstrap (libtoolize): Also run libtool when older
3897         usage is detected.
3898
3899 2012-01-15  Bruno Haible  <bruno@clisp.org>
3900
3901         Improve support for MSVC 9.
3902         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3903         clashes on MSVC.
3904         * lib/fcntl.in.h: Likewise.
3905         * lib/stdlib.in.h: Likewise.
3906         * lib/sys_stat.in.h: Likewise.
3907
3908 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3909
3910         gnupload: we hold the master copy of this script now
3911         For motivation and more information, see:
3912         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3913         * build-aux/gnupload: Make it clear in the heading comments that the
3914         master copy of this file is maintained by gnulib.  Since we are at
3915         it, bump its copyright year and ...
3916         ($scriptversion): ... the date in its version.
3917         ($usage): Patches and bug reports should be sent to the gnulib list,
3918         not the automake one.
3919         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3920         anymore.
3921
3922 2012-01-15  Bruno Haible  <bruno@clisp.org>
3923
3924         Fix module 'random'.
3925         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3926         initstate, setstate are declared.
3927
3928 2012-01-14  Bruno Haible  <bruno@clisp.org>
3929
3930         Tests for module 'random'.
3931         * modules/random-tests: New file.
3932         * tests/test-random.c: New file, based on tests/test-random_r.c.
3933
3934         New module 'random'.
3935         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3936         declarations.
3937         * lib/random.c: New file, based on glibc/stdlib/random.c.
3938         * m4/random.m4: New file.
3939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3940         HAVE_RANDOM.
3941         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3942         * modules/random: New file.
3943         * config/srclist.txt: Add an entry for random.c.
3944         * doc/posix-functions/random.texi: Mention the 'random' module.
3945         * doc/posix-functions/initstate.texi: Likewise.
3946         * doc/posix-functions/setstate.texi: Likewise.
3947         * doc/posix-functions/srandom.texi: Likewise.
3948
3949 2012-01-12  Bruno Haible  <bruno@clisp.org>
3950
3951         random_r: Use common idioms.
3952         * lib/random_r.c: Include <stdlib.h> first.
3953
3954         random_r: Override incompatible API on AIX, OSF/1.
3955         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3956         Override the system function if REPLACE_RANDOM_R is 1.
3957         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3958         and OSF/1, set REPLACE_RANDOM_R.
3959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3960         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3961         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3962         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3963         * doc/glibc-functions/random_r.texi: Likewise.
3964         * doc/glibc-functions/setstate_r.texi: Likewise.
3965
3966         random_r: Support for MSVC 9.
3967         * lib/random_r.c: Include stdint.h, not inttypes.h.
3968
3969 2012-01-12  Eric Blake  <eblake@redhat.com>
3970
3971         inet_ntop: guard extra work by IF_LINT
3972         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3973         better code generation when not checking for warnings.
3974         Suggested by Paul Eggert and Jim Meyering.
3975
3976         strptime: fix regression on mingw
3977         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3978         Fix regression.  Reported by Bruno Haible.
3979
3980 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3981             Bruno Haible  <bruno@clisp.org>
3982
3983         copy-file: add error-code-returning variant.
3984         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3985         (qcopy_file_preserving): New declaration.
3986         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3987         copy_file_preserving. Change return type to 'int'. Don't emit an error
3988         message here.
3989         (copy_file_preserving): New function.
3990         * tests/test-copy-file.c: Include <stdlib.h>.
3991         (main): Test qcopy_file_preserving if the environment variable
3992         NO_STDERR_OUTPUT is set.
3993         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3994         with NO_STDERR_OUTPUT
3995         * tests/test-copy-file-2.sh: Likewise.
3996
3997 2012-01-10  Bruno Haible  <bruno@clisp.org>
3998
3999         copy-file: Use 'quote' module consistently.
4000         * lib/copy-file.c (copy_file_preserving): Use quote().
4001
4002         copy-file: Refactor.
4003         * lib/copy-file.c: Include quote.h.
4004         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4005         message here.
4006         * modules/copy-file (Depends-on): Add quote.
4007
4008         acl: Export qcopy_acl.
4009         * lib/acl.h (qcopy_acl): New declaration.
4010         * lib/copy-acl.c (qcopy_acl): Make non-static.
4011
4012         acl: Rename a local variable.
4013         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4014
4015         acl: Align return values of copy_acl and qcopy_acl.
4016         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4017         maybe < -1.
4018
4019 2012-01-11  Eric Blake  <eblake@redhat.com>
4020
4021         strptime: silence gcc warnings
4022         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4023         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4024         Reported by Daniel P. Berrange.
4025
4026         inet_ntop: silence gcc warning
4027         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4028         Reported by Daniel P. Berrange.
4029
4030 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4031
4032         getloadavg test: skip the test on GNU/Linux without /proc mounted
4033         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4034         file.  When /proc is not mounted, it always fails with ENOENT.
4035         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4036         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4037
4038 2012-01-10  Bruno Haible  <bruno@clisp.org>
4039
4040         regex: Avoid link error on MSVC 9.
4041         * modules/regex (Depends-on): Add wctype.
4042
4043 2012-01-10  Bruno Haible  <bruno@clisp.org>
4044
4045         doc: Mention --with-tests option.
4046         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4047         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4048         --with-tests.
4049         Reported by Reuben Thomas.
4050
4051 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4052
4053         users.txt: order package names lexicographically.
4054         * users.txt: Order package names lexicographically.
4055
4056 2012-01-10  Jim Meyering  <meyering@redhat.com>
4057
4058         maint.mk: fix description in comment
4059         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4060
4061         ignore-value: remove deprecated ignore_ptr function
4062         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4063         * NEWS: Note this.
4064
4065 2012-01-09  Jim Meyering  <meyering@redhat.com>
4066
4067         test-init.sh: avoid a subshell
4068         * tests/test-init.sh: Remove protective subshell.
4069         Suggested by Bernhard Voelker.  While a subshell is normally
4070         required to protect against older shells (Solaris, FreeBSD) that
4071         warn about a missing program before performing redirection, the
4072         shell-selection tests performed by init.sh probably exclude any
4073         offending shell.
4074
4075 2012-01-08  Bruno Haible  <bruno@clisp.org>
4076
4077         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4078         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4079         variable.
4080
4081 2012-01-08  Bruno Haible  <bruno@clisp.org>
4082
4083         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4084         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4085         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4086         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4087         macro.
4088         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4089         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4090         * lib/spawn_faction_addopen.c: Add workaround implementation if
4091         HAVE_WORKING_POSIX_SPAWN.
4092         * modules/spawn (Makefile): Substitute
4093         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4094         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4095         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4096         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4097         (Depends-on): Update conditions.
4098         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4099         the Solaris 11 bug.
4100
4101 2012-01-08  Bruno Haible  <bruno@clisp.org>
4102
4103         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4104         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4105         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4106         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4107         macro.
4108         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4109         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4110         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4111         HAVE_WORKING_POSIX_SPAWN.
4112         * modules/spawn (Makefile): Substitute
4113         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4114         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4115         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4116         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4117         (Depends-on): Update conditions.
4118         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4119         the Solaris 11 bug.
4120
4121 2012-01-08  Bruno Haible  <bruno@clisp.org>
4122
4123         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4124         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4125         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4126         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4127         HAVE_WORKING_POSIX_SPAWN.
4128         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4129         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4130         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4131         * lib/spawn_faction_addclose.c: Add workaround implementation if
4132         HAVE_WORKING_POSIX_SPAWN.
4133         * modules/spawn (Makefile): Substitute
4134         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4135         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4136         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4137         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4138         (Depends-on): Update conditions.
4139         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4140         the Solaris 11 bug.
4141
4142 2012-01-08  Bruno Haible  <bruno@clisp.org>
4143
4144         doc: Update for Solaris 11 2011-11.
4145         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4146         * m4/printf.m4: Update comments.
4147
4148 2012-01-08  Bruno Haible  <bruno@clisp.org>
4149
4150         mktime: Avoid compilation error on Solaris 11.
4151         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4152
4153 2012-01-08  Bruno Haible  <bruno@clisp.org>
4154
4155         doc: Small fix.
4156         * doc/posix-headers/nl_types.texi: Correct platforms list.
4157
4158 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4159
4160         Add lgpl-3.0 module.
4161         * MODULES.html.sh (Support for building documentation): Add
4162         lgpl-3.0.
4163         * modules/lgpl-3.0: New file.
4164
4165 2012-01-08  Jim Meyering  <meyering@redhat.com>
4166
4167         select.c: indent with spaces, not TABs
4168         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4169
4170 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4171
4172         quotearg: do not use grave accent for left quote
4173         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4174         locale_quoting_style.
4175         (quotearg_buffer_restyled): Fix example.
4176         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4177
4178 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4179
4180         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4181         Most programs do not have translation catalogs for English and much
4182         less separate catalogs for British and American English.  Drop the
4183         suggestion to translators about these two, and provide it
4184         automatically for Unicode locales.  Like most programs, even those
4185         using American English, we use single quotation marks.  This conflicts
4186         with the American typographic convention, but works better when you
4187         cite the entire error message within double quotes.  It also tries not
4188         to clash with established practice and with what non-gnulib programs
4189         will usually do.
4190         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4191         using an UTF-8 or GB-18030 locale.  The list of other locales with
4192         quotes was provided by Bruno Haible.
4193         (quotearg_buffer_restyled): Adjust instructions to translators.
4194         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4195         text, since this would be wrong when using Unicode.
4196         * modules/quotearg: Depend on c-strcaseeq.
4197
4198 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4199
4200         quotearg: fix Wikipedia link
4201         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4202
4203 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4204
4205         Fix for mingw with MSVC9.
4206         * m4/ld-version-script.m4: Check that compiler rejects version
4207         scripts with syntax errors.  Reported by Bruno Haible
4208         <bruno@clisp.org>.
4209
4210 2012-01-06  Bruno Haible  <bruno@clisp.org>
4211
4212         Talk about "native Windows API", not "Woe32".
4213         * lib/accept4.c: Update comments to mention native Windows.
4214         * lib/execute.c: Likewise.
4215         * lib/fatal-signal.c: Likewise.
4216         * lib/localcharset.c: Likewise.
4217         * lib/nanosleep.c: Likewise.
4218         * lib/nl_langinfo.c: Likewise.
4219         * lib/pclose.c: Likewise.
4220         * lib/pipe-filter-gi.c: Likewise.
4221         * lib/pipe-filter-ii.c: Likewise.
4222         * lib/pipe.c: Likewise.
4223         * lib/pipe2.c: Likewise.
4224         * lib/popen.c: Likewise.
4225         * lib/progreloc.c: Likewise.
4226         * lib/relocatable.c: Likewise.
4227         * lib/sigaction.c: Likewise.
4228         * lib/sigprocmask.c: Likewise.
4229         * lib/spawn-pipe.h: Likewise.
4230         * lib/spawn-pipe.c: Likewise.
4231         * lib/spawni.c: Likewise.
4232         * lib/stat-time.h: Likewise.
4233         * lib/w32spawn.h: Likewise.
4234         * tests/test-isatty.c: Likewise.
4235         * lib/config.charset: More comments.
4236         * doc/gnulib-intro.texi: Mention native Windows.
4237         * doc/posix-functions/_Exit_C99.texi: Likewise.
4238         * doc/posix-headers/fcntl.texi: Likewise.
4239
4240 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4241
4242         argp: Avoid crash if translator uses % characters in a translation.
4243         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4244         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4245
4246 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4247
4248         doc: C11 and C++11 are now official
4249         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4250         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4251         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4252         * modules/stdalign:
4253         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4254
4255 2012-01-06  Bruno Haible  <bruno@clisp.org>
4256
4257         uc-is-grapheme-break tests: Tweak.
4258         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4259         message.
4260
4261 2012-01-06  Bruno Haible  <bruno@clisp.org>
4262
4263         test-init.sh: correct the test for diff -u
4264         * tests/test-init.sh: Also redirect stdout to /dev/null.
4265
4266 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4267
4268         Use ', not `, for quoting output.
4269         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4270         (print_changelog_deltas, get_tool_versions, main program):
4271         * build-aux/git-version-gen:
4272         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4273         * build-aux/move-if-change (help):
4274         * build-aux/useless-if-before-free (usage, main program):
4275         * check-module (parse_module_file, usage)
4276         (find_included_lib_files, check_module):
4277         * lib/argmatch.c (main) [TEST]:
4278         * lib/argp-help.c (_help):
4279         * lib/getopt1.c (main) [TEST]:
4280         * lib/git-merge-changelog.c (usage):
4281         * lib/xstrtol-error.c (xstrtol_error):
4282         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4283         * m4/argz.m4 (gl_FUNC_ARGZ):
4284         * m4/bison.m4 (gl_BISON):
4285         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4286         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4287         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4288         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4289         * m4/gc-random.m4 (gl_GC_RANDOM):
4290         * m4/intl.m4 (gt_CHECK_DECL):
4291         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4292         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4293         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4294         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4295         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4296         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4297         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4298         * tests/test-dirname.c (main):
4299         * tests/test-getpass.c (main):
4300         * tests/test-iconvme.c (main):
4301         * tests/test-parse-datetime.c (LOG):
4302         * tests/test-xstrtoimax.sh:
4303         * tests/test-xstrtol.sh:
4304         * tests/test-xstrtoll.sh:
4305         * tests/test-xstrtoumax.sh:
4306         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4307         * top/GNUmakefile (abort-due-to-no-makefile):
4308         Quote 'like this', not `like this', as per the recent change to
4309         the GNU coding standards.
4310
4311 2012-01-05  Bruno Haible  <bruno@clisp.org>
4312
4313         strtoimax: Don't force a replacement on systems where intmax_t is int.
4314         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4315         'intmax_t' is not larger than 'int'.
4316         Reported by Pádraig Brady <P@draigBrady.com>.
4317
4318 2012-01-05  Bruno Haible  <bruno@clisp.org>
4319
4320         doc: Mention NetBSD bugs.
4321         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4322         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4323
4324 2012-01-05  Bruno Haible  <bruno@clisp.org>
4325
4326         strtoumax tests: Enhance tests.
4327         * tests/test-strtoumax.c (main): Add tests for large values.
4328
4329 2012-01-05  Bruno Haible  <bruno@clisp.org>
4330
4331         strtoimax: Work around AIX 5.1 bug.
4332         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4333         definition.
4334         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4335         Set HAVE_STRTOIMAX.
4336         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4337         REPLACE_STRTOIMAX.
4338         * modules/inttypes-incomplete (Makefile.am): Substitute
4339         REPLACE_STRTOIMAX.
4340         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4341         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4342         (Depends-on): Update conditions.
4343         * tests/test-strtoimax.c (main): Add tests for large values.
4344         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4345
4346 2012-01-05  Bruno Haible  <bruno@clisp.org>
4347
4348         inttypes: Modernize.
4349         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4350         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4351         (Makefile.am): Update inttypes.h rule.
4352
4353 2012-01-05  Jim Meyering  <meyering@redhat.com>
4354
4355         init.sh: don't waste a subshell just to redirect stderr
4356         * tests/init.sh: In testing for diff -u and diff -c, use a
4357         stderr-redirecting exec inside `...` rather than a subshell.
4358
4359         test-init.sh: avoid failure on HP-UX 11.00
4360         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4361         resolves to diff -c or cmp.  Reported by Bruno Haible.
4362
4363 2012-01-05  Bruno Haible  <bruno@clisp.org>
4364
4365         Tests for module 'strtoull'.
4366         * modules/strtoull-tests: New file.
4367         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4368
4369 2012-01-05  Bruno Haible  <bruno@clisp.org>
4370
4371         Tests for module 'strtoll'.
4372         * modules/strtoll-tests: New file.
4373         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4374
4375 2012-01-05  Bruno Haible  <bruno@clisp.org>
4376
4377         Tests for module 'strtoul'.
4378         * modules/strtoul-tests: New file.
4379         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4380
4381 2012-01-05  Bruno Haible  <bruno@clisp.org>
4382
4383         Tests for module 'strtol'.
4384         * modules/strtol-tests: New file.
4385         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4386
4387 2012-01-04  Jim Meyering  <meyering@redhat.com>
4388
4389         test-init.sh: accommodate Solaris 5.10's different diff -u output
4390         * tests/test-init.sh: Also exempt @@ lines from the comparison
4391         of diff output, since Solaris 5.10 and GNU diff formats differ.
4392         Reported by Stefano Lattarini.
4393
4394 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4395
4396         test-posixtm: don't assume signed integer wraparound
4397         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4398         after signed integer overflow.  Inspired by (though it may not
4399         fix) Bruno Haible's bug report in
4400         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4401
4402         Spell out "Windows 9x" and "Windows XP".
4403         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4404         "Windows 9x" and "WinXP" with "Windows XP".
4405
4406 2012-01-04  Jim Meyering  <meyering@redhat.com>
4407
4408         test-vc-list-files-cvs.sh: remove obsolete comment
4409         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4410         double exit.  Now that's all encapsulated via skip_ and Exit.
4411
4412 2012-01-04  Bruno Haible  <bruno@clisp.org>
4413
4414         Talk about "native Windows API", not "Win32".
4415         * lib/classpath.c: Update comments to mention native Windows.
4416         * lib/csharpexec.c: Likewise.
4417         * lib/dup2.c: Likewise.
4418         * lib/error.c: Likewise.
4419         * lib/fcntl.c: Likewise.
4420         * lib/filename.h: Likewise.
4421         * lib/findprog.c: Likewise.
4422         * lib/get-rusage-as.c: Likewise.
4423         * lib/get-rusage-data.c: Likewise.
4424         * lib/getpagesize.c: Likewise.
4425         * lib/javaexec.c: Likewise.
4426         * lib/msvc-inval.c: Likewise.
4427         * lib/msvc-nothrow.c: Likewise.
4428         * lib/nanosleep.c: Likewise.
4429         * lib/nonblocking.c: Likewise.
4430         * lib/printf-parse.c: Likewise.
4431         * lib/setlocale.c: Likewise.
4432         * lib/sigaction.c: Likewise.
4433         * lib/strerror_r.c: Likewise.
4434         * lib/tmpdir.c: Likewise.
4435         * lib/vasnprintf.c: Likewise.
4436         * lib/w32spawn.h: Likewise.
4437         * lib/waitpid.c: Likewise.
4438         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4439         * m4/locale-ar.m4: Likewise.
4440         * m4/locale-fr.m4: Likewise.
4441         * m4/locale-ja.m4: Likewise.
4442         * m4/locale-tr.m4: Likewise.
4443         * m4/locale-zh.m4: Likewise.
4444         * m4/printf.m4: Likewise.
4445         * tests/test-cloexec.c: Likewise.
4446         * tests/test-copy-acl.sh: Likewise.
4447         * tests/test-copy-file.sh: Likewise.
4448         * tests/test-file-has-acl.sh: Likewise.
4449         * tests/test-set-mode-acl.sh: Likewise.
4450         * tests/test-dup-safer.c: Likewise.
4451         * tests/test-dup2.c: Likewise.
4452         * tests/test-dup3.c: Likewise.
4453         * tests/test-fcntl.c: Likewise.
4454         * tests/test-nonblocking-pipe.h: Likewise.
4455         * tests/test-nonblocking-socket.h: Likewise.
4456         * tests/test-pipe.c: Likewise.
4457         * tests/test-pipe2.c: Likewise.
4458         * tests/test-spawn-pipe-child.c: Likewise.
4459         * doc/acl-resources.txt: Likewise.
4460         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4461         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4462         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4463         * lib/localcharset.c: Update comments to mention native Windows.
4464         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4465         * lib/localename.c: Likewise.
4466         * lib/progreloc.c: Likewise.
4467         * lib/relocatable.c: Likewise.
4468         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4469         (windows_compute_revents): Renamed from win32_compute_revents.
4470         (windows_compute_revents_socket): Renamed from
4471         win32_compute_revents_socket.
4472         * lib/select.c: Update comments to mention native Windows.
4473         (windows_poll_handle): Renamed from win32_poll_handle.
4474         * m4/threadlib.m4: Update comments to mention native Windows.
4475         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4476         --enable-threads=windows instead of --enable-threads=win32. Set
4477         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4478         * lib/glthread/lock.h: Update comments to mention native Windows.
4479         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4480         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4481         USE_WIN32_THREADS.
4482         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4483         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4484         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4485         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4486         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4487         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4488         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4489         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4490         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4491         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4492         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4493         * tests/test-tls.c: Likewise.
4494         Rationale:
4495         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4496         on both 32-bit and 64-bit Windows systems.
4497         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4498         line of distinction is between "native Windows" on one side and Unix/
4499         POSIX systems on the other side. More details in
4500         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4501         Suggested by Paul Eggert.
4502
4503 2012-01-03  Bruno Haible  <bruno@clisp.org>
4504
4505         isatty: Support for MSVC 9.
4506         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4507         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4508         (_isatty_nothrow): New function.
4509         (isatty): Use it instead of _isatty.
4510         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4511         * lib/poll.c (IsConsoleHandle): Likewise.
4512         * lib/select.c (IsConsoleHandle): Likewise.
4513         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4514         (gl_PREREQ_ISATTY): New macro.
4515         * modules/isatty (Depends-on): Add msvc-inval.
4516         (configure.ac): Invoke gl_PREREQ_ISATTY.
4517
4518 2012-01-03  Jim Meyering  <meyering@redhat.com>
4519
4520         maint.mk: remove temporary transition aid from over 1.5 years ago
4521         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4522         purpose was to aid in the transition (avoiding silent malfunction)
4523         from that old name to the new _sc_search_regexp.  This shim was
4524         added by commit 219c504b.
4525
4526         init.sh: do not try to accommodate compare arguments starting with "-"
4527         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4528         compare arguments that start with "-".  Besides, we do not worry
4529         about this when invoking diff or cmp; why start now with sed?
4530         Using "--" to separate options from argument would trigger sed
4531         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4532         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4533
4534 2012-01-02  Bruno Haible  <bruno@clisp.org>
4535
4536         Enhance tests for module 'isatty'.
4537         * modules/isatty-tests (Depends-on): Add pipe-posix.
4538         * tests/test-isatty.c: Include <fcntl.h>.
4539         (DEV_NULL): New macro.
4540         (main): Test the resut of isatty() also on regular files, pipes, and
4541         /dev/null.
4542
4543         New module 'isatty'.
4544         * lib/unistd.in.h (isatty): New declaration.
4545         * lib/isatty.c: New file, based on an idea of
4546         Bastien Roucariès <roucaries.bastien@gmail.com>.
4547         * m4/isatty.m4: New file.
4548         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4549         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4550         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4551         REPLACE_ISATTY.
4552         * modules/isatty: New file.
4553         * doc/posix-functions/isatty.texi: Mention the new module.
4554         Suggested by Paolo Bonzini.
4555
4556 2012-01-02  Bruno Haible  <bruno@clisp.org>
4557
4558         canonicalize: Tweak 2011-12-29 commit.
4559         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4560         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4561
4562 2012-01-02  Jim Meyering  <meyering@redhat.com>
4563
4564         gitlog-to-changelog: describe input syntax in --help output
4565         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4566
4567         gitlog-to-changelog: fix typo in --help: show backslash before email @
4568         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4569         in sources, but not in actual output.
4570
4571 2011-12-30  Jim Meyering  <meyering@redhat.com>
4572
4573         gitlog-to-changelog: don't malfunction when name contains %-directive
4574         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4575         in a name string cause trouble.  E.g., with a user name of "%s",
4576         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4577
4578 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4579
4580         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4581         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4582         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4583         the "  (tiny change)" notation that is appended to the standard
4584         ChangeLog "date  name  email" header line.
4585
4586 2012-01-01  Jim Meyering  <meyering@redhat.com>
4587
4588         test-framework-sh: init.sh: fix "make dist" failure
4589         When using gnulib-tool's --with-tests option and any module that
4590         depends on test-framework-sh, "make dist" would fail due to the
4591         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4592         in the gltests directory, and not in the gllib/ directory.
4593         One way to work around that is to move the EXTRA_DIST += init.sh
4594         from the primary module to the -tests one:
4595         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4596         * modules/test-framework-sh (Makefile.am): ...not here.
4597         Reported by Tom G. Christensen in
4598         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4599
4600         version-etc: update copyright year reported by --version
4601         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4602
4603 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4604
4605         canonicalize: only stat() if required
4606         * lib/canonicalize.c (canonicalize_filename_mode):
4607         Avoid calling l?stat() when both CAN_MISSING,
4608         and CAN_NOLINKS are set, as we neither need
4609         to resolve symlinks or test component existence.
4610
4611 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4612
4613         doc: cover st_ino issues once; add OpenVMS etc.
4614         * doc/posix-functions/stat.texi (stat):
4615         * doc/posix-functions/lstat.texi (lstat):
4616         * doc/posix-functions/fstatat.texi (fstatat):
4617         * doc/posix-functions/fstat.texi (fstat):
4618         Move general 'struct stat' stuff to sys_stat.texi,
4619         leaving behind a pointer.
4620         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4621         Merge duplicate info about 'struct stat' problems into here.
4622         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4623         and suggest partial workarounds.
4624
4625         same-inode: port to OpenVMS
4626         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4627         three st_ino values.
4628
4629 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4630
4631         canonicalize: fix references to stat() and lstat()
4632         * lib/canonicalize.c (canonicalize_filename_mode):
4633         Ensure references always resolve to a replacement
4634         function if required (even via a macro).
4635
4636 2011-12-30  Jim Meyering  <meyering@redhat.com>
4637
4638         gitlog-to-changelog: remove a little duplication
4639         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4640         rather than twice.
4641
4642 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4643
4644         canonicalize: add support for not resolving symlinks
4645         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4646         indicate we don't want to follow symlinks.  Also
4647         provide CAN_MODE_MASK to aid setting these existing
4648         mutually exclusive values.
4649         * lib/canonicalize.c (canonicalize_filename_mode):
4650         Extract the flags from can_mode parameter, which
4651         are currently just used to select between stat()
4652         and lstat().  Also ensure that mutually exclusive
4653         values are flagged immediately as invalid.
4654         * tests/test-canonicalize.c: Verify symlinks are
4655         not followed, and that invalid flag combinations
4656         are diagnosed.
4657
4658 2011-12-25  Jim Meyering  <meyering@redhat.com>
4659
4660         gitlog-to-changelog: do not clump multi-paragraph entries
4661         Identical header lines (date,name,email+coauthors) are suppressed,
4662         thus putting all entries with those same characteristics under
4663         a single header.  However, when a log entry consists of two or
4664         more paragraphs, it may not be clear where it starts and ends.
4665         This change makes it so that such an entry is always separated
4666         from others by a header line, even when that header would
4667         otherwise be suppressed.
4668         * build-aux/gitlog-to-changelog: Implement the above.
4669         Inspired by a related request from Stefano Lattarini in
4670         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4671
4672 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4673
4674         announce-gen: fix `cmd' typo in diagnostic
4675         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4676         diagnostic: a missing '$' meant that the command was not output.
4677
4678 2011-12-23  Jim Meyering  <meyering@redhat.com>
4679
4680         test-framework-sh: distribute init.sh
4681         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4682         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4683         fail due to the lack of init.sh.
4684
4685         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4686         * modules/atexit-tests: Rather than listing tests/init.sh,
4687         now that there's a module for it, simply depend on that new module.
4688         * modules/closein-tests: Likewise.
4689         * modules/exclude-tests: Likewise.
4690         * modules/getcwd-tests: Likewise.
4691         * modules/perror-tests: Likewise.
4692         * modules/pread-tests: Likewise.
4693         * modules/pwrite-tests: Likewise.
4694         * modules/vc-list-files-tests: Likewise.
4695         * modules/verify-tests: Likewise.
4696         * modules/xalloc-die-tests: Likewise.
4697         * modules/xstrtoimax-tests: Likewise.
4698         * modules/xstrtol-tests: Likewise.
4699         * modules/xstrtoll-tests: Likewise.
4700         * modules/xstrtoumax-tests: Likewise.
4701         * modules/yesno-tests: Likewise.
4702
4703 2011-12-22  Jim Meyering  <meyering@redhat.com>
4704
4705         test-framework-sh: add minimal tests of init.sh's compare function
4706         * modules/test-framework-sh-tests: New file.
4707         * tests/test-init.sh: New file.
4708
4709         test-framework-sh: new module
4710         * modules/test-framework-sh: New file.
4711         * MODULES.html.sh (Support for maintaining and releasing projects):
4712         List it.
4713
4714         init.sh: do not emit simulated diff output to stderr
4715         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4716
4717 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4718
4719         .gitignore: ignore gnulib.dvi and regex.info
4720         * doc/.gitignore:add gnulib.dvi and regex.info
4721
4722 2011-12-22  Jim Meyering  <meyering@redhat.com>
4723
4724         init.sh: correct previous change
4725         * tests/init.sh (compare): My previous change was wrong.
4726         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4727
4728         init.sh: avoid unwarranted test failure when using "set -e"
4729         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4730         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4731         a use like "compare exp out" would get evoke an unconditional failure.
4732
4733 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4734
4735         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4736         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4737         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4738         autoreconf that did not.
4739         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4740         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4741
4742 2011-12-17  Jim Meyering  <meyering@redhat.com>
4743
4744         bootstrap: remove some now-unneeded code
4745         This script arose back when gnulib-tool was young.
4746         Since then, it has seen improvements that render much of this
4747         script unnecessary.  In particular, it can now make symlinks
4748         to the files it uses.  Also, I no longer see as much value in
4749         marking files as read-only via comments.
4750         If you relied on the symlink-creation feature of the preceding
4751         version of this script, you can get most of that functionality
4752         by adding the --symlink option to the definition of
4753         gnulib_tool_option_extras in your bootstrap.conf file.
4754         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4755         Run autopoint and libtoolize *before* gnulib-tool.
4756         After it, run an abbreviated autoreconf, rather than a loop around
4757         all tools.
4758         (slirp, bt_mark_as_generated): Remove functions.
4759
4760 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4761
4762         ftoastr: fix typo
4763         * lib/ftoastr.h: Fix misspelling in comment.
4764
4765 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4766
4767         * top/README-release: fix punctuation.
4768
4769 2011-12-17  Jim Meyering  <meyering@redhat.com>
4770
4771         bootstrap: correct the recent buildreq change
4772         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4773         had no effect.
4774         * build-aux/bootstrap (buildreq): Bracket each search term with
4775         "*...*", so that the shell "case" statement works as intended.
4776         Add comments.
4777
4778 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4779
4780         build: let bootstrap resort to wget when downloading .po files
4781         * build-aux/bootstrap (download_po_files): Fallback to wget when
4782         downloading the .po files via rsync fails.  This is necessary to
4783         bootstrap from behind a strict firewall.
4784
4785 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4786
4787         stdint: don't assume C++11 when compiling with g++
4788         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4790         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4791         work also in C++ before C++11, as that improperly inhibits
4792         generating a substitute stdint.h for that case.
4793
4794 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4795
4796         alloca: protect comment from gnulib-tool
4797         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4798         that gnulib-tool doesn't think it's a license, and munge it to
4799         say "GCC version 3".
4800
4801 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4802
4803         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4804         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4805         $(abs_top_builddir) instead of $(top_builddir).
4806
4807 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4808
4809         strftime-tests: also test nanoseconds
4810         * tests/test-strftime.c (T): Add a test of %N.
4811
4812 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4813
4814         inttypes, stdint: add C++11 support
4815         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4816         when including inttypes.h and stdint.h.  Support this change to
4817         the standard.
4818         * doc/posix-headers/inttypes.texi (inttypes.h):
4819         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4820         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4821         Define if not defined already, for the benefit of pre-C++11 hosts.
4822         Define the standard format macros (e.g., PRId8) always.
4823         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4824         Likewise, if __cpluspus.  Define the standard constant and limit
4825         macros (e.g., INT8_C, INT8_MAX) always.
4826         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4827         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4828         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4829         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4830         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4831         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4832         Likewise.
4833
4834 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4835
4836         nonblocking tests: Fix test failure on Linux/PPC.
4837         Suggested by Prerna Saxena in
4838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4839         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4840         Set to 1100000.
4841
4842 2011-12-12  Jim Meyering  <meyering@redhat.com>
4843
4844         argmatch: don't hard-code `' when listing valid option arguments
4845         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4846         use the quote function to add quotes.  Use fputs rather than
4847         fprintf for the format string with no format directive.
4848
4849 2011-12-07  Eric Blake  <eblake@redhat.com>
4850
4851         bootstrap: detect tools required by gnulib-tool
4852         * build-aux/bootstrap (buildreq): Provide minimum implicit
4853         dependencies.
4854         * DEPENDENCIES: Mention patch as a prereq.
4855
4856 2011-12-04  Bruno Haible  <bruno@clisp.org>
4857
4858         sethostname: Port to Windows platforms.
4859         * lib/sethostname.c: Provide an alternate implementation for Windows
4860         platforms.
4861         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4862         (main): Skip the test if sethostname() fails with EPERM. On Windows
4863         platforms, don't check the result of gethostname().
4864
4865 2011-12-04  Bruno Haible  <bruno@clisp.org>
4866             Jim Meyering  <meyering@redhat.com>
4867
4868         tests: Avoid spurious error message on platforms without mktemp program.
4869         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4870
4871 2011-12-04  Bruno Haible  <bruno@clisp.org>
4872
4873         sethostname: Fix documentation.
4874         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4875         "not fixed" section.
4876
4877 2011-12-03  Bruno Haible  <bruno@clisp.org>
4878
4879         gnulib-tool: Verify that the License field is present and non-empty.
4880         * gnulib-tool (func_get_license_raw): New function, extracted from
4881         func_get_license.
4882         (func_get_license): Use it. Warn if the module is not a test module and
4883         has no license.
4884         Suggested by Jim Meyering.
4885
4886 2011-12-03  Bruno Haible  <bruno@clisp.org>
4887
4888         sethostname tests: Fix link error on mingw.
4889         * tests/test-sethostname1.c: New file, extracted from
4890         tests/test-sethostname.c.
4891         * tests/test-sethostname2.c: New file, extracted from
4892         tests/test-sethostname.c.
4893         * tests/test-sethostname.c: Remove file.
4894         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4895         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4896         (Depends-on): Add gethostname.
4897         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4898         Link the latter with $(GETHOSTNAME_LIB).
4899
4900         sethostname tests: Fix compilation error on mingw.
4901         * tests/test-sethostname.c: Don't include <sys/types.h>.
4902         (geteuid): Use a dummy value without uid_t.
4903         * modules/sethostname-tests (Depends-on): Remove sys_types.
4904
4905         sethostname tests: Avoid a gcc warning.
4906         * tests/test-sethostname.c (main): Remove an unused variable.
4907
4908         Tweak last commit.
4909         * modules/sethostname-tests (Files): Sort by decreasing importance.
4910         (configure.ac): Check for geteuid.
4911         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4912         the test when there's nothing to test. Drop an unnecessary cast.
4913         Improve an error message. Verify that the final sethostname() call
4914         succeeds.
4915
4916 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4917
4918         Add a test suite for the sethostname module.
4919         * modules/sethostname-tests: New file.  A test program
4920         for the sethostname module.
4921         * tests/test-sethostname.c: Likewise.
4922
4923 2011-12-03  Bruno Haible  <bruno@clisp.org>
4924
4925         Tweak last commit.
4926         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4927         Fix preprocessor directives indentation. Fix typos.
4928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4929         * modules/unistd (Makefile): Likewise.
4930
4931 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4932
4933         Integrate the sethostname module into unistd.
4934         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4935         into the unistd.h header.
4936         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4937         preprocessor directives.
4938         * modules/unistd: Setup the Makefile substitutions of the
4939         SETHOSTNAME preprocessor directives.
4940
4941 2011-12-03  Bruno Haible  <bruno@clisp.org>
4942
4943         Tweak last commit.
4944         * lib/sethostname.c: Don't include <string.h>.
4945         (sethostname): No need to copy the argument string to the stack. Don't
4946         call clearerr. Preserve errno when fprintf failed.
4947         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4948         Don't invoke AC_REPLACE_FUNCS.
4949         * modules/sethostname (Link): Remove empty section.
4950         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4951         failure problem.
4952
4953 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4954
4955         New module 'sethostname'.
4956         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4957         for systems that lack it.
4958         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4959         sethostname declaration and function.
4960         * modules/sethostname: New file.  Define the sethostname module.
4961
4962 2011-12-03  Bruno Haible  <bruno@clisp.org>
4963
4964         Tweak last commit.
4965         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4966
4967 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4968
4969         Split the HOST_NAME_MAX detection into a separate m4 macro.
4970         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4971         macro so it can be used by the pending sethostname module.
4972
4973 2011-12-03  Bruno Haible  <bruno@clisp.org>
4974
4975         Fix module descriptions syntax.
4976         * modules/argv-iter (License): Fix syntax.
4977         * modules/di-set (License): Likewise.
4978         * modules/ino-map (License): Likewise.
4979         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4980
4981 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4982
4983         stdalign: port to Clang 3.0
4984         Problem reported by Simon Josefsson in
4985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4986         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4987         which has <stdalign.h> but which does not define alignof.
4988         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4989
4990 2011-12-01  Eric Blake  <eblake@redhat.com>
4991
4992         mktempd: silence dd usage
4993         * build-aux/mktempd (rand_bytes): Silence dd.
4994
4995 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4996
4997         manywarnings: Don't mention gcc version in docstring.
4998         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4999         Jim Meyering <meyering@redhat.com>.
5000
5001 2011-11-30  Jim Meyering  <meyering@redhat.com>
5002
5003         hash: mark a few floating point constants with "f" suffix
5004         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5005         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5006         floating point constants with "f", since they're destined to be
5007         saved/used as "float"s.
5008
5009 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5010
5011         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5012         * tests/test-float.c (test_long_double): Correct and re-enable the
5013         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5014
5015 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5016
5017         Avoid subtracting two pointers that don't point into the same block.
5018         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5019         only pointers into the same memory block are subtracted. We cannot
5020         assume that sizeof (ptrdiff_t) == sizeof (void *).
5021
5022 2011-11-29  Eric Blake  <eblake@redhat.com>
5023
5024         maint.mk: add syntax check for use of compare from init.sh
5025         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5026         moved here from coreutils.
5027
5028         manywarnings: drop -Wunsuffixed-float-constants
5029         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5030         '1.0D', which is the only way to silence this warning for 'double'.
5031
5032 2011-11-29  Jim Meyering  <meyering@redhat.com>
5033
5034         hash: mark compute_bucket_size with the pure attribute
5035         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5036
5037         quotearg, propername: correct pragma guard expression
5038         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5039         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5040
5041 2011-11-28  Jim Meyering  <meyering@redhat.com>
5042
5043         propername: do not mark proper_name with the const attribute
5044         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5045         since it examines data pointed to by its parameter.
5046         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5047         the suggestion from -Wsuggest-attribute=const.
5048
5049         propername: mark one more function as const
5050         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5051
5052 2011-11-27  Jim Meyering  <meyering@redhat.com>
5053
5054         mark functions with const and pure attributes
5055
5056         Mark functions per suggestions from gcc-4.6 when using these options:
5057         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5058         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5059         Follow these guidelines: when possible, apply the attribute to
5060         an extern declaration, not to its definition.  Apply it to the
5061         definition only when the definition is static.
5062         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5063         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5064         * lib/base64.h (isbase64): Likewise.
5065         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5066         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5067         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5068         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5069         (c_tolower, c_toupper): Likewise.
5070         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5071         * lib/chdir-long.c (find_non_slash): Likewise.
5072         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5073         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5074         * lib/file-type.h (file_type): Likewise.
5075         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5076         * lib/filevercmp.c (verrevcmp): Likewise.
5077         * lib/freadahead.h (freadahead): Likewise.
5078         * lib/fts.c (fts_maxarglen): Likewise.
5079         * lib/hash-pjw.h (hash_pjw): Likewise.
5080         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5081         * lib/hash.c (is_prime, next_prime): Likewise.
5082         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5083         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5084         (hash_table_ok, hash_get_first, hash_string): Likewise.
5085         (compute_bucket_size): Likewise.
5086         * lib/i-ring.h (i_ring_empty): Likewise.
5087         * lib/isnan.c (isnanl): Likewise.
5088         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5089         * lib/memcasecmp.h (memcasecmp): Likewise.
5090         * lib/memchr2.h (memchr2): Likewise.
5091         * lib/memcmp2.h (memcmp2): Likewise.
5092         * lib/parse-datetime.y (lookup_zone): Likewise.
5093         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5094         [!WINDOWS_SOCKETS]: Likewise.
5095         * lib/strnlen1.h (strnlen1): Likewise.
5096         * lib/uniwidth.in.h (uc_width): Likewise.
5097         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5098         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5099         (quoting_options_from_style): Add a comment.
5100         * lib/propername.h (proper_name): Add a comment.
5101
5102 2011-11-27  Bruno Haible  <bruno@clisp.org>
5103
5104         Remove unused macros from !_LIBC code in glibc-borrowed files.
5105         * lib/fnmatch.c (STRCOLL): Remove macro.
5106         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5107         * lib/glob.c (__stat, __readdir64): Remove macros.
5108         * lib/tempname.c (__open64, __xstat64): Remove macros.
5109         Suggested by Paul Eggert.
5110
5111 2011-11-27  Bruno Haible  <bruno@clisp.org>
5112
5113         getcwd: Fix link error on MSVC 9.
5114         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5115
5116 2011-11-27  Bruno Haible  <bruno@clisp.org>
5117
5118         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5119         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5120         HAVE_OPENDIR is 0.
5121         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5122         HAVE_CLOSEDIR is 0.
5123         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5124         is 0.
5125         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5126
5127 2011-11-27  Bruno Haible  <bruno@clisp.org>
5128
5129         getcwd: Fix bug from 2011-08-17.
5130         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5131         platforms that need it.
5132         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5133         code of 4 to be a failure, not a success. This ensures that
5134         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5135
5136 2011-11-27  Bruno Haible  <bruno@clisp.org>
5137
5138         binary-io tests: Avoid test failure on mingw when libtool is used.
5139         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5140         Don't verify the size of t-bin-out1.tmp here.
5141         * tests/test-binary-io.sh: Verify it here.
5142         Reported by Simon Josefsson.
5143
5144 2011-11-26  Bruno Haible  <bruno@clisp.org>
5145
5146         Fix conflict between two instantiations of module 'unistd'.
5147         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5148         ${include_guard_prefix} also in the autoconf snippet.
5149         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5151         GNULIB_UNISTD_H_GETOPT.
5152         * modules/getopt-posix (configure.ac): Set the
5153         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5154         * modules/getopt-gnu (configure.ac): Likewise.
5155         * modules/unistd (Makefile.am): Change the substitution value of
5156         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5157         Reported by Simon Josefsson.
5158
5159 2011-11-25  Bruno Haible  <bruno@clisp.org>
5160
5161         pagealign_alloc: Doc and comments.
5162         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5163         module.
5164         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5165
5166 2011-11-25  Jim Meyering  <meyering@redhat.com>
5167
5168         test-update-copyright.sh: avoid false-positive failure
5169         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5170         around false positive failure on Cygwin/Windows.  The latter was
5171         matching erroneously-created files with names like
5172         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5173
5174 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5175
5176         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5177         * m4/valgrind-tests.m4: Check that the parameters that will be
5178         used works, not just a subset of them.  Reported by Bruno Haible
5179         <bruno@clisp.org>.
5180
5181 2011-11-24  Jim Meyering  <meyering@redhat.com>
5182
5183         test-stdalign.c: comment out long double tests
5184         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5185         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5186         error: '_Alignas' specifiers cannot reduce alignment of \
5187         'static_longdouble_alignas'.
5188
5189 2011-11-22  Jim Meyering  <meyering@redhat.com>
5190
5191         init.sh: make "compare /dev/null FILE" output more readable
5192         * tests/init.sh (compare_): Document the preferred order of arguments.
5193         (emit_diff_u_header_): New function.
5194         (compare_dev_null_): Emit a simulated diff, rather than just the
5195         contents of the unexpected file.  Suggestion from Bruno Haible.
5196
5197 2011-11-21  Jim Meyering  <meyering@redhat.com>
5198             Eric Blake  <eblake@redhat.com>
5199
5200         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5201         * tests/init.sh: Make our compare function slightly more portable.
5202         Reported by Bruno Haible in
5203         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5204
5205 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5206
5207         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5208         before using it, in code that ends up in config.h.
5209
5210 2011-11-20  Bruno Haible  <bruno@clisp.org>
5211
5212         getcwd: Work around getcwd bug on AIX 5..7.
5213         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5214         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5215         Use a different value for gl_cv_func_getcwd_path_max. Move the
5216         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5217         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5218         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5219         Define HAVE_MINIMALLY_WORKING_GETCWD.
5220         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5221         where it is not even minimally working, that is, on AIX.
5222         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5223         m4/getcwd-path-max.m4.
5224         (main): Update exit code computation.
5225         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5226         getcwd does not handle long file names.
5227
5228 2011-11-20  Bruno Haible  <bruno@clisp.org>
5229
5230         getcwd: Fix bug from 2009-09-10.
5231         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5232         like "no".
5233
5234 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5235
5236         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5237
5238 2011-11-20  Bruno Haible  <bruno@clisp.org>
5239
5240         fma tests: Avoid shadowing local variables.
5241         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5242         expected.
5243
5244 2011-11-20  Bruno Haible  <bruno@clisp.org>
5245
5246         copysignf tests: Fix.
5247         * tests/test-copysignf.c: Fix signature check.
5248
5249 2011-11-20  Bruno Haible  <bruno@clisp.org>
5250
5251         fma: Remove unused code.
5252         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5253         unused macros.
5254
5255 2011-11-20  Bruno Haible  <bruno@clisp.org>
5256
5257         sethostname: Fix doc about AIX.
5258         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5259         sethostname; it has it.
5260
5261         sethostname: Mention more portability problems.
5262         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5263         problem.
5264         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5265
5266 2011-11-19  Bruno Haible  <bruno@clisp.org>
5267
5268         Depend on module fcntl-h when AT_FDCWD is used.
5269         * modules/utimens (Depends-on): Add fcntl-h.
5270         * modules/areadlinkat (Depends-on): Likewise.
5271         * modules/areadlinkat-with-size (Depends-on): Likewise.
5272         * modules/faccessat (Depends-on): Likewise.
5273         * modules/fchmodat (Depends-on): Likewise.
5274         * modules/fchownat (Depends-on): Likewise.
5275         * modules/getcwd (Depends-on): Likewise.
5276         * modules/mkdirat (Depends-on): Likewise.
5277         * modules/mkfifoat (Depends-on): Likewise.
5278         * modules/readlinkat (Depends-on): Likewise.
5279         * modules/symlinkat (Depends-on): Likewise.
5280         * modules/dup2-tests (Depends-on): Likewise.
5281         * modules/fdutimensat-tests (Depends-on): Likewise.
5282         * modules/futimens-tests (Depends-on): Likewise.
5283
5284 2011-11-19  Bruno Haible  <bruno@clisp.org>
5285
5286         euidaccess: Update a comment.
5287         * lib/euidaccess.c: Update comment about platforms with faccessat.
5288
5289 2011-11-19  Bruno Haible  <bruno@clisp.org>
5290
5291         openat: Fix file list.
5292         * modules/openat (Files): Remove lib/at-func.c.
5293
5294 2011-11-19  Bruno Haible  <bruno@clisp.org>
5295
5296         fstatat: Simplify.
5297         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5298         gnulib should define rpl_fstatat, there is a
5299         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5300
5301 2011-11-19  Bruno Haible  <bruno@clisp.org>
5302
5303         Ensure 'inline' can be used in tests/test-utimens-common.h.
5304         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5305         * modules/futimens-tests (configure.ac): Likewise.
5306         * modules/utimens-tests (configure.ac): Likewise.
5307         * modules/utimensat-tests (configure.ac): Likewise.
5308
5309 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5310
5311         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5312         not hash_insert0.
5313         (hash_insert_if_absent): Doc fix.
5314
5315 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5316
5317         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5318
5319 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5320
5321         test-getcwd: disambiguate exit status
5322         * tests/test-getcwd.c (test_long_name): Return 0..7.
5323         (main): Exit with an unambiguous exit status.  The old
5324         code yielded a mysterious mixture of two failure codes.
5325
5326         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5327         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5328         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5329         rpl_fstatat or fstatat.  This should fix the other problem
5330         reported by Kai Habel in
5331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5332         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5334         and I reproduced it on a Solaris 8 host we still have in production.
5335
5336 2011-11-18  Jim Meyering  <meyering@redhat.com>
5337
5338         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5339         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5340         Add a sentence to the comment.
5341         (hash_insert0): New function that simply calls hash_insert_if_absent.
5342         * lib/hash.h (hash_insert_if_absent): Declare it.
5343         (hash_insert0): Add deprecation attribute.
5344         (_GL_ATTRIBUTE_DEPRECATED): Define.
5345         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5346         not hash_insert0.
5347         * NEWS: Mention it, even though it's not really an incompatible change.
5348
5349 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5350
5351         openat: avoid compilation failure due to lack of <errno.h> inclusion
5352         * lib/openat.c: Include <errno.h>.
5353
5354 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5355
5356         * modules/getcwd (Depends-on): Add fdopendir.
5357         This fixes one of the two problems reported by Kai Habel in
5358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5359
5360         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5361         stdalign problem reported by Ian Beckwith in
5362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5363         * modules/crypto/gc-arcfour (Depends-on):
5364         Depend conditionally on crypto/arcfour.
5365         * modules/crypto/gc-arctwo (Depends-on):
5366         Depend conditionally on crypto/arctwo.
5367         * modules/crypto/gc-des (Depends-on):
5368         Depend conditionally on crypto/des.
5369         * modules/crypto/gc-hmac-md5 (Depends-on):
5370         Depend conditionally on crypto/hmac-md5.
5371         * modules/crypto/gc-hmac-sha1 (Depends-on):
5372         Depend conditionally on crypto/hmac-sha1.
5373         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5374         * modules/crypto/gc-md4 (Depends-on):
5375         Depend conditionally on crypto/md4.
5376         * modules/crypto/gc-md5 (Depends-on):
5377         Depend conditionally on crypto/md5.
5378         * modules/crypto/gc-rijndael (Depends-on):
5379         Depend conditionally on crypto/rijndael.
5380         * modules/crypto/gc-sha1 (Depends-on):
5381         Depend conditionally on crypto/sha1.
5382         * modules/crypto/gc-arcfour:
5383         * modules/crypto/gc-arctwo:
5384         * modules/crypto/gc-des:
5385         * modules/crypto/gc-hmac-md5:
5386         * modules/crypto/gc-hmac-sha1:
5387         * modules/crypto/gc-md2:
5388         * modules/crypto/gc-md4:
5389         * modules/crypto/gc-md5:
5390         * modules/crypto/gc-rijndael:
5391         * modules/crypto/gc-sha1:
5392         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5393         now that the conditional dependencies do the work for us.
5394
5395 2011-11-17  Jim Meyering  <meyering@redhat.com>
5396
5397         tests: factor st_ctime-comparison out of two headers
5398         * tests/test-utimens-common.h (ctime_compare): Define.
5399         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5400         * tests/test-lutimens.h (test_lutimens): Likewise.
5401         * tests/test-utimens.h (test_utimens): Likewise.
5402
5403         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5404         Invoke the test program via an init.sh-using wrapper.
5405         * tests/test-getcwd.sh: New file.
5406         * modules/getcwd-tests (Files): Add it.
5407         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5408
5409 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5410
5411         gitlog-to-changelog: support multi-author commits.
5412         The FSF cares about keeping track of all authors of patches to its
5413         projects, but Git doesn't provide obvious support for multi-author
5414         changesets. Consensus seems to be forming around the use of extra
5415         Signed-off-by inspired lines in the log message formatted as
5416         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5417         multi-author commits between version control systems.
5418         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5419         log message and output in standard ChangeLog multi-author format.
5420         Reported by Peter Rosin <peda@lysator.liu.se>
5421
5422 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5423             Bruno Haible  <bruno@clisp.org>
5424
5425         Fix some modules' file list.
5426         * modules/fstatat (Files): Add m4/lstat.m4.
5427         * modules/openat (Files): Likewise.
5428         * modules/unlinkat (Files): Likewise.
5429
5430 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5431
5432         maint.mk: fix tight-scope.mk generation in VPATH builds.
5433         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5434         reference with $(srcdir) so that the file is found correctly even
5435         when running `make syntax-check' in a VPATH build.
5436
5437 2011-11-13  Bruno Haible  <bruno@clisp.org>
5438             Jim Meyering  <meyering@redhat.com>
5439
5440         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5441         * tests/init.sh (compare): Remove "No differences encountered" or
5442         synonymous output from the 'diff' program.
5443
5444 2011-11-13  Bruno Haible  <bruno@clisp.org>
5445
5446         Makefile: Tweak indentation.
5447         * Makefile: Use tab as first character in every line that contains rule
5448         commands.
5449
5450 2011-11-13  Bruno Haible  <bruno@clisp.org>
5451
5452         Syntax check for copyright statements.
5453         * check-copyright: New file.
5454         * Makefile (sc_check_copyright): New rule.
5455
5456 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5457
5458         * build-aux/git-version-gen: Add --prefix to configure the tag
5459         match string.
5460
5461 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5462
5463         * build-aux/git-version-gen: Add --help and --version.
5464
5465 2011-11-12  Jim Meyering  <meyering@redhat.com>
5466
5467         revamp the other test-exclude?.sh scripts to use init.sh, too
5468         * tests/test-exclude1.sh: Use init.sh.
5469         * tests/test-exclude2.sh: Likewise.
5470         * tests/test-exclude3.sh: Likewise.
5471         * tests/test-exclude4.sh: Likewise.
5472         * tests/test-exclude5.sh: Likewise.
5473         * tests/test-exclude6.sh: Likewise.
5474         * tests/test-exclude7.sh: Likewise.
5475         * tests/test-exclude8.sh: Likewise.
5476         * modules/exclude-tests (Files): List init.sh.
5477
5478         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5479         These shell scripts ignored failure of the binary test-exclude,
5480         so making the latter return 77 didn't cause them to be skipped.
5481         * tests/test-exclude5.sh: Exit with test-exclude's error status
5482         when that program fails.  Revamp to use init.sh.
5483         * tests/test-exclude2.sh: Likewise.
5484
5485         test-exclude: fix a typo
5486         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5487
5488 2011-11-11  Bruno Haible  <bruno@clisp.org>
5489
5490         obstack: Fix compilation error on MSVC 9.
5491         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5492
5493 2011-11-11  Jim Meyering  <meyering@redhat.com>
5494
5495         test-exclude: skip tests rather than failing on deficient systems
5496         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5497         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5498         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5499         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5500
5501 2011-11-10  Bruno Haible  <bruno@clisp.org>
5502
5503         ptsname_r test: Avoid gcc warning on glibc systems.
5504         * tests/test-ptsname_r.c (null_ptr): New function.
5505         (test_errors): Use it.
5506
5507 2011-11-10  Bruno Haible  <bruno@clisp.org>
5508
5509         ptsname_r: Avoid compilation error on OSF/1 5.1.
5510         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5512         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5513         function is not declared or incompatibly declared.
5514         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5515         * modules/ptsname_r (Depends-on, configure.ac): Update.
5516         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5517
5518 2011-11-10  Bruno Haible  <bruno@clisp.org>
5519
5520         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5521         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5522         When cross-compiling, guess yes on all platforms except AIX.
5523         Reported by Ludovic Courtès <ludo@gnu.org>.
5524
5525 2011-11-09  Bruno Haible  <bruno@clisp.org>
5526
5527         ptsname_r tests: Fix bugs.
5528         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5529         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5530
5531 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5532
5533         fstatat: work with cross-compilation
5534         Problem reported by Ludovic Courtès in
5535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5536         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5537         "cross-compiling" and assume the bug is present.  Replace
5538         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5539         an inverted sense, to be more conservative about our assumptions.
5540         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5541
5542 2011-11-09  Bruno Haible  <bruno@clisp.org>
5543
5544         Improve MODULES.html output.
5545         * modules/mkfifoat (Description): Use the word "function".
5546         * modules/readlinkat (Description): Likewise.
5547         * modules/symlinkat (Description): Likewise.
5548
5549 2011-11-09  Eric Blake  <eblake@redhat.com>
5550
5551         ptsname_r-tests: new test module
5552         * modules/ptsname_r-tests: New module.
5553         * tests/test-ptsname_r.c: New file.
5554
5555         ptsname_r: new module
5556         * modules/ptsname_r: New module.
5557         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5558         * lib/ptsname.c (__ptsname_r): Split...
5559         * lib/ptsname_r.c: ...into new file.
5560         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5561         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5562         * modules/stdlib (Makefile.am): Substitute witnesses.
5563         * lib/stdlib.in.h (ptsname_r): Declare it.
5564         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5565         * MODULES.html.sh (Misc): Likewise.
5566         * modules/ptsname (Depends-on): Alter dependency.
5567         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5568
5569 2011-11-09  Jim Meyering  <meyering@redhat.com>
5570
5571         announce-gen: be more concise when there's only one URL+tarball
5572         * build-aux/announce-gen (get_tool_versions): When you distribute
5573         only one type of tarball, combine the first two "Here are..."
5574         sections and make the key-checking grammar independent of
5575         how many tarballs there are.
5576
5577 2011-11-09  Eric Blake  <eblake@redhat.com>
5578
5579         openpty: provide a stub on mingw
5580         * lib/pty.in.h (includes): Provide forward declarations.
5581         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5582
5583         raise: fix mingw handling of SIGPIPE
5584         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5585
5586 2011-11-08  Bruno Haible  <bruno@clisp.org>
5587
5588         More conditional dependencies.
5589         * modules/faccessat (Depends-on): Add conditions.
5590         * modules/fchmodat (Depends-on): Likewise.
5591         * modules/fchownat (Depends-on): Likewise.
5592         * modules/fstatat (Depends-on): Likewise.
5593         * modules/mkfifoat (Depends-on): Likewise.
5594         * modules/readlinkat (Depends-on): Likewise.
5595         * modules/symlinkat (Depends-on): Likewise.
5596         * modules/unlinkat (Depends-on): Likewise.
5597         * modules/utimensat (Depends-on): Likewise.
5598         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5599         * modules/linkat (Depends-on): Refine the conditions.
5600         * modules/renameat (Depends-on): Likewise.
5601
5602 2011-11-08  Bruno Haible  <bruno@clisp.org>
5603
5604         faccessat: Move AC_LIBOBJ invocation to module description.
5605         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5606         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5607         invocation from here...
5608         * modules/faccessat (configure.ac): ... to here. Invoke
5609         gl_PREREQ_FACCESSAT.
5610
5611 2011-11-08  Bruno Haible  <bruno@clisp.org>
5612
5613         faccessat: Simplify autoconf macro.
5614         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5615         gl_FUNC_EUIDACCESS.
5616
5617 2011-11-08  Bruno Haible  <bruno@clisp.org>
5618
5619         renameat: Fix dependencies.
5620         * modules/renameat (Depends-on): Add stdbool.
5621
5622 2011-11-08  Bruno Haible  <bruno@clisp.org>
5623
5624         mkfifoat: Fix module description.
5625         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5626         not gl_UNISTD_MODULE_INDICATOR.
5627
5628 2011-11-08  Bruno Haible  <bruno@clisp.org>
5629
5630         fstatat: Remove unused dependency.
5631         * modules/fstatat (Depends-on): Remove fstat.
5632
5633 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5634
5635         GNUmakefile: behave when Makefile is missing.
5636         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5637
5638 2011-11-08  Bruno Haible  <bruno@clisp.org>
5639
5640         openat: Conditionalize dependencies.
5641         * lib/openat.c: Reduce the scope of some #includes.
5642         * modules/openat (Depends-on): Add conditions.
5643
5644 2011-11-07  Jim Meyering  <meyering@redhat.com>
5645
5646         maint.mk: extract GPG key ID without using a temporary file
5647         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5648         without using a temporary file.  Based on a suggestion from Werner Koch
5649         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5650
5651 2011-11-07  Eric Blake  <eblake@redhat.com>
5652
5653         grantpt: fix typo
5654         * lib/stdlib.in.h (grantpt): Check correct function.
5655
5656         maint.mk: silence new syntax check
5657         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5658
5659 2011-11-06  Bruno Haible  <bruno@clisp.org>
5660
5661         Doc about floating-point and math API.
5662         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5663         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5664
5665 2011-11-06  Bruno Haible  <bruno@clisp.org>
5666
5667         stdalign tests: Skip the test when compiled by Sun C.
5668         * tests/test-stdalign.c (main): Skip the test on Sun C.
5669
5670 2011-11-06  Bruno Haible  <bruno@clisp.org>
5671
5672         ansi-c++-opt: Complete the 2011-06-05 change.
5673         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5674         does not support namespaces, set the variable to "no", not to ":".
5675
5676 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5677
5678         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5679
5680 2011-11-06  Bruno Haible  <bruno@clisp.org>
5681
5682         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5683         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5684         (minus_zerol) [HP-UX]: New macro.
5685         (unary_minus) [HP-UX]: New function.
5686         (copysignl) [HP-UX]: Use unary_minus function.
5687
5688 2011-11-06  Bruno Haible  <bruno@clisp.org>
5689
5690         ldexp, ldexpf, ldexpl: Enhance tests.
5691         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5692         and tests/test-ldexpl.c.
5693         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5694         LDEXP, MIN_EXP, MAX_EXP): New macros.
5695         Include test-ldexp.h.
5696         (main): Just call test_function.
5697         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5698         infinity.h, nan.h.
5699         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5700         MAX_EXP): New macros.
5701         Include test-ldexp.h.
5702         (x, y): Remove variables.
5703         (main): Just call test_function.
5704         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5705         infinity.h, nan.h.
5706         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5707         MAX_EXP): New macros.
5708         Include test-ldexp.h.
5709         (x, y): Remove variables.
5710         (main): Just call test_function.
5711         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5712         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5713         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5714         (Depends-on): Add isnand-nolibm, signbit, float.
5715         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5716         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5717         (Depends-on): Add isnanf-nolibm, signbit, float.
5718
5719 2011-11-06  Bruno Haible  <bruno@clisp.org>
5720
5721         math tests: Cosmetics.
5722         * tests/test-math-c++.cc: Reorder declarations.
5723
5724 2011-11-05  Bruno Haible  <bruno@clisp.org>
5725
5726         fma*: Simplify test.
5727         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5728         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5729
5730         Tests for module 'fmal'.
5731         * modules/fmal-tests: New file.
5732         * tests/test-fmal1.c: New file.
5733         * tests/test-fmal2.c: New file.
5734
5735         New module 'fmal'.
5736         * lib/math.in.h (fmal): New declaration.
5737         * lib/fmal.c: New file.
5738         * m4/fmal.m4: New file.
5739         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5741         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5742         REPLACE_FMAL.
5743         * modules/fmal: New file.
5744         * doc/posix-functions/fmal.texi: Mention the new module and the various
5745         bugs.
5746
5747         Tests for module 'fmaf'.
5748         * modules/fmaf-tests: New file.
5749         * tests/test-fmaf1.c: New file.
5750         * tests/test-fmaf2.c: New file.
5751
5752         New module 'fmaf'.
5753         * lib/math.in.h (fmaf): New declaration.
5754         * lib/fmaf.c: New file.
5755         * m4/fmaf.m4: New file.
5756         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5758         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5759         REPLACE_FMAF.
5760         * modules/fmaf: New file.
5761         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5762         bugs.
5763
5764         Tests for module 'fma'.
5765         * modules/fma-tests: New file.
5766         * tests/test-fma1.c: New file.
5767         * tests/test-fma1.h: New file.
5768         * tests/test-fma2.c: New file.
5769         * tests/test-fma2.h: New file.
5770
5771         New module 'fma'.
5772         * lib/math.in.h (fma): New declaration.
5773         * lib/fma.c: New file.
5774         * m4/fma.m4: New file.
5775         * m4/fegetround.m4: New file.
5776         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5778         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5779         REPLACE_FMA.
5780         * modules/fma: New file.
5781         * doc/posix-functions/fma.texi: Mention the new module and the various
5782         bugs.
5783
5784         Extend gl_MATHFUNC.
5785         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5786         Support 'void' as argument type.
5787         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5788
5789 2011-11-05  Jim Meyering  <meyering@redhat.com>
5790
5791         maint.mk: also prohibit inclusion of dirent.h without use
5792         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5793
5794 2011-11-05  Bruno Haible  <bruno@clisp.org>
5795
5796         ldexpl tests: Avoid test failure on MSVC 9.
5797         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5798         value. Needed in order to enforce the conversion from a value greater
5799         than LDBL_MAX to Infinity.
5800
5801 2011-11-05  Bruno Haible  <bruno@clisp.org>
5802
5803         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5804         * modules/at-internal: New file, extracted from modules/openat.
5805         * modules/openat-h: New file.
5806         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5807         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5808         * modules/openat (Description): Add reference to POSIX function.
5809         (Files): Remove lib/openat.h, lib/openat-proc.c.
5810         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5811         intprops, unistd.
5812         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5813         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5814         gl_FCNTL_MODULE_INDICATOR.
5815         (Include): Remove unistd.h, openat.h.
5816         * modules/areadlinkat (Files): Add lib/at-func.c.
5817         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5818         openat-die, openat-h, save-cwd.
5819         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5820         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5821         openat-die, openat-h, save-cwd, unistd.
5822         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5823         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5824         openat-h, save-cwd. Remove fcntl-h, openat.
5825         * modules/fchmodat (Files): Remove lib/openat.h.
5826         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5827         openat, stdbool, unistd.
5828         * modules/fchownat (Files): Remove lib/openat.h.
5829         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5830         openat, stdbool, sys_stat.
5831         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5832         lib/openat-proc.c.
5833         (Depends-on): Add at-internal.
5834         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5835         * modules/fstatat (Files): Remove lib/openat.h.
5836         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5837         stdbool, unistd.
5838         * modules/fts (Depends-on): Add openat-h.
5839         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5840         openat.
5841         * modules/mkdirat (Files): Remove lib/openat.h.
5842         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5843         openat, stdbool, sys_stat.
5844         * modules/mkfifoat (Files): Add lib/at-func.c.
5845         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5846         openat-h, save-cwd. Remove fcntl-h, openat.
5847         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5848         * modules/readlinkat (Files): Add lib/at-func.c.
5849         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5850         openat-h, save-cwd. Remove fcntl-h, openat.
5851         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5852         openat.
5853         * modules/selinux-at (Files): Add lib/at-func.c.
5854         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5855         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5856         * modules/symlinkat (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/unlinkat (Files): Remove lib/openat.h.
5860         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5861         stdbool.
5862         * modules/utimensat (Files): Add lib/at-func.c.
5863         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5864         openat-die, openat-h, save-cwd.
5865         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5866         * modules/fdutimensat-tests (Depends-on): Add openat.
5867         * modules/fstatat-tests (Depends-on): Add openat-h.
5868         * modules/readlinkat-tests (Depends-on): Add openat.
5869         * modules/symlinkat-tests (Depends-on): Add openat.
5870
5871 2011-11-05  Bruno Haible  <bruno@clisp.org>
5872
5873         openat: Include <stdbool.h>.
5874         * lib/openat.c: Include <stdbool.h>.
5875
5876 2011-11-04  Bruno Haible  <bruno@clisp.org>
5877
5878         fchownat, renameat, unlinkat: Fix dependencies.
5879         * modules/fchownat (Depends-on): Add fstatat.
5880         * modules/renameat (Depends-on): Likewise.
5881         * modules/unlinkat (Depends-on): Likewise.
5882
5883 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5884
5885         openat: remove direct dependency on dirent
5886         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5887         and hasn't been needed ever since fdopendir was split into its own
5888         module on 2009-08-31.
5889         * modules/openat (Depends-on): Remove dirent.
5890
5891 2011-11-04  Bruno Haible  <bruno@clisp.org>
5892
5893         renameat: Optimize code size.
5894         * modules/renameat (configure.ac): Don't compile at-func2.c if
5895         REPLACE_RENAMEAT is 1.
5896
5897 2011-11-04  Bruno Haible  <bruno@clisp.org>
5898
5899         openat tests: Fix file list.
5900         * modules/openat-tests (Files): Add tests/test-open.h.
5901
5902 2011-11-04  Bruno Haible  <bruno@clisp.org>
5903
5904         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5905         * modules/fchmodat (Depends-on): Add openat-die.
5906         * modules/fchownat (Depends-on): Likewise.
5907         * modules/linkat (Depends-on): Likewise.
5908         * modules/renameat (Depends-on): Likewise.
5909         * modules/openat (Depends-on): Add dirent.
5910
5911 2011-11-04  Jim Meyering  <meyering@redhat.com>
5912
5913         at-func*.c: fix comments
5914         * lib/at-func2.c: Correct/improve first-line comment.
5915         * lib/at-func.c: Correct grammar in first-line comment.
5916
5917 2011-11-04  Bruno Haible  <bruno@clisp.org>
5918
5919         New module 'mkdirat', split off from module 'openat'.
5920         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5921         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5922         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5923         * modules/mkdirat: New file, extracted from modules/openat.
5924         * modules/openat (Files): Remove lib/mkdirat.c.
5925         (Depends-on): Remove mkdir.
5926         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5927         (Include): Remove <sys/stat.h>.
5928         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5929         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5930         tests/test-mkdir.h.
5931         (Depends-on): Remove ignore-value.
5932         (Makefile.am): Remove rules for test-mkdirat.
5933         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5934         of module 'openat'.
5935         * NEWS: Mention the change.
5936
5937 2011-11-04  Bruno Haible  <bruno@clisp.org>
5938
5939         closedir: Avoid warning on mingw.
5940         * lib/closedir.c: Include <unistd.h>.
5941
5942 2011-11-04  Bruno Haible  <bruno@clisp.org>
5943
5944         New module 'fstatat', split off from module 'openat'.
5945         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5946         defined.
5947         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5948         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5949         gl_FUNC_FSTATAT.
5950         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5951         * modules/fstatat: New file, extracted from modules/openat.
5952         * modules/openat (Files): Remove lib/fstatat.c.
5953         (Depends-on): Remove lstat.
5954         (configure.ac): Remove AC_LIBOBJ of fstatat.
5955         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5956         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5957         tests/test-lstat.h, tests/test-stat.h.
5958         (Depends-on): Remove getcwd-lgpl.
5959         (Makefile.am): Remove rules for test-fstatat.
5960         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5961         of module 'openat'.
5962         * NEWS: Mention the change.
5963         * modules/getcwd (Depends-on): Add fstatat.
5964         * modules/linkat (Depends-on): Likewise.
5965         * modules/mkfifoat-tests (Depends-on): Likewise.
5966         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5967
5968 2011-11-03  Bruno Haible  <bruno@clisp.org>
5969
5970         New module 'unlinkat', split off from module 'openat'.
5971         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5972         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5973         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5974         * modules/unlinkat: New file, extracted from modules/openat. Correct
5975         the dependency conditions.
5976         * modules/openat (Files): Remove lib/unlinkat.c.
5977         (Depends-on): Remove rmdir, unlink.
5978         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5979         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5980         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5981         tests/test-rmdir.h, tests/test-unlink.h.
5982         (Depends-on): Remove unlinkdir.
5983         (Makefile.am): Remove rules for test-unlinkat.
5984         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5985         of module 'openat'.
5986         * NEWS: Mention the change.
5987         * modules/linkat-tests (Depends-on): Add unlinkat.
5988         * modules/mkfifoat-tests (Depends-on): Likewise.
5989         * modules/readlinkat-tests (Depends-on): Likewise.
5990
5991 2011-11-02  Bruno Haible  <bruno@clisp.org>
5992
5993         New module 'fchmodat', split off from module 'openat'.
5994         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5995         defined.
5996         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5997         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5998         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5999         * modules/fchmodat: New file, extracted from modules/openat.
6000         * modules/openat (Files): Remove lib/fchmodat.c.
6001         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6002         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6003         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6004         (Makefile.am): Remove rules for test-fchmodat.
6005         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6006         of module 'openat'.
6007         * NEWS: Mention the change.
6008
6009 2011-11-02  Jim Meyering  <meyering@redhat.com>
6010
6011         putenv: indent #definition of "environ" to placate cppi
6012         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6013
6014         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6015         Git logs are often treated as immutable, because editing them
6016         changes the SHA1 checksums of all descendants.  Thus, errors in
6017         git logs tend to stay there forever.  However, when we generate
6018         a ChangeLog file -- typically for distribution -- from that git log,
6019         we can actually make corrections in the generated file.  The key
6020         lies in recording in machine-readable/applicable form the desired
6021         corrections.  See --help for description and an example.
6022         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6023         (usage): Describe it; alphabetize option descriptions.
6024         (main): Honor the new option, carefully.
6025
6026 2011-11-01  Jim Meyering  <meyering@redhat.com>
6027
6028         gitlog-to-changelog: avoid an infloop
6029         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6030         that ends up being empty.
6031
6032 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6033
6034         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6035         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6036         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6037         contains (possibly-quoted) backslashes.  This should avoid
6038         all-too-common shell bugs if COMPLICATED contains backslashes in
6039         the "wrong" places.  Reported by David Evans in
6040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6041         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6042         because we want ASCII ranges.  Is there some reason we don't use
6043         the C locale everywhere in this script?
6044         (func_module, top level): Avoid unwanted pathname expansion when
6045         $repo_url_prefix or $repo_url_suffix_repl contain shell
6046         metacharacters like '?' and '*'.
6047
6048 2011-11-01  Bruno Haible  <bruno@clisp.org>
6049
6050         fchownat: Improve description.
6051         * modules/fchownat (Description): Add link to function.
6052
6053 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6054
6055         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6056         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6058         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6059
6060 2011-11-01  Bruno Haible  <bruno@clisp.org>
6061
6062         alignof: Avoid collision with stdalign module.
6063         * lib/alignof.h (alignof): Remove macro.
6064         * NEWS: Mention the change.
6065         Reported by Paul Eggert.
6066
6067 2011-11-01  Bruno Haible  <bruno@clisp.org>
6068
6069         New module 'fchownat', split off from module 'openat'.
6070         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6071         defined.
6072         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6073         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6074         invoke gl_FUNC_FCHOWNAT.
6075         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6076         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6077         * modules/fchownat: New file, extracted from modules/openat.
6078         * modules/openat (Files): Remove lib/fchownat.c.
6079         (Depends-on): Remove lchown.
6080         (configure.ac): Remove AC_LIBOBJ of fchownat.
6081         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6082         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6083         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6084         (Depends-on): Remove mgetgroups, usleep, stat-time.
6085         (configure.ac): Remove test for getegid.
6086         (Makefile.am): Remove rules for test-fchownat.
6087         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6088         of module 'openat'.
6089         * NEWS: Mention the change.
6090
6091 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6092
6093         stdalign: port better to MSVC and to Sun C 5.11
6094         This fixes some of the problems reported by Bruno Haible in
6095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6096         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6097         shortcomings of MSVC and of Sun C 5.11.
6098         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6099         around __declspec arg.
6100         * modules/stdalign-tests (Files): Add tests/macros.h.
6101         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6102         Include macros.h, for ASSERT.
6103         (DECLARE_ALIGNED): Remove.
6104         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6105         to catch bug), and to 1 if not (simplifies the rest of the code).
6106         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6107         (CHECK_AUTO): Remove.
6108         (CHECK_ALIGNED): Check only the alignment of the static vars,
6109         since auto var alignment isn't supported by Sun C 5.11.
6110         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6111         ASSERT failures are easier to diagnose.
6112
6113 2011-10-31  Bruno Haible  <bruno@clisp.org>
6114
6115         doc about some IRIX 5.3 problems.
6116         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6117         on IRIX 5.3.
6118         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6119         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6120         5.3.
6121         * doc/posix-functions/grantpt.texi: Likewise.
6122         * doc/posix-functions/unlockpt.texi: Likewise.
6123         * doc/posix-functions/lgamma.texi: Likewise.
6124         * doc/posix-functions/nextafter.texi: Likewise.
6125         * doc/posix-functions/remainder.texi: Likewise.
6126         * doc/posix-functions/select.texi: Mention misplaced declaration on
6127         IRIX 5.3.
6128         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6129
6130 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6131
6132         gitlog-to-changelog: fix git-log invocation.
6133         git-log mishandles date strings before 1970-01-01 UTC, and there is
6134         no use to specify --since=1970-01-01 by default anyway.
6135         * build-aux/gitlog-to-changelog: By default, when no --since option
6136         was given, do not specify explicit --since option to git-log.
6137
6138 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6139
6140         gitlog-to-changelog: new option --append-dot.
6141         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6142         first non-blank line of each commit message terminated with a dot.
6143
6144 2011-10-30  Bruno Haible  <bruno@clisp.org>
6145
6146         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6147         * lib/ffsl.h: Include <config.h>.
6148         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6149
6150 2011-10-30  Jim Meyering  <meyering@redhat.com>
6151
6152         GNUmakefile: reenable "make syntax-check" for most projects
6153         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6154         build-aux variable", "syntax-check" would do nothing but succeed with
6155         the "No version control files detected..." diagnostic (unless you
6156         happened to override _build-aux via cfg.mk).
6157         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6158         to precede inclusion of maint.mk.  Otherwise, these variables would
6159         be used undefined in any project that does not override the default.
6160
6161 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6162
6163         gitlog-to-changelog: treat a message with only blank lines as empty.
6164         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6165         trailing blank lines before the code that issues a warning about an
6166         empty commit message.
6167
6168 2011-10-30  Jim Meyering  <meyering@redhat.com>
6169
6170         test-parse-datetime.c: avoid new DST-related false positive test failure
6171         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6172         based on the time/date we'll convert, not the current time.
6173         Otherwise, the moment we cross a DST boundary like today's in
6174         Europe, (CEST to CET), that offset ends up being one hour off.
6175
6176 2011-10-27  Bruno Haible  <bruno@clisp.org>
6177
6178         fstat: Tweak documentation.
6179         * modules/fstat (Description): More precise description.
6180
6181 2011-10-27  Bruno Haible  <bruno@clisp.org>
6182
6183         Update documentation regarding 'largefile' module.
6184         * doc/posix-functions/fstat.texi: Tweak wording.
6185         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6186         problems with huge directories and/or small ino_t types.
6187         * doc/posix-functions/readdir.texi: Likewise.
6188         * doc/posix-functions/rewinddir.texi: Likewise.
6189
6190 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6191
6192         maint.mk: don't maintain a second build-aux variable.
6193         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6194         depends on GNUmakefile, which already maintains a cfg.mk
6195         overridable $(_build-aux) for projects with a non-standard
6196         build-aux directory location, although without the $(srcdir)
6197         prefix.  Use that variable consistently instead of introducing a
6198         second one.  Adjust all call sites.
6199
6200 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6201
6202         Add stdalign module and use it in other modules.
6203         This is based on a previous proposal by Bruno Haible
6204         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6205
6206         stdalign: new module
6207         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6208         * modules/stdalign: New files.
6209         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6210         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6211
6212         stdalign-tests: new module
6213         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6214
6215         argp: use stdalign
6216         * lib/argp-parse.c: Include <stdalign.h>.
6217         (alignof): Remove.
6218         * modules/argp (Depends-on): Add stdalign.
6219
6220         crypto libraries: use stdalign
6221         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6222         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6223         Do not include <stdlib.h> twice, in md4.c.
6224         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6225         because we are accessing a pointer's bit-pattern, not a size.
6226         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6227         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6228         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6229         * modules/crypto/sha512: Likewise.
6230
6231         sys_socket: use stdalign, not alignof
6232         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6233         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6234
6235 2011-10-27  Bruno Haible  <bruno@clisp.org>
6236
6237         raise test: Avoid a test failure on Linux/MIPS.
6238         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6239         because 99 is a valid signal on Linux/MIPS.
6240
6241 2011-10-27  Bruno Haible  <bruno@clisp.org>
6242
6243         nonblocking tests: Fix test failure on Linux/MIPS.
6244         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6245         Set to 270000.
6246
6247 2011-10-27  Bruno Haible  <bruno@clisp.org>
6248
6249         utimensat: Work around problem on Linux/hppa.
6250         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6251         values.
6252         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6253
6254 2011-10-25  Jim Meyering  <meyering@redhat.com>
6255
6256         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6257         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6258         after symbols like NULL, size_t, etc.
6259         Reported by Alfred M. Szmidt.
6260
6261         maint.mk: exempt ENODATA from a syntax-check rule
6262         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6263         from the sc_prohibit_always-defined_macros syntax-check rule.
6264         Add a comment.  See this for more details:
6265         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6266
6267 2011-10-23  Jim Meyering  <meyering@redhat.com>
6268
6269         fts: close parent dir FD before returning from post-traversal fts_read
6270         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6271         unlink A, even though an FD open on A remained.  This is suboptimal
6272         (holding a file descriptor open longer than needed), but otherwise not
6273         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6274         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6275         that represents a real problem: it causes the removal of A to fail
6276         with e.g., "rm: cannot remove `A': Device or resource busy"
6277
6278         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6279         directory file descriptors.  After completing the final, FTS_DP,
6280         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6281         cache, but then proceeded to add a new FD to it via the subsequent
6282         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6283         final file descriptor would be closed only via fts_close's call to
6284         fd_ring_clear.  Now, it is usually closed earlier, via the final
6285         FTS_DP-returning fts_read call.
6286         * lib/fts.c (restore_initial_cwd): New function, converted from
6287         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6288         Update callers.
6289         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6290         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6291
6292 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6293             Bruno Haible  <bruno@clisp.org>
6294             Jim Meyering  <jim@meyering.net>
6295
6296         readme-release: improve safety of release prep instructions.
6297         * README-release: Don't git pull all branches when only master
6298         is needed for the release process.
6299         Run make maintainer-clean before changing trees and merging.
6300         Don't try to run ./configure right after git pull in case files
6301         that influence the bootstrap process have changed, move the
6302         ./configure step to after running ./bootstrap.
6303         Don't bootstrap "one last time"... it's the first time!
6304
6305 2011-10-22  Bruno Haible  <bruno@clisp.org>
6306
6307         errno, strerror-override: Support for MSVC 10.
6308         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6309         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6310         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6311         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6312         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6313         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6314         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6315         Assign values compatible with MSVC 10.
6316         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6317         New macros.
6318         (GNULIB_defined_EWINSOCK): New macro.
6319         * lib/strerror-override.c (strerror_override): Update accordingly.
6320         * lib/strerror-override.h: Likewise.
6321         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6322         longer equal to the corresponding errno value.
6323         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6324
6325 2011-10-22  Bruno Haible  <bruno@clisp.org>
6326
6327         perror: Recognize when test program crashes.
6328         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6329         strerror, set gl_cv_func_perror_works to no.
6330         Reported by Daniel Richard G. <skunk@iskunk.org>.
6331
6332         perror: Fix indentation.
6333         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6334
6335 2011-10-22  Bruno Haible  <bruno@clisp.org>
6336
6337         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6338         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6339         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6340         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6341         functions, not as a macro.
6342         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6343         macros.
6344         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6345         absence of macro.
6346         Suggested by Eric Blake.
6347         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6348
6349 2011-10-21  Bruno Haible  <bruno@clisp.org>
6350
6351         relocatable-prog-wrapper: Don't leave object files behind.
6352         * build-aux/install-reloc: Re-synchronize list of .o files to be
6353         removed with list of compilation units.
6354
6355 2011-10-20  Bruno Haible  <bruno@clisp.org>
6356
6357         openpty, posix_openpt: Remove code duplication.
6358         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6359         * lib/openpty.c: Include <stdlib.h>.
6360         (openpty): Use posix_openpt on all platforms except IRIX.
6361         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6362
6363 2011-10-20  Bruno Haible  <bruno@clisp.org>
6364
6365         unlockpt: Detect invalid argument.
6366         * lib/unlockpt.c: Include <fcntl.h>.
6367         (unlockpt): Check whether fd is valid, using fcntl().
6368         * modules/unlockpt (Depends-on): Add fcntl-h.
6369
6370 2011-10-20  Bruno Haible  <bruno@clisp.org>
6371
6372         openpty: Avoid compilation error on AIX 6.1.
6373         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6374
6375 2011-10-20  Bruno Haible  <bruno@clisp.org>
6376
6377         posix_openpt: Support for OpenBSD.
6378         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6379         (posix_openpt) [OpenBSD]: New code.
6380         * lib/grantpt.c: Include <fcntl.h>.
6381         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6382         * modules/grantpt (Depends-on): Add fcntl-h.
6383
6384 2011-10-20  Bruno Haible  <bruno@clisp.org>
6385
6386         posix_openpt test: Coding style.
6387         * tests/test-posix_openpt.c: Use GNU coding style.
6388
6389 2011-10-20  Bruno Haible  <bruno@clisp.org>
6390
6391         grantpt: Support --avoid=pt_chown.
6392         * modules/grantpt (Files): Add lib/pty-private.h.
6393
6394 2011-10-20  Bruno Haible  <bruno@clisp.org>
6395
6396         posix_openpt: Fix autoconf macro.
6397         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6398         unneeded check for _getpty.
6399
6400 2011-10-20  Bruno Haible  <bruno@clisp.org>
6401
6402         openpty: Update comments.
6403         * lib/openpty.c: Add comments about Minix.
6404
6405 2011-10-19  Eric Blake  <eblake@redhat.com>
6406
6407         openpty: relax license
6408         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6409
6410         pt_chown: use configmake to simplify build
6411         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6412
6413         ptsname and others: relax license
6414         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6415         * modules/unlockpt (License): Likewise.
6416         * modules/pt_chown (License): Likewise.
6417         * modules/ptsname (License): Likewise.
6418         * modules/ttyname_r (License): Likewise.
6419
6420 2011-10-19  Jim Meyering  <meyering@redhat.com>
6421
6422         posix_openpt: remove spurious #endif
6423         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6424
6425 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6426
6427         maint.mk: Respect $(build_aux) in web-manual rule.
6428         * top/maint.mk (web-manual): Find gen-announce script in user's
6429         $(build_aux) directory instead of hard-coding 'build-aux'.
6430
6431 2011-10-19  Bruno Haible  <bruno@clisp.org>
6432
6433         posix_openpt: Fix compilation error.
6434         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6435         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6436         Mention the openpty module as an alternative.
6437
6438 2011-10-19  Bruno Haible  <bruno@clisp.org>
6439
6440         Support for old NeXTstep 3.3 frexp().
6441         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6442         execution time of the test to 5 seconds.
6443         Reported by Daniel Richard G. <skunk@iskunk.org>.
6444
6445 2011-10-19  Bruno Haible  <bruno@clisp.org>
6446
6447         Support for old NeXTstep 3.3 sed.
6448         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6449         part, use /.../, not \|...|. Escape periods in the header file name.
6450         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6451         Reported by Daniel Richard G. <skunk@iskunk.org>.
6452
6453 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6454
6455         Support for old NeXTstep 3.3 gcc.
6456         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6457         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6458         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6459         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6460         * lib/regex.h (_Restrict_arr_): Likewise.
6461         * lib/regex_internal.h (re_token_t): Likewise.
6462         * lib/regexec.c (check_node_accept_bytes): Likewise.
6463         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6464
6465 2011-10-18  Eric Blake  <eblake@redhat.com>
6466
6467         posix_openpt: new module
6468         * modules/posix_openpt: New module.
6469         * m4/posix_openpt.m4: New file.
6470         * lib/posix_openpt.c: Likewise.
6471         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6472         (gl_STDLIB_H_DEFAULTS): Set defaults.
6473         * modules/stdlib (Makefile.am): Substitute macros.
6474         * lib/stdlib.in.h (posix_openpt): Declare.
6475         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6476         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6477         * modules/posix_openpt-tests: New test module.
6478         * tests/test-posix_openpt.c: New test.
6479
6480 2011-10-15  Bruno Haible  <bruno@clisp.org>
6481
6482         xstrtoll: Fix compilation failure.
6483         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6484         from lib/strtol.c.
6485         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6486         some platforms.
6487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6488
6489 2011-10-15  Bruno Haible  <bruno@clisp.org>
6490
6491         vasnprintf: Optimize bit search operation.
6492         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6494         gl_DOUBLE_EXPONENT_LOCATION.
6495         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6496         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6497         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6498         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6499         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6500         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6501         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6502         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6503         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6504
6505 2011-10-15  Bruno Haible  <bruno@clisp.org>
6506
6507         vasnprintf: Fix comments.
6508         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6509
6510 2011-10-14  Bruno Haible  <bruno@clisp.org>
6511
6512         Tests for module 'integer_length_ll'.
6513         * modules/integer_length_ll-tests: New file.
6514         * tests/test-integer_length_ll.c: New file.
6515
6516         New module 'integer_length_ll'.
6517         * lib/integer_length_ll.c: New file.
6518         * modules/integer_length_ll: New file.
6519
6520 2011-10-14  Bruno Haible  <bruno@clisp.org>
6521
6522         Tests for module 'integer_length_l'.
6523         * modules/integer_length_l-tests: New file.
6524         * tests/test-integer_length_l.c: New file.
6525
6526         New module 'integer_length_l'.
6527         * lib/integer_length_l.c: New file.
6528         * modules/integer_length_l: New file.
6529
6530 2011-10-14  Bruno Haible  <bruno@clisp.org>
6531
6532         Tests for module 'integer_length'.
6533         * modules/integer_length-tests: New file.
6534         * tests/test-integer_length.c: New file.
6535
6536         New module 'integer_length'.
6537         * lib/integer_length.h: New file.
6538         * lib/integer_length.c: New file.
6539         * modules/integer_length: New file.
6540
6541 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6542
6543         popen: Fix dependency conditions.
6544         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6545
6546 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6547
6548         perror: Fix autoconf test.
6549         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6550         <stdlib.h> and <string.h>.
6551
6552 2011-10-14  Bruno Haible  <bruno@clisp.org>
6553
6554         ffsl: Optimize on 64-bit platforms.
6555         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6556         unrolling.
6557
6558 2011-10-13  Bruno Haible  <bruno@clisp.org>
6559
6560         ffsl: Optimize on 32-bit platforms.
6561         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6562         use ffs() without a loop.
6563
6564         ffsl, ffsll: Optimize for GCC.
6565         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6566         * lib/ffsl.c (GCC_BUILTIN): New macro.
6567         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6568
6569 2011-10-13  Bruno Haible  <bruno@clisp.org>
6570
6571         ffs, bcopy, memset: Support symbol renaming via config.h.
6572         * lib/ffs.c: Include <config.h>.
6573         * lib/bcopy.c: Likewise.
6574         * lib/memset.c: Likewise.
6575
6576 2011-10-10  Bruno Haible  <bruno@clisp.org>
6577
6578         atanl: Simplify for platforms where 'long double' == 'double'.
6579         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6580         alternative implementation.
6581         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6582         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6583         * modules/atanl (Depends-on): Add atan. Update conditions.
6584
6585 2011-10-10  Bruno Haible  <bruno@clisp.org>
6586
6587         acosl: Simplify for platforms where 'long double' == 'double'.
6588         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6589         alternative implementation.
6590         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6591         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6592         * modules/acosl (Depends-on): Add acos. Update conditions.
6593
6594 2011-10-10  Bruno Haible  <bruno@clisp.org>
6595
6596         asinl: Simplify for platforms where 'long double' == 'double'.
6597         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6598         alternative implementation.
6599         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6600         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6601         * modules/asinl (Depends-on): Add asin. Update conditions.
6602
6603 2011-10-10  Bruno Haible  <bruno@clisp.org>
6604
6605         tanl: Simplify for platforms where 'long double' == 'double'.
6606         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6607         implementation.
6608         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6609         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6610         * modules/tanl (Depends-on): Add tan. Update conditions.
6611         (configure.ac): Don't compile trigl.c if
6612         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6613
6614 2011-10-10  Bruno Haible  <bruno@clisp.org>
6615
6616         cosl: Simplify for platforms where 'long double' == 'double'.
6617         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6618         implementation.
6619         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6620         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6621         * modules/cosl (Depends-on): Add cos. Update conditions.
6622         (configure.ac): Don't compile sincosl.c and trigl.c if
6623         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6624
6625 2011-10-10  Bruno Haible  <bruno@clisp.org>
6626
6627         sinl: Simplify for platforms where 'long double' == 'double'.
6628         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6629         implementation.
6630         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6631         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6632         * modules/sinl (Depends-on): Add sin. Update conditions.
6633         (configure.ac): Don't compile sincosl.c and trigl.c if
6634         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6635
6636 2011-10-10  Bruno Haible  <bruno@clisp.org>
6637
6638         logl: Simplify for platforms where 'long double' == 'double'.
6639         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6640         implementation.
6641         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6642         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6643         * modules/logl (Depends-on): Add log. Update conditions.
6644
6645 2011-10-10  Bruno Haible  <bruno@clisp.org>
6646
6647         expl: Simplify for platforms where 'long double' == 'double'.
6648         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6649         implementation.
6650         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6651         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6652         * modules/expl (Depends-on): Add exp. Update conditions.
6653
6654 2011-10-10  Bruno Haible  <bruno@clisp.org>
6655
6656         sqrtl: Simplify for platforms where 'long double' == 'double'.
6657         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6658         alternative implementation.
6659         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6660         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6661         * modules/sqrtl (Depends-on): Update conditions.
6662
6663 2011-10-10  Bruno Haible  <bruno@clisp.org>
6664
6665         ldexpl: Simplify for platforms where 'long double' == 'double'.
6666         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6667         alternative implementation.
6668         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6669         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6670         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6671
6672 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6673
6674         ffsll: set correct witness
6675         * modules/ffsll (configure.ac): Fix typo.
6676
6677 2011-10-10  Bruno Haible  <bruno@clisp.org>
6678
6679         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6680         * lib/printf-frexpl.c: Include <config.h>.
6681         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6682         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6683         second time.
6684         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6685         gl_LONG_DOUBLE_VS_DOUBLE.
6686         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6687         conditions.
6688
6689 2011-10-10  Bruno Haible  <bruno@clisp.org>
6690
6691         frexpl: Simplify for platforms where 'long double' == 'double'.
6692         * lib/frexpl.c: Include <config.h>.
6693         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6694         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6695         time.
6696         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6697         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6698         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6699         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6700         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6701         conditions.
6702
6703 2011-10-10  Jim Meyering  <meyering@redhat.com>
6704
6705         test-renameat: don't leave behind a temporary file
6706         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6707           ERROR: files left in build directory after distclean:
6708           ./gltests/test-renameat.too
6709           make[1]: *** [distcleancheck] Error 1
6710         Reported by Tom G. Christensen.
6711
6712 2011-10-09  Bruno Haible  <bruno@clisp.org>
6713
6714         rint: Determine RINT_LIBM correctly on AIX 7.
6715         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6716         directly, not only through a function pointer. Also accept an optional
6717         4th argument with extra code.
6718         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6719         rintf() call by gcc when optimizing.
6720
6721         mathfunc.m4: Refactor.
6722         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6723         m4 variable.
6724
6725 2011-10-09  Bruno Haible  <bruno@clisp.org>
6726
6727         rintl: Simplify for platforms where 'long double' == 'double'.
6728         * lib/rintl.c: Include <config.h>.
6729         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6730         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6731         time.
6732         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6733         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6734         * modules/rintl (Depends-on): Add rint. Update conditions.
6735
6736 2011-10-09  Bruno Haible  <bruno@clisp.org>
6737
6738         roundl: Simplify for platforms where 'long double' == 'double'.
6739         * lib/roundl.c: Include <config.h>.
6740         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6741         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6742         time.
6743         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6744         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6745         * modules/roundl (Depends-on): Add round. Update conditions.
6746
6747 2011-10-09  Bruno Haible  <bruno@clisp.org>
6748
6749         truncl: Simplify for platforms where 'long double' == 'double'.
6750         * lib/truncl.c: Include <config.h>.
6751         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6752         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6753         time.
6754         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6755         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6756         * modules/truncl (Depends-on): Add trunc. Update conditions.
6757
6758 2011-10-09  Bruno Haible  <bruno@clisp.org>
6759
6760         ceill: Simplify for platforms where 'long double' == 'double'.
6761         * lib/ceill.c: Include <config.h>.
6762         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6763         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6764         time.
6765         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6766         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6767         * modules/ceill (Depends-on): Add ceil. Update conditions.
6768
6769 2011-10-09  Bruno Haible  <bruno@clisp.org>
6770
6771         floorl: Simplify for platforms where 'long double' == 'double'.
6772         * lib/floorl.c: Include <config.h>.
6773         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6774         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6775         time.
6776         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6777         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6778         * modules/floorl (Depends-on): Add floor. Update conditions.
6779
6780 2011-10-09  Bruno Haible  <bruno@clisp.org>
6781
6782         rint: Fix ordering constraints.
6783         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6784         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6785         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6786
6787 2011-10-09  Bruno Haible  <bruno@clisp.org>
6788
6789         copysignl: Simplify for platforms where 'long double' == 'double'.
6790         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6791         alternative.
6792         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6793         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6794         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6795
6796 2011-10-09  Bruno Haible  <bruno@clisp.org>
6797
6798         Tests for module 'rintl'.
6799         * modules/rintl-tests: New file.
6800         * tests/test-rintl.c: New file.
6801
6802         New module 'rintl'.
6803         * lib/math.in.h (rintl): New declaration.
6804         * lib/rintl.c: New file.
6805         * m4/rintl.m4: New file.
6806         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6808         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6809         * modules/rintl: New file.
6810         * tests/test-math-c++.cc: Check the declaration of rintl.
6811         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6812         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6813         * doc/posix-functions/rintl.texi: Mention the new module.
6814
6815 2011-10-09  Bruno Haible  <bruno@clisp.org>
6816
6817         Tests for module 'rintf'.
6818         * modules/rintf-tests: New file.
6819         * tests/test-rintf.c: New file.
6820
6821         New module 'rintf'.
6822         * lib/math.in.h (rintf): New declaration.
6823         * lib/rintf.c: New file.
6824         * m4/rintf.m4: New file.
6825         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6827         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6828         * modules/rintf: New file.
6829         * tests/test-math-c++.cc: Check the declaration of rintf.
6830         * doc/posix-functions/rintf.texi: Mention the new module.
6831
6832 2011-10-09  Bruno Haible  <bruno@clisp.org>
6833
6834         rint: Support for MSVC.
6835         * lib/math.in.h (rint): New declaration.
6836         * lib/rint.c: New file.
6837         * m4/rint.m4: New file.
6838         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6840         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6841         * modules/rint (Description): Fix.
6842         (Files): Add lib/rint.c, m4/rint.m4.
6843         (Depends-on): Add math.
6844         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6845         gl_MATH_MODULE_INDICATOR.
6846         * tests/test-math-c++.cc: Check the declaration of rint.
6847         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6848         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6849         * doc/posix-functions/rint.texi: Mention the replacement provided by
6850         the module.
6851
6852         rint tests: More tests.
6853         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6854         minus-zero.h, infinity.h, nan.h.
6855         (main): Skip the test if the current rounding mode is not standard. Add
6856         tests for negative numbers, minus zero, infinity, NaN.
6857         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6858         tests/nan.h.
6859         (Depends-on): Add isnand-nolibm.
6860
6861 2011-10-09  Bruno Haible  <bruno@clisp.org>
6862
6863         Tests for module 'copysignl'.
6864         * modules/copysignl-tests: New file.
6865         * tests/test-copysignl.c: New file.
6866
6867         New module 'copysignl'.
6868         * lib/math.in.h (copysignl): New declaration.
6869         * lib/copysignl.c: New file.
6870         * m4/copysignl.m4: New file.
6871         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6873         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6874         HAVE_COPYSIGNL.
6875         * modules/copysignl: New file.
6876         * tests/test-math-c++.cc: Check the declaration of copysignl.
6877         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6878         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6879         * doc/posix-functions/copysignl.texi: Mention the new module.
6880
6881 2011-10-09  Bruno Haible  <bruno@clisp.org>
6882
6883         Tests for module 'copysignf'.
6884         * modules/copysignf-tests: New file.
6885         * tests/test-copysignf.c: New file.
6886
6887         New module 'copysignf'.
6888         * lib/math.in.h (copysignf): New declaration.
6889         * lib/copysignf.c: New file.
6890         * m4/copysignf.m4: New file.
6891         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6893         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6894         HAVE_COPYSIGNF.
6895         * modules/copysignf: New file.
6896         * tests/test-math-c++.cc: Check the declaration of copysignf.
6897         * doc/posix-functions/copysignf.texi: Mention the new module.
6898
6899 2011-10-09  Bruno Haible  <bruno@clisp.org>
6900
6901         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6902         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6903         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6904         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6905         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6906         gl_SIGNAL_H_DEFAULTS.
6907
6908 2011-10-09  Bruno Haible  <bruno@clisp.org>
6909
6910         poll: Make macro safer.
6911         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6912         ac_cv_header_poll_h is not set.
6913
6914 2011-10-09  Bruno Haible  <bruno@clisp.org>
6915
6916         copysign: Provide replacement.
6917         * lib/math.in.h (copysign): New declaration.
6918         * lib/copysign.c: New file.
6919         * m4/copysign.m4: New file.
6920         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6922         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6923         HAVE_COPYSIGN.
6924         * modules/copysign (Description): Clarify.
6925         (Files): Add lib/copysign.c, m4/copysign.m4.
6926         (Depends-on): Add math, signbit.
6927         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6928         gl_MATH_MODULE_INDICATOR.
6929         * tests/test-math-c++.cc: Check the declaration of copysign.
6930         * doc/posix-functions/copysign.texi: Mention the effects of the module
6931         on Minix and MSVC.
6932
6933 2011-10-09  Bruno Haible  <bruno@clisp.org>
6934
6935         isinf: Ensure macro on AIX 5.1.
6936         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6937         macro.
6938         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6939
6940 2011-10-09  Bruno Haible  <bruno@clisp.org>
6941
6942         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6943         * modules/snprintf-posix-tests (configure.ac): Require
6944         gl_LONG_DOUBLE_VS_DOUBLE.
6945         * modules/sprintf-posix-tests (configure.ac): Likewise.
6946         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6947         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6948         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6949         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6950         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6951         tests on platforms where 'long double' is the same as 'double'.
6952         * tests/test-sprintf-posix.h (test_function): Likewise.
6953         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6954         * tests/test-vasprintf-posix.c (test_function): Likewise.
6955
6956         *printf: Fix for platforms where 'long double' == 'double'.
6957         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6958         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6959         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6960         * modules/fprintf-posix (Files): Likewise.
6961         * modules/obstack-printf-posix (Files): Likewise.
6962         * modules/snprintf-posix (Files): Likewise.
6963         * modules/sprintf-posix (Files): Likewise.
6964         * modules/vasnprintf (Files): Likewise.
6965         * modules/vasnprintf-posix (Files): Likewise.
6966         * modules/vasprintf-posix (Files): Likewise.
6967         * modules/vdprintf-posix (Files): Likewise.
6968         * modules/vfprintf-posix (Files): Likewise.
6969         * modules/vsnprintf-posix (Files): Likewise.
6970         * modules/vsprintf-posix (Files): Likewise.
6971         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6972         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6973         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6974         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6975         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6976         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6977         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6978
6979         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6980         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6981         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6982         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6983         'long double'.
6984         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6985
6986         isinf: Fix for platforms where 'long double' == 'double'.
6987         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6988         Don't blindly assume 80-bit 'long double'.
6989
6990         isfinite: Fix for platforms where 'long double' == 'double'.
6991         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6992         Don't blindly assume 80-bit 'long double'.
6993
6994         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6995         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6996         * modules/isfinite-tests (configure.ac): Require
6997         gl_LONG_DOUBLE_VS_DOUBLE.
6998         * modules/isinf-tests (configure.ac): Likewise.
6999         * modules/isnan-tests (configure.ac): Likewise.
7000         * modules/isnanl-tests (configure.ac): Likewise.
7001         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7002         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7003         tests on platforms where 'long double' is the same as 'double'.
7004         * tests/test-isinf.c (test_isinfl): Likewise.
7005         * tests/test-isnan.c (test_long_double): Likewise.
7006         * tests/test-isnanl.h (main): Likewise.
7007
7008 2011-10-08  Bruno Haible  <bruno@clisp.org>
7009
7010         Tests for module 'tanhf'.
7011         * modules/tanhf-tests: New file.
7012         * tests/test-tanhf.c: New file.
7013
7014         New module 'tanhf'.
7015         * lib/math.in.h (tanhf): New declaration.
7016         * lib/tanhf.c: New file.
7017         * m4/tanhf.m4: New file.
7018         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7020         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7021         * modules/tanhf: New file.
7022         * tests/test-math-c++.cc: Check the declaration of tanhf.
7023         * doc/posix-functions/tanhf.texi: Mention the new module.
7024
7025         tanh: Use a .m4 file.
7026         * m4/tanh.m4: New file.
7027         * modules/tanh (Files): Add it.
7028         (configure.ac): Just invoke gl_FUNC_TANH.
7029
7030 2011-10-08  Bruno Haible  <bruno@clisp.org>
7031
7032         Tests for module 'coshf'.
7033         * modules/coshf-tests: New file.
7034         * tests/test-coshf.c: New file.
7035
7036         New module 'coshf'.
7037         * lib/math.in.h (coshf): New declaration.
7038         * lib/coshf.c: New file.
7039         * m4/coshf.m4: New file.
7040         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7042         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7043         * modules/coshf: New file.
7044         * tests/test-math-c++.cc: Check the declaration of coshf.
7045         * doc/posix-functions/coshf.texi: Mention the new module.
7046
7047         cosh: Use a .m4 file.
7048         * m4/cosh.m4: New file.
7049         * modules/cosh (Files): Add it.
7050         (configure.ac): Just invoke gl_FUNC_COSH.
7051
7052 2011-10-08  Bruno Haible  <bruno@clisp.org>
7053
7054         Tests for module 'sinhf'.
7055         * modules/sinhf-tests: New file.
7056         * tests/test-sinhf.c: New file.
7057
7058         New module 'sinhf'.
7059         * lib/math.in.h (sinhf): New declaration.
7060         * lib/sinhf.c: New file.
7061         * m4/sinhf.m4: New file.
7062         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7064         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7065         * modules/sinhf: New file.
7066         * tests/test-math-c++.cc: Check the declaration of sinhf.
7067         * doc/posix-functions/sinhf.texi: Mention the new module.
7068
7069         sinh: Use a .m4 file.
7070         * m4/sinh.m4: New file.
7071         * modules/sinh (Files): Add it.
7072         (configure.ac): Just invoke gl_FUNC_SINH.
7073
7074 2011-10-08  Bruno Haible  <bruno@clisp.org>
7075
7076         Tests for module 'atan2f'.
7077         * modules/atan2f-tests: New file.
7078         * tests/test-atan2f.c: New file.
7079
7080         New module 'atan2f'.
7081         * lib/math.in.h (atan2f): New declaration.
7082         * lib/atan2f.c: New file.
7083         * m4/atan2f.m4: New file.
7084         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7086         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7087         * modules/atan2f: New file.
7088         * tests/test-math-c++.cc: Check the declaration of atan2f.
7089         * doc/posix-functions/atan2f.texi: Mention the new module.
7090
7091         atan2: Use a .m4 file.
7092         * m4/atan2.m4: New file.
7093         * modules/atan2 (Files): Add it.
7094         (configure.ac): Just invoke gl_FUNC_ATAN2.
7095
7096 2011-10-08  Bruno Haible  <bruno@clisp.org>
7097
7098         Tests for module 'atanf'.
7099         * modules/atanf-tests: New file.
7100         * tests/test-atanf.c: New file.
7101
7102         New module 'atanf'.
7103         * lib/math.in.h (atanf): New declaration.
7104         * lib/atanf.c: New file.
7105         * m4/atanf.m4: New file.
7106         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7108         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7109         * modules/atanf: New file.
7110         * tests/test-math-c++.cc: Check the declaration of atanf.
7111         * doc/posix-functions/atanf.texi: Mention the new module.
7112
7113         atan: Use a .m4 file.
7114         * m4/atan.m4: New file.
7115         * modules/atan (Files): Add it.
7116         (configure.ac): Just invoke gl_FUNC_ATAN.
7117
7118 2011-10-08  Bruno Haible  <bruno@clisp.org>
7119
7120         Tests for module 'acosf'.
7121         * modules/acosf-tests: New file.
7122         * tests/test-acosf.c: New file.
7123
7124         New module 'acosf'.
7125         * lib/math.in.h (acosf): New declaration.
7126         * lib/acosf.c: New file.
7127         * m4/acosf.m4: New file.
7128         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7130         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7131         * modules/acosf: New file.
7132         * tests/test-math-c++.cc: Check the declaration of acosf.
7133         * doc/posix-functions/acosf.texi: Mention the new module.
7134
7135         acos: Use a .m4 file.
7136         * m4/acos.m4: New file.
7137         * modules/acos (Files): Add it.
7138         (configure.ac): Just invoke gl_FUNC_ACOS.
7139
7140 2011-10-08  Bruno Haible  <bruno@clisp.org>
7141
7142         Tests for module 'asinf'.
7143         * modules/asinf-tests: New file.
7144         * tests/test-asinf.c: New file.
7145
7146         New module 'asinf'.
7147         * lib/math.in.h (asinf): New declaration.
7148         * lib/asinf.c: New file.
7149         * m4/asinf.m4: New file.
7150         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7152         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7153         * modules/asinf: New file.
7154         * tests/test-math-c++.cc: Check the declaration of asinf.
7155         * doc/posix-functions/asinf.texi: Mention the new module.
7156
7157         asin: Use a .m4 file.
7158         * m4/asin.m4: New file.
7159         * modules/asin (Files): Add it.
7160         (configure.ac): Just invoke gl_FUNC_ASIN.
7161
7162 2011-10-08  Bruno Haible  <bruno@clisp.org>
7163
7164         Tests for module 'tanf'.
7165         * modules/tanf-tests: New file.
7166         * tests/test-tanf.c: New file.
7167
7168         New module 'tanf'.
7169         * lib/math.in.h (tanf): New declaration.
7170         * lib/tanf.c: New file.
7171         * m4/tanf.m4: New file.
7172         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7174         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7175         * modules/tanf: New file.
7176         * tests/test-math-c++.cc: Check the declaration of tanf.
7177         * doc/posix-functions/tanf.texi: Mention the new module.
7178
7179         tan: Use a .m4 file.
7180         * m4/tan.m4: New file.
7181         * modules/tan (Files): Add it.
7182         (configure.ac): Just invoke gl_FUNC_TAN.
7183
7184 2011-10-08  Bruno Haible  <bruno@clisp.org>
7185
7186         Tests for module 'cosf'.
7187         * modules/cosf-tests: New file.
7188         * tests/test-cosf.c: New file.
7189
7190         New module 'cosf'.
7191         * lib/math.in.h (cosf): New declaration.
7192         * lib/cosf.c: New file.
7193         * m4/cosf.m4: New file.
7194         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7196         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7197         * modules/cosf: New file.
7198         * tests/test-math-c++.cc: Check the declaration of cosf.
7199         * doc/posix-functions/cosf.texi: Mention the new module.
7200
7201         cos: Use a .m4 file.
7202         * m4/cos.m4: New file.
7203         * modules/cos (Files): Add it.
7204         (configure.ac): Just invoke gl_FUNC_COS.
7205
7206 2011-10-08  Bruno Haible  <bruno@clisp.org>
7207
7208         Tests for module 'sinf'.
7209         * modules/sinf-tests: New file.
7210         * tests/test-sinf.c: New file.
7211
7212         New module 'sinf'.
7213         * lib/math.in.h (sinf): New declaration.
7214         * lib/sinf.c: New file.
7215         * m4/sinf.m4: New file.
7216         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7218         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7219         * modules/sinf: New file.
7220         * tests/test-math-c++.cc: Check the declaration of sinf.
7221         * doc/posix-functions/sinf.texi: Mention the new module.
7222
7223         sin: Use a .m4 file.
7224         * m4/sin.m4: New file.
7225         * modules/sin (Files): Add it.
7226         (configure.ac): Just invoke gl_FUNC_SIN.
7227
7228 2011-10-08  Bruno Haible  <bruno@clisp.org>
7229
7230         Tests for module 'powf'.
7231         * modules/powf-tests: New file.
7232         * tests/test-powf.c: New file.
7233
7234         New module 'powf'.
7235         * lib/math.in.h (powf): New declaration.
7236         * lib/powf.c: New file.
7237         * m4/powf.m4: New file.
7238         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7240         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7241         * modules/powf: New file.
7242         * tests/test-math-c++.cc: Check the declaration of powf.
7243         * doc/posix-functions/powf.texi: Mention the new module.
7244
7245         pow: Use a .m4 file.
7246         * m4/pow.m4: New file.
7247         * modules/pow (Files): Add it.
7248         (configure.ac): Just invoke gl_FUNC_POW.
7249
7250 2011-10-08  Bruno Haible  <bruno@clisp.org>
7251
7252         Tests for module 'log10f'.
7253         * modules/log10f-tests: New file.
7254         * tests/test-log10f.c: New file.
7255
7256         New module 'log10f'.
7257         * lib/math.in.h (log10f): New declaration.
7258         * lib/log10f.c: New file.
7259         * m4/log10f.m4: New file.
7260         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7262         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7263         * modules/log10f: New file.
7264         * tests/test-math-c++.cc: Check the declaration of log10f.
7265         * doc/posix-functions/log10f.texi: Mention the new module.
7266
7267         log10: Use a .m4 file.
7268         * m4/log10.m4: New file.
7269         * modules/log10 (Files): Add it.
7270         (configure.ac): Just invoke gl_FUNC_LOG10.
7271
7272 2011-10-08  Bruno Haible  <bruno@clisp.org>
7273
7274         Tests for module 'logf'.
7275         * modules/logf-tests: New file.
7276         * tests/test-logf.c: New file.
7277
7278         New module 'logf'.
7279         * lib/math.in.h (logf): New declaration.
7280         * lib/logf.c: New file.
7281         * m4/logf.m4: New file.
7282         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7284         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7285         * modules/logf: New file.
7286         * tests/test-math-c++.cc: Check the declaration of logf.
7287         * doc/posix-functions/logf.texi: Mention the new module.
7288
7289         log: Use a .m4 file.
7290         * m4/log.m4: New file.
7291         * modules/log (Files): Add it.
7292         (configure.ac): Just invoke gl_FUNC_LOG.
7293
7294 2011-10-08  Bruno Haible  <bruno@clisp.org>
7295
7296         Tests for module 'expf'.
7297         * modules/expf-tests: New file.
7298         * tests/test-expf.c: New file.
7299
7300         New module 'expf'.
7301         * lib/math.in.h (expf): New declaration.
7302         * lib/expf.c: New file.
7303         * m4/expf.m4: New file.
7304         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7306         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7307         * modules/expf: New file.
7308         * tests/test-math-c++.cc: Check the declaration of expf.
7309         * doc/posix-functions/expf.texi: Mention the new module.
7310
7311         exp: Use a .m4 file.
7312         * m4/exp.m4: New file.
7313         * modules/exp (Files): Add it.
7314         (configure.ac): Just invoke gl_FUNC_EXP.
7315
7316 2011-10-08  Bruno Haible  <bruno@clisp.org>
7317
7318         Tests for module 'sqrtf'.
7319         * modules/sqrtf-tests: New file.
7320         * tests/test-sqrtf.c: New file.
7321
7322         New module 'sqrtf'.
7323         * lib/math.in.h (sqrtf): New declaration.
7324         * lib/sqrtf.c: New file.
7325         * m4/sqrtf.m4: New file.
7326         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7328         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7329         * modules/sqrtf: New file.
7330         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7331         * doc/posix-functions/sqrtf.texi: Mention the new module.
7332
7333 2011-10-08  Bruno Haible  <bruno@clisp.org>
7334
7335         Tests: Avoid link failures w.r.t. libintl.
7336         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7337         $(LIBINTL).
7338         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7339         $(LIBINTL).
7340         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7341         against $(LIBINTL).
7342         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7343         $(LIBINTL).
7344         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7345         $(LIBINTL).
7346         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7347
7348 2011-10-08  Bruno Haible  <bruno@clisp.org>
7349
7350         pow tests: Defeat compiler optimizations.
7351         * tests/test-pow.c (main): Assign arguments to x and y before use.
7352
7353 2011-10-08  Bruno Haible  <bruno@clisp.org>
7354
7355         gnulib-tool: Improve last commit.
7356         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7357         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7358         ignore dependencies that are not among the modules list.
7359
7360 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7361
7362         gnulib-tool: don't follow dependencies to avoided modules
7363         This fixes a bug that is related to the previous one.
7364         * gnulib-tool (func_modules_transitive_closure)
7365         (func_emit_autoconf_snippets):
7366         Check whether a dependency is acceptable before using it.
7367         (--extract-dependencies): Report an error if --avoid is also used,
7368         since this combination of options is not yet supported.
7369
7370         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7371         Problem reported by Peter Dyballa in
7372         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7373         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7374         when echoing "$condition".
7375
7376 2011-10-07  Bruno Haible  <bruno@clisp.org>
7377
7378         Fix documentation about math functions on MacOS X.
7379         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7380         MacOS X 10.5.
7381         * doc/posix-functions/fdim.texi: Likewise.
7382         * doc/posix-functions/feclearexcept.texi: Likewise.
7383         * doc/posix-functions/fegetenv.texi: Likewise.
7384         * doc/posix-functions/fegetround.texi: Likewise.
7385         * doc/posix-functions/feholdexcept.texi: Likewise.
7386         * doc/posix-functions/feraiseexcept.texi: Likewise.
7387         * doc/posix-functions/fesetenv.texi: Likewise.
7388         * doc/posix-functions/fesetround.texi: Likewise.
7389         * doc/posix-functions/fetestexcept.texi: Likewise.
7390         * doc/posix-functions/feupdateenv.texi: Likewise.
7391         * doc/posix-functions/fmax.texi: Likewise.
7392         * doc/posix-functions/fmin.texi: Likewise.
7393         * doc/posix-functions/log2.texi: Likewise.
7394         * doc/posix-functions/modff.texi: Likewise.
7395         * doc/posix-functions/nan.texi: Likewise.
7396         * doc/posix-functions/nanf.texi: Likewise.
7397         * doc/posix-functions/nextafterf.texi: Likewise.
7398         * doc/posix-functions/remquo.texi: Likewise.
7399
7400 2011-10-07  Bruno Haible  <bruno@clisp.org>
7401
7402         modff: Drop assumption about library that defines modff.
7403         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7404         AC_CHECK_FUNCS.
7405         * modules/modff (Files): Add m4/mathfunc.m4.
7406
7407 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7408
7409         raise tests: Avoid a GCC warning.
7410         * tests/test-raise.c (handler): Use _Noreturn.
7411
7412 2011-10-07  Bruno Haible  <bruno@clisp.org>
7413
7414         Tests for module 'ldexpf'.
7415         * modules/ldexpf-tests: New file.
7416         * tests/test-ldexpf.c: New file.
7417
7418         New module 'ldexpf'.
7419         * lib/math.in.h (ldexpf): New declaration.
7420         * lib/ldexpf.c: New file.
7421         * m4/ldexpf.m4: New file.
7422         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7424         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7425         * modules/ldexpf: New file.
7426         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7427         * doc/posix-functions/ldexpf.texi: Mention the new module.
7428
7429 2011-10-06  Bruno Haible  <bruno@clisp.org>
7430
7431         frexpf: Work around problems on IRIX and mingw.
7432         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7434         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7435         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7436         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7437         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7438         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7439
7440 2011-10-06  Bruno Haible  <bruno@clisp.org>
7441
7442         fabsf: Drop assumption about library that defines fabsf.
7443         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7444         AC_CHECK_FUNCS.
7445         * modules/fabsf (Files): Add m4/mathfunc.m4.
7446
7447 2011-10-06  Bruno Haible  <bruno@clisp.org>
7448
7449         frexpf: Drop assumption about library that defines frexpf.
7450         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7451         'int *', 'float *', 'long double *', 'float', 'long double'.
7452         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7453         AC_CHECK_FUNCS.
7454         * modules/frexpf (Files): Add m4/mathfunc.m4.
7455
7456         Tests for module 'frexpf'.
7457         * modules/frexpf-tests: New file.
7458         * tests/test-frexpf.c: New file.
7459
7460         New module 'frexpf'.
7461         * lib/math.in.h (frexpf): New declaration.
7462         * lib/frexpf.c: New file.
7463         * m4/frexpf.m4: New file.
7464         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7466         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7467         * modules/frexpf: New file.
7468         * tests/test-math-c++.cc: Check the declaration of frexpf.
7469         * doc/posix-functions/frexpf.texi: Mention the new module.
7470
7471 2011-10-06  Bruno Haible  <bruno@clisp.org>
7472
7473         math: Sort function declarations of math.in.h.
7474         * lib/math.in.h (frexp, logb): Move declarations.
7475
7476 2011-10-05  Bruno Haible  <bruno@clisp.org>
7477
7478         Tests for module 'modff'.
7479         * modules/modff-tests: New file.
7480         * tests/test-modff.c: New file.
7481
7482         New module 'modff'.
7483         * lib/math.in.h (modff): New declaration.
7484         * lib/modff.c: New file.
7485         * m4/modff.m4: New file.
7486         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7488         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7489         * modules/modff: New file.
7490         * tests/test-math-c++.cc: Check the declaration of modff.
7491         * doc/posix-functions/modff.texi: Mention the new module.
7492
7493         modf tests: Make test sharper.
7494         * tests/test-modf.c (main): Strengthen upper bound.
7495
7496         modf: Use a .m4 file.
7497         * m4/modf.m4: New file.
7498         * modules/modf (Files): Add it.
7499         (configure.ac): Just invoke gl_FUNC_MODF.
7500
7501 2011-10-05  Bruno Haible  <bruno@clisp.org>
7502
7503         Tests for module 'fmodf'.
7504         * modules/fmodf-tests: New file.
7505         * tests/test-fmodf.c: New file.
7506
7507         New module 'fmodf'.
7508         * lib/math.in.h (fmodf): New declaration.
7509         * lib/fmodf.c: New file.
7510         * m4/fmodf.m4: New file.
7511         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7513         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7514         * modules/fmodf: New file.
7515         * tests/test-math-c++.cc: Check the declaration of fmodf.
7516         * doc/posix-functions/fmodf.texi: Mention the new module.
7517
7518         fmod: Use a .m4 file.
7519         * m4/fmod.m4: New file.
7520         * modules/fmod (Files): Add it.
7521         (configure.ac): Just invoke gl_FUNC_FMOD.
7522
7523 2011-10-05  Bruno Haible  <bruno@clisp.org>
7524
7525         Tests for module 'fabsf'.
7526         * modules/fabsf-tests: New file.
7527         * tests/test-fabsf.c: New file.
7528
7529         New module 'fabsf'.
7530         * lib/math.in.h (fabsf): New declaration.
7531         * lib/fabsf.c: New file.
7532         * m4/fabsf.m4: New file.
7533         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7535         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7536         * modules/fabsf: New file.
7537         * tests/test-math-c++.cc: Check the declaration of fabsf.
7538         * doc/posix-functions/fabsf.texi: Mention the new module.
7539
7540         fabs: Use a .m4 file.
7541         * m4/fabs.m4: New file.
7542         * modules/fabs (Files): Add it.
7543         (configure.ac): Just invoke gl_FUNC_FABS.
7544
7545 2011-10-05  Jim Meyering  <meyering@redhat.com>
7546
7547         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7548         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7549         ls -lL regression introduced in coreutils-8.12, it does so at the
7550         cost of an additional stat call in the common case.  Besides, now
7551         that the kernel change that prompted commit 95f7c57f has been reverted
7552         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7553         we have no use for commit 95f7c57f, "file-has-acl: use
7554         acl_extended_file_nofollow if available".
7555
7556 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7557
7558         file-has-acl: revert unintended change in behavior of ls -L
7559         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7560         derived from...
7561         (file_has_acl): ...code here.  Call it.
7562         This problem was introduced with 2011-07-22 commit 95f7c57f,
7563         "file-has-acl: use acl_extended_file_nofollow if available".
7564         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7565
7566 2011-10-03  Bruno Haible  <bruno@clisp.org>
7567
7568         poll: Avoid link errors on MSVC.
7569         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7570         * modules/poll (Depends-on): Add sockets.
7571         (Link): New section.
7572         * NEWS: Mention the change.
7573         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7574         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7575         $(LIB_POLL) instead of $(LIBSOCKET).
7576
7577 2011-10-03  Bruno Haible  <bruno@clisp.org>
7578
7579         sys_select tests: Fix link error on MSVC 9.
7580         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7581         with $(LIB_SELECT) instead of $(LIBSOCKET).
7582
7583 2011-10-03  Bruno Haible  <bruno@clisp.org>
7584
7585         sys_select: Fix compilation error on mingw.
7586         * lib/sys_select.in.h: On native Windows, include <io.h>.
7587
7588 2011-10-03  Bruno Haible  <bruno@clisp.org>
7589
7590         wmemset: Support for MSVC.
7591         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7592         whether wmemset() exists.
7593
7594 2011-10-03  Bruno Haible  <bruno@clisp.org>
7595
7596         wmemmove: Support for MSVC.
7597         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7598         whether wmemmove() exists.
7599
7600 2011-10-03  Bruno Haible  <bruno@clisp.org>
7601
7602         wmemcpy: Support for MSVC.
7603         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7604         whether wmemcpy() exists.
7605
7606 2011-10-03  Bruno Haible  <bruno@clisp.org>
7607
7608         wmemcmp: Support for MSVC.
7609         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7610         whether wmemcmp() exists.
7611
7612 2011-10-03  Bruno Haible  <bruno@clisp.org>
7613
7614         wmemchr: Support for MSVC.
7615         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7616         whether wmemchr() exists.
7617
7618 2011-10-03  Bruno Haible  <bruno@clisp.org>
7619
7620         glthread/*, strsignal: Support for MSVC.
7621         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7622         including <winsock.h> on MSVC 9.
7623         * lib/glthread/lock.h: Likewise.
7624         * lib/glthread/thread.h: Likewise.
7625         * lib/glthread/tls.h: Likewise.
7626         * lib/glthread/yield.h: Likewise.
7627         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7628         if HAVE_UNISTD_H is false.
7629         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7630
7631 2011-10-03  Bruno Haible  <bruno@clisp.org>
7632
7633         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7634         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7635         Set to 100000.
7636
7637 2011-10-03  Bruno Haible  <bruno@clisp.org>
7638
7639         acl: Fix specification.
7640         * lib/file-has-acl.c (file_has_acl): Fix specification.
7641
7642 2011-10-03  Bruno Haible  <bruno@clisp.org>
7643
7644         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7645         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7646         (compute_curr_prefix, shared_library_fullname,
7647         find_shared_library_fullname, get_shared_library_fullname, relocate):
7648         Use it together with PIC && INSTALLDIR.
7649         Reported by <jojelino@gmail.com>
7650         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7651
7652 2011-10-01  Jim Meyering  <meyering@redhat.com>
7653
7654         maint.mk: adjust a release-related rule not to require use of gzip
7655         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7656         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7657         projects that build only .tar.xz files.  Also fix an erroneous test.
7658
7659         test-linkat: don't leave behind a temporary file
7660         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7661         Otherwise, coreutils' "make distcheck" would fail with this:
7662           Only in /c/cu/tests/torture/coreutils/test/\
7663             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7664           make[2]: *** [my-distcheck] Error 1
7665
7666         float, math: add omitted file
7667         * lib/itold.c: Add file, required for yesterday's float change.
7668
7669 2011-10-01  Bruno Haible  <bruno@clisp.org>
7670
7671         isinf: Fix for OpenBSD/x86.
7672         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7673         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7674         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7675
7676 2011-10-01  Bruno Haible  <bruno@clisp.org>
7677
7678         isfinite: Fix syntax error in configure test.
7679         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7680
7681         isfinite: Fix typo.
7682         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7683         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7684
7685 2011-10-01  Bruno Haible  <bruno@clisp.org>
7686
7687         nonblocking tests: Fix test failure on Linux/IA-64.
7688         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7689         Set to 270000.
7690
7691 2011-10-01  Bruno Haible  <bruno@clisp.org>
7692
7693         mkfifoat tests: Fix a test failure on mingw.
7694         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7695         with error ENOSYS.
7696
7697 2011-09-30  Bruno Haible  <bruno@clisp.org>
7698
7699         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7700         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7701         'long double'. Set REPLACE_ITOLD.
7702         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7703         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7704         * lib/itold.c: New file.
7705         * modules/float (Files): Add lib/itold.c.
7706         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7707         (Makefile.am): Substitute REPLACE_ITOLD.
7708         * modules/math (Depends-on): Add float.
7709         (Makefile.am): Substitute REPLACE_ITOLD.
7710         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7711         * doc/posix-headers/math.texi: Likewise.
7712         * doc/posix-functions/logl.texi: Likewise.
7713
7714 2011-09-30  Bruno Haible  <bruno@clisp.org>
7715
7716         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7717         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7718         Set to 140000.
7719
7720 2011-09-30  Bruno Haible  <bruno@clisp.org>
7721
7722         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7723         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7724         invocation, say "right after AC_PROG_CC_STDC", not "right after
7725         AC_PROG_CC".
7726         Reported by Gary V. Vaughan <gary@gnu.org>.
7727
7728 2011-09-30  Bruno Haible  <bruno@clisp.org>
7729
7730         Centralize C99 requirement.
7731         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7732         * modules/stdarg (configure.ac-early): Invoke it instead of
7733         AC_PROG_CC_STDC.
7734         Reported by Gary V. Vaughan and Paul Eggert.
7735
7736 2011-09-29  Bruno Haible  <bruno@clisp.org>
7737
7738         float: Fix LDBL_MAX value on Linux/PowerPC.
7739         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7740         on Linux/PowerPC.
7741         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7742         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7743         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7744         platform.
7745         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7746
7747 2011-09-29  Bruno Haible  <bruno@clisp.org>
7748
7749         doc: Improve doc about gl_EARLY.
7750         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7751         AC_PROG_CC_STDC invocation.
7752         Reported by Gary V. Vaughan <gary@gnu.org>.
7753
7754 2011-09-28  Bruno Haible  <bruno@clisp.org>
7755
7756         fgetc, fputc, fread, fwrite tests: Fix link error.
7757         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7758         on non-MSVC platforms.
7759         * tests/test-fputc.c (main): Likewise.
7760         * tests/test-fread.c (main): Likewise.
7761         * tests/test-fwrite.c (main): Likewise.
7762         Reported by Jim Meyering.
7763
7764 2011-09-27  Bruno Haible  <bruno@clisp.org>
7765
7766         fputc, fwrite tests: Avoid test failure on MSVC.
7767         * tests/test-fgetc.c: Include msvc-inval.h.
7768         (main): Invoke gl_msvc_inval_ensure_handler.
7769         * tests/test-fputc.c: Include msvc-inval.h.
7770         (main): Invoke gl_msvc_inval_ensure_handler.
7771         * tests/test-fread.c: Include msvc-inval.h.
7772         (main): Invoke gl_msvc_inval_ensure_handler.
7773         * tests/test-fwrite.c: Include msvc-inval.h.
7774         (main): Invoke gl_msvc_inval_ensure_handler.
7775         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7776         * modules/fputc-tests (Depends-on): Likewise.
7777         * modules/fread-tests (Depends-on): Likewise.
7778         * modules/fwrite-tests (Depends-on): Likewise.
7779
7780 2011-09-27  Bruno Haible  <bruno@clisp.org>
7781
7782         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7783         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7784         (raise): Remove older, duplicated declaration.
7785         (_gl_raise_SIGPIPE): New declaration.
7786         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7787         (rpl_raise): Remove function.
7788         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7789         a gnulib-defined SIGPIPE here.
7790         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7791         'sigprocmask' has detected missing signal-blocking and the module
7792         'sigpipe' is enabled.
7793         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7794
7795 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7796
7797         base64-tests: avoid memory leak
7798         * tests/test-base64.c (main): Plug memory leak.
7799
7800         base32: new module
7801         * modules/base32: New module.
7802         * lib/base32.c: New file.
7803         * lib/base32.h: Likewise.
7804         * m4/base32.m4: Likewise.
7805         * modules/base32-tests: New test.
7806         * tests/test-base32.c: Likewise.
7807         * MODULES.html.sh (Misc): Mention it.
7808
7809 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7810
7811         gnulib: use more-standard license notice wording
7812         * gnulib-tool (func_emit_copyright_notice): When emitting a
7813         license notice into a file, use the standard wording as suggested
7814         by the current information for GNU maintainers, except say "file"
7815         rather than "program".  The new wording gives a license version
7816         number, which addresses an issue raised by Glenn Morris in
7817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7818         * m4/onceonly.m4: Use that same wording here, too.
7819
7820         dup2: minor simplification
7821         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7822         as lib/dup2.c no longer uses 'inline'.
7823
7824 2011-09-25  Bruno Haible  <bruno@clisp.org>
7825
7826         strings: Fix compilation error on MSVC.
7827         * lib/strings.in.h: Include <stddef.h> for size_t.
7828
7829 2011-09-25  Bruno Haible  <bruno@clisp.org>
7830
7831         fflush et al.: Document limitation on MSVC.
7832         * doc/posix-functions/fflush.texi: Document possible crash in handling
7833         mode other than DEFAULT_HANDLING.
7834         * doc/posix-functions/fgetc.texi: Likewise.
7835         * doc/posix-functions/fputc.texi: Likewise.
7836         * doc/posix-functions/fread.texi: Likewise.
7837         * doc/posix-functions/fwrite.texi: Likewise.
7838
7839 2011-09-25  Bruno Haible  <bruno@clisp.org>
7840
7841         msvc-inval: Allow three invalid parameter handling modes.
7842         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7843         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7844         macros.
7845         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7846         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7847         SANE_LIBRARY_HANDLING as a no-op.
7848         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7849         <stdlib.h>.
7850         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7851
7852 2011-09-25  Bruno Haible  <bruno@clisp.org>
7853
7854         msvc-inval: Make handler multithread-safe.
7855         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7856         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7857         declarations.
7858         (gl_msvc_inval_current): New declaration.
7859         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7860         Operate on the structure returned by gl_msvc_inval_current().
7861         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7862         Remove varaiables.
7863         (tls_index, tls_initialized): New variables.
7864         (not_per_thread): New variable.
7865         (gl_msvc_inval_current): New function.
7866         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7867         returned by gl_msvc_inval_current().
7868
7869 2011-09-25  Bruno Haible  <bruno@clisp.org>
7870
7871         msvc-inval: Install handler globally.
7872         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7873         !_MSC_VER.
7874         (gl_msvc_invalid_parameter_handler): Remove declaration.
7875         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7876         declarations.
7877         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7878         Install the handler globally, don't uninstall it.
7879         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7880         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7881         currently valid, call RaiseException instead.
7882         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7883         for !_MSC_VER.
7884
7885 2011-09-25  Bruno Haible  <bruno@clisp.org>
7886
7887         strerror_r-posix: Fix for MSVC 9.
7888         * lib/strerror_r.c (local_snprintf): New function.
7889         (snprintf): Define to local_snprintf, not to _snprintf.
7890
7891 2011-09-25  Bruno Haible  <bruno@clisp.org>
7892
7893         ftruncate: Support for MSVC 9.
7894         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7895         (chsize_nothrow): New function.
7896         (chsize): Redefine as a macro.
7897         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7898         * modules/ftruncate (Depends-on): Add msvc-inval.
7899
7900 2011-09-25  Bruno Haible  <bruno@clisp.org>
7901
7902         New module 'fstat'.
7903         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7904         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7905         * lib/fchdir.c (rpl_fstat): Remove function.
7906         * m4/fstat.m4: New file.
7907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7908         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7909         declared.
7910         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7911         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7912         * modules/fstat: New file.
7913         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7914         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7915         is set.
7916         * doc/posix-functions/fstat.texi: Mention the new module and the
7917         problem on MSVC.
7918         * NEWS: Mention the change.
7919         * modules/acl (Depends-on): Add fstat.
7920         * modules/chdir-safer (Depends-on): Likewise.
7921         * modules/chown (Depends-on): Likewise.
7922         * modules/copy-file (Depends-on): Likewise.
7923         * modules/fchdir (Depends-on): Likewise.
7924         * modules/fdopendir (Depends-on): Likewise.
7925         * modules/fopen (Depends-on): Likewise.
7926         * modules/fts (Depends-on): Likewise.
7927         * modules/getcwd (Depends-on): Likewise.
7928         * modules/isapipe (Depends-on): Likewise.
7929         * modules/linkat (Depends-on): Likewise.
7930         * modules/lseek (Depends-on): Likewise.
7931         * modules/mkdir-p (Depends-on): Likewise.
7932         * modules/open (Depends-on): Likewise.
7933         * modules/openat (Depends-on): Likewise.
7934         * modules/read-file (Depends-on): Likewise.
7935         * modules/renameat (Depends-on): Likewise.
7936         * modules/utimens (Depends-on): Likewise.
7937
7938 2011-09-25  Bruno Haible  <bruno@clisp.org>
7939
7940         linkat: Fix compilation on MSVC 9.
7941         * lib/linkat.c: Don't include <stdint.h>.
7942
7943 2011-09-25  Bruno Haible  <bruno@clisp.org>
7944
7945         fclose: Support for MSVC 9.
7946         * lib/fclose.c: Include msvc-inval.h.
7947         (fclose_nothrow): New function.
7948         (rpl_fclose): Use it.
7949         * modules/fclose (Depends-on): Add msvc-inval.
7950         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7951
7952 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7953
7954         dup2: minor simplifications
7955         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7956         that it's a performance win.
7957         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7958         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7959
7960 2011-09-24  Jim Meyering  <meyering@redhat.com>
7961
7962         test-futimens: avoid a warning from gcc -Wshadow
7963         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7964         to avoid a shadowing warning.
7965
7966 2011-09-24  Bruno Haible  <bruno@clisp.org>
7967
7968         fdopen: Support for MSVC 9.
7969         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7970         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7971         * lib/fdopen.c: Include msvc-inval.h.
7972         (fdopen_nothrow): New function.
7973         (rpl_fdopen): Use it.
7974         * modules/fdopen (Depends-on): Add msvc-inval.
7975         * modules/fclose-tests (Depends-on): Add fdopen.
7976         * modules/fflush-tests (Depends-on): Likewise.
7977         * modules/fgetc-tests (Depends-on): Likewise.
7978         * modules/fputc-tests (Depends-on): Likewise.
7979         * modules/fread-tests (Depends-on): Likewise.
7980         * modules/freopen-tests (Depends-on): Likewise.
7981         * modules/fseeko-tests (Depends-on): Likewise.
7982         * modules/ftello-tests (Depends-on): Likewise.
7983         * modules/fwrite-tests  (Depends-on): Likewise.
7984         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7985
7986 2011-09-24  Bruno Haible  <bruno@clisp.org>
7987
7988         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7989         * modules/fgetc-tests (Depends-on): Add unistd.
7990         * modules/fputc-tests (Depends-on): Likewise.
7991         * modules/fread-tests (Depends-on): Likewise.
7992         * modules/fwrite-tests (Depends-on): Likewise.
7993
7994 2011-09-24  Bruno Haible  <bruno@clisp.org>
7995
7996         dup: Simplify autoconf test.
7997         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7998         on gl_MSVC_INVAL's result.
7999
8000 2011-09-24  Bruno Haible  <bruno@clisp.org>
8001
8002         Tests for function fwrite().
8003         * modules/fwrite-tests: New file.
8004         * tests/test-fwrite.c: New file.
8005         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8006
8007         Tests for function fread().
8008         * modules/fread-tests: New file.
8009         * tests/test-fread.c: New file.
8010         * modules/stdio-tests (Depends-on): Add fread-tests.
8011
8012         Activate fputc tests.
8013         * modules/stdio-tests (Depends-on): Add fputc-tests.
8014
8015         Enhance fgetc, fputc tests.
8016         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8017         * tests/test-fputc.c (main): Likewise.
8018
8019 2011-09-24  Bruno Haible  <bruno@clisp.org>
8020
8021         write: Support for MSVC 9.
8022         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8023         is not 1.
8024         * lib/write.c (write_nothrow): New function.
8025         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8026         not 1. Use write_nothrow.
8027         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8028         invalid parameter handler.
8029         (gl_PREREQ_WRITE): New macro.
8030         * modules/write (Depends-on): Add msvc-inval.
8031         (configure.ac): Invoke gl_PREREQ_WRITE.
8032         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8033
8034 2011-09-24  Bruno Haible  <bruno@clisp.org>
8035
8036         read: Fix last commit.
8037         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8038
8039 2011-09-24  Bruno Haible  <bruno@clisp.org>
8040
8041         dup2: Fix last commit.
8042         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8043         (rpl_dup2): Disable fcntl workaround on native Windows.
8044
8045         sigprocmask: Make code safer.
8046         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8047         section that changes macro definitions for this compilation unit.
8048
8049 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8050
8051         dup2: clarify by coalescing Windows-specific material
8052         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8053         "msvc-nothrow.h"' to the Windows-specific section, so that the
8054         Emacs source need not contain these include files.
8055         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8056         Windows-specific fixes into this function rather than just the
8057         nothrow fix, as this shortens and clarifies the code.  Always
8058         define as a function, as that's a bit cleaner than having it be
8059         sometimes a function and sometimes a macro.
8060         (rpl_dup2): Move the Windows-specific stuff out of here and into
8061         ms_windows_dup2.  Don't protect the Haiku-related fix with
8062         "#if !defined __linux__", as the same code also works around
8063         a Linux kernel bug, and it doesn't add any system calls on any
8064         platform.  Add comment about FreeBSD 6.1.
8065
8066         sigprocmask: move #include directive
8067         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8068         Windows-specific section, so that the Emacs source need not
8069         contain msvc-inval.h.
8070
8071 2011-09-23  Bruno Haible  <bruno@clisp.org>
8072
8073         read: Support for MSVC 9.
8074         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8075         is not 1.
8076         * lib/read.c (read_nothrow): New function.
8077         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8078         read_nothrow.
8079         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8080         invalid parameter handler.
8081         (gl_PREREQ_READ): New macro.
8082         * modules/read (Depends-on): Add msvc-inval.
8083         (configure.ac): Invoke gl_PREREQ_READ.
8084         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8085
8086 2011-09-23  Bruno Haible  <bruno@clisp.org>
8087
8088         close: Support for MSVC 9.
8089         * lib/close.c: Include <errno.h>, msvc-inval.h.
8090         (close_nothrow): New function.
8091         (rpl_close): Use it.
8092         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8093         invalid parameter handler.
8094         * modules/close (Depends-on): Add msvc-inval.
8095         * modules/dup2-tests (Depends-on): Add close.
8096         * modules/dup3-tests (Depends-on): Likewise.
8097         * modules/fcntl-tests (Depends-on): Likewise.
8098         * modules/spawn-pipe-tests (Depends-on): Likewise.
8099         * modules/unistd-safer-tests (Depends-on): Likewise.
8100         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8101
8102 2011-09-23  Bruno Haible  <bruno@clisp.org>
8103
8104         New module 'dup'.
8105         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8106         Allow replacement.
8107         * lib/dup.c: New file.
8108         * lib/fchdir.c (rpl_dup): Remove function.
8109         * m4/dup.m4: New file.
8110         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8111         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8112         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8113         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8114         * modules/dup: New file.
8115         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8116         'dup' module is in use.
8117         * modules/fdopendir (Depends-on): Add dup.
8118         * modules/fdutimensat-tests (Depends-on): Likewise.
8119         * modules/fts (Depends-on): Likewise.
8120         * modules/futimens-tests (Depends-on): Likewise.
8121         * modules/posix_spawnp-tests (Depends-on): Likewise.
8122         * modules/unistd-safer-tests (Depends-on): Likewise.
8123         * modules/utimens-tests (Depends-on): Likewise.
8124         * doc/posix-functions/dup.texi: Mention the new module and the problem
8125         on MSVC.
8126
8127 2011-09-23  Bruno Haible  <bruno@clisp.org>
8128
8129         getdtablesize: Support for MSVC 9.
8130         * lib/getdtablesize.c: Include msvc-inval.h.
8131         (_setmaxstdio_nothrow): New function.
8132         (_setmaxstdio): Redefine it.
8133         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8134         * modules/getdtablesize (Depends-on): Add msvc-inval.
8135         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8136
8137 2011-09-23  Bruno Haible  <bruno@clisp.org>
8138
8139         signal-h: Rename from signal.
8140         * modules/signal-h: Renamed from modules/signal.
8141         * modules/pthread_sigmask (Depends-on): Update.
8142         * modules/raise (Depends-on): Likewise.
8143         * modules/sigaction (Depends-on): Likewise.
8144         * modules/sigpipe (Depends-on): Likewise.
8145         * modules/sigprocmask (Depends-on): Likewise.
8146         * modules/sys_select (Depends-on): Likewise.
8147         * modules/signal-h-tests: Renamed from modules/signal-tests.
8148         (Files, Depends-on, Makefile.am): Update.
8149         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8150         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8151         (Files, Makefile.am): Update.
8152         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8153         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8154         * modules/signal: New placeholder file.
8155         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8156         * doc/posix-headers/signal.texi: Update.
8157         * NEWS: Mention the change.
8158
8159 2011-09-23  Bruno Haible  <bruno@clisp.org>
8160
8161         sigprocmask: Avoid crashes through signal() on MSVC 9.
8162         * lib/sigprocmask.c: Include msvc-inval.h.
8163         (signal_nothrow): New function.
8164         (signal): Redefine it.
8165         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8166         * modules/sigprocmask (Depends-on): Add msvc-inval.
8167         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8168
8169 2011-09-23  Bruno Haible  <bruno@clisp.org>
8170
8171         Tests for module 'raise'.
8172         * modules/raise-tests: New file.
8173         * tests/test-raise.c: New file.
8174
8175         raise: Support for MSVC.
8176         * lib/signal.in.h (raise): New declaration.
8177         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8178         for native Windows platforms.
8179         * m4/raise.m4: New file.
8180         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8181         HAVE_RAISE, REPLACE_RAISE.
8182         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8183         REPLACE_RAISE.
8184         * modules/raise (Status, Notice): Remove fields.
8185         (Files): Add m4/raise.m4.
8186         (Depends-on): Add signal, msvc-inval.
8187         (configure.ac): Use the common idioms.
8188         (Maintainer): Add me.
8189         * tests/test-signal-c++.cc: Check the signature of raise.
8190         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8191
8192 2011-09-23  Bruno Haible  <bruno@clisp.org>
8193
8194         pipe2: Fix compilation on pre-C99 compilers.
8195         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8196
8197 2011-09-23  Bruno Haible  <bruno@clisp.org>
8198
8199         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8200         * lib/msvc-nothrow.h: New file.
8201         * lib/msvc-nothrow.c: New file.
8202         * m4/msvc-nothrow.m4: New file.
8203         * modules/msvc-nothrow: New file.
8204         * lib/dup2.c: Include msvc-nothrow.h.
8205         (rpl_dup2): No need to protect _get_osfhandle call here.
8206         * lib/accept4.c: Include msvc-nothrow.h.
8207         * lib/error.c: Likewise.
8208         * lib/fcntl.c: Likewise.
8209         * lib/lseek.c: Likewise.
8210         * lib/nonblocking.c: Likewise.
8211         * lib/poll.c: Likewise.
8212         * lib/read.c: Likewise.
8213         * lib/select.c: Likewise.
8214         * lib/sockets.h: Likewise.
8215         * lib/sockets.c: Likewise.
8216         * lib/stdio-read.c: Likewise.
8217         * lib/stdio-write.c: Likewise.
8218         * lib/write.c: Likewise.
8219         * lib/w32sock.h: Likewise.
8220         * lib/w32spawn.h: Likewise.
8221         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8222         * lib/fsync.c: Likewise.
8223         * lib/isapipe.c: Likewise.
8224         * modules/dup2 (Depends-on): Add msvc-nothrow.
8225         * modules/accept4 (Depends-on): Likewise.
8226         * modules/error (Depends-on): Likewise.
8227         * modules/fcntl (Depends-on): Likewise.
8228         * modules/lseek (Depends-on): Likewise.
8229         * modules/nonblocking (Depends-on): Likewise.
8230         * modules/poll (Depends-on): Likewise.
8231         * modules/read (Depends-on): Likewise.
8232         * modules/select (Depends-on): Likewise.
8233         * modules/sockets (Depends-on): Likewise.
8234         * modules/sigpipe (Depends-on): Likewise.
8235         * modules/write (Depends-on): Likewise.
8236         * modules/accept (Depends-on): Likewise.
8237         * modules/bind (Depends-on): Likewise.
8238         * modules/connect (Depends-on): Likewise.
8239         * modules/gethostname (Depends-on): Likewise.
8240         * modules/getpeername (Depends-on): Likewise.
8241         * modules/getsockname (Depends-on): Likewise.
8242         * modules/getsockopt (Depends-on): Likewise.
8243         * modules/ioctl (Depends-on): Likewise.
8244         * modules/listen (Depends-on): Likewise.
8245         * modules/recv (Depends-on): Likewise.
8246         * modules/recvfrom (Depends-on): Likewise.
8247         * modules/send (Depends-on): Likewise.
8248         * modules/sendto (Depends-on): Likewise.
8249         * modules/setsockopt (Depends-on): Likewise.
8250         * modules/shutdown (Depends-on): Likewise.
8251         * modules/socket (Depends-on): Likewise.
8252         * modules/execute (Depends-on): Likewise.
8253         * modules/spawn-pipe (Depends-on): Likewise.
8254         * modules/flock (Depends-on): Likewise.
8255         * modules/fsync (Depends-on): Likewise.
8256         * modules/isapipe (Depends-on): Likewise.
8257         * tests/test-cloexec.c: Include msvc-nothrow.h.
8258         * tests/test-dup-safer.c: Likewise.
8259         * tests/test-dup2.c: Likewise.
8260         * tests/test-dup3.c: Likewise.
8261         * tests/test-fcntl.c: Likewise.
8262         * tests/test-pipe.c: Likewise.
8263         * tests/test-pipe2.c: Likewise.
8264         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8265         * modules/unistd-safer-tests (Depends-on): Likewise.
8266         * modules/dup2-tests (Depends-on): Likewise.
8267         * modules/dup3-tests (Depends-on): Likewise.
8268         * modules/fcntl-tests (Depends-on): Likewise.
8269         * modules/pipe-posix-tests (Depends-on): Likewise.
8270         * modules/pipe2-tests (Depends-on): Likewise.
8271
8272 2011-09-23  Bruno Haible  <bruno@clisp.org>
8273
8274         dup2: Make code more maintainable.
8275         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8276         (rpl_dup2): Use it.
8277         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8278         * modules/dup2 (configure.ac): Invoke it.
8279         Reported by Paul Eggert.
8280
8281 2011-09-23  Bruno Haible  <bruno@clisp.org>
8282
8283         msvc-inval: Fix compilation error.
8284         * lib/msvc-inval.h: Include <excpt.h>.
8285
8286 2011-09-23  Bruno Haible  <bruno@clisp.org>
8287
8288         mkdir: Tweak for MSVC 9.
8289         * lib/sys_stat.in.h: Update comments.
8290         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8291
8292         Tests for module 'chdir'.
8293         * modules/chdir-tests: New file.
8294         * tests/test-chdir.c: New file.
8295
8296         New module 'chdir'.
8297         * modules/chdir: New file.
8298         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8299         (chdir): New declaration.
8300         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8301         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8302         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8303         * tests/test-unistd-c++.cc: Check signature of chdir.
8304         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8305         * modules/chdir-long (Depends-on): Add chdir.
8306         * modules/fchdir (Depends-on): Likewise.
8307         * modules/rename (Depends-on): Likewise.
8308         * modules/savewd (Depends-on): Likewise.
8309
8310         rmdir: Support for mingw, MSVC 9.
8311         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8312         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8313
8314         getcwd: Tweak for MSVC 9.
8315         * lib/unistd.in.h: Update comments.
8316         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8317
8318 2011-09-22  Bruno Haible  <bruno@clisp.org>
8319
8320         strerror_r-posix: Avoid a link error on MSVC.
8321         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8322         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8323
8324 2011-09-22  Bruno Haible  <bruno@clisp.org>
8325
8326         select: Avoid link errors on MSVC.
8327         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8328         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8329         * modules/pselect (Link): Likewise.
8330         * NEWS: Mention the change.
8331         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8332         test-select-stdin against $(LIB_SELECT).
8333         * modules/pselect-tests (Makefile.am): Link test-pselect against
8334         $(LIB_SELECT).
8335
8336 2011-09-22  Bruno Haible  <bruno@clisp.org>
8337
8338         select: Avoid compilation error on MSVC.
8339         * lib/select.c: Don't include <stdbool.h>.
8340
8341 2011-09-21  Bruno Haible  <bruno@clisp.org>
8342
8343         Consolidate all uses of PATH_MAX in *.m4 files.
8344         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8345         macros.
8346         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8347         and gl_PATHMAX_SNIPPET.
8348         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8349         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8350         * modules/chdir-long (Files): Add m4/pathmax.m4.
8351         * modules/getcwd (Files): Likewise.
8352
8353 2011-09-21  Bruno Haible  <bruno@clisp.org>
8354
8355         ftruncate: Un-deprecate, concentrate on Win32 support.
8356         * modules/ftruncate (Status, Notice): Remove sections.
8357         (Depends-on): Add largefile.
8358         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8359         non-mingw platforms.
8360         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8361         include <io.h>.
8362         * modules/perror-tests (Depends-on): Add ftruncate.
8363         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8364         'ftruncate' module.
8365
8366 2011-09-21  Bruno Haible  <bruno@clisp.org>
8367
8368         Add dependencies to new dirent related modules.
8369         * modules/opendir (Depends-on): Add closedir.
8370         * modules/getcwd (Depends-on): Add opendir, closedir.
8371         * modules/dirent-safer-tests (Depends-on): Likewise.
8372         * modules/fdopendir-tests (Depends-on): Likewise.
8373         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8374         * modules/renameat-tests (Depends-on): Likewise.
8375
8376 2011-09-21  Bruno Haible  <bruno@clisp.org>
8377
8378         opendir: Avoid compilation error on mingw.
8379         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8380         * modules/opendir (Depends-on): Add unistd.
8381
8382 2011-09-21  Bruno Haible  <bruno@clisp.org>
8383
8384         ftruncate tests: Avoid a test failure on mingw.
8385         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8386
8387 2011-09-21  Bruno Haible  <bruno@clisp.org>
8388
8389         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8390         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8391         native Windows.
8392
8393 2011-09-21  Bruno Haible  <bruno@clisp.org>
8394
8395         New module 'fdopen'.
8396         * lib/stdio.in.h (fdopen): New declaration.
8397         * lib/fdopen.c: New file.
8398         * m4/fdopen.m4: New file.
8399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8400         REPLACE_FDOPEN.
8401         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8402         REPLACE_FDOPEN.
8403         * modules/fdopen: New file.
8404         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8405         * tests/test-stdio-c++.cc: Check signature of fdopen.
8406         * doc/posix-functions/fdopen.texi: Mention the new module.
8407
8408 2011-09-21  Bruno Haible  <bruno@clisp.org>
8409
8410         unlockpt tests: Avoid test failure on NetBSD 5.1.
8411         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8412         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8413
8414 2011-09-21  Bruno Haible  <bruno@clisp.org>
8415
8416         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8417         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8418         * tests/test-getlogin_r.c (main): Likewise.
8419
8420 2011-09-20  Bruno Haible  <bruno@clisp.org>
8421
8422         time tests: Don't require pid_t.
8423         * doc/posix-headers/time.texi: Revert last change.
8424         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8425         * tests/test-time.c: Comment out the check for pid_t.
8426
8427 2011-09-20  Bruno Haible  <bruno@clisp.org>
8428
8429         fsync tests: Avoid a test failure on mingw.
8430         * tests/test-fsync.c (main): Allow a failure with EIO.
8431
8432 2011-09-20  Bruno Haible  <bruno@clisp.org>
8433
8434         euidaccess: Update comments.
8435         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8436
8437 2011-09-20  Bruno Haible  <bruno@clisp.org>
8438
8439         Ensure EBADF returns for socket functions on mingw.
8440         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8441         descriptor is invalid.
8442         * lib/bind.c (rpl_bind): Likewise.
8443         * lib/connect.c (rpl_connect): Likewise.
8444         * lib/getpeername.c (rpl_getpeername): Likewise.
8445         * lib/getsockname.c (rpl_getsockname): Likewise.
8446         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8447         * lib/listen.c (rpl_listen): Likewise.
8448         * lib/recv.c (rpl_recv): Likewise.
8449         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8450         * lib/send.c (rpl_send): Likewise.
8451         * lib/sendto.c (rpl_sendto): Likewise.
8452         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8453         * lib/shutdown.c (rpl_shutdown): Likewise.
8454
8455 2011-09-20  Bruno Haible  <bruno@clisp.org>
8456
8457         select tests: EBADF tests.
8458         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8459         test_bad_fd): New functions.
8460         (test_function): Invoke also test_bad_fd.
8461
8462 2011-09-20  Bruno Haible  <bruno@clisp.org>
8463
8464         Tests for module 'posix_spawn_file_actions_addopen.
8465         * modules/posix_spawn_file_actions_addopen-tests: New file.
8466         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8467
8468         Tests for module 'posix_spawn_file_actions_adddup2'.
8469         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8470         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8471
8472         Tests for module 'posix_spawn_file_actions_addclose'.
8473         * modules/posix_spawn_file_actions_addclose-tests: New file.
8474         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8475
8476 2011-09-20  Bruno Haible  <bruno@clisp.org>
8477
8478         Tests for module 'unlockpt'.
8479         * modules/unlockpt-tests: New file.
8480         * tests/test-unlockpt.c: New file.
8481         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8482
8483         Tests for module 'grantpt'.
8484         * modules/grantpt-tests: New file.
8485         * tests/test-grantpt.c: New file.
8486         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8487
8488 2011-09-20  Bruno Haible  <bruno@clisp.org>
8489
8490         freopen tests: EBADF tests.
8491         * tests/test-freopen.c: Include errno.h, unistd.h.
8492         (main): Add tests for EBADF, commented out for the moment.
8493
8494         fclose tests: EBADF tests.
8495         * tests/test-fclose.c (main): Add tests for EBADF.
8496
8497         fflush tests: EBADF tests.
8498         * tests/test-fflush.c: Include errno.h, macros.h.
8499         (main): Add tests for EBADF.
8500
8501         ftello tests: EBADF tests.
8502         * tests/test-ftello4.sh: New file.
8503         * tests/test-ftello4.c: New file.
8504         * modules/ftello-tests (Files): Add them.
8505         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8506
8507         fseeko tests: EBADF tests.
8508         * tests/test-fseeko4.sh: New file.
8509         * tests/test-fseeko4.c: New file.
8510         * modules/fseeko-tests (Files): Add them.
8511         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8512
8513         Tests for function fputc().
8514         * modules/fputc-tests: New file.
8515         * tests/test-fputc.c: New file.
8516         * modules/stdio-tests (Depends-on): Add fputc-tests.
8517
8518         Tests for function fgetc().
8519         * modules/fgetc-tests: New file.
8520         * tests/test-fgetc.c: New file.
8521         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8522
8523         Tests for function fdopen().
8524         * modules/fdopen-tests: New file.
8525         * tests/test-fdopen.c: New file.
8526         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8527
8528         Tests for module 'vdprintf'.
8529         * modules/vdprintf-tests: New file.
8530         * tests/test-vdprintf.c: New file.
8531
8532         Tests for module 'dprintf'.
8533         * modules/dprintf-tests: New file.
8534         * tests/test-dprintf.c: New file.
8535
8536 2011-09-20  Bruno Haible  <bruno@clisp.org>
8537
8538         Tests for module 'ioctl'.
8539         * modules/ioctl-tests: New file.
8540         * tests/test-ioctl.c: New file.
8541
8542 2011-09-20  Bruno Haible  <bruno@clisp.org>
8543
8544         fcntl tests: EBADF tests.
8545         * tests/test-fcntl.c (main): Add more tests for EBADF.
8546
8547 2011-09-20  Bruno Haible  <bruno@clisp.org>
8548
8549         utimensat tests: EBADF tests.
8550         * tests/test-utimensat.c (main): Add tests for EBADF.
8551
8552         renameat tests: EBADF tests.
8553         * tests/test-renameat.c (main): Add tests for EBADF.
8554
8555         mkfifoat tests: EBADF tests.
8556         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8557
8558         readlinkat tests: EBADF tests.
8559         * tests/test-readlinkat.c (main): Add tests for EBADF.
8560
8561         symlinkat tests: EBADF tests.
8562         * tests/test-symlinkat.c (main): Add tests for EBADF.
8563
8564         linkat tests: EBADF tests.
8565         * tests/test-linkat.c (main): Add tests for EBADF.
8566
8567         Tests for module 'faccessat'.
8568         * modules/faccessat-tests: New file.
8569         * tests/test-faccessat.c: New file.
8570
8571         fdopendir tests: EBADF tests.
8572         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8573
8574         openat tests: EBADF tests.
8575         * tests/test-fchownat.c (main): Add tests for EBADF.
8576         * tests/test-fstatat.c (main): Likewise.
8577         * tests/test-mkdirat.c (main): Likewise.
8578         * tests/test-openat.c (main): Likewise.
8579         * tests/test-unlinkat.c (main): Likewise.
8580         * tests/test-fchmodat.c: New file.
8581         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8582         (Makefile.am): Also run 'test-fchmodat'.
8583
8584 2011-09-20  Bruno Haible  <bruno@clisp.org>
8585
8586         utimens, futimens, fdutimensat tests: EBADF tests.
8587         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8588
8589         Tests for function fstat().
8590         * modules/fstat-tests: New file.
8591         * tests/test-fstat.c: New file.
8592         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8593
8594 2011-09-20  Bruno Haible  <bruno@clisp.org>
8595
8596         test-ttyname_r tests: EBADF tests.
8597         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8598
8599         Tests for module 'isatty'.
8600         * modules/isatty-tests: New file.
8601         * tests/test-isatty.c: New file.
8602
8603         Tests for module 'write'.
8604         * modules/write-tests: New file.
8605         * tests/test-write.c: New file.
8606
8607         Tests for module 'read'.
8608         * modules/read-tests: New file.
8609         * tests/test-read.c: New file.
8610
8611         pwrite tests: EBADF tests.
8612         * tests/test-pwrite.c (main): Add tests for EBADF.
8613
8614         pread tests: EBADF tests.
8615         * tests/test-pread.c (main): Add tests for EBADF.
8616
8617         lseek tests: EBADF tests.
8618         * tests/test-lseek.c (main): Add more tests for EBADF.
8619
8620         Tests for module 'ftruncate'.
8621         * modules/ftruncate-tests: New file.
8622         * tests/test-ftruncate.sh: New file.
8623         * tests/test-ftruncate.c: New file.
8624
8625         fsync tests: EBADF tests.
8626         * tests/test-fsync.c (main): Add more tests for EBADF.
8627
8628         fdatasync tests: EBADF tests.
8629         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8630
8631         Tests for module 'fchown'.
8632         * modules/fchown-tests: New file.
8633         * tests/test-fchown.c: New file.
8634
8635         Tests for module 'fchmod'.
8636         * modules/fchmod-tests: New file.
8637         * tests/test-fchmod.c: New file.
8638
8639         fchdir tests: EBADF tests.
8640         * tests/test-fchdir.c (main): Add more tests for EBADF.
8641
8642         dup2 tests: EBADF tests.
8643         * tests/test-dup2.c (main): Add more tests for EBADF.
8644
8645         Tests for module 'dup'.
8646         * modules/dup-tests: New file.
8647         * tests/test-dup.c: New file.
8648
8649         Tests for module 'close'.
8650         * modules/close-tests: New file.
8651         * tests/test-close.c: New file.
8652
8653 2011-09-20  Bruno Haible  <bruno@clisp.org>
8654
8655         Tests for module 'shutdown'.
8656         * modules/shutdown-tests: New file.
8657         * tests/test-shutdown.c: New file.
8658
8659         Tests for module 'setsockopt'.
8660         * modules/setsockopt-tests: New file.
8661         * tests/test-setsockopt.c: New file.
8662
8663         Tests for module 'sendto'.
8664         * modules/sendto-tests: New file.
8665         * tests/test-sendto.c: New file.
8666
8667         Tests for module 'send'.
8668         * modules/send-tests: New file.
8669         * tests/test-send.c: New file.
8670
8671         Tests for module 'recvfrom'.
8672         * modules/recvfrom-tests: New file.
8673         * tests/test-recvfrom.c: New file.
8674
8675         Tests for module 'recv'.
8676         * modules/recv-tests: New file.
8677         * tests/test-recv.c: New file.
8678
8679         Tests for module 'listen'.
8680         * modules/listen-tests: New file.
8681         * tests/test-listen.c: New file.
8682
8683         Tests for module 'getsockopt'.
8684         * modules/getsockopt-tests: New file.
8685         * tests/test-getsockopt.c: New file.
8686
8687         Tests for module 'getsockname'.
8688         * modules/getsockname-tests: New file.
8689         * tests/test-getsockname.c: New file.
8690
8691         Tests for module 'getpeername'.
8692         * modules/getpeername-tests: New file.
8693         * tests/test-getpeername.c: New file.
8694
8695         Tests for module 'connect'.
8696         * modules/connect-tests: New file.
8697         * tests/test-connect.c: New file.
8698
8699         Tests for module 'bind'.
8700         * modules/bind-tests: New file.
8701         * tests/test-bind.c: New file.
8702
8703         accept4 tests: Fix for native Windows.
8704         * tests/test-accept4.c: Include sockets.h.
8705         (main): Invoke gl_sockets_startup.
8706         * modules/accept4-tests (Depends-on): Add sockets.
8707
8708         accept tests: Fix for native Windows.
8709         * tests/test-accept.c: Include sockets.h.
8710         (main): Invoke gl_sockets_startup.
8711         * modules/accept-tests (Depends-on): Add sockets.
8712
8713 2011-09-19  Bruno Haible  <bruno@clisp.org>
8714
8715         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8716         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8717         do...while(0).
8718         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8719         Suggested by Paul Eggert.
8720
8721 2011-09-19  Bruno Haible  <bruno@clisp.org>
8722
8723         sched: Ensure pid_t is defined.
8724         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8725         not define pid_t.
8726         * lib/sched.in.h: Include <sys/types.h>.
8727         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8729
8730 2011-09-19  Bruno Haible  <bruno@clisp.org>
8731
8732         msvc-inval: Ensure the entire expansion is a single statement.
8733         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8734         of braces.
8735
8736 2011-09-19  Jim Meyering  <meyering@redhat.com>
8737
8738         tests: use printf, not echo in init.sh's warn_ function
8739         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8740         misbehave when given strings containing a backslash or starting
8741         with e.g., -n.  James Youngman suggested setting IFS.
8742
8743 2011-09-19  Eric Blake  <eblake@redhat.com>
8744
8745         futimens: enhance test
8746         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8747         closed non-negative fd.
8748
8749         date: accept 'hence' as opposite of 'ago'
8750         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8751         * tests/test-parse-datetime.c (main): Enhance test.
8752         Suggested by Jesse Wilson.
8753
8754 2011-09-19  Jim Meyering  <meyering@redhat.com>
8755
8756         getcwd: don't fail in a deep directory on a system without openat
8757         Before this change, getcwd would fail when called from a directory
8758         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8759         the non-openat implementation used "..", "../..", "../../..", etc.
8760         to access ancestor directories.  With too many, that string would
8761         be longer than PATH_MAX.
8762         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8763         using gnulib's openat replacement.
8764         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8765         we're using the replacement function.
8766
8767 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8768
8769         maint.mk: avoid warnings from perl about missing files
8770         * top/maint.mk (def_sym_regex): Ignore files listed in
8771         $(gl_other_headers_) that do not exist, say because a project
8772         does not use a corresponding module.
8773
8774 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8775
8776         stat: use pathmax.h only if needed
8777         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8778         This is better for Emacs, which does not have a mingw port and
8779         therefore can avoid the pathmax module.
8780
8781         utimens: remove dependency on dup2
8782         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8783         to work around the Linux kernel bug.
8784         * modules/utimens (Depends-on): Remove dup2.
8785
8786 2011-09-18  Bruno Haible  <bruno@clisp.org>
8787
8788         inet_ntop, inet_pton: Look for it also in libresolv.
8789         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8790         libnsl, search for it in libresolv.
8791         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8792         Needed on Solaris 7.
8793
8794 2011-09-18  Bruno Haible  <bruno@clisp.org>
8795
8796         accept, accept4 tests: Avoid link error on Solaris.
8797         * modules/accept-tests (Makefile.am): Link test-accept against
8798         $(LIBSOCKET).
8799         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8800         $(LIBSOCKET).
8801
8802         accept4: Avoid link error on Solaris.
8803         * modules/accept4 (Link): New section.
8804
8805         socket functions: Avoid link errors on Solaris.
8806         * modules/accept (Depends-on): Add socketlib.
8807         (Link): New section.
8808         * modules/bind (Depends-on): Add socketlib.
8809         (Link): New section.
8810         * modules/connect (Depends-on): Add socketlib.
8811         (Link): New section.
8812         * modules/getpeername (Depends-on): Add socketlib.
8813         (Link): New section.
8814         * modules/getsockname (Depends-on): Add socketlib.
8815         (Link): New section.
8816         * modules/getsockopt (Depends-on): Add socketlib.
8817         (Link): New section.
8818         * modules/listen (Depends-on): Add socketlib.
8819         (Link): New section.
8820         * modules/recv (Depends-on): Add socketlib.
8821         (Link): New section.
8822         * modules/recvfrom (Depends-on): Add socketlib.
8823         (Link): New section.
8824         * modules/send (Depends-on): Add socketlib.
8825         (Link): New section.
8826         * modules/sendto (Depends-on): Add socketlib.
8827         (Link): New section.
8828         * modules/setsockopt (Depends-on): Add socketlib.
8829         (Link): New section.
8830         * modules/shutdown (Depends-on): Add socketlib.
8831         (Link): New section.
8832         * modules/socket (Depends-on): Add socketlib.
8833         (Link): New section.
8834
8835 2011-09-18  Bruno Haible  <bruno@clisp.org>
8836
8837         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8838         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8839         than 5 seconds.
8840         * modules/ptsname-tests (configure.ac): Test for alarm.
8841
8842 2011-09-18  Bruno Haible  <bruno@clisp.org>
8843
8844         posix_spawn_file_actions_add*: Fix module dependencies.
8845         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8846         posix_spawn_file_actions_init.
8847         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8848         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8849
8850 2011-09-18  Bruno Haible  <bruno@clisp.org>
8851
8852         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8853         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8854         * tests/test-renameat.c (main): Likewise.
8855
8856 2011-09-18  Bruno Haible  <bruno@clisp.org>
8857
8858         Tests for module 'accept4'.
8859         * modules/accept4-tests: New file.
8860         * tests/test-accept4.c: New file.
8861
8862 2011-09-18  Bruno Haible  <bruno@clisp.org>
8863
8864         Tests for module 'accept'.
8865         * modules/accept-tests: New file.
8866         * tests/test-accept.c: New file.
8867
8868 2011-09-18  Bruno Haible  <bruno@clisp.org>
8869
8870         dup2: Support for MSVC.
8871         * lib/dup2.c: Include msvc-inval.h.
8872         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8873         _get_osfhandle calls.
8874         * modules/dup2 (Depends-on): Add msvc-inval.
8875         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8876
8877         New module 'msvc-inval'.
8878         * lib/msvc-inval.h: New file.
8879         * lib/msvc-inval.c: New file.
8880         * m4/msvc-inval.m4: New file.
8881         * modules/msvc-inval: New file.
8882
8883 2011-09-17  Bruno Haible  <bruno@clisp.org>
8884
8885         Tests for module 'pclose'.
8886         * modules/pclose-tests: New file.
8887
8888         New module 'pclose'.
8889         * lib/stdio.in.h (pclose): New declaration.
8890         * lib/pclose.c: New file.
8891         * m4/pclose.m4: New file.
8892         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8893         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8894         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8895         * modules/pclose: New file.
8896         * modules/popen-tests (Depends-on): Add pclose.
8897         * modules/popen-safer-tests (Depends-on): Likewise.
8898         * doc/posix-functions/pclose.texi: Mention the new module.
8899
8900 2011-09-17  Bruno Haible  <bruno@clisp.org>
8901
8902         popen: Support for MSVC.
8903         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8904         * lib/popen.c (popen): Provide alternate definition for native Windows.
8905         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8907         * modules/popen (Depends-on, configure.ac): Update condition.
8908         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8909         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8910         fixed.
8911
8912 2011-09-17  Bruno Haible  <bruno@clisp.org>
8913
8914         isnanl, isnand, isnanf: Work around MSVC bug.
8915         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8916
8917 2011-09-17  Bruno Haible  <bruno@clisp.org>
8918
8919         sys_socket tests: Fix recent mistake.
8920         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8921
8922 2011-09-17  Bruno Haible  <bruno@clisp.org>
8923
8924         putenv: Support for MSVC.
8925         * modules/putenv (Depends-on): Add environ.
8926         * lib/putenv.c (environ): Disable declaration.
8927         * lib/unistd.in.h: Update comment.
8928
8929 2011-09-17  Bruno Haible  <bruno@clisp.org>
8930
8931         math: Avoid macro redefinition warnings on MSVC.
8932         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8933         Undefine before redefining.
8934
8935 2011-09-17  Bruno Haible  <bruno@clisp.org>
8936
8937         doc: Mention functions which are declared as macros.
8938         * doc/posix-functions/*[fl].texi: Mention that some functions are
8939         defined as macros with arguments only.
8940
8941 2011-09-17  Bruno Haible  <bruno@clisp.org>
8942
8943         Add dependencies to new dirent related modules.
8944         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8945         * modules/fts (Depends-on): Likewise.
8946         * modules/glob (Depends-on): Likewise.
8947         * modules/savedir (Depends-on): Likewise.
8948         * modules/scandir (Depends-on): Likewise.
8949         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8950         * modules/fdopendir (Depends-on): Add opendir.
8951
8952 2011-09-17  Bruno Haible  <bruno@clisp.org>
8953
8954         inet_pton: Support for MSVC on Windows Vista or newer.
8955         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8956         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8957         HAVE_DECL_INET_PTON is defined.
8958         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8959         On platforms with <winsock2.h>, test whether inet_pton is declared in
8960         <ws2tcpip.h>. If so, arrange to replace it.
8961         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8962         REPLACE_INET_PTON.
8963         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8964         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8965         (Depends-on, configure.ac): Update condition.
8966         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8967
8968 2011-09-17  Bruno Haible  <bruno@clisp.org>
8969
8970         inet_ntop: Support for MSVC on Windows Vista or newer.
8971         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8972         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8973         HAVE_DECL_INET_NTOP is defined.
8974         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8975         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8976         <ws2tcpip.h>. If so, arrange to replace it.
8977         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8978         REPLACE_INET_NTOP.
8979         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8980         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8981         (Depends-on, configure.ac): Update condition.
8982         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8983
8984 2011-09-16  Eric Blake  <eblake@redhat.com>
8985
8986         test-fsync: yet another enhancement
8987         * tests/test-fsync.c (main): Also test behavior on read-only text
8988         file.
8989
8990 2011-09-16  Bruno Haible  <bruno@clisp.org>
8991
8992         Enhance fsync, fdatasync tests.
8993         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8994         * tests/test-fdatasync.c (main): Likewise.
8995
8996 2011-09-16  Bruno Haible  <bruno@clisp.org>
8997
8998         Support for MSVC compiler: Ensure mode_t gets defined.
8999         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9000         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9001         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9002         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9003         * tests/test-fcntl-h.c: Check that mode_t is defined.
9004         * tests/test-sys_stat.c: Likewise.
9005         * tests/test-sys_types.c: Likewise.
9006         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9007         * doc/posix-headers/sys_stat.texi: Likewise.
9008         * doc/posix-headers/sys_types.texi: Likewise.
9009
9010 2011-09-16  Bruno Haible  <bruno@clisp.org>
9011
9012         sys_stat: Support for MSVC.
9013         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9014         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9015         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9016         MSVC.
9017
9018 2011-09-16  Bruno Haible  <bruno@clisp.org>
9019
9020         Support for MSVC compiler: Ensure off_t gets defined.
9021         * lib/unistd.in.h: Include <sys/types.h>.
9022         * tests/test-fcntl-h.c: Check that off_t is defined.
9023         * tests/test-sys_stat.c: Likewise.
9024         * tests/test-sys_types.c: Likewise.
9025
9026 2011-09-16  Eric Blake  <eblake@redhat.com>
9027
9028         fdatasync: port to Solaris
9029         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9030         * modules/fdatasync (Link): Document it.
9031         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9032
9033         fdatasync: port to MacOS X 10.7
9034         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9035         declared.
9036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9037         * modules/unistd (Makefile.am): Substitute it.
9038         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9039         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9040
9041         fdatasync: minor improvements
9042         * modules/fdatasync (Depends-on): Add condition for fsync.
9043         * lib/fdatasync.c (fdatasync): Add comment.
9044         * tests/test-unistd-c++.cc: Test fdatasync.
9045
9046         unistd: update refs to newer POSIX
9047         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9048         Suggested by Bruno Haible.
9049
9050         fdatasync: new module
9051         * modules/fsync (Description): Document difference to fdatasync.
9052         * modules/fdatasync: New module.
9053         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9054         * lib/fdatasync.c (fdatasync): Likewise.
9055         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9056         defaults.
9057         * modules/unistd (Makefile.am): Set witnesses.
9058         * lib/unistd.in.h (fdatasync): Declare.
9059         * MODULES.html.sh: Document it.
9060         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9061         * modules/fdatasync-tests: New test.
9062         * tests/test-fdatasync.c: Likewise.
9063
9064 2011-09-16  Eric Blake  <eblake@redhat.com>
9065
9066         test-fsync: enhance tests
9067         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9068         * tests/test-fsync.c (main): Enhance test.
9069
9070 2011-09-15  Bruno Haible  <bruno@clisp.org>
9071
9072         Support for MSVC compiler: Ensure ssize_t gets defined.
9073         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9074         * doc/posix-headers/stdio.texi: Likewise.
9075         * modules/stdio (Depends-on): Add ssize_t.
9076         * modules/sys_socket (Depends-on): Likewise.
9077         * modules/sys_types (Depends-on): Likewise.
9078         * modules/sys_uio (Depends-on): Likewise.
9079         * modules/unistd (Depends-on): Likewise.
9080         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9081         * tests/test-sys_types.c: Check that ssize_t is defined.
9082
9083 2011-09-14  Bruno Haible  <bruno@clisp.org>
9084
9085         Avoid using #, the m4 comment starter character, near brackets.
9086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9087         delimiter character in sed expressions.
9088         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9089         Suggested by Eric Blake.
9090
9091         Properly quote AC_CHECK_DECLS' 4th argument.
9092         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9093         argument.
9094         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9095         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9096         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9097         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9098         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9099         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9100         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9101         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9102         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9103         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9104         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9105         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9106         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9107         * m4/isinf.m4 (gl_ISINF): Likewise.
9108         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9109         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9110         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9111         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9112         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9113         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9114         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9115         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9116         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9117         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9118         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9119         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9120         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9121         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9123         Reported by Eric Blake.
9124
9125         Properly quote AC_CHECK_DECL's 4th argument.
9126         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9127         argument.
9128         * m4/argp.m4 (gl_ARGP): Likewise.
9129         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9130         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9131         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9132         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9133         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9134         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9135         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9136         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9137         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9138         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9139         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9140         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9141         Reported by Eric Blake.
9142
9143 2011-09-14  Eric Blake  <eblake@redhat.com>
9144
9145         opendir: avoid compile warning
9146         * lib/opendir.c (includes): Always include errno.h.
9147         Reported by Tatsuro MATSUOKA.
9148
9149 2011-09-14  Jim Meyering  <meyering@redhat.com>
9150
9151         maint.mk: sc_tight_scope: propagate failure from sub-make
9152         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9153         Reported by Martin von Gagern.
9154
9155 2011-09-13  Bruno Haible  <bruno@clisp.org>
9156
9157         tempname: Support for MSVC.
9158         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9159         MSVC.
9160         * modules/tempname (Depends-on): Add fcntl-h.
9161
9162 2011-09-13  Bruno Haible  <bruno@clisp.org>
9163
9164         sys_time: Support for MSVC.
9165         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9166         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9167         include <winsock2.h>.
9168         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9169         function declarations that collide with POSIX.
9170         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9171         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9172
9173 2011-09-13  Bruno Haible  <bruno@clisp.org>
9174
9175         stat: Support for MSVC.
9176         * lib/stat.c: Include pathmax.h.
9177         * modules/stat (Depends-on): Add pathmax.
9178
9179         pathmax: Support for native Windows.
9180         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9181
9182 2011-09-12  Bruno Haible  <bruno@clisp.org>
9183
9184         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9185         * lib/dirent.in.h (struct dirent): New type.
9186         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9187         DT_WHT): New macros.
9188         (DIR): New type.
9189         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9190         (readdir, rewinddir): New declarations.
9191         * lib/dirent-private.h: New file.
9192         * lib/opendir.c: New file.
9193         * lib/readdir.c: New file.
9194         * lib/rewinddir.c: New file.
9195         * lib/closedir.c: New file.
9196         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9197         * m4/opendir.m4: New file.
9198         * m4/readdir.m4: New file.
9199         * m4/rewinddir.m4: New file.
9200         * m4/closedir.m4: New file.
9201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9202         REPLACE_CLOSEDIR here.
9203         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9204         readdir, rewinddir are declared.
9205         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9206         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9207         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9208         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9209         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9210         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9211         * modules/opendir: New file.
9212         * modules/readdir: New file.
9213         * modules/rewinddir: New file.
9214         * modules/closedir: New file.
9215         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9216         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9217         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9218         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9219         * NEWS: Mention the 'fchdir' change.
9220
9221 2011-09-11  Bruno Haible  <bruno@clisp.org>
9222
9223         asm-underscore.m4: Support for MSVC.
9224         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9225         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9226
9227 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9228
9229         Doc about crypt functions.
9230         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9231         needing for _GNU_SOURCE to get crypt.
9232         * doc/posix-functions/encrypt.texi: Likewise.
9233         * doc/posix-functions/setkey.texi: Likewise.
9234
9235 2011-09-11  Bruno Haible  <bruno@clisp.org>
9236
9237         doc: Update regarding MSVC 9.
9238         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9239         tested".
9240         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9241         * doc/posix-headers/*.texi: Likewise.
9242         * doc/pastposix-functions/*.texi: Likewise.
9243         * doc/glibc-functions/*.texi: Likewise.
9244         * doc/glibc-headers/*.texi: Likewise.
9245
9246 2011-09-11  Bruno Haible  <bruno@clisp.org>
9247
9248         unistd et al.: Don't assume <unistd.h> exists.
9249         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9250         does not exist.
9251         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9252         exist. But include <stdlib.h>.
9253         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9254         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9255         symlink() does not exist.
9256         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9257         include <io.h> instead.
9258         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9259         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9260         include <direct.h> instead.
9261         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9262         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9263         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9264         <io.h> instead.
9265         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9266         correctly if the system does not have hard links.
9267         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9268         <direct.h> instead.
9269         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9270         it when looking for function declarations.
9271         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9272         <direct.h> and <io.h> instead.
9273         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9274
9275 2011-09-11  Bruno Haible  <bruno@clisp.org>
9276
9277         strcase: Support for MSVC.
9278         * modules/strcase (Status, Notice): Remove obsoletion mark.
9279         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9280         * doc/posix-functions/strncasecmp.texi: Likewise.
9281
9282         strings: Don't assume <strings.h> exists.
9283         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9284         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9285         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9286         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9287
9288 2011-09-11  Bruno Haible  <bruno@clisp.org>
9289
9290         dirent: Don't assume <dirent.h> exists.
9291         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9292         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9293         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9294         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9295
9296 2011-09-11  Bruno Haible  <bruno@clisp.org>
9297
9298         Fix wint_t on MSVC.
9299         * lib/wchar.in.h (wint_t): On MSVC, override it.
9300         * lib/wctype.in.h (wint_t): Likewise.
9301         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9302         MSVC.
9303         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9304         * doc/posix-headers/wctype.texi: Likewise.
9305
9306 2011-09-11  Bruno Haible  <bruno@clisp.org>
9307
9308         sys_types: Fix typo.
9309         * lib/sys_types.in.h: Fix typo in comment.
9310         Reported by Paul Eggert.
9311
9312         Support for MSVC compiler: Ensure size_t gets defined.
9313         * modules/strings (Depends-on): Add 'sys_types'.
9314         * modules/sys_uio (Depends-on): Likewise.
9315         * lib/sys_uio.in.h: Update comment.
9316
9317         C++ tests for module 'sys_types'.
9318         * modules/sys_types-c++-tests: New file.
9319         * tests/test-sys_types-c++.cc: New file.
9320
9321         Tests for module 'sys_types'.
9322         * modules/sys_types-tests: New file.
9323         * tests/test-sys_types.c: New file.
9324
9325         New module 'sys_types'.
9326         * lib/sys_types.in.h: New file.
9327         * m4/sys_types_h.m4: New file.
9328         * modules/sys_types: New file.
9329         * doc/posix-headers/sys_types.texi: Mention the new module and the
9330         size_t problem on MSVC 9.
9331
9332 2011-09-11  Bruno Haible  <bruno@clisp.org>
9333
9334         Support for MSVC compiler: Avoid division by a literal 0.
9335         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9336         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9337         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9338         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9339         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9340         * tests/infinity.h: New file.
9341         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9342         on MSVC.
9343         * tests/test-ceilf1.c: Include infinity.h.
9344         (main): Use Infinityf.
9345         * tests/test-ceil1.c: Include infinity.h.
9346         (main): Use Infinityd.
9347         * tests/test-ceill.c: Include infinity.h.
9348         (main): Use Infinityl.
9349         * tests/test-dprintf-posix.c: Include infinity.h.
9350         (test_function): Use Infinityd.
9351         * tests/test-floorf1.c: Include infinity.h.
9352         (main): Use Infinityf.
9353         * tests/test-floor1.c: Include infinity.h.
9354         (main): Use Infinityd.
9355         * tests/test-floorl.c: Include infinity.h.
9356         (main): Use Infinityl.
9357         * tests/test-fprintf-posix.c: Include infinity.h.
9358         (test_function): Use Infinityd.
9359         * tests/test-frexp.c: Include infinity.h.
9360         (main): Use Infinityd.
9361         * tests/test-frexpl.c: Include infinity.h.
9362         (main): Use Infinityl.
9363         * tests/test-isfinite.c: Include infinity.h.
9364         (test_isfinitef): Use Infinityf.
9365         (test_isfinited): Use Infinityd.
9366         (test_isfinitel): Use Infinityl.
9367         * tests/test-isinf.c: Include infinity.h.
9368         (test_isinff): Use Infinityf.
9369         (test_isinfd): Use Infinityd.
9370         (test_isinfl): Use Infinityl.
9371         * tests/test-isnan.c: Include infinity.h.
9372         (test_float): Use Infinityf.
9373         (test_double): Use Infinityd.
9374         (test_long_double): Use Infinityl.
9375         * tests/test-isnanf.h: Include infinity.h.
9376         (main): Use Infinityf.
9377         * tests/test-isnand.h: Include infinity.h.
9378         (main): Use Infinityd.
9379         * tests/test-isnanl.h: Include infinity.h.
9380         (main): Use Infinityl.
9381         * tests/test-ldexpl.c: Include infinity.h.
9382         (main): Use Infinityl.
9383         * tests/test-printf-posix.h: Include infinity.h.
9384         (test_function): Use Infinityd.
9385         * tests/test-roundf1.c: Include infinity.h.
9386         (main): Use Infinityf.
9387         * tests/test-round1.c: Include infinity.h.
9388         (main): Use Infinityd.
9389         * tests/test-roundl.c: Include infinity.h.
9390         (main): Use Infinityl.
9391         * tests/test-signbit.c: Include infinity.h.
9392         (test_signbitf): Use Infinityf.
9393         (test_signbitd): Use Infinityd.
9394         (test_signbitl): Use Infinityl.
9395         * tests/test-snprintf-posix.h: Include infinity.h.
9396         (test_function): Use Infinityd, Infinityl.
9397         * tests/test-sprintf-posix.h: Include infinity.h.
9398         (test_function): Use Infinityd, Infinityl.
9399         * tests/test-truncf1.c: Include infinity.h.
9400         (main): Use Infinityf.
9401         * tests/test-trunc1.c: Include infinity.h.
9402         (main): Use Infinityd.
9403         * tests/test-truncl.c: Include infinity.h.
9404         (main): Use Infinityl.
9405         * tests/test-vasnprintf-posix.c: Include infinity.h.
9406         (test_function): Use Infinityd, Infinityl.
9407         * tests/test-vasprintf-posix.c: Include infinity.h.
9408         (test_function): Use Infinityd, Infinityl.
9409         * modules/ceilf-tests (Files): Add tests/infinity.h.
9410         * modules/ceil-tests (Files): Likewise.
9411         * modules/ceill-tests (Files): Likewise.
9412         * modules/dprintf-posix-tests (Files): Likewise.
9413         * modules/floorf-tests (Files): Likewise.
9414         * modules/floor-tests (Files): Likewise.
9415         * modules/floorl-tests (Files): Likewise.
9416         * modules/fprintf-posix-tests (Files): Likewise.
9417         * modules/frexp-tests (Files): Likewise.
9418         * modules/frexp-nolibm-tests (Files): Likewise.
9419         * modules/frexpl-tests (Files): Likewise.
9420         * modules/frexpl-nolibm-tests (Files): Likewise.
9421         * modules/isfinite-tests (Files): Likewise.
9422         * modules/isinf-tests (Files): Likewise.
9423         * modules/isnan-tests (Files): Likewise.
9424         * modules/isnanf-tests (Files): Likewise.
9425         * modules/isnanf-nolibm-tests (Files): Likewise.
9426         * modules/isnand-tests (Files): Likewise.
9427         * modules/isnand-nolibm-tests (Files): Likewise.
9428         * modules/isnanl-tests (Files): Likewise.
9429         * modules/isnanl-nolibm-tests (Files): Likewise.
9430         * modules/ldexpl-tests (Files): Likewise.
9431         * modules/printf-posix-tests (Files): Likewise.
9432         * modules/roundf-tests (Files): Likewise.
9433         * modules/round-tests (Files): Likewise.
9434         * modules/roundl-tests (Files): Likewise.
9435         * modules/signbit-tests (Files): Likewise.
9436         * modules/snprintf-posix-tests (Files): Likewise.
9437         * modules/sprintf-posix-tests (Files): Likewise.
9438         * modules/truncf-tests (Files): Likewise.
9439         * modules/trunc-tests (Files): Likewise.
9440         * modules/truncl-tests (Files): Likewise.
9441         * modules/vasnprintf-posix-tests (Files): Likewise.
9442         * modules/vasprintf-posix-tests (Files): Likewise.
9443         * modules/vdprintf-posix-tests (Files): Likewise.
9444         * modules/vfprintf-posix-tests (Files): Likewise.
9445         * modules/vprintf-posix-tests (Files): Likewise.
9446         * modules/vsnprintf-posix-tests (Files): Likewise.
9447         * modules/vsprintf-posix-tests (Files): Likewise.
9448         * modules/xprintf-posix-tests (Files): Likewise.
9449
9450 2011-09-11  Bruno Haible  <bruno@clisp.org>
9451
9452         Ensure pid_t gets defined.
9453         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9454         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9455         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9456         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9457         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9458         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9459         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9460         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9461         * tests/test-fcntl-h.c: Check that pid_t is defined.
9462         * tests/test-sched.c: Likewise.
9463         * tests/test-termios.c: Likewise.
9464         * tests/test-time.c: Likewise.
9465         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9466         * doc/posix-headers/signal.texi: Likewise.
9467         * doc/posix-headers/sys_types.texi: Likewise.
9468         * doc/posix-headers/time.texi: Likewise.
9469
9470 2011-09-11  Bruno Haible  <bruno@clisp.org>
9471
9472         acl: Fix compilation on Solaris 10 (older version).
9473         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9474         of ACE_EVERYONE.
9475         * lib/set-mode-acl.c (qset_acl): Likewise.
9476         Reported by Christian Jullien <eligis@orange.fr>.
9477
9478 2011-09-10  Bruno Haible  <bruno@clisp.org>
9479
9480         iconv, unsetenv: Add support for MSVC compiler.
9481         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9482         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9483
9484 2011-09-10  Bruno Haible  <bruno@clisp.org>
9485
9486         *printf: Add support for MSVC compiler.
9487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9488         handles the exception caused by the %n directive. When cross-compiling,
9489         guess no on native Windows.
9490         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9491         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9492         emulate it through vsnprintf.
9493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9494         * doc/posix-functions/dprintf.texi: Update documentation regarding
9495         MSVC 9.
9496         * doc/posix-functions/fprintf.texi: Likewise.
9497         * doc/posix-functions/printf.texi: Likewise.
9498         * doc/posix-functions/snprintf.texi: Likewise.
9499         * doc/posix-functions/sprintf.texi: Likewise.
9500         * doc/posix-functions/swprintf.texi: Likewise.
9501         * doc/posix-functions/vdprintf.texi: Likewise.
9502         * doc/posix-functions/vfprintf.texi: Likewise.
9503         * doc/posix-functions/vprintf.texi: Likewise.
9504         * doc/posix-functions/vsnprintf.texi: Likewise.
9505         * doc/posix-functions/vsprintf.texi: Likewise.
9506         * doc/glibc-functions/asprintf.texi: Likewise.
9507         * doc/glibc-functions/obstack_printf.texi: Likewise.
9508         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9509         * doc/glibc-functions/vasprintf.texi: Likewise.
9510
9511 2011-09-10  Bruno Haible  <bruno@clisp.org>
9512
9513         nocrash: Add support for native Windows.
9514         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9515
9516 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9517             Bruno Haible  <bruno@clisp.org>
9518
9519         absolute-header, include-next: Add support for MSVC compiler.
9520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9521         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9522         directory separator in #line directives.
9523         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9524         recognize also backslash as directory separator in #line directives.
9525
9526 2011-09-08  Jim Meyering  <meyering@redhat.com>
9527
9528         maint.mk: mark the post-release commit log with "maint: " prefix
9529         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9530         one-line commit-log summary.
9531
9532 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9533             Bruno Haible  <bruno@clisp.org>
9534
9535         Doc about crypt functions.
9536         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9537         systems.
9538         * doc/posix-functions/encrypt.texi: Likewise.
9539         * doc/posix-functions/setkey.texi: Likewise.
9540
9541 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9542
9543         * lib/gc.h: Fix copyright header.
9544
9545 2011-09-07  Bruno Haible  <bruno@clisp.org>
9546
9547         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9548         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9549         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9550
9551 2011-09-07  Bruno Haible  <bruno@clisp.org>
9552
9553         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9554         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9555         * lib/freopen.c: Likewise.
9556         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9557         * lib/lstat.c: Likewise.
9558         * lib/stat.c: Likewise.
9559         * lib/open.c: Use different syntax for include of <fcntl.h>.
9560         * lib/openat.c: Include fcntl.h again, explicitly.
9561
9562 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9563
9564         parse-datetime: document the newly accepted format
9565         * doc/parse-datetime.texi (Combined date and time of day items):
9566         New section.
9567
9568 2011-09-06  Bruno Haible  <bruno@clisp.org>
9569
9570         acl: Fix a test failure on newer Solaris 10 with ZFS.
9571         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9572         ENOSYS as no ACL.
9573         Reported by Jim Meyering.
9574
9575 2011-09-06  Bruno Haible  <bruno@clisp.org>
9576
9577         acl: Update for AIX >= 5.3 with NFS.
9578         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9579         ENOSYS as no ACL.
9580
9581         acl: Fix a test failure on AIX >= 5.3 with NFS.
9582         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9583         as no ACL.
9584
9585 2011-09-06  Bruno Haible  <bruno@clisp.org>
9586
9587         acl: Fix a test failure on IRIX 6.5 with NFS.
9588         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9589         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9590         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9591         * lib/copy-acl.c (qcopy_acl): Likewise.
9592
9593 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9594
9595         openat: port to AIX 7.1 with large files
9596         AIX 7.1 does a "#define openat open64at" if large files are in use,
9597         so we can't simply #undef openat.  Use the orig_openat trick (similar
9598         to orig_open in lib/open.c) to work around the problem.  Problem
9599         reported by Kevin Brott for GNU tar, in the thread containing
9600         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9601         * lib/openat.c (__need_system_fcntl_h): Define first.
9602         Include <fcntl.h> and <sys/types.h> before undefining.
9603         (orig_openat) [HAVE_OPENAT]: New inline function.
9604         (openat) [HAVE_OPENAT]: Do not undef.
9605         (rpl_openat): Use orig_openat, not openat.
9606
9607 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9608             Bruno Haible  <bruno@clisp.org>
9609
9610         acl: Avoid errors on NonStop Kernel.
9611         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9612         ENOTSUP errors.
9613
9614 2011-09-05  Bruno Haible  <bruno@clisp.org>
9615
9616         acl: Clean up Solaris code.
9617         * lib/acl-internal.h: Remove no-op #if.
9618         * lib/file-has-acl.c: Likewise.
9619         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9620         * lib/copy-acl.c (qcopy_acl): Likewise.
9621
9622 2011-09-05  Bruno Haible  <bruno@clisp.org>
9623
9624         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9625         binaries built on the original Solaris 10.
9626         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9627         trivial.
9628
9629 2011-09-05  Bruno Haible  <bruno@clisp.org>
9630
9631         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9632         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9633         10.
9634         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9635         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9636         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9637         instead of acl_get, facl_get, acl_set, facl_set.
9638
9639 2011-09-05  Bruno Haible  <bruno@clisp.org>
9640
9641         copy-file: Try unit tests on more file systems.
9642         * tests/test-copy-file-1.sh: New file.
9643         * tests/test-copy-file-2.sh: New file.
9644         * modules/copy-file-tests (Files): Add them.
9645         (Makefile.am): Add them to TESTS.
9646
9647         acl: Try unit tests on more file systems.
9648         * tests/test-file-has-acl-1.sh: New file.
9649         * tests/test-file-has-acl-2.sh: New file.
9650         * tests/test-set-mode-acl-1.sh: New file.
9651         * tests/test-set-mode-acl-2.sh: New file.
9652         * tests/test-copy-acl-1.sh: New file.
9653         * tests/test-copy-acl-2.sh: New file.
9654         * modules/acl-tests (Files): Add them.
9655         (Makefile.am): Add them to TESTS.
9656
9657 2011-09-04  Bruno Haible  <bruno@clisp.org>
9658
9659         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9660         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9661         10.
9662         (OLD_ALLOW, OLD_DENY): New macros.
9663         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9664         ACE_ACCESS_ALLOWED_ACE_TYPE.
9665         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9666         ACE_ACCESS_DENIED_ACE_TYPE.
9667         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9668         (NEW_ACE_EXECUTE): Fix value.
9669         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9670         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9671         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9672         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9673         NEW_ACE_SYNCHRONIZE): New macros.
9674         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9675         instead of acl_fromtext, acl_set, facl_set.
9676         Fixes a coreutils/tests/cp/perm failure.
9677
9678 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9679
9680         openat: test for fstatat (..., 0) bug
9681         Further testing with tar suggests that fstatat (..., 0)
9682         does not work in general, on AIX 7.1; see
9683         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9684         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9685         replacement fstatat (which is what older AIX releases were using
9686         anyway).
9687         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9688         use is now changed to orig_fstatat.  This was probably the right
9689         thing to do anyway.
9690         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9691         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9692         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9693         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9694         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9695         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9696         if the bug is found.
9697
9698         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9699         This tests for another fstatat bug on AIX 7.1:
9700         fstatat (AT_FDCWD, ..., 0) does not work.  See
9701         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9702         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9703         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9704         (rpl_fstatat): Adjust so that it works around either (or both)
9705         bugs if present.
9706         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9707
9708 2011-09-03  Karl Berry  <karl@gnu.org>
9709
9710         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9711         in index entries.
9712
9713 2011-09-02  Bruno Haible  <bruno@clisp.org>
9714
9715         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9716         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9717         values of AR, ARFLAGS, RANLIB.
9718         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9719
9720 2011-09-02  Bruno Haible  <bruno@clisp.org>
9721
9722         Find 'ar' program that fits with --host argument.
9723         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9724
9725 2011-09-02  Bruno Haible  <bruno@clisp.org>
9726
9727         tests: init.sh: Support any non-GNU diff.
9728         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9729         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9730         Solaris 8.
9731
9732 2011-09-02  Bruno Haible  <bruno@clisp.org>
9733
9734         tests: init.sh: work also with any non-GNU diff that supports -u
9735         * tests/init.sh: Relax check for diff -u support.
9736         Rather than checking for GNU diff via --version, simply check
9737         for support for -u itself.  Useful at least on OpenBSD 4.9,
9738         AIX 7.1, IRIX 6.5, and Solaris 10.
9739
9740 2011-09-01  Bruno Haible  <bruno@clisp.org>
9741
9742         strtoimax, strtoumax: Document problem on HP-UX 11.
9743         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9744         * doc/posix-functions/strtoumax.texi: Likewise.
9745
9746 2011-09-01  Bruno Haible  <bruno@clisp.org>
9747
9748         strtoumax: Avoid link error on OSF/1 with DTK cc.
9749         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9750         defined as a function.
9751         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9752         strtoumax is defined, not whether it is declared.
9753
9754 2011-09-01  Bruno Haible  <bruno@clisp.org>
9755
9756         strtoimax: Avoid link error on OSF/1 with DTK cc.
9757         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9758         defined as a function.
9759         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9760         strtoimax is defined, not whether it is declared.
9761
9762 2011-09-01  Bruno Haible  <bruno@clisp.org>
9763
9764         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9765         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9766         as a function.
9767         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9768         whether it is declared.
9769
9770 2011-09-01  Bruno Haible  <bruno@clisp.org>
9771
9772         imaxabs: Avoid link error on OSF/1 with DTK cc.
9773         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9774         as a function.
9775         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9776         whether it is declared.
9777
9778 2011-09-01  Bruno Haible  <bruno@clisp.org>
9779
9780         Tests for module 'strtoumax'.
9781         * modules/strtoumax-tests: New file.
9782         * tests/test-strtoumax.c: New file.
9783
9784         Tests for module 'strtoimax'.
9785         * modules/strtoimax-tests: New file.
9786         * tests/test-strtoimax.c: New file.
9787
9788         Tests for module 'imaxdiv'.
9789         * modules/imaxdiv-tests: New file.
9790         * tests/test-imaxdiv.c: New file.
9791
9792         Tests for module 'imaxabs'.
9793         * modules/imaxabs-tests: New file.
9794         * tests/test-imaxabs.c: New file.
9795
9796 2011-09-01  Bruno Haible  <bruno@clisp.org>
9797
9798         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9799         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9800         pthread_create.
9801
9802 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9803
9804         openat: work around AIX 7.1 fstatat issue
9805         This should fix the problem that was not properly fixed
9806         in the previous change, dated 2011-08-30.
9807         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9808         __need_system_stat_h defined.
9809         (orig_fstatat) [HAVE_FSTATAT]: New function.
9810         (rpl_fstatat): Go back to the old way of doing things,
9811         except call orig_fstatat instead of fstatat.
9812         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9813         Remove unnecessary check whether fstatat fills in st_size etc.
9814
9815 2011-09-01  Bruno Haible  <bruno@clisp.org>
9816
9817         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9818         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9819         just include the system's header.
9820
9821 2011-08-31  Jim Meyering  <meyering@redhat.com>
9822
9823         tests: avoid spurious assertion failure in test-float.c on ppc64
9824         * tests/test-float.c (test_long_double): Comment out an assertion,
9825         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9826         with gcc-4.4.4.
9827
9828         maint: indent with spaces, not TABs
9829         I need to get in the habit of running gnulib's "make check".
9830         Both of these would have been caught.
9831         * m4/largefile.m4: Indent with spaces, not TABs.
9832         * lib/parse-datetime.y (iso_8601_time): Likewise.
9833         Spotted by Pádraig Brady.
9834
9835         test-parse-datetime.c: accommodate a relatively strict gcc warning
9836         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9837         to avoid a warning from gcc's -Werror=missing-declarations.
9838         Insert a few spaces-before-funcall-parenthesis.
9839
9840 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9841
9842         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9843         The parser now accepts ISO 8601 date-time strings with "T" as the
9844         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9845         with a space between the date and time strings.  Now it also parses
9846         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9847         variants like "2004-02-29T16:21:42.333-07:00"
9848         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9849         of day representation using the 'T' separator character.
9850         * doc/parse-datetime.texi (General date syntax): replace use of
9851         deprecated --iso-8601 option with --rfc-3339 in example of date
9852         command output formats that can be parsed.
9853         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9854         lib/parse-datetime.y.
9855         (gmt_offset): New function.
9856         (main): Add additional test cases to validate ISO8601 extended
9857         date and time of day parsing.
9858
9859 2011-08-31  Bruno Haible  <bruno@clisp.org>
9860
9861         freopen: Documentation.
9862         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9863         name.
9864         Reported by Claudio Bley <claudio.bley@gmail.com>.
9865
9866 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9867
9868         freopen: Don't crash if the filename argument is NULL.
9869         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9870         NULL.
9871
9872 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9873
9874         openat: work around AIX 7.1 fstatat bug
9875         Problem reported by Kevin Brott for GNU tar, in the thread containing
9876         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9877         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9878         FSTATAT_ST_SIZE_ETC_BROKEN.
9879         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9880         rpl_fstatat.
9881         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9882         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9883         AC_CHECK_FUNCS_ONCE for fstatat.
9884         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9885         fchmodat, mkdirat, openat and unlinkat.
9886
9887 2011-08-30  Bruno Haible  <bruno@clisp.org>
9888
9889         Avoid endless recursions if config.h includes some header files.
9890         * lib/fopen.c (__need_FILE): Define already before including config.h.
9891         * lib/freopen.c (__need_FILE): Likewise.
9892         * lib/open.c (__need_system_fcntl_h): Likewise.
9893         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9894         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9895         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9896
9897 2011-08-25  Karl Berry  <karl@gnu.org>
9898
9899         * config/srclist.txt (ylwrap): new try.
9900         * build-aux/ylwrap: new file.
9901
9902 2011-08-23  Bruno Haible  <bruno@clisp.org>
9903
9904         tmpdir: Use a good default directory on native Windows.
9905         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9906         (P_tmpdir): Default to _P_tmpdir on native Windows.
9907         (path_search): On native Windows, try the value returned by GetTempPath
9908         before trying P_tmpdir.
9909         * modules/tmpdir (Depends-on): Add pathmax.
9910         Suggested by John Darrington <john@darrington.wattle.id.au>.
9911
9912 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9913
9914         doc: fix typo in README-release
9915         * top/README-release: Capitalize first word of a sentence.
9916
9917 2011-08-19  Jim Meyering  <meyering@redhat.com>
9918
9919         fts: do not exhaust memory when processing million-entry directories
9920         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9921         directory would require about 256*N bytes of memory.  Thus, it was
9922         easy to construct a directory too large to be processed by any of
9923         those tools.  With this change, fts' maximum memory utilization is
9924         now limited to around 30MB.
9925         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9926         (fts_read): When we've processed the final entry (i.e., when
9927         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9928         using the parent entry to read any remaining entries.  Dispatch
9929         depending on what fts_build returns:
9930         - NULL+stop, aka failure: stop
9931         - NULL otherwise: move up in the dir hierarchy
9932         - non-NULL: handle this new entry
9933         (fts_build): Declare and use new local, continue_readdir.
9934         Prepare to be called from fts_read, when the entries
9935         from a partially-read directory have just been exhausted.
9936         In that case, we'll skip the opendir and instead use the parent's
9937         fts_dirp and derive dir_fd from that.
9938         Finally, in the readdir loop, if we read max_entries entries,
9939         exit the loop ensuring *not* to call closedir.  This is required
9940         so that fts_dirp can be reused on a subsequent call.
9941         Prompted by Ben England's report of memory exhaustion in find
9942         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9943
9944         maint: fts: move decl of `dp' down into while loop; split a long line
9945         * lib/fts.c (fts_build): No semantic change.
9946
9947         fts: add/use new struct member, fts_dirp
9948         We are about to use this to manage any directory with
9949         too many entries to read all of them into memory at once.
9950         To do that, we'll need to save the DIR* pointer in each
9951         affected FTSENT struct.
9952         * lib/fts_.h: Include <dirent.h>.
9953         (struct FTSENT) [fts_dirp]: New member.
9954         * lib/fts.c (closedir_and_clear): Define.
9955         Use it in place of closedir so that we are sure to
9956         clear the new fts_dirp member when done with it.
9957         (fts_alloc): Initialize the new member.
9958         (fts_lfree): Free, if needed.
9959
9960         maint: fts: give __opendir2 a new parameter and rename
9961         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9962         than surreptitiously using sole caller's "dir_fd".
9963         (fts_opendir): Rename from __opendir2.
9964
9965         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9966         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9967
9968         maint: fts.c: correct off-by-one indentation
9969         * lib/fts.c (fts_build): Correct indentation, change style
9970         of a couple of block comments, and bracing style.
9971
9972         maint: fts.c: move __opendir2 #define "up" out of function body
9973         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9974
9975         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9976         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9977         out for a long time and besides was useful only on BSD systems.
9978
9979 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9980
9981         regex: port to Stratus OpenVOS
9982         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9983         define to empty, rather than attempting nonportable optimizations.
9984         Problem reported by Paul Green in:
9985         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9986         and fix suggested by Eric Blake in:
9987         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9988
9989 2011-08-17  Eric Blake  <eblake@redhat.com>
9990
9991         getcwd: fix test failures on mingw
9992         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9993         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9994         test if long directory cannot be created, and allow mingw errno.
9995
9996         getcwd-lgpl: fix m4 to match relaxed test for BSD
9997         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9998         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9999         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10000         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10001         signature problem.
10002
10003         getcwd: fix compilation on mingw64
10004         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10005         getcwd.
10006         Reported by Marc-André Lureau.
10007
10008         pipe2: silence compiler warning
10009         * lib/pipe2.c (pipe2): Hide label if it is not used.
10010
10011 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10012
10013         relocatable-prog: fix link error
10014         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10015         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10016         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10017         into modules/relocatable-lib without noticing that
10018         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10019         also needs to build relocatable.c.
10020
10021 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10022
10023         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10024         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10025         shell code: it contained a 'break' that was not in a loop.
10026         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10027         via a shell-language loop; this may have been true in old Autoconf
10028         versions, but it's not true in Autoconf 2.68.  I found this bug
10029         when testing coreutils git on Solaris 8, whose shell complains
10030         about the syntax error.
10031
10032 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10033
10034         * lib/base64.c: Fix comment to reference RFC 4648.
10035         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10036         <gvtulder@gmail.com>.
10037
10038 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10039
10040         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10041
10042         po/Makefile.in.in: fix make -q problem
10043         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10044         rule, since there's no file named 'check-macro-version' and its
10045         use as a file breaks make -q.
10046         (all): Don't depend on check-macro-version.
10047         (CHECK_MACRO_VERSION): New macro.
10048         (stamp-po): Use it.
10049
10050         configmake: fix make -q problem
10051         * modules/configmake (configmake.h): Update configmake.h's time stamp
10052         even if the file does not change.  Otherwise, 'make -q' fails.
10053         Problem reported by Simon Josefsson in
10054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10055
10056 2011-08-11  Jim Meyering  <meyering@redhat.com>
10057
10058         git-version-gen: correct the advice in a comment
10059         * build-aux/git-version-gen: Correct comment.
10060         Don't recommend to list .tarball-version in .gitignore.
10061
10062 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10063
10064         base64: fix off-by-one buffer size bug
10065         Problem and (trivial) fix reported by Gijs van Tulder in
10066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10067         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10068         * tests/test-base64.c (main): Catch the bug.
10069
10070 2011-08-10  Eric Blake  <eblake@redhat.com>
10071
10072         closein: correct comments
10073         * lib/closein.c (close_stdin): Improve comments.
10074
10075 2011-08-09  Bruno Haible  <bruno@clisp.org>
10076
10077         More tests for 'fseeko'.
10078         * tests/test-fseeko3.c: New file, from Eric Blake.
10079         * tests/test-fseeko3.sh: New file.
10080         * modules/fseeko-tests (Files): Add them.
10081         (TESTS): Add test-fseeko3.sh.
10082         (check_PROGRAMS): Add test-fseeko3.
10083
10084 2011-08-09  Eric Blake  <eblake@redhat.com>
10085
10086         fseeko: remove unneeded hack
10087         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10088
10089         fseeko: fix bug on glibc
10090         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10091         Reported by John W. Eaton.
10092
10093 2011-08-08  Bruno Haible  <bruno@clisp.org>
10094
10095         unictype/base: Fix interoperability with preinstalled libunistring.
10096         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10097         Reported by Simon Josefsson.
10098
10099 2011-08-08  Bruno Haible  <bruno@clisp.org>
10100
10101         iswblank: Detect declaration correctly.
10102         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10103         AC_CHECK_DECLS invocation.
10104
10105 2011-08-08  Bruno Haible  <bruno@clisp.org>
10106
10107         tcgetsid: Detect declaration correctly.
10108         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10109         AC_CHECK_DECLS invocation.
10110         Reported by Simon Josefsson.
10111
10112 2011-08-08  Eric Blake  <eblake@redhat.com>
10113
10114         largefile: fix typo that regressed large file support
10115         * modules/largefile (configure.ac-early): Fix section name.
10116
10117 2011-08-06  Karl Berry  <karl@gnu.org>
10118
10119         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10120         a separate module.
10121
10122 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10123
10124         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10125         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10126         get prototype for free.
10127
10128 2011-08-04  Bruno Haible  <bruno@clisp.org>
10129
10130         Tests for module 'pathmax'.
10131         * modules/pathmax-tests: New file.
10132         * tests/test-pathmax.c: New file.
10133
10134         canonicalize-lgpl: Support larger filenames on the Hurd.
10135         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10136         Reported by Paul Eggert.
10137
10138         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10139         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10140         * lib/chdir-long.h: Include pathmax.h.
10141         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10142         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10143         (PATH_MAX): Remove code that is done by pathmax.h.
10144         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10145         * lib/tmpfile.c: Add a comment.
10146         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10147         * modules/chdir-long (Depends-on): Add pathmax.
10148         * modules/getcwd (Depends-on): Add pathmax.
10149         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10150         is not defined.
10151         * doc/posix-headers/limits.texi: Mention the pathmax module.
10152         * NEWS: Mention the change.
10153
10154 2011-08-02  Bruno Haible  <bruno@clisp.org>
10155
10156         pthread_sigmask: Actually use results of gl_THREADLIB.
10157         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10158         gl_THREADLIB, not gl_[]THREADLIB.
10159         Reported by Eric Blake.
10160
10161 2011-08-02  Jim Meyering  <meyering@redhat.com>
10162
10163         maint.mk: relax the default _gl_TS_function_match regexp
10164         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10165         space between function name and "(" in an "extern" declaration.
10166         That would fail to match a decl with no space there: extern void foo();
10167
10168 2011-07-31  Iain Nicol  <iain@thenicols.net>
10169
10170         git-version-gen: document that EXTRA_DIST must include .version
10171         * build-aux/git-version-gen: In the how-to-use comment, document
10172         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10173         will fail when run from an unpacked distribution tarball.
10174
10175 2011-08-01  Bruno Haible  <bruno@clisp.org>
10176
10177         wctype-h: Fix last change.
10178         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10179         REPLACE_TOWLOWER to 0.
10180         Reported by Sam Steingold <sds@gnu.org>.
10181
10182 2011-07-31  Bruno Haible  <bruno@clisp.org>
10183
10184         frexpl: Update autoconf test.
10185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10186         according to changes of 2011-06-20.
10187
10188 2011-07-31  Bruno Haible  <bruno@clisp.org>
10189
10190         sys_utsname: Add support for Minix.
10191         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10192         <sys/utsname.h>.
10193         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10194         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10195
10196 2011-07-31  Bruno Haible  <bruno@clisp.org>
10197
10198         strings: Add support for Minix.
10199         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10200         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10201         * doc/posix-headers/strings.texi: Document the Minix problem.
10202
10203 2011-07-31  Bruno Haible  <bruno@clisp.org>
10204
10205         wctype-h: Add support for Minix.
10206         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10207         REPLACE_TOWLOWER.
10208         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10209         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10210         REPLACE_ISWCNTRL.
10211
10212 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10213
10214         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10215         This is a performance improvement for 64-bit hosts: it causes the
10216         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10217
10218 2011-07-31  Bruno Haible  <bruno@clisp.org>
10219
10220         stdioext: Add support for Minix.
10221         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10222         * lib/fpurge.c (fpurge): Likewise.
10223         * lib/freadahead.c (freadahead): Likewise.
10224         * lib/freadable.c (freadable): Likewise.
10225         * lib/freading.c (freading): Likewise.
10226         * lib/freadptr.c (freadptr): Likewise.
10227         * lib/freadseek.c (freadptrinc): Likewise.
10228         * lib/fseeko.c (rpl_fseeko): Likewise.
10229         * lib/fseterr.c (fseterr): Likewise.
10230         * lib/fwritable.c (fwritable): Likewise.
10231         * lib/fwriting.c (fwriting): Likewise.
10232         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10233         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10234
10235 2011-07-31  Bruno Haible  <bruno@clisp.org>
10236
10237         errno: Port to Minix.
10238         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10239         ECONNABORTED are defined.
10240         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10241         GNULIB_defined_ECONNABORTED): New macros.
10242         * lib/strerror-override.h (strerror_override): Test also
10243         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10244         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10245         ECONNABORTED.
10246         * doc/posix-headers/errno.texi: Mention the Minix problem.
10247
10248 2011-07-31  Bruno Haible  <bruno@clisp.org>
10249
10250         Work around declaration collisions on Minix.
10251         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10252         defined, set REPLACE_MBSINIT.
10253         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10254         defined, set REPLACE_MBRTOWC.
10255         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10256         set REPLACE_MBRLEN.
10257         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10258         defined, set REPLACE_MBSRTOWCS.
10259         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10260         defined, set REPLACE_WCRTOMB.
10261         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10262         defined, set REPLACE_WCSRTOMBS.
10263
10264 2011-07-31  Bruno Haible  <bruno@clisp.org>
10265
10266         Add support for Minix with ACK compiler.
10267         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10268         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10269         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10270
10271 2011-07-31  Bruno Haible  <bruno@clisp.org>
10272
10273         Documentation about Minix.
10274         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10275         * doc/glibc-headers/*.texi: Likewise.
10276         * doc/posix-functions/*.texi: Likewise.
10277         * doc/glibc-functions/*.texi: Likewise.
10278
10279 2011-07-31  Bruno Haible  <bruno@clisp.org>
10280
10281         snippet/warn-on-use: Fix indentation.
10282         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10283
10284 2011-07-25  Jim Meyering  <meyering@redhat.com>
10285
10286         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10287         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10288         commands.
10289
10290 2011-07-27  Jim Meyering  <meyering@redhat.com>
10291
10292         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10293         * top/maint.mk (gl_extract_significant_defines_): Now that
10294         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10295         gnulib/lib/signal.in.h, and now that we recommend to
10296         define-if-undefined those two symbols in application code,
10297         we must filter them out of the "significant" list.
10298         This avoids a "make syntax-check" failure in coreutils.
10299
10300 2011-07-26  Eric Blake  <eblake@redhat.com>
10301
10302         warnings: add comments about previous patch
10303         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10304         * m4/include_next.m4: Likewise.
10305         * m4/warn-on-use.m4: Likewise.
10306         * m4/warnings.m4: Likewise, and simplify use.
10307         Suggested by Stefano Lattarini.
10308
10309         include-next, warnings: support older autoconf
10310         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10311         AS_VAR_PUSHDEF in a way that works with older autoconf.
10312         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10313         Reported by Daniel P. Berrange.
10314
10315 2011-07-25  Bruno Haible  <bruno@clisp.org>
10316
10317         fseek, ftell: Fix doc.
10318         * doc/posix-functions/fseek.texi: Reword statement about
10319         AC_SYS_LARGEFILE.
10320         * doc/posix-functions/ftell.texi: Likewise.
10321
10322 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10323             Bruno Haible  <bruno@clisp.org>
10324
10325         Add dependencies to the 'largefile' module.
10326         * modules/fopen (Depends-on): Add 'largefile'.
10327         * modules/freopen (Depends-on): Likewise.
10328         * modules/fseeko (Depends-on): Likewise.
10329         * modules/ftello (Depends-on): Likewise.
10330         * modules/glob (Depends-on): Likewise.
10331         * modules/lseek (Depends-on): Likewise.
10332         * modules/lstat (Depends-on): Likewise.
10333         * modules/mkostemp (Depends-on): Likewise.
10334         * modules/mkostemps (Depends-on): Likewise.
10335         * modules/mkstemp (Depends-on): Likewise.
10336         * modules/mkstemps (Depends-on): Likewise.
10337         * modules/open (Depends-on): Likewise.
10338         * modules/openat (Depends-on): Likewise.
10339         * modules/pread (Depends-on): Likewise.
10340         * modules/pwrite (Depends-on): Likewise.
10341         * modules/scandir (Depends-on): Likewise.
10342         * modules/stat (Depends-on): Likewise.
10343         * modules/tmpfile (Depends-on): Likewise.
10344         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10345         since the containing module now depends on the largefile module.
10346         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10347         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10348         off_t is fixed by gnulib.
10349         * doc/posix-functions/freopen.texi: Likewise.
10350         * doc/posix-functions/fseeko.texi: Likewise.
10351         * doc/posix-functions/fstatat.texi: Likewise.
10352         * doc/posix-functions/ftello.texi: Likewise.
10353         * doc/posix-functions/glob.texi: Likewise.
10354         * doc/posix-functions/lseek.texi: Likewise.
10355         * doc/posix-functions/lstat.texi: Likewise.
10356         * doc/posix-functions/mkstemp.texi: Likewise.
10357         * doc/posix-functions/open.texi: Likewise.
10358         * doc/posix-functions/openat.texi: Likewise.
10359         * doc/posix-functions/pread.texi: Likewise.
10360         * doc/posix-functions/pwrite.texi: Likewise.
10361         * doc/posix-functions/scandir.texi: Likewise.
10362         * doc/posix-functions/stat.texi: Likewise.
10363         * doc/posix-functions/tmpfile.texi: Likewise.
10364         * doc/glibc-functions/mkostemp.texi: Likewise.
10365         * doc/glibc-functions/mkostemps.texi: Likewise.
10366         * doc/glibc-functions/mkstemps.texi: Likewise.
10367
10368 2011-07-25  Bruno Haible  <bruno@clisp.org>
10369
10370         fcntl: Move AC_LIBOBJ invocation to module description.
10371         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10372         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10373
10374         fcntl: Remove call-in from fchdir.m4.
10375         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10377
10378         dup3: Remove potential call-in from fchdir.m4.
10379         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10380         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10381
10382         dup2: Move AC_LIBOBJ invocation to module description.
10383         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10384         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10385         Don't invoke AC_LIBOBJ.
10386         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10387
10388         dup2: Remove call-in from fchdir.m4.
10389         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10390         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10391
10392         fclose: Move AC_LIBOBJ invocation to module description.
10393         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10394         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10395         to 1.
10396         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10397
10398         fclose: Remove call-in from close.m4.
10399         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10400         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10401
10402         close: Move AC_LIBOBJ invocation to module description.
10403         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10404         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10405         1.
10406         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10407
10408         close: Remove call-in from fchdir.m4.
10409         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10411
10412         open: Move AC_LIBOBJ invocation to module description.
10413         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10414         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10415         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10416
10417         open: Remove call-in from fchdir.m4.
10418         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10419         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10420
10421         fchdir: Start to remove gl_REPLACE_* idiom.
10422         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10423         (gl_FUNC_FCHDIR): Invoke it.
10424
10425 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10426
10427         * lib/ftell.c (ftell): Comment out cast.
10428
10429         close: use gl_REPLACE_FCLOSE only if defined
10430         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10431         is defined.  The close module doesn't depend on the fclose module
10432         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10434         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10435
10436 2011-07-24  Jim Meyering  <meyering@redhat.com>
10437
10438         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10439         * tests/test-select.h (test_function): Declare as "static".
10440
10441 2011-07-24  Bruno Haible  <bruno@clisp.org>
10442
10443         doc: Mention the effects of AC_SYS_LARGEFILE.
10444         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10445         on this function.
10446         * doc/posix-functions/aio_error.texi: Likewise.
10447         * doc/posix-functions/aio_fsync.texi: Likewise.
10448         * doc/posix-functions/aio_read.texi: Likewise.
10449         * doc/posix-functions/aio_return.texi: Likewise.
10450         * doc/posix-functions/aio_suspend.texi: Likewise.
10451         * doc/posix-functions/aio_write.texi: Likewise.
10452         * doc/posix-functions/fgetpos.texi: Likewise.
10453         * doc/posix-functions/fopen.texi: Likewise.
10454         * doc/posix-functions/freopen.texi: Likewise.
10455         * doc/posix-functions/fsetpos.texi: Likewise.
10456         * doc/posix-functions/fstatvfs.texi: Likewise.
10457         * doc/posix-functions/ftruncate.texi: Likewise.
10458         * doc/posix-functions/ftw.texi: Likewise.
10459         * doc/posix-functions/getrlimit.texi: Likewise.
10460         * doc/posix-functions/glob.texi: Likewise.
10461         * doc/posix-functions/lio_listio.texi: Likewise.
10462         * doc/posix-functions/lockf.texi: Likewise.
10463         * doc/posix-functions/mkstemp.texi: Likewise.
10464         * doc/posix-functions/mmap.texi: Likewise.
10465         * doc/posix-functions/nftw.texi: Likewise.
10466         * doc/posix-functions/openat.texi: Likewise.
10467         * doc/posix-functions/opendir.texi: Likewise.
10468         * doc/posix-functions/posix_fadvise.texi: Likewise.
10469         * doc/posix-functions/posix_fallocate.texi: Likewise.
10470         * doc/posix-functions/pread.texi: Likewise.
10471         * doc/posix-functions/pwrite.texi: Likewise.
10472         * doc/posix-functions/readdir.texi: Likewise.
10473         * doc/posix-functions/readdir_r.texi: Likewise.
10474         * doc/posix-functions/rewinddir.texi: Likewise.
10475         * doc/posix-functions/scandir.texi: Likewise.
10476         * doc/posix-functions/seekdir.texi: Likewise.
10477         * doc/posix-functions/setrlimit.texi: Likewise.
10478         * doc/posix-functions/statvfs.texi: Likewise.
10479         * doc/posix-functions/telldir.texi: Likewise.
10480         * doc/posix-functions/tmpfile.texi: Likewise.
10481         * doc/posix-functions/truncate.texi: Likewise.
10482         * doc/glibc-functions/fallocate.texi: Likewise.
10483         * doc/glibc-functions/fstatfs.texi: Likewise.
10484         * doc/glibc-functions/fts_children.texi: Likewise.
10485         * doc/glibc-functions/fts_read.texi: Likewise.
10486         * doc/glibc-functions/getdirentries.texi: Likewise.
10487         * doc/glibc-functions/mkostemp.texi: Likewise.
10488         * doc/glibc-functions/mkostemps.texi: Likewise.
10489         * doc/glibc-functions/mkstemps.texi: Likewise.
10490         * doc/glibc-functions/preadv.texi: Likewise.
10491         * doc/glibc-functions/pwritev.texi: Likewise.
10492         * doc/glibc-functions/sendfile.texi: Likewise.
10493         * doc/glibc-functions/statfs.texi: Likewise.
10494
10495 2011-07-24  Bruno Haible  <bruno@clisp.org>
10496
10497         doc: Fix typo.
10498         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10499
10500 2011-07-24  Bruno Haible  <bruno@clisp.org>
10501
10502         doc: Mention fsusage.
10503         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10504
10505 2011-07-24  Bruno Haible  <bruno@clisp.org>
10506
10507         doc: Mention new glibc headers and functions.
10508         * doc/glibc-headers/gshadow.texi: New file.
10509         * doc/glibc-functions/endsgent.texi: New file.
10510         * doc/glibc-functions/fgetsgent.texi: New file.
10511         * doc/glibc-functions/fgetsgent_r.texi: New file.
10512         * doc/glibc-functions/getsgent.texi: New file.
10513         * doc/glibc-functions/getsgent_r.texi: New file.
10514         * doc/glibc-functions/getsgnam.texi: New file.
10515         * doc/glibc-functions/getsgnam_r.texi: New file.
10516         * doc/glibc-functions/putsgent.texi: New file.
10517         * doc/glibc-functions/setsgent.texi: New file.
10518         * doc/glibc-functions/sgetsgent.texi: New file.
10519         * doc/glibc-functions/sgetsgent_r.texi: New file.
10520         * doc/glibc-functions/malloc_info.texi: New file.
10521         * doc/glibc-functions/preadv.texi: New file.
10522         * doc/glibc-functions/pwritev.texi: New file.
10523         * doc/glibc-functions/register_printf_modifier.texi: New file.
10524         * doc/glibc-functions/register_printf_specifier.texi: New file.
10525         * doc/glibc-functions/register_printf_type.texi: New file.
10526         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10527         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10528         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10529         * doc/glibc-functions/pthread_getname_np.texi: New file.
10530         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10531         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10532         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10533         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10534         * doc/glibc-functions/pthread_setname_np.texi: New file.
10535         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10536         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10537         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10538         * doc/glibc-functions/qsort_r.texi: New file.
10539         * doc/glibc-functions/quick_exit.texi: New file.
10540         * doc/glibc-functions/syncfs.texi: New file.
10541         * doc/gnulib.texi: Include them.
10542         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10543         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10544         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10545         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10546         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10547         * doc/glibc-functions/execvpe.texi: Likewise.
10548
10549 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10550
10551         ftell: don't include <unistd.h>
10552         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10553         guaranteed to define off_t, and the ftell module depends on the
10554         stdio module.
10555
10556         ftell: do not assume wraparound signed arithmetic
10557         * lib/ftell.c: Include <limits.h>.
10558         (ftell): Don't assume wraparound signed arithmetic.
10559
10560 2011-07-24  Bruno Haible  <bruno@clisp.org>
10561
10562         close: No longer depend on module 'fclose'.
10563         * modules/close (Depends-on): Remove fclose.
10564         * NEWS: Mention the change.
10565         Suggested by Sam Steingold <sds@gnu.org>.
10566
10567 2011-07-24  Bruno Haible  <bruno@clisp.org>
10568
10569         fsusage: Enable large volume support on AIX >= 5.2.
10570         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10571         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10572         instead of STAT_STATVFS.
10573         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10574
10575         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10576         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10577         f_blocks field only on MacOS X.
10578
10579         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10580         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10581         * modules/fsusage (Depends-on): Add largefile.
10582
10583 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10584
10585         * README: Modernize discussion of signed integers.
10586         Assuming overflow wraparound is no longer safe.
10587         Mention ones' complement and signed magnitude.
10588
10589 2011-07-22  Bruno Haible  <bruno@clisp.org>
10590
10591         select tests, pselect tests: Refactor.
10592         * tests/test-select.h: New file, extracted from tests/test-select.c.
10593         (select_fn): New type.
10594         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10595         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10596         test_pipe): Add my_select argument.
10597         (test_function): Renamed from main. Add my_select argument.
10598         * tests/test-select.c: Move most code to tests/test-select.h. Include
10599         test-select.h.
10600         * modules/select-tests (Files): Add tests/test-select.h.
10601         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10602         (my_select, main): New functions.
10603         * modules/pselect-tests (Files): Add tests/test-select.h,
10604         tests/macros.h, tests/signature.h.
10605         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10606         (configure.ac): Check for <sys/wait.h>.
10607
10608 2011-07-22  Bruno Haible  <bruno@clisp.org>
10609
10610         sys_select tests: Check the signature of FD_*.
10611         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10612         signature tests from here...
10613         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10614         here.
10615         * modules/sys_select-tests (Files): Add tests/signature.h.
10616
10617 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10618
10619         largefile: new module, replacing large-inode
10620         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10621         * MODULES.html.sh: Add largefile, remove large-inode.
10622         * modules/largefile, m4/largefile.m4: New files.
10623         * modules/large-inode, m4/large-inode.m4: Remove.
10624
10625         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10626         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10627         implementations that use only 32 bits to count blocks.
10628         On typical hosts with 1024-byte blocks, this fails with file
10629         systems as small as 4 TiB.  Problem reported by Herb Wartens
10630         <http://debbugs.gnu.org/9140> and this should also fix a similar
10631         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10632
10633         large-inode: New module
10634         * MODULES.html.sh: Add it.
10635         * modules/large-inode, m4/large-inode.m4: New files.
10636
10637         extensions: Enable extensions on MacOS X 10.5 and later.
10638         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10639
10640 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10641
10642         file-has-acl: use acl_extended_file_nofollow if available
10643         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10644         (acl_extended_file): New macro.
10645         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10646         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10647
10648 2011-07-21  Bruno Haible  <bruno@clisp.org>
10649
10650         Declare system functions in a way that works with C++.
10651         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10652         declare fdopendir as extern "C".
10653         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10654         declare frexpl as extern "C".
10655         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10656         declare gai_strerror as extern "C".
10657         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10658         programs, declare gai_strerror as extern "C".
10659         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10660         declare getlogin_r as extern "C".
10661         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10662         as extern "C".
10663         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10664         declare ldexpl as extern "C".
10665         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10666         as extern "C".
10667         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10668         program, declare getmntinfo as extern "C".
10669         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10670         stpncpy as extern "C".
10671         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10672         program, declare __xpg_strerror_r as extern "C".
10673         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10674         strndup as extern "C".
10675         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10676         declare memset and bzero as extern "C".
10677         Reported by Sam Steingold <sds@gnu.org>.
10678
10679 2011-07-12  Jim Meyering  <meyering@redhat.com>
10680
10681         maint.mk: prohibit inclusion of "verify.h" without use
10682         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10683
10684 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10685
10686         timer-time: A new module to check for timer_settime()
10687         * m4/timer_time.m4: Check for the posix function.
10688         * modules/timer-time: Add the new module.
10689         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10690         Mention it.
10691
10692 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10693             Bruno Haible  <bruno@clisp.org>
10694
10695         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10696         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10697         not defined, assume POSIX threads and look for pthread_sigmask in
10698         $LIBS, without changing $CPPFLAGS.
10699
10700 2011-07-19  Bruno Haible  <bruno@clisp.org>
10701
10702         strstr: Update cross-compilation guess.
10703         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10704         CPUs, guess no, in view of glibc
10705         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10706         Suggested by Eric Blake. Reported by Reuben Thomas.
10707
10708 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10709
10710         getopt-gnu: suppress core dumps from detection code
10711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10712         to suppress core dumps that may well occur on glibc systems.
10713         * modules/getopt-gnu: Depend on nocrash.
10714
10715 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10716
10717         pthread_sigmask: ensure usleep is declared
10718         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10719         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10720
10721 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10722
10723         doc: Document NonStop portability issues.
10724         * doc/posix-functions/sigaction.texi (sigaction):
10725         * doc/posix-headers/signal.texi (signal.h):
10726         Document NonStop.  See Joachim Schmitz in
10727         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10728
10729 2011-07-15  Bruno Haible  <bruno@clisp.org>
10730
10731         ffsl, ffsll: Avoid unportable behaviour.
10732         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10733
10734 2011-07-15  Bruno Haible  <bruno@clisp.org>
10735
10736         ffs: More tests.
10737         * tests/test-ffs.c (NBITS): New macro.
10738         (main): Add more tests.
10739         * tests/test-ffsl.c (NBITS): New macro.
10740         (main): Add more tests.
10741         * tests/test-ffsll.c (NBITS): New macro.
10742         (main): Add more tests.
10743
10744 2011-07-15  Eric Blake  <eblake@redhat.com>
10745
10746         ffsl, ffsll: new modules
10747         * modules/ffsl: New file.
10748         * modules/ffsll: Likewise.
10749         * m4/ffsl.m4: Likewise.
10750         * m4/ffsll.m4: Likewise.
10751         * lib/ffsl.c: Likewise.
10752         * lib/ffsl.h: Likewise.
10753         * lib/ffsll.c: Likewise.
10754         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10755         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10756         * modules/string (Makefile.am): Substitute witnesses.
10757         * lib/strings.in.h (ffsl, ffsll): Declare.
10758         * modules/ffsl-tests: New test file.
10759         * modules/ffsll-tests: Likewise.
10760         * tests/test-ffsl.c: Likewise.
10761         * tests/test-ffsll.c: Likewise.
10762         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10763         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10764         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10765
10766         ffs: fix m4 prerequisite
10767         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10768
10769         ffs: avoid undefined behavior
10770         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10771         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10772         Reported by Bruno Haible.
10773
10774 2011-07-12  Bruno Haible  <bruno@clisp.org>
10775
10776         pthread_sigmask: Rely on module 'threadlib'.
10777         * modules/pthread_sigmask (Depends-on): Add threadlib.
10778         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10779         is defined.
10780
10781 2011-07-12  Bruno Haible  <bruno@clisp.org>
10782
10783         regex: Depend on module 'strcase'.
10784         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10785
10786 2011-07-12  Jim Meyering  <meyering@redhat.com>
10787
10788         warn-on-use: fix typo in file name
10789         * modules/snippet/warn-on-use (Files): Correct file name:
10790         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10791
10792 2011-07-12  Bruno Haible  <bruno@clisp.org>
10793
10794         strings: Document module.
10795         * doc/posix-headers/strings.texi: Mention module 'strings'.
10796
10797 2011-07-12  Bruno Haible  <bruno@clisp.org>
10798
10799         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10800         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10801         (Files, Makefile.am): Update.
10802         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10803         * modules/stdlib (Depends-on): Update.
10804
10805 2011-07-12  Bruno Haible  <bruno@clisp.org>
10806
10807         * NEWS: Mention the changes.
10808
10809         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10810         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10811         (Files, Makefile.am): Update.
10812         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10813         * modules/arpa_inet (Depends-on): Update.
10814         * modules/ctype (Depends-on): Update.
10815         * modules/dirent (Depends-on): Update.
10816         * modules/fcntl-h (Depends-on): Update.
10817         * modules/glob (Depends-on): Update.
10818         * modules/iconv-h (Depends-on): Update.
10819         * modules/inttypes-incomplete (Depends-on): Update.
10820         * modules/langinfo (Depends-on): Update.
10821         * modules/locale (Depends-on): Update.
10822         * modules/math (Depends-on): Update.
10823         * modules/netdb (Depends-on): Update.
10824         * modules/poll-h (Depends-on): Update.
10825         * modules/pty (Depends-on): Update.
10826         * modules/search (Depends-on): Update.
10827         * modules/signal (Depends-on): Update.
10828         * modules/spawn (Depends-on): Update.
10829         * modules/stdio (Depends-on): Update.
10830         * modules/stdlib (Depends-on): Update.
10831         * modules/string (Depends-on): Update.
10832         * modules/strings (Depends-on): Update.
10833         * modules/sys_file (Depends-on): Update.
10834         * modules/sys_ioctl (Depends-on): Update.
10835         * modules/sys_select (Depends-on): Update.
10836         * modules/sys_socket (Depends-on): Update.
10837         * modules/sys_stat (Depends-on): Update.
10838         * modules/sys_time (Depends-on): Update.
10839         * modules/sys_times (Depends-on): Update.
10840         * modules/sys_utsname (Depends-on): Update.
10841         * modules/sys_wait (Depends-on): Update.
10842         * modules/termios (Depends-on): Update.
10843         * modules/time (Depends-on): Update.
10844         * modules/unistd (Depends-on): Update.
10845         * modules/wchar (Depends-on): Update.
10846         * modules/wctype-h (Depends-on): Update.
10847         * MODULES.html.sh (Support for building libraries and executables):
10848         Update.
10849
10850         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10851         * modules/snippet/unused-parameter: Renamed from
10852         modules/unused-parameter.
10853         (Files, Makefile.am): Update.
10854         * build-aux/snippet/unused-parameter.h: Renamed from
10855         build-aux/unused-parameter.h.
10856         * modules/selinux-h (Depends-on): Update.
10857         * modules/unistr/base (Depends-on): Update.
10858         * MODULES.html.sh (Core language properties): Update.
10859
10860         Rename module 'link-warning' to 'snippet/link-warning'.
10861         * modules/snippet/link-warning: Renamed from modules/link-warning.
10862         (Files, Makefile.am): Update.
10863         * build-aux/snippet/link-warning.h: Renamed from
10864         build-aux/link-warning.h.
10865         * MODULES.html.sh (Support for building libraries and executables):
10866         Update.
10867
10868         Rename module 'c++defs' to 'snippet/c++defs'.
10869         * modules/snippet/c++defs: Renamed from modules/c++defs.
10870         (Files, Makefile.am): Update.
10871         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10872         * modules/arpa_inet (Depends-on): Update.
10873         * modules/ctype (Depends-on): Update.
10874         * modules/dirent (Depends-on): Update.
10875         * modules/fcntl-h (Depends-on): Update.
10876         * modules/glob (Depends-on): Update.
10877         * modules/iconv-h (Depends-on): Update.
10878         * modules/langinfo (Depends-on): Update.
10879         * modules/locale (Depends-on): Update.
10880         * modules/math (Depends-on): Update.
10881         * modules/netdb (Depends-on): Update.
10882         * modules/poll-h (Depends-on): Update.
10883         * modules/pty (Depends-on): Update.
10884         * modules/search (Depends-on): Update.
10885         * modules/signal (Depends-on): Update.
10886         * modules/spawn (Depends-on): Update.
10887         * modules/stdio (Depends-on): Update.
10888         * modules/stdlib (Depends-on): Update.
10889         * modules/string (Depends-on): Update.
10890         * modules/strings (Depends-on): Update.
10891         * modules/sys_ioctl (Depends-on): Update.
10892         * modules/sys_select (Depends-on): Update.
10893         * modules/sys_socket (Depends-on): Update.
10894         * modules/sys_stat (Depends-on): Update.
10895         * modules/sys_time (Depends-on): Update.
10896         * modules/sys_wait (Depends-on): Update.
10897         * modules/termios (Depends-on): Update.
10898         * modules/time (Depends-on): Update.
10899         * modules/unistd (Depends-on): Update.
10900         * modules/wchar (Depends-on): Update.
10901         * modules/wctype-h (Depends-on): Update.
10902
10903         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10904         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10905         (Files, Makefile.am): Update.
10906         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10907         * modules/argv-iter (Depends-on): Update.
10908         * modules/arpa_inet (Depends-on): Update.
10909         * modules/dirent (Depends-on): Update.
10910         * modules/fcntl-h (Depends-on): Update.
10911         * modules/fnmatch (Depends-on): Update.
10912         * modules/getopt-posix (Depends-on): Update.
10913         * modules/glob (Depends-on): Update.
10914         * modules/iconv-h (Depends-on): Update.
10915         * modules/inttypes-incomplete (Depends-on): Update.
10916         * modules/locale (Depends-on): Update.
10917         * modules/math (Depends-on): Update.
10918         * modules/netdb (Depends-on): Update.
10919         * modules/search (Depends-on): Update.
10920         * modules/signal (Depends-on): Update.
10921         * modules/spawn (Depends-on): Update.
10922         * modules/stdio (Depends-on): Update.
10923         * modules/stdlib (Depends-on): Update.
10924         * modules/string (Depends-on): Update.
10925         * modules/strings (Depends-on): Update.
10926         * modules/sys_socket (Depends-on): Update.
10927         * modules/sys_stat (Depends-on): Update.
10928         * modules/sys_time (Depends-on): Update.
10929         * modules/sys_times (Depends-on): Update.
10930         * modules/sys_utsname (Depends-on): Update.
10931         * modules/time (Depends-on): Update.
10932         * modules/unistd (Depends-on): Update.
10933         * modules/wchar (Depends-on): Update.
10934         * MODULES.html.sh (Support for building libraries and executables):
10935         Update.
10936
10937 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10938
10939         Improvements on _Noreturn and related modules.
10940
10941         modules/_Exit-tests: test _Noreturn too
10942         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10943         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10944         (main): Use them.
10945
10946         stdnoreturn, stdnoreturn-tests: remove modules
10947         They're not needed here and a bit premature for use elsewhere.  See
10948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10949         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10950         * tests/test-stdnoreturn.c: Remove files.
10951         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10952         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10953         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10954         and using noreturn.
10955         * modules/openat, modules/sigpipe-die, modules/xalloc:
10956         * modules/xmemdup0, modules/xstrtol:
10957         Remove dependency on stdnoreturn.
10958
10959         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10960         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10961         Reparenthesize to avoid GCC warning.
10962         Support Microsoft's syntax.
10963         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10964
10965         _Noreturn-tests: remove module
10966         * modules/_Noreturn-tests: Remove.
10967         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10968         * tests/test-_Noreturn.c: Remove.
10969         * tests/test-stdnoreturn.c: Merge from the old
10970         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10971
10972 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10973
10974         _Noreturn, stdnoreturn, and related modules.
10975
10976         * top/maint.mk: Adjust to new noreturn support.
10977         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10978         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10979
10980         xalloc: use stdnoreturn.h
10981         * lib/xalloc.h: Include <stdnoreturn.h>.
10982         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10983         * modules/xalloc (Depends-on): Add stdnoreturn.
10984
10985         xstrtol: use stdnoreturn.h
10986         * lib/xstrtol.h: Include <stdnoreturn.h>.
10987         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10988         * modules/xstrtol (Depends-on): Add stdnoreturn.
10989
10990         xmemdup0: use stdnoreturn.h
10991         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10992         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10993         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10994
10995         sigpipe-die: use stdnoreturn.h
10996         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10997         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10998         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10999
11000         openat: use stdnoreturn.h
11001         * lib/openat.h: Include <stdnoreturn.h>.
11002         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11003         * modules/openat (Depends-on): Add stdnoreturn.
11004
11005         * lib/openat-die.c (openat_save_fail): Modernize comment.
11006
11007         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11008
11009         * lib/glthread/thread.h: Modernize comment.
11010
11011         obstack: use _Noreturn
11012         * lib/obstack.c (__attribute__): Remove macro.
11013         (print_and_abort): Use _Noreturn.
11014
11015         c-stack: use _Noreturn
11016         * lib/c-stack.c (die, overflow_handler, segv_handler):
11017         Use _Noreturn rather than __attribute__((noreturn)).
11018
11019         argmatch-tests, exclude_tests: use _Noreturn
11020         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11021         Remove.
11022         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11023
11024         stdlib: use _Noreturn
11025         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11026         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11027         * modules/stdlib (Depends-on): Add _Noreturn.
11028         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11029
11030         stdnoreturn-tests: new module
11031         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11032
11033         stdnoreturn: new module
11034         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11035         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11036
11037         _Noreturn-tests: new module
11038         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11039
11040         _Noreturn: new module
11041         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11042         New section, mentioning it.
11043         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11044
11045         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11046
11047 2011-07-11  Eric Blake  <eblake@redhat.com>
11048
11049         ffs: new module
11050         * modules/ffs: New file.
11051         * m4/ffs.m4: Likewise.
11052         * lib/ffs.c: Likewise.
11053         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11054         * modules/strings (Makefile.am): Substitute witness.
11055         (Depends-on): Add c++defs.
11056         * lib/strings.in.h (ffs): Declare.
11057         * modules/ffs-tests: New test file.
11058         * tests/test-ffs.c: Test new module.
11059         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11060         * doc/posix-functions/ffs.texi (ffs): Likewise.
11061
11062         regex: avoid compiler warning
11063         * lib/regex.c (includes): Include <strings.h>, for use of
11064         strcasecmp in regcomp.c.
11065         Reported by Joachim Schmitz.
11066
11067 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11068
11069         stdint: respect system's intmax_t if INTMAX_MAX
11070         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11071         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11072         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11073         long but int64_t is long long, and where we will clash with the
11074         system intmax_t if we override it.  See
11075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11076         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11077         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11078         similarly for UINTMAX_C.
11079
11080 2011-07-08  Bruno Haible  <bruno@clisp.org>
11081
11082         pthread_sigmask tests: Avoid a compiler warning.
11083         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11084         non-zero.
11085
11086         sigprocmask tests: A better way to avoid a compiler warning.
11087         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11088         (main): Complain if system() returns non-zero.
11089         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11090
11091 2011-07-08  Bruno Haible  <bruno@clisp.org>
11092
11093         pthread_sigmask: Work around IRIX bug.
11094         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11095         bug.
11096         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11097         there may be unblocked pending signals.
11098         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11099
11100 2011-07-08  Bruno Haible  <bruno@clisp.org>
11101
11102         pthread_sigmask: Work around Cygwin bug.
11103         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11104         bug.
11105         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11106         the system's pthread_sigmask function.
11107         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11108
11109 2011-07-08  Bruno Haible  <bruno@clisp.org>
11110
11111         pthread_sigmask: Work around bug in single-threaded implementation.
11112         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11113         FreeBSD, HP-UX, Solaris bug.
11114         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11115         * lib/pthread_sigmask.c: Include <stddef.h>.
11116         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11117         the system's pthread_sigmask function.
11118         * modules/pthread_sigmask (configure.ac): Invoke
11119         gl_PREREQ_PTHREAD_SIGMASK.
11120         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11121         HP-UX, Solaris.
11122
11123 2011-07-08  Eric Blake  <eblake@redhat.com>
11124
11125         test-sigprocmask: avoid compiler warning
11126         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11127         * tests/test-sigprocmask.c (main): Use it to silence warning.
11128         Reported by Jim Meyering.
11129
11130         test-snprintf: avoid compiler warning
11131         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11132         * tests/test-vsnprintf.c (main): Likewise.
11133         Reported by Jim Meyering.
11134
11135 2011-07-08  Bruno Haible  <bruno@clisp.org>
11136
11137         Tests for module 'pthread_sigmask'.
11138         * modules/pthread_sigmask-tests: New file.
11139         * tests/test-pthread_sigmask1.c: New file, based on
11140         tests/test-sigprocmask.c.
11141         * tests/test-pthread_sigmask2.c: New file.
11142
11143 2011-07-08  Jim Meyering  <meyering@redhat.com>
11144
11145         test-getopt.h: avoid warning about an unused variable
11146         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11147
11148 2011-07-07  Jim Meyering  <meyering@redhat.com>
11149
11150         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11151         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11152         now that it no longer contains leading TABs.
11153         Remove unused "url=FIXME" statement.
11154
11155 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11156
11157         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11158         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11159         When gl_THREADLIB is not in use, assume that the POSIX sematics
11160         are desired.  This is better for Emacs, which uses POSIX semantics
11161         on GNUish and/or POSIXish platforms, and does not use threads at
11162         all otherwise.
11163
11164         pthread_sigmask: fix typo when testing for libraries
11165         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11166         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11167
11168 2011-07-08  Eric Blake  <eblake@redhat.com>
11169
11170         fts: introduce FTS_NOATIME
11171         * lib/fts_.h (FTS_NOATIME): New bit flag.
11172         (FTS_OPTIONMASK): Adjust.
11173         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11174         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11175
11176 2011-07-08  Bruno Haible  <bruno@clisp.org>
11177
11178         Tests for module 'thread'.
11179         * modules/thread-tests: New file.
11180         * tests/test-thread_self.c: New file.
11181         * tests/test-thread_create.cc: New file.
11182
11183 2011-07-08  Bruno Haible  <bruno@clisp.org>
11184
11185         thread: Avoid gcc warnings when using gl_thread_self().
11186         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11187         'void *'.
11188         (gl_thread_self_pointer): Update.
11189
11190 2011-07-07  Bruno Haible  <bruno@clisp.org>
11191
11192         signal-c++-tests: Check declaration of pthread_sigmask.
11193         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11194         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11195         $(LIB_PTHREAD_SIGMASK).
11196
11197 2011-07-07  Bruno Haible  <bruno@clisp.org>
11198
11199         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11200         * lib/signal.in.h (pthread_sigmask): Override if
11201         REPLACE_PTHREAD_SIGMASK is 1.
11202         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11203         REPLACE_PTHREAD_SIGMASK.
11204         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11205         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11206         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11207         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11208         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11209
11210 2011-07-07  Bruno Haible  <bruno@clisp.org>
11211
11212         pthread_sigmask: Ensure declaration in <signal.h>.
11213         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11214         include <pthread.h>.
11215         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11216         problem.
11217
11218 2011-07-07  Bruno Haible  <bruno@clisp.org>
11219
11220         pthread_sigmask: Document the module.
11221         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11222
11223 2011-07-07  Bruno Haible  <bruno@clisp.org>
11224
11225         pthread_sigmask: Follow gnulib conventions.
11226         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11227         gl_PTHREAD_SIGMASK.
11228         * modules/pthread_sigmask (configure.ac): Update.
11229
11230 2011-07-07  Bruno Haible  <bruno@clisp.org>
11231
11232         pthread_sigmask: Make declaration C++ safe.
11233         * lib/signal.in.h: In two special conditions, just do an #include_next.
11234         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11235         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11236         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11237         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11238         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11239         not REPLACE_PTHREAD_MASK.
11240         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11241         not REPLACE_PTHREAD_MASK.
11242         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11243
11244 2011-07-07  Bruno Haible  <bruno@clisp.org>
11245
11246         pthread_sigmask: Fix return value.
11247         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11248         * lib/pthread_sigmask.c: New file.
11249         * modules/pthread_sigmask (Files): Add it.
11250         (configure.ac): Invoke AC_LIBOBJ.
11251
11252 2011-07-07  Eric Blake  <eblake@redhat.com>
11253
11254         getopt: more portable argv creation
11255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11256         const, use char arrays rather than strings.
11257         Suggested by Paul Eggert.
11258
11259 2011-07-07  Bruno Haible  <bruno@clisp.org>
11260
11261         Tests for module 'sigprocmask'.
11262         * modules/sigprocmask-tests: New file.
11263         * tests/test-sigprocmask.c: New file.
11264
11265 2011-07-07  Bruno Haible  <bruno@clisp.org>
11266
11267         float tests: Tweak.
11268         * tests/test-float.c (main): Tweak skip message.
11269
11270 2011-07-07  Eric Blake  <eblake@redhat.com>
11271
11272         getopt: avoid compiler warning during configure
11273         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11274         assigning string literals to non-const pointer.
11275
11276         getopt-gnu: avoid crash in glibc getopt
11277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11278         * tests/test-getopt.h (test_getopt): Enhance test.
11279         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11280         * doc/posix-functions/getopt.texi (getopt): Document it.
11281         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11282         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11283         Likewise.
11284
11285 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11286
11287         getopt: handle W; without long options in getopt [BZ #12922]
11288         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11289         but no long options are defined, just return 'W'.
11290
11291 2011-07-07  Bruno Haible  <bruno@clisp.org>
11292
11293         Avoid literal tabs.
11294         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11295         variable containing a tab instead of a literal tab.
11296         Reported by Jim Meyering.
11297
11298 2011-07-07  Bruno Haible  <bruno@clisp.org>
11299
11300         Comments.
11301         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11302
11303 2011-07-06  Bruno Haible  <bruno@clisp.org>
11304
11305         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11306         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11307         <winsock2.h>.
11308         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11309         lib/sys_socket.in.h.
11310         (close, gethostname): Hide declarations from <winsock2.h>.
11311         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11312         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11313         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11314         (select): Don't override if gnulib's <sys/select.h> was already
11315         included.
11316         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11317         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11318         setsockopt, shutdown, select): Tweak indentation.
11319
11320 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11321
11322         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11323         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11324         in an application that does not use the sys_select module.
11325
11326 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11327
11328         poll: do not return 0 on timeout=-1
11329         * lib/poll.c: Loop with yield if no events occured
11330
11331 2011-07-06  Eric Blake  <eblake@redhat.com>
11332
11333         pthread_sigmask: always replace when not using pthread
11334         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11335         replacement when using some threading other than pthread.  Fix
11336         logic bug.
11337
11338 2011-07-06  Bruno Haible  <bruno@clisp.org>
11339
11340         Comments.
11341         * m4/printf.m4: Update comments about mingw.
11342
11343 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11344
11345         sys_select: define sigset_t more portably
11346         * lib/sys_select.in.h: Always include <sys/types.h>, since
11347         we now need sigset_t and mingw defines it there.
11348         Include <signal.h> before split inclusion guard, to avoid
11349         mishaps on Solaris, whose <signal.h> eventually includes us.
11350         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11351         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11352         which come from ...
11353         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11354         gl_CHECK_TYPE_SIGSET_T.
11355         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11356         does the real work.
11357         * modules/sys_select (Depends-on): Add 'signal'.
11358
11359         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11360         Suggested by Bruno Haible.
11361
11362         pselect: Use pthread_sigmask, not sigprocmask.
11363         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11364         multithreaded apps better than sigprocmask does.
11365         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11366         sigprocmask directly.
11367
11368 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11369
11370         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11371         Don't #undef,  since we don't need any underlying pselect.
11372         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11373         (Depends-on): Add select.
11374         (Link): Add $(LIBSOCKET).
11375         These changes suggested by Bruno Haible.
11376
11377         pselect: document better
11378         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11379         * doc/posix-functions/pselect.texi (pselect): Document new module.
11380
11381         pthread_sigmask: new module
11382         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11383         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11384         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11385         This is done only as a macro; I don't know how well that'll
11386         work for C++.  Move <sys/types.h> include before the include_next,
11387         to avoid mishap on Solaris.
11388         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11389         * modules/signal (Makefile.am): Substitute the check's results.
11390         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11391
11392         test-pselect: new module
11393         * modules/pselect-tests, tests/test-pselect.c: New files.
11394         * tests/test-select.c, tests/test-sys_select-c++.cc:
11395         If TEST_PSELECT is defined, test pselect instead of testing select.
11396
11397         * tests/test-sys_select.c (sigset_t): Test for it, too.
11398         Suggested by Bruno Haible.
11399
11400 2011-07-05  Eric Blake  <eblake@redhat.com>
11401
11402         snprintf: guarantee %1$d, for libintl
11403         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11404         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11405         * doc/posix-functions/snprintf.texi (snprintf): Update.
11406         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11407         * tests/test-snprintf.c (main): Enhance test.
11408         * tests/test-vsnprintf.c (main): Likewise.
11409
11410 2011-07-05  Jim Meyering  <meyering@redhat.com>
11411
11412         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11413         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11414         per Bruno's request, to accommodate this idiom (no space after "#")
11415         even when the function is inside an #if block:
11416         char *
11417         gets (char *s)
11418         #undef gets
11419         {
11420           ...
11421         }
11422
11423 2011-07-04  Jim Meyering  <meyering@redhat.com>
11424
11425         maint: indent with spaces, not TABs, and add a rule to check this
11426         * tests/test-userspec.c: Indent with spaces, not TABs.
11427         * tests/test-argp.c: Likewise.
11428         * tests/test-c-stack2.sh: Likewise.
11429         * tests/test-parse-duration.sh: Likewise
11430         * m4/strtod.m4: Likewise.
11431         * m4/alloca.m4: Likewise.
11432         * m4/pselect.m4: Likewise.
11433         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11434
11435 2011-07-03  Jim Meyering  <meyering@redhat.com>
11436
11437         maint.mk: correct omissions in prohibit_argmatch_without_use check
11438         This rule would mistakenly report that argmatch.h is included without
11439         use even when both the argmatch and invalid_arg macro were used.
11440         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11441         of argmatch and invalid_arg.
11442
11443 2011-07-03  Bruno Haible  <bruno@clisp.org>
11444
11445         Comments about EINTR.
11446         * lib/safe-read.h: Explain the purpose of this module.
11447         * lib/safe-write.h: Likewise.
11448         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11449         module.
11450         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11451         module.
11452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11453
11454 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11455
11456         xnanosleep: Rewrite to use new dtotimespec module.
11457         It has the conversion code that used to be in xnanosleep.
11458         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11459         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11460         (TIME_T_MAX): Remove.
11461         (xnanosleep): Rewrite in terms of dtotimespec.
11462         * modules/xnanosleep (Depends-on): Add dtotimespec.
11463         Remove intprops, stdbool.
11464
11465         timespec-add, timespec-sub: new modules
11466         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11467         * lib/timespec-add.c, lib/timespec-sub.c:
11468         * modules/timespec-add, modules/timespec-sub: New files.
11469
11470         dtotimespec: new module
11471         * lib/timespec.h (dtotimespec): New decl.
11472         * lib/dtotimespec.c, modules/dtotimespec: New files.
11473
11474         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11475
11476         pselect: new module
11477         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11478         (pselect): New decls.
11479         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11480         since the standard pselect decl uses 'restrict'.
11481         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11482         HAVE_PSELECT, REPLACE_PSELECT.
11483         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11484         HAVE_PSELECT, REPLACE_PSELECT.
11485         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11486
11487         sys_select: don't depend on sys_socket
11488         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11490         This fix works on GNU and GNU-like platforms, but has not been tested
11491         on native Windows.
11492         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11493         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11494         gl_HEADER_SYS_SOCKET.
11495         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11496         gl_PREREQ_SYS_H_WINSOCK2.
11497
11498 2011-06-29  Eric Blake  <eblake@redhat.com>
11499
11500         pipe2: fix C89 compile problem
11501         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11502         Reported by Bruno Haible.
11503
11504         pipe, pipe2: don't corrupt fd on error
11505         * lib/pipe.c (pipe): Leave fd unchanged on error.
11506         * lib/pipe2.c (pipe2): Likewise.
11507         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11508         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11509
11510 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11511
11512         mmap-anon: do not use regular expressions inadvertently
11513         * m4/mmap-anon.m4: Remove trailing period from strings sought
11514         in the output.
11515
11516 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11517
11518         nanosleep: fix integer overflow problem
11519         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11520         arithmetic wraps around on overflow.
11521
11522         nanosleep: simplify carrying
11523         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11524         first call to the underyling nanosleep, not for the last one.
11525         This doesn't fix any bugs, but it simplifies the computation of
11526         the remaining delay.  Found while auditing integer overflow issues.
11527
11528         dup2: remove test for existence of fcntl
11529         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11530         "#if HAVE_FCNTL", in the configure-time test program.
11531         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11532         and therefore speeds up "configure" a bit.  Found while
11533         adding the dup2 module to Emacs.
11534
11535 2011-06-24  Eric Blake  <eblake@redhat.com>
11536
11537         maint.mk: enhance useless header checks
11538         * top/maint.mk (_sc_header_without_use): Check both include
11539         styles.
11540         (sc_prohibit_assert_without_use)
11541         (sc_prohibit_close_stream_without_use)
11542         (sc_prohibit_getopt_without_use)
11543         (sc_prohibit_quotearg_without_use)
11544         (sc_prohibit_quote_without_use)
11545         (sc_prohibit_long_options_without_use)
11546         (sc_prohibit_inttostr_without_use)
11547         (sc_prohibit_ignore_value_without_use)
11548         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11549         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11550         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11551         (sc_prohibit_hash_pjw_without_use)
11552         (sc_prohibit_safe_read_without_use)
11553         (sc_prohibit_argmatch_without_use)
11554         (sc_prohibit_canonicalize_without_use)
11555         (sc_prohibit_root_dev_ino_without_use)
11556         (sc_prohibit_openat_without_use)
11557         (sc_prohibit_c_ctype_without_use)
11558         (sc_prohibit_signal_without_use)
11559         (sc_prohibit_stdio--_without_use)
11560         (sc_prohibit_stdio-safer_without_use)
11561         (sc_prohibit_strings_without_use)
11562         (sc_prohibit_intprops_without_use)
11563         (sc_prohibit_stddef_without_use)
11564         (sc_prohibit_xfreopen_without_use): Update clients.
11565
11566 2011-06-24  Jim Meyering  <meyering@redhat.com>
11567
11568         syntax-check: keep one maint.mk rule in sync with its header
11569         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11570         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11571         I prefer to avoid temporary files here, so use <(...), but that
11572         is not supported by /bin/sh, so...
11573         (SHELL): Define to /bin/bash.
11574
11575 2011-06-24  Eric Blake  <eblake@redhat.com>
11576
11577         maint.mk: update sc_prohibit_intprops_without_use
11578         * top/maint.mk (_intprops_names): Match recent changes.
11579
11580 2011-06-24  Bruno Haible  <bruno@clisp.org>
11581
11582         strerror-override: No-op tweak.
11583         * lib/strerror-override.h (strerror_override): Reorder conditions,
11584         for consistency with lib/strerror-override.c.
11585
11586 2011-06-23  Eric Blake  <eblake@redhat.com>
11587
11588         maint.mk: test further PATH_MAX issues
11589         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11590         (sc_prohibit_path_max_allocation): ...and also test alloca.
11591         Suggested by Jim Meyering.
11592
11593 2011-06-22  Eric Blake  <eblake@redhat.com>
11594
11595         maint.mk: add syntax-check to avoid char[PATH_MAX]
11596         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11597
11598         stat: be robust to PATH_MAX definition
11599         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11600         * modules/stat (Depends-on): Add verify.
11601
11602         link: work around IRIX bug
11603         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11604         * lib/link.c (rpl_link): Work around it.
11605         * tests/test-link.h (test_link): Enhance test.
11606         * doc/posix-functions/link.texi (link): Document the bug.
11607
11608         getopt: silence clang warning
11609         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11610         dereference.
11611         Reported by Gustavo Martin Domato.
11612
11613 2011-06-22  Jim Meyering  <meyering@redhat.com>
11614
11615         bootstrap: do not insert a blank line into each .gitignore file
11616         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11617
11618 2011-06-21  Eric Blake  <eblake@redhat.com>
11619
11620         perror: test for output mismatch
11621         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11622         perror on IRIX.
11623
11624         strerror_r: fix OpenBSD behavior on out-of-range
11625         * lib/strerror_r.c (strerror_r): Always use maximal string.
11626         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11627
11628         strerror_r: fix OpenBSD behavior on 0
11629         * lib/strerror-override.c (strerror_override): Also override 0
11630         when needed.
11631         * lib/strerror-override.h (strerror_override): Likewise.
11632         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11633         earlier.
11634         * lib/strerror_r.c (strerror_r): Likewise.
11635         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11636         behavior...
11637         (gl_FUNC_STRERROR_0): ...into new macro.
11638         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11639         is overridden.
11640         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11641         * modules/strerror-override (Files): Add strerror.m4.
11642         (configure.ac): Also provide override for 0 when needed.
11643         * doc/posix-functions/strerror.texi (strerror): Document this.
11644         * doc/posix-functions/perror.texi (perror): Likewise.
11645
11646         perror: adjust array size
11647         * modules/perror (Depends-on): Add strerror-override.
11648         * lib/perror.c (perror): Use it to avoid magic number.
11649
11650         strerror-override: reduce size
11651         * lib/strerror-override.c (strerror_override): Use fewer lines.
11652
11653 2011-06-20  Bruno Haible  <bruno@clisp.org>
11654
11655         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11656         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11657
11658 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11659
11660         alloca: port to compilers that can optimize like GCC 4.6.0
11661         * lib/alloca.c (find_stack_direction): New signature, taken from
11662         Autoconf git.  This works with GCC 4.6.0.  This code should never
11663         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11664         be used with other compilers that optimize as well as GCC 4.6.0 does.
11665         (alloca): Adjust to new signature.
11666         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11667         New macro, which patches Autoconf in a similar way.
11668
11669         c-stack: stop worrying about stack direction
11670         * lib/c-stack.c (find_stack_direction): Remove.
11671         (segv_handler): Don't worry about stack direction growth, as it's
11672         too much of a pain to configure this correctly, given how compilers
11673         are optimizing-away our stack-growth detection code.  Instead, assume
11674         that any access to just before or just after the stack is OK.
11675         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11676         Don't require AC_FUNC_ALLOCA; no longer needed.
11677
11678 2011-06-20  Eric Blake  <eblake@redhat.com>
11679
11680         test-stat: don't allocate PATH_MAX bytes
11681         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11682         PATH_MAX-sized buffer.
11683         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11684         * modules/stat-tests (Depends-on): Likewise.
11685         * tests/test-fstatat.c (includes): Drop pathmax.h.
11686         * tests/test-stat.c (includes): Likewise.
11687         Reported by Bruno Haible.
11688
11689 2011-06-20  Bruno Haible  <bruno@clisp.org>
11690
11691         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11692         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11693         * lib/float.c: New file.
11694         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11695         REPLACE_FLOAT_LDBL.
11696         * modules/float (Files): Add lib/float.c.
11697         (configure.ac): Invoke AC_LIBOBJ.
11698         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11699
11700 2011-06-20  Bruno Haible  <bruno@clisp.org>
11701
11702         Tests for module 'float'.
11703         * modules/float-tests: New file.
11704         * tests/test-float.c: New file.
11705
11706 2011-06-19  Bruno Haible  <bruno@clisp.org>
11707
11708         isinf: Coding style.
11709         * lib/isinf.c: Use GNU coding style.
11710
11711 2011-06-19  Bruno Haible  <bruno@clisp.org>
11712
11713         linkat test: Avoid test failure on AIX 7.1.
11714         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11715         * tests/test-link.h (test_link): Likewise.
11716
11717 2011-06-19  Bruno Haible  <bruno@clisp.org>
11718
11719         pread test: Avoid test failure on OpenBSD 4.9.
11720         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11721
11722 2011-06-19  Bruno Haible  <bruno@clisp.org>
11723
11724         sprintf-posix: Fix test failure on AIX 7.1.
11725         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11726         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11727         on AIX.
11728         * doc/posix-functions/fprintf.texi: Likewise.
11729         * doc/posix-functions/printf.texi: Likewise.
11730         * doc/posix-functions/snprintf.texi: Likewise.
11731         * doc/posix-functions/sprintf.texi: Likewise.
11732         * doc/posix-functions/vdprintf.texi: Likewise.
11733         * doc/posix-functions/vfprintf.texi: Likewise.
11734         * doc/posix-functions/vprintf.texi: Likewise.
11735         * doc/posix-functions/vsnprintf.texi: Likewise.
11736         * doc/posix-functions/vsprintf.texi: Likewise.
11737
11738 2011-06-19  Bruno Haible  <bruno@clisp.org>
11739
11740         roundl-ieee: Fix test failure on AIX 7.1.
11741         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11742         * doc/posix-functions/roundl.texi: Mention problem with negative
11743         arguments.
11744
11745 2011-06-19  Bruno Haible  <bruno@clisp.org>
11746
11747         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11748         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11749         * doc/posix-functions/round.texi: Mention problem with negative
11750         arguments.
11751         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11752
11753 2011-06-19  Bruno Haible  <bruno@clisp.org>
11754
11755         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11756         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11757         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11758         * doc/posix-functions/roundf.texi: Mention problem with negative
11759         arguments.
11760         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11761
11762 2011-06-19  Bruno Haible  <bruno@clisp.org>
11763
11764         ceilf-ieee: Work around bug on MacOS X 10.5.
11765         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11766
11767         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11768         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11769         IEEE compliant, avoid compiler optimizations.
11770         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11771         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11772         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11773         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11774         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11775         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11776         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11777         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11778         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11779         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11780
11781 2011-06-19  Bruno Haible  <bruno@clisp.org>
11782
11783         ceilf-ieee: Work around bug on AIX 7.1.
11784         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11785         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11786
11787 2011-06-19  Bruno Haible  <bruno@clisp.org>
11788
11789         ceil-ieee: Work around bug on AIX 7.1.
11790         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11791         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11792
11793 2011-06-18  Bruno Haible  <bruno@clisp.org>
11794
11795         fsync test: Avoid test failure on MacOS X and AIX.
11796         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11797         EINVAL.
11798
11799 2011-06-18  Bruno Haible  <bruno@clisp.org>
11800
11801         openat, fdopendir tests: Fix link errors.
11802         * modules/openat-tests (Depends-on): Add progname.
11803         * modules/fdopendir-tests (Depends-on): Likewise.
11804         * tests/test-fchownat.c: Include progname.h.
11805         (main): Call set_program_name.
11806         * tests/test-fstatat.c: Include progname.h.
11807         (main): Call set_program_name.
11808         * tests/test-mkdirat.c: Include progname.h.
11809         (main): Call set_program_name.
11810         * tests/test-openat.c: Include progname.h.
11811         (main): Call set_program_name.
11812         * tests/test-unlinkat.c: Include progname.h.
11813         (main): Call set_program_name.
11814         * tests/test-fdopendir.c: Include progname.h.
11815         (main): Call set_program_name.
11816
11817 2011-06-18  Bruno Haible  <bruno@clisp.org>
11818
11819         Doc update.
11820         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11821         HP-UX.
11822         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11823
11824 2011-06-18  Bruno Haible  <bruno@clisp.org>
11825
11826         getcwd tests: Avoid compilation error on HP-UX 11.31.
11827         * modules/getcwd-tests (Depends-on): Add pathmax.
11828         * tests/test-getcwd.c: Include pathmax.h.
11829
11830 2011-06-18  Bruno Haible  <bruno@clisp.org>
11831
11832         isfinite, isinf: Fix link error on AIX 6 and 7.
11833         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11834         needed, also test the macro with a 'float' argument.
11835         * m4/isinf.m4 (gl_ISINF): Likewise.
11836
11837 2011-06-18  Bruno Haible  <bruno@clisp.org>
11838
11839         getloadavg: Don't clobber LIBS. Regression from previous commit.
11840         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11841         AC_CHECK_LIB from here...
11842         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11843         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11844         gl_func_getloadavg_done.
11845         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11846
11847 2011-06-18  Bruno Haible  <bruno@clisp.org>
11848
11849         clean-temp: Improve documentation.
11850         * lib/clean-temp.h: Explain better how to use this module.
11851         Reported by John Darrington <john@darrington.wattle.id.au>.
11852
11853 2011-06-17  Bruno Haible  <bruno@clisp.org>
11854
11855         pread, pwrite: Avoid cc warning on AIX.
11856         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11857         (pwrite): Likewise.
11858
11859 2011-06-17  Bruno Haible  <bruno@clisp.org>
11860
11861         spawn-pipe tests: Fix link error.
11862         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11864
11865 2011-06-17  Bruno Haible  <bruno@clisp.org>
11866
11867         Tests: Remove unnecessary dependency.
11868         * modules/canonicalize-tests (Depends-on): Remove progname.
11869         * modules/chown-tests (Depends-on): Likewise.
11870         * modules/dirname-tests (Depends-on): Likewise.
11871         * modules/fdopendir-tests (Depends-on): Likewise.
11872         * modules/fdutimensat-tests (Depends-on): Likewise.
11873         * modules/hash-tests (Depends-on): Likewise.
11874         * modules/lchown-tests (Depends-on): Likewise.
11875         * modules/linkat-tests (Depends-on): Likewise.
11876         * modules/renameat-tests (Depends-on): Likewise.
11877         * modules/spawn-pipe-tests (Depends-on): Likewise.
11878         * modules/utimensat-tests (Depends-on): Likewise.
11879
11880 2011-06-17  Bruno Haible  <bruno@clisp.org>
11881
11882         spawn-pipe tests: Fix link error.
11883         * tests/test-spawn-pipe-child.c: Undefine fflush.
11884
11885 2011-06-17  Bruno Haible  <bruno@clisp.org>
11886
11887         Fix tests link errors.
11888         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11889         * modules/chown-tests (Makefile.am): Don't link test-chown with
11890         LIBINTL.
11891         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11892         LIBINTL.
11893         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11894         LIBINTL.
11895         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11896         LIBINTL.
11897
11898 2011-06-16  Bruno Haible  <bruno@clisp.org>
11899
11900         crypto/gc-sha1: Fix recent regression.
11901         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11902         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11903
11904         crypto/gc-md5: Fix recent regression.
11905         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11906
11907         crypto/gc-md4: Fix recent regression.
11908         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11909         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11910
11911         crypto/gc-arctwo: Fix recent regression.
11912         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11913         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11914
11915         crypto/gc-rijndael: Fix recent regression.
11916         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11917         (configure.ac): Invoke AC_LIBOBJ here.
11918         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11920
11921         crypto/gc-hmac-sha1: Fix recent regression.
11922         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11923         (configure.ac): Invoke AC_LIBOBJ here.
11924         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11925         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11926
11927         crypto/gc-hmac-md5: Fix recent regression.
11928         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11929         (configure.ac): Invoke AC_LIBOBJ here.
11930         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11931         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11932
11933         crypto/gc-des: Fix recent regression.
11934         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11935         (configure.ac): Invoke AC_LIBOBJ here.
11936         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11938
11939         crypto/gc-arcfour: Fix recent regression.
11940         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11941         (configure.ac): Invoke AC_LIBOBJ here.
11942         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11944
11945 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11946
11947         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11948         After the 2011-05-21 change, this macro requires
11949         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11950         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11951
11952 2011-06-16  Bruno Haible  <bruno@clisp.org>
11953
11954         fprintftime: Move AC_LIBOBJ invocations to module description.
11955         * m4/fprintftime.m4: Remove file.
11956         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11957         (configure.ac): Remove gl_FPRINTFTIME call.
11958         (Makefile.am): Augment lib_SOURCES.
11959         Reported by Jim Meyering.
11960
11961 2011-06-16  Bruno Haible  <bruno@clisp.org>
11962
11963         tmpfile-safer: Finish 2011-05-23 commit.
11964         * m4/stdio-safer.m4: Really remove file.
11965         Reported by Jim Meyering.
11966
11967 2011-06-16  Bruno Haible  <bruno@clisp.org>
11968
11969         syntax-check: Fix typo.
11970         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11971         printf-posix.m4.
11972         Reported by Jim Meyering.
11973
11974 2011-06-13  Jim Meyering  <meyering@redhat.com>
11975
11976         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11977         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11978
11979 2011-05-23  Bruno Haible  <bruno@clisp.org>
11980
11981         yesno: Move AC_LIBOBJ invocations to module description.
11982         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11983         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11984
11985 2011-05-23  Bruno Haible  <bruno@clisp.org>
11986
11987         xstrtol: Move AC_LIBOBJ invocations to module description.
11988         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11989         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11990
11991 2011-05-23  Bruno Haible  <bruno@clisp.org>
11992
11993         xstrtold: Move AC_LIBOBJ invocations to module description.
11994         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11995         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11996
11997 2011-05-23  Bruno Haible  <bruno@clisp.org>
11998
11999         xstrtod: Move AC_LIBOBJ invocations to module description.
12000         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12001         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12002
12003 2011-05-23  Bruno Haible  <bruno@clisp.org>
12004
12005         xnanosleep: Move AC_LIBOBJ invocations to module description.
12006         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12007         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12008
12009 2011-05-23  Bruno Haible  <bruno@clisp.org>
12010
12011         xgetcwd: Move AC_LIBOBJ invocations to module description.
12012         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12013         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12014
12015 2011-05-23  Bruno Haible  <bruno@clisp.org>
12016
12017         xalloc: Move AC_LIBOBJ invocations to module description.
12018         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12019         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12020
12021 2011-05-23  Bruno Haible  <bruno@clisp.org>
12022
12023         write-any-file: Move AC_LIBOBJ invocations to module description.
12024         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12025         invocation.
12026         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12027
12028 2011-05-23  Bruno Haible  <bruno@clisp.org>
12029
12030         utimens: Move AC_LIBOBJ invocations to module description.
12031         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12032         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12033
12034 2011-05-23  Bruno Haible  <bruno@clisp.org>
12035
12036         utimecmp: Move AC_LIBOBJ invocations to module description.
12037         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12038         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12039
12040 2011-05-23  Bruno Haible  <bruno@clisp.org>
12041
12042         userspec: Move AC_LIBOBJ invocations to module description.
12043         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12044         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12045
12046 2011-05-23  Bruno Haible  <bruno@clisp.org>
12047
12048         unlinkdir: Move AC_LIBOBJ invocations to module description.
12049         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12050         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12051
12052 2011-05-23  Bruno Haible  <bruno@clisp.org>
12053
12054         unistd-safer: Move AC_LIBOBJ invocations to module description.
12055         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12056         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12057
12058 2011-05-23  Bruno Haible  <bruno@clisp.org>
12059
12060         tempname: Move AC_LIBOBJ invocations to module description.
12061         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12062         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12063
12064 2011-05-23  Bruno Haible  <bruno@clisp.org>
12065
12066         strftime: Move AC_LIBOBJ invocations to module description.
12067         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12068         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12069
12070 2011-05-23  Bruno Haible  <bruno@clisp.org>
12071
12072         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12073         * m4/stdlib-safer.m4: Remove file.
12074         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12075         (configure.ac): Remove gl_STDLIB_SAFER call.
12076         (Makefile.am): Augment lib_SOURCES.
12077
12078 2011-05-23  Bruno Haible  <bruno@clisp.org>
12079
12080         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12081         * m4/stdio-safer.m4: Remove file.
12082         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12083         (configure.ac): Remove gl_TMPFILE_SAFER call.
12084         (Makefile.am): Augment lib_SOURCES.
12085
12086 2011-05-23  Bruno Haible  <bruno@clisp.org>
12087
12088         popen-safer: Move AC_LIBOBJ invocations to module description.
12089         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12090         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12091         (configure.ac): Remove gl_POPEN_SAFER call.
12092         (Makefile.am): Augment lib_SOURCES.
12093
12094 2011-05-23  Bruno Haible  <bruno@clisp.org>
12095
12096         freopen-safer: Move AC_LIBOBJ invocations to module description.
12097         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12098         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12099         (configure.ac): Remove gl_FREOPEN_SAFER call.
12100         (Makefile.am): Augment lib_SOURCES.
12101
12102 2011-05-23  Bruno Haible  <bruno@clisp.org>
12103
12104         fopen-safer: Move AC_LIBOBJ invocations to module description.
12105         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12106         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12107         (configure.ac): Remove gl_FOPEN_SAFER call.
12108         (Makefile.am): Augment lib_SOURCES.
12109
12110 2011-05-23  Bruno Haible  <bruno@clisp.org>
12111
12112         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12113         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12114         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12115
12116 2011-05-23  Bruno Haible  <bruno@clisp.org>
12117
12118         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12119         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12120         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12121
12122 2011-05-23  Bruno Haible  <bruno@clisp.org>
12123
12124         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12125         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12126         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12127
12128 2011-05-23  Bruno Haible  <bruno@clisp.org>
12129
12130         settime: Move AC_LIBOBJ invocations to module description.
12131         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12132         * modules/settime (Makefile.am): Augment lib_SOURCES.
12133
12134 2011-05-23  Bruno Haible  <bruno@clisp.org>
12135
12136         savedir: Move AC_LIBOBJ invocations to module description.
12137         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12138         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12139
12140 2011-05-23  Bruno Haible  <bruno@clisp.org>
12141
12142         save-cwd: Move AC_LIBOBJ invocations to module description.
12143         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12144         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12145
12146 2011-05-23  Bruno Haible  <bruno@clisp.org>
12147
12148         same: Move AC_LIBOBJ invocations to module description.
12149         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12150         * modules/same (Makefile.am): Augment lib_SOURCES.
12151
12152 2011-05-23  Bruno Haible  <bruno@clisp.org>
12153
12154         safe-write: Move AC_LIBOBJ invocations to module description.
12155         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12156         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12157         instead of gl_SAFE_WRITE.
12158         (Makefile.am): Augment lib_SOURCES.
12159
12160 2011-05-23  Bruno Haible  <bruno@clisp.org>
12161
12162         safe-read: Move AC_LIBOBJ invocations to module description.
12163         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12164         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12165         of gl_SAFE_READ.
12166         (Makefile.am): Augment lib_SOURCES.
12167
12168 2011-05-23  Bruno Haible  <bruno@clisp.org>
12169
12170         safe-alloc: Move AC_LIBOBJ invocations to module description.
12171         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12172         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12173
12174 2011-05-23  Bruno Haible  <bruno@clisp.org>
12175
12176         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12177         * m4/rijndael.m4: Remove file.
12178         * modules/crypto/rijndael (Files): Remove it.
12179         (configure.ac): Remove gl_RIJNDAEL call.
12180         (Makefile.am): Augment lib_SOURCES.
12181
12182 2011-05-23  Bruno Haible  <bruno@clisp.org>
12183
12184         readtokens: Move AC_LIBOBJ invocations to module description.
12185         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12186         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12187
12188 2011-05-23  Bruno Haible  <bruno@clisp.org>
12189
12190         read-file: Move AC_LIBOBJ invocations to module description.
12191         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12192         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12193         of gl_FUNC_READ_FILE.
12194         (Makefile.am): Augment lib_SOURCES.
12195
12196 2011-05-23  Bruno Haible  <bruno@clisp.org>
12197
12198         quotearg: Move AC_LIBOBJ invocations to module description.
12199         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12200         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12201
12202 2011-05-23  Bruno Haible  <bruno@clisp.org>
12203
12204         quote: Move AC_LIBOBJ invocations to module description.
12205         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12206         * modules/quote (Makefile.am): Augment lib_SOURCES.
12207
12208 2011-05-23  Bruno Haible  <bruno@clisp.org>
12209
12210         posixver: Move AC_LIBOBJ invocations to module description.
12211         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12212         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12213
12214 2011-05-23  Bruno Haible  <bruno@clisp.org>
12215
12216         posixtm: Move AC_LIBOBJ invocations to module description.
12217         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12218         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12219
12220 2011-05-23  Bruno Haible  <bruno@clisp.org>
12221
12222         physmem: Move AC_LIBOBJ invocations to module description.
12223         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12224         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12225
12226 2011-05-23  Bruno Haible  <bruno@clisp.org>
12227
12228         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12229         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12230         invocation.
12231         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12232
12233 2011-05-23  Bruno Haible  <bruno@clisp.org>
12234
12235         mpsort: Move AC_LIBOBJ invocations to module description.
12236         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12237         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12238
12239 2011-05-23  Bruno Haible  <bruno@clisp.org>
12240
12241         modechange: Move AC_LIBOBJ invocations to module description.
12242         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12243         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12244
12245 2011-05-23  Bruno Haible  <bruno@clisp.org>
12246
12247         mkdir-p: Move AC_LIBOBJ invocations to module description.
12248         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12249         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12250
12251 2011-05-23  Bruno Haible  <bruno@clisp.org>
12252
12253         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12254         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12255         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12256
12257 2011-05-23  Bruno Haible  <bruno@clisp.org>
12258
12259         mgetgroups: Move AC_LIBOBJ invocations to module description.
12260         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12261         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12262
12263 2011-05-23  Bruno Haible  <bruno@clisp.org>
12264
12265         memxor: Move AC_LIBOBJ invocations to module description.
12266         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12267         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12268
12269 2011-05-23  Bruno Haible  <bruno@clisp.org>
12270
12271         memcoll: Move AC_LIBOBJ invocations to module description.
12272         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12273         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12274
12275 2011-05-23  Bruno Haible  <bruno@clisp.org>
12276
12277         memcasecmp: Move AC_LIBOBJ invocations to module description.
12278         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12279         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12280
12281 2011-05-23  Bruno Haible  <bruno@clisp.org>
12282
12283         crypto/md5: Move AC_LIBOBJ invocations to module description.
12284         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12285         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12286
12287 2011-05-23  Bruno Haible  <bruno@clisp.org>
12288
12289         crypto/md4: Move AC_LIBOBJ invocations to module description.
12290         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12291         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12292
12293 2011-05-23  Bruno Haible  <bruno@clisp.org>
12294
12295         crypto/md2: Move AC_LIBOBJ invocations to module description.
12296         * m4/md2.m4: Remove file.
12297         * modules/crypto/md2 (Files): Remove it.
12298         (configure.ac): Remove gl_MD2 call.
12299         (Makefile.am): Augment lib_SOURCES.
12300
12301 2011-05-23  Bruno Haible  <bruno@clisp.org>
12302
12303         long-options: Move AC_LIBOBJ invocations to module description.
12304         * m4/long-options.m4: Remove file.
12305         * modules/long-options (Files): Remove it.
12306         (configure.ac): Remove gl_LONG_OPTIONS call.
12307         (Makefile.am): Augment lib_SOURCES.
12308
12309 2011-05-23  Bruno Haible  <bruno@clisp.org>
12310
12311         i-ring: Move AC_LIBOBJ invocations to module description.
12312         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12313         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12314
12315 2011-05-23  Bruno Haible  <bruno@clisp.org>
12316
12317         idcache: Move AC_LIBOBJ invocations to module description.
12318         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12319         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12320
12321 2011-05-23  Bruno Haible  <bruno@clisp.org>
12322
12323         human: Move AC_LIBOBJ invocations to module description.
12324         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12325         * modules/human (Makefile.am): Augment lib_SOURCES.
12326
12327 2011-05-23  Bruno Haible  <bruno@clisp.org>
12328
12329         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12330         * m4/hmac-sha1.m4: Remove file.
12331         * modules/crypto/hmac-sha1 (Files): Remove it.
12332         (configure.ac): Remove gl_HMAC_SHA1 call.
12333         (Makefile.am): Augment lib_SOURCES.
12334
12335 2011-05-23  Bruno Haible  <bruno@clisp.org>
12336
12337         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12338         * m4/hmac-md5.m4: Remove file.
12339         * modules/crypto/hmac-md5 (Files): Remove it.
12340         (configure.ac): Remove gl_HMAC_MD5 call.
12341         (Makefile.am): Augment lib_SOURCES.
12342
12343 2011-05-23  Bruno Haible  <bruno@clisp.org>
12344
12345         hash: Move AC_LIBOBJ invocations to module description.
12346         * m4/hash.m4: Remove file.
12347         * modules/hash (Files): Remove it.
12348         (configure.ac): Remove gl_HASH call.
12349         (Makefile.am): Augment lib_SOURCES.
12350
12351 2011-05-23  Bruno Haible  <bruno@clisp.org>
12352
12353         hard-locale: Move AC_LIBOBJ invocations to module description.
12354         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12355         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12356
12357 2011-05-23  Bruno Haible  <bruno@clisp.org>
12358
12359         getugroups: Move AC_LIBOBJ invocations to module description.
12360         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12361         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12362
12363 2011-05-23  Bruno Haible  <bruno@clisp.org>
12364
12365         gettime: Move AC_LIBOBJ invocations to module description.
12366         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12367         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12368
12369 2011-05-23  Bruno Haible  <bruno@clisp.org>
12370
12371         getndelim2: Move AC_LIBOBJ invocations to module description.
12372         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12373         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12374
12375 2011-05-23  Bruno Haible  <bruno@clisp.org>
12376
12377         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12378         * m4/gc-pbkdf2-sha1.m4: Remove file.
12379         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12380         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12381         (Makefile.am): Augment lib_SOURCES.
12382
12383 2011-05-23  Bruno Haible  <bruno@clisp.org>
12384
12385         fts: Move AC_LIBOBJ invocations to module description.
12386         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12387         * modules/fts (configure.ac): ... to here.
12388
12389 2011-05-23  Bruno Haible  <bruno@clisp.org>
12390
12391         file-type: Move AC_LIBOBJ invocations to module description.
12392         * m4/file-type.m4: Remove file.
12393         * modules/file-type (Files): Remove it.
12394         (configure.ac): Remove gl_FILE_TYPE call.
12395         (Makefile.am): Augment lib_SOURCES.
12396
12397 2011-05-23  Bruno Haible  <bruno@clisp.org>
12398
12399         filenamecat*: Respect rules for use of AC_LIBOBJ.
12400         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12401         Remove AC_LIBOBJ invocation.
12402         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12403         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12404
12405 2011-05-23  Bruno Haible  <bruno@clisp.org>
12406
12407         filemode: Move AC_LIBOBJ invocations to module description.
12408         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12409         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12410
12411 2011-05-23  Bruno Haible  <bruno@clisp.org>
12412
12413         openat-safer: Move AC_LIBOBJ invocations to module description.
12414         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12415         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12416
12417 2011-05-23  Bruno Haible  <bruno@clisp.org>
12418
12419         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12420         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12421         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12422
12423 2011-05-23  Bruno Haible  <bruno@clisp.org>
12424
12425         exclude: Move AC_LIBOBJ invocations to module description.
12426         * m4/exclude.m4: Remove file.
12427         * modules/exclude (Files): Remove it.
12428         (configure.ac): Remove gl_EXCLUDE call.
12429         (Makefile.am): Augment lib_SOURCES.
12430
12431 2011-05-23  Bruno Haible  <bruno@clisp.org>
12432
12433         dirname*: Respect rules for use of AC_LIBOBJ.
12434         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12435         invocations.
12436         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12437         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12438
12439 2011-05-23  Bruno Haible  <bruno@clisp.org>
12440
12441         dirent-safer: Move AC_LIBOBJ invocations to module description.
12442         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12443         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12444
12445 2011-05-23  Bruno Haible  <bruno@clisp.org>
12446
12447         crypto/des: Move AC_LIBOBJ invocations to module description.
12448         * m4/des.m4: Remove file.
12449         * modules/crypto/des (Files): Remove it.
12450         (configure.ac): Remove gl_DES call.
12451         (Makefile.am): Augment lib_SOURCES.
12452
12453 2011-05-23  Bruno Haible  <bruno@clisp.org>
12454
12455         cycle-check: Move AC_LIBOBJ invocations to module description.
12456         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12457         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12458
12459 2011-05-23  Bruno Haible  <bruno@clisp.org>
12460
12461         c-strtold: Move AC_LIBOBJ invocations to module description.
12462         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12463         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12464
12465 2011-05-23  Bruno Haible  <bruno@clisp.org>
12466
12467         c-strtod: Move AC_LIBOBJ invocations to module description.
12468         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12469         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12470
12471 2011-05-23  Bruno Haible  <bruno@clisp.org>
12472
12473         crc: Move AC_LIBOBJ invocations to module description.
12474         * m4/crc.m4: Remove file.
12475         * modules/crc (Files): Remove it.
12476         (configure.ac): Remove gl_CRC call.
12477         (Makefile.am): Augment lib_SOURCES.
12478
12479 2011-05-23  Bruno Haible  <bruno@clisp.org>
12480
12481         close-stream: Move AC_LIBOBJ invocations to module description.
12482         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12483         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12484
12485 2011-05-23  Bruno Haible  <bruno@clisp.org>
12486
12487         closeout: Move AC_LIBOBJ invocations to module description.
12488         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12489         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12490
12491 2011-05-23  Bruno Haible  <bruno@clisp.org>
12492
12493         closein: Move AC_LIBOBJ invocations to module description.
12494         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12495         * modules/closein (Makefile.am): Augment lib_SOURCES.
12496
12497 2011-05-23  Bruno Haible  <bruno@clisp.org>
12498
12499         cloexec: Move AC_LIBOBJ invocations to module description.
12500         * m4/cloexec.m4: Remove file.
12501         * modules/cloexec (Files): Remove it.
12502         (configure.ac): Remove gl_CLOEXEC call.
12503         (Makefile.am): Augment lib_SOURCES.
12504
12505 2011-05-23  Bruno Haible  <bruno@clisp.org>
12506
12507         check-version: Move AC_LIBOBJ invocations to module description.
12508         * m4/check-version.m4: Remove file.
12509         * modules/check-version (Files): Remove it.
12510         (configure.ac): Remove gl_CHECK_VERSION call.
12511         (Makefile.am): Augment lib_SOURCES.
12512
12513 2011-05-23  Bruno Haible  <bruno@clisp.org>
12514
12515         chdir-safer: Move AC_LIBOBJ invocations to module description.
12516         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12517         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12518
12519 2011-05-23  Bruno Haible  <bruno@clisp.org>
12520
12521         canonicalize: Move AC_LIBOBJ invocations to module description.
12522         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12523         AC_LIBOBJ invocation.
12524         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12525
12526 2011-05-23  Bruno Haible  <bruno@clisp.org>
12527
12528         canon-host: Move AC_LIBOBJ invocations to module description.
12529         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12530         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12531         instead of gl_CANON_HOST.
12532         (Makefile.am): Augment lib_SOURCES.
12533
12534 2011-05-23  Bruno Haible  <bruno@clisp.org>
12535
12536         backupfile: Move AC_LIBOBJ invocations to module description.
12537         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12538         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12539
12540 2011-05-23  Bruno Haible  <bruno@clisp.org>
12541
12542         argmatch: Move AC_LIBOBJ invocations to module description.
12543         * m4/argmatch.m4: Remove file.
12544         * modules/argmatch (Files): Remove it.
12545         (configure.ac): Remove gl_ARGMATCH call.
12546         (Makefile.am): Augment lib_SOURCES.
12547
12548 2011-05-23  Bruno Haible  <bruno@clisp.org>
12549
12550         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12551         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12552         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12553
12554 2011-05-23  Bruno Haible  <bruno@clisp.org>
12555
12556         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12557         * m4/arcfour.m4: Remove file.
12558         * modules/crypto/arcfour (Files): Remove it.
12559         (configure.ac): Remove gl_ARCFOUR call.
12560         (Makefile.am): Augment lib_SOURCES.
12561
12562 2011-05-22  Bruno Haible  <bruno@clisp.org>
12563
12564         write: Move AC_LIBOBJ invocations to module description.
12565         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12566         * modules/write (configure.ac): ... to here.
12567
12568 2011-05-22  Bruno Haible  <bruno@clisp.org>
12569
12570         wmemset: Move AC_LIBOBJ invocations to module description.
12571         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12572         here...
12573         * modules/wmemset (configure.ac): ... to here.
12574
12575 2011-05-22  Bruno Haible  <bruno@clisp.org>
12576
12577         wmemmove: Move AC_LIBOBJ invocations to module description.
12578         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12579         here...
12580         * modules/wmemmove (configure.ac): ... to here.
12581
12582 2011-05-22  Bruno Haible  <bruno@clisp.org>
12583
12584         wmemcpy: Move AC_LIBOBJ invocations to module description.
12585         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12586         here...
12587         * modules/wmemcpy (configure.ac): ... to here.
12588
12589 2011-05-22  Bruno Haible  <bruno@clisp.org>
12590
12591         wmemcmp: Move AC_LIBOBJ invocations to module description.
12592         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12593         here...
12594         * modules/wmemcmp (configure.ac): ... to here.
12595
12596 2011-05-22  Bruno Haible  <bruno@clisp.org>
12597
12598         wmemchr: Move AC_LIBOBJ invocations to module description.
12599         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12600         here...
12601         * modules/wmemchr (configure.ac): ... to here.
12602
12603 2011-05-22  Bruno Haible  <bruno@clisp.org>
12604
12605         wcswidth: Move AC_LIBOBJ invocations to module description.
12606         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12607         here...
12608         * modules/wcswidth (configure.ac): ... to here.
12609
12610 2011-05-22  Bruno Haible  <bruno@clisp.org>
12611
12612         wcwidth: Respect rules for use of AC_LIBOBJ.
12613         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12614         invocation from here...
12615         * modules/wcwidth (configure.ac): ... to here.
12616         (Depends-on): Update conditions.
12617
12618 2011-05-22  Bruno Haible  <bruno@clisp.org>
12619
12620         wctype: Move AC_LIBOBJ invocations to module description.
12621         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12622         invocation from here...
12623         * modules/wctype (configure.ac): ... to here.
12624         (Depends-on): Update conditions.
12625
12626 2011-05-22  Bruno Haible  <bruno@clisp.org>
12627
12628         wctrans: Move AC_LIBOBJ invocations to module description.
12629         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12630         invocation from here...
12631         * modules/wctrans (configure.ac): ... to here.
12632
12633 2011-05-22  Bruno Haible  <bruno@clisp.org>
12634
12635         wctomb: Move AC_LIBOBJ invocations to module description.
12636         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12637         invocations from here...
12638         * modules/wctomb (configure.ac): ... to here.
12639
12640 2011-05-22  Bruno Haible  <bruno@clisp.org>
12641
12642         wctob: Move AC_LIBOBJ invocations to module description.
12643         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12644         gl_PREREQ_WCTOB invocations from here...
12645         * modules/wctob (configure.ac): ... to here.
12646         (Depends-on): Update conditions.
12647
12648 2011-05-22  Bruno Haible  <bruno@clisp.org>
12649
12650         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12651         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12652         here...
12653         * modules/wcsxfrm (configure.ac): ... to here.
12654
12655 2011-05-22  Bruno Haible  <bruno@clisp.org>
12656
12657         wcstok: Move AC_LIBOBJ invocations to module description.
12658         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12659         * modules/wcstok (configure.ac): ... to here.
12660
12661 2011-05-22  Bruno Haible  <bruno@clisp.org>
12662
12663         wcsstr: Move AC_LIBOBJ invocations to module description.
12664         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12665         * modules/wcsstr (configure.ac): ... to here.
12666
12667 2011-05-22  Bruno Haible  <bruno@clisp.org>
12668
12669         wcsspn: Move AC_LIBOBJ invocations to module description.
12670         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12671         * modules/wcsspn (configure.ac): ... to here.
12672
12673 2011-05-22  Bruno Haible  <bruno@clisp.org>
12674
12675         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12676         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12677         gl_PREREQ_WCSRTOMBS invocations from here...
12678         * modules/wcsrtombs (configure.ac): ... to here.
12679
12680 2011-05-22  Bruno Haible  <bruno@clisp.org>
12681
12682         wcsrchr: Move AC_LIBOBJ invocations to module description.
12683         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12684         here...
12685         * modules/wcsrchr (configure.ac): ... to here.
12686
12687 2011-05-22  Bruno Haible  <bruno@clisp.org>
12688
12689         wcspbrk: Move AC_LIBOBJ invocations to module description.
12690         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12691         here...
12692         * modules/wcspbrk (configure.ac): ... to here.
12693
12694 2011-05-22  Bruno Haible  <bruno@clisp.org>
12695
12696         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12697         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12698         gl_PREREQ_WCSNRTOMBS invocations from here...
12699         * modules/wcsnrtombs (configure.ac): ... to here.
12700
12701 2011-05-22  Bruno Haible  <bruno@clisp.org>
12702
12703         wcsnlen: Move AC_LIBOBJ invocations to module description.
12704         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12705         here...
12706         * modules/wcsnlen (configure.ac): ... to here.
12707
12708 2011-05-22  Bruno Haible  <bruno@clisp.org>
12709
12710         wcsncpy: Move AC_LIBOBJ invocations to module description.
12711         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12712         here...
12713         * modules/wcsncpy (configure.ac): ... to here.
12714
12715 2011-05-22  Bruno Haible  <bruno@clisp.org>
12716
12717         wcsncmp: Move AC_LIBOBJ invocations to module description.
12718         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12719         here...
12720         * modules/wcsncmp (configure.ac): ... to here.
12721
12722 2011-05-22  Bruno Haible  <bruno@clisp.org>
12723
12724         wcsncat: Move AC_LIBOBJ invocations to module description.
12725         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12726         here...
12727         * modules/wcsncat (configure.ac): ... to here.
12728
12729 2011-05-22  Bruno Haible  <bruno@clisp.org>
12730
12731         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12732         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12733         from here...
12734         * modules/wcsncasecmp (configure.ac): ... to here.
12735
12736 2011-05-22  Bruno Haible  <bruno@clisp.org>
12737
12738         wcslen: Move AC_LIBOBJ invocations to module description.
12739         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12740         * modules/wcslen (configure.ac): ... to here.
12741
12742 2011-05-22  Bruno Haible  <bruno@clisp.org>
12743
12744         wcsdup: Move AC_LIBOBJ invocations to module description.
12745         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12746         * modules/wcsdup (configure.ac): ... to here.
12747
12748 2011-05-22  Bruno Haible  <bruno@clisp.org>
12749
12750         wcscspn: Move AC_LIBOBJ invocations to module description.
12751         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12752         here...
12753         * modules/wcscspn (configure.ac): ... to here.
12754
12755 2011-05-22  Bruno Haible  <bruno@clisp.org>
12756
12757         wcscpy: Move AC_LIBOBJ invocations to module description.
12758         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12759         * modules/wcscpy (configure.ac): ... to here.
12760
12761 2011-05-22  Bruno Haible  <bruno@clisp.org>
12762
12763         wcscoll: Move AC_LIBOBJ invocations to module description.
12764         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12765         here...
12766         * modules/wcscoll (configure.ac): ... to here.
12767
12768 2011-05-22  Bruno Haible  <bruno@clisp.org>
12769
12770         wcscmp: Move AC_LIBOBJ invocations to module description.
12771         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12772         * modules/wcscmp (configure.ac): ... to here.
12773
12774 2011-05-22  Bruno Haible  <bruno@clisp.org>
12775
12776         wcschr: Move AC_LIBOBJ invocations to module description.
12777         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12778         * modules/wcschr (configure.ac): ... to here.
12779
12780 2011-05-22  Bruno Haible  <bruno@clisp.org>
12781
12782         wcscat: Move AC_LIBOBJ invocations to module description.
12783         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12784         * modules/wcscat (configure.ac): ... to here.
12785
12786 2011-05-22  Bruno Haible  <bruno@clisp.org>
12787
12788         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12789         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12790         here...
12791         * modules/wcscasecmp (configure.ac): ... to here.
12792
12793 2011-05-22  Bruno Haible  <bruno@clisp.org>
12794
12795         wcrtomb: Move AC_LIBOBJ invocations to module description.
12796         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12797         invocations from here...
12798         * modules/wcrtomb (configure.ac): ... to here.
12799
12800 2011-05-22  Bruno Haible  <bruno@clisp.org>
12801
12802         wcpncpy: Move AC_LIBOBJ invocations to module description.
12803         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12804         here...
12805         * modules/wcpncpy (configure.ac): ... to here.
12806
12807 2011-05-22  Bruno Haible  <bruno@clisp.org>
12808
12809         wcpcpy: Move AC_LIBOBJ invocations to module description.
12810         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12811         * modules/wcpcpy (configure.ac): ... to here.
12812
12813 2011-05-22  Bruno Haible  <bruno@clisp.org>
12814
12815         waitpid: Move AC_LIBOBJ invocations to module description.
12816         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12817         invocation from here...
12818         * modules/waitpid (configure.ac): ... to here.
12819
12820 2011-05-22  Bruno Haible  <bruno@clisp.org>
12821
12822         utimensat: Move AC_LIBOBJ invocations to module description.
12823         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12824         here...
12825         * modules/utimensat (configure.ac): ... to here.
12826
12827 2011-05-22  Bruno Haible  <bruno@clisp.org>
12828
12829         usleep: Move AC_LIBOBJ invocations to module description.
12830         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12831         here...
12832         * modules/usleep (configure.ac): ... to here.
12833
12834 2011-05-22  Bruno Haible  <bruno@clisp.org>
12835
12836         unlockpt: Move AC_LIBOBJ invocations to module description.
12837         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12838         gl_PREREQ_UNLOCKPT invocations from here...
12839         * modules/unlockpt (configure.ac): ... to here.
12840
12841 2011-05-22  Bruno Haible  <bruno@clisp.org>
12842
12843         unlink: Respect rules for use of AC_LIBOBJ.
12844         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12845         * modules/unlink (configure.ac): ... to here.
12846
12847 2011-05-22  Bruno Haible  <bruno@clisp.org>
12848
12849         uname: Move AC_LIBOBJ invocations to module description.
12850         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12852         here...
12853         * modules/uname (configure.ac): ... to here.
12854
12855 2011-05-22  Bruno Haible  <bruno@clisp.org>
12856
12857         ttyname_r: Move AC_LIBOBJ invocations to module description.
12858         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12859         gl_PREREQ_TTYNAME_R invocations from here...
12860         * modules/ttyname_r (configure.ac): ... to here.
12861
12862 2011-05-22  Bruno Haible  <bruno@clisp.org>
12863
12864         tsearch: Move AC_LIBOBJ invocations to module description.
12865         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12866         invocations from here...
12867         * modules/tsearch (configure.ac): ... to here.
12868
12869 2011-05-22  Bruno Haible  <bruno@clisp.org>
12870
12871         towctrans: Move AC_LIBOBJ invocations to module description.
12872         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12873         AC_LIBOBJ invocation from here...
12874         * modules/towctrans (configure.ac): ... to here.
12875
12876 2011-05-22  Bruno Haible  <bruno@clisp.org>
12877
12878         tmpfile: Move AC_LIBOBJ invocations to module description.
12879         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12880         invocations from here...
12881         * modules/tmpfile (configure.ac): ... to here.
12882
12883 2011-05-22  Bruno Haible  <bruno@clisp.org>
12884
12885         times: Move AC_LIBOBJ invocations to module description.
12886         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12887         * modules/times (configure.ac): ... to here.
12888
12889 2011-05-22  Bruno Haible  <bruno@clisp.org>
12890
12891         time_r: Move AC_LIBOBJ invocations to module description.
12892         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12893         invocations from here...
12894         * modules/time_r (configure.ac): ... to here.
12895
12896 2011-05-22  Bruno Haible  <bruno@clisp.org>
12897
12898         timegm: Move AC_LIBOBJ invocations to module description.
12899         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12900         invocations from here...
12901         * modules/timegm (configure.ac): ... to here.
12902
12903 2011-05-22  Bruno Haible  <bruno@clisp.org>
12904
12905         tcgetsid: Move AC_LIBOBJ invocations to module description.
12906         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12907         and gl_PREREQ_TCGETSID invocations from here...
12908         * modules/tcgetsid (configure.ac): ... to here.
12909         (Depends-on): Update conditions.
12910
12911 2011-05-22  Bruno Haible  <bruno@clisp.org>
12912
12913         symlinkat: Move AC_LIBOBJ invocations to module description.
12914         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12915         here...
12916         * modules/symlinkat (configure.ac): ... to here.
12917
12918 2011-05-22  Bruno Haible  <bruno@clisp.org>
12919
12920         symlink: Move AC_LIBOBJ invocations to module description.
12921         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12922         here...
12923         * modules/symlink (configure.ac): ... to here.
12924
12925 2011-05-22  Bruno Haible  <bruno@clisp.org>
12926
12927         strverscmp: Move AC_LIBOBJ invocations to module description.
12928         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12929         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12930         from here...
12931         * modules/strverscmp (configure.ac): ... to here.
12932
12933 2011-05-22  Bruno Haible  <bruno@clisp.org>
12934
12935         strtok_r: Move AC_LIBOBJ invocations to module description.
12936         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12937         and gl_PREREQ_STRTOK_R invocations from here...
12938         * modules/strtok_r (configure.ac): ... to here.
12939         (Depends-on): Update conditions.
12940
12941 2011-05-22  Bruno Haible  <bruno@clisp.org>
12942
12943         strtoumax: Move AC_LIBOBJ invocations to module description.
12944         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12945         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12946         from here...
12947         * modules/strtoumax (configure.ac): ... to here.
12948
12949 2011-05-22  Bruno Haible  <bruno@clisp.org>
12950
12951         strtoimax: Move AC_LIBOBJ invocations to module description.
12952         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12953         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12954         from here...
12955         * modules/strtoimax (configure.ac): ... to here.
12956
12957 2011-05-22  Bruno Haible  <bruno@clisp.org>
12958
12959         strtoull: Move AC_LIBOBJ invocations to module description.
12960         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12962         from here...
12963         * modules/strtoull (configure.ac): ... to here.
12964
12965 2011-05-22  Bruno Haible  <bruno@clisp.org>
12966
12967         strtoll: Move AC_LIBOBJ invocations to module description.
12968         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12969         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12970         here...
12971         * modules/strtoll (configure.ac): ... to here.
12972
12973 2011-05-22  Bruno Haible  <bruno@clisp.org>
12974
12975         strtoul: Move AC_LIBOBJ invocations to module description.
12976         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12977         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12978         * modules/strtoul (configure.ac): ... to here.
12979
12980 2011-05-22  Bruno Haible  <bruno@clisp.org>
12981
12982         strtol: Move AC_LIBOBJ invocations to module description.
12983         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12984         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12985         * modules/strtol (configure.ac): ... to here.
12986
12987 2011-05-22  Bruno Haible  <bruno@clisp.org>
12988
12989         strtod: Move AC_LIBOBJ invocations to module description.
12990         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12991         invocations from here...
12992         * modules/strtod (configure.ac): ... to here.
12993
12994 2011-05-22  Bruno Haible  <bruno@clisp.org>
12995
12996         strstr*: Move AC_LIBOBJ invocations to module description.
12997         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12998         invocations from here...
12999         * modules/strstr-simple (configure.ac): ... to here.
13000         * modules/strstr (configure.ac): ... and here.
13001
13002 2011-05-22  Bruno Haible  <bruno@clisp.org>
13003
13004         strsignal: Move AC_LIBOBJ invocations to module description.
13005         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13006         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13007         * modules/strsignal (configure.ac): ... to here.
13008         (Depends-on): Update conditions.
13009
13010 2011-05-22  Bruno Haible  <bruno@clisp.org>
13011
13012         strsep: Move AC_LIBOBJ invocations to module description.
13013         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13014         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13015         here...
13016         * modules/strsep (configure.ac): ... to here.
13017
13018 2011-05-22  Bruno Haible  <bruno@clisp.org>
13019
13020         strptime: Move AC_LIBOBJ invocations to module description.
13021         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13022         gl_PREREQ_STRPTIME invocations from here...
13023         * modules/strptime (configure.ac): ... to here.
13024
13025 2011-05-22  Bruno Haible  <bruno@clisp.org>
13026
13027         strpbrk: Move AC_LIBOBJ invocations to module description.
13028         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13029         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13030         here...
13031         * modules/strpbrk (configure.ac): ... to here.
13032
13033 2011-05-22  Bruno Haible  <bruno@clisp.org>
13034
13035         strnlen: Move AC_LIBOBJ invocations to module description.
13036         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13037         invocations from here...
13038         * modules/strnlen (configure.ac): ... to here.
13039
13040 2011-05-22  Bruno Haible  <bruno@clisp.org>
13041
13042         strndup: Move AC_LIBOBJ invocations to module description.
13043         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13044         invocations from here...
13045         * modules/strndup (configure.ac): ... to here.
13046         (Depends-on): Update conditions.
13047
13048 2011-05-22  Bruno Haible  <bruno@clisp.org>
13049
13050         strncat: Move AC_LIBOBJ invocations to module description.
13051         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13052         invocations from here...
13053         * modules/strncat (configure.ac): ... to here.
13054
13055 2011-05-22  Bruno Haible  <bruno@clisp.org>
13056
13057         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13058         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13059         invocations from here...
13060         * modules/strdup (configure.ac): ... to here.
13061         * modules/strdup-posix (configure.ac): ... and here.
13062
13063 2011-05-22  Bruno Haible  <bruno@clisp.org>
13064
13065         strcspn: Move AC_LIBOBJ invocations to module description.
13066         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13067         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13068         here...
13069         * modules/strcspn (configure.ac): ... to here.
13070
13071 2011-05-22  Bruno Haible  <bruno@clisp.org>
13072
13073         strchrnul: Move AC_LIBOBJ invocations to module description.
13074         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13075         gl_PREREQ_STRCHRNUL invocations from here...
13076         * modules/strchrnul (configure.ac): ... to here.
13077
13078 2011-05-22  Bruno Haible  <bruno@clisp.org>
13079
13080         strcasestr*: Move AC_LIBOBJ invocations to module description.
13081         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13082         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13083         * modules/strcasestr-simple (configure.ac): ... to here.
13084         * modules/strcasestr (configure.ac): ... and here.
13085
13086 2011-05-22  Bruno Haible  <bruno@clisp.org>
13087
13088         strcase: Move AC_LIBOBJ invocations to module description.
13089         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13090         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13091         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13092         gl_PREREQ_STRNCASECMP invocations from here...
13093         * modules/strcase (configure.ac): ... to here.
13094
13095 2011-05-22  Bruno Haible  <bruno@clisp.org>
13096
13097         stpncpy: Move AC_LIBOBJ invocations to module description.
13098         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13099         here...
13100         * modules/stpncpy (configure.ac): ... to here.
13101
13102 2011-05-22  Bruno Haible  <bruno@clisp.org>
13103
13104         stpcpy: Move AC_LIBOBJ invocations to module description.
13105         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13106         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13107         here...
13108         * modules/stpcpy (configure.ac): ... to here.
13109
13110 2011-05-21  Bruno Haible  <bruno@clisp.org>
13111
13112         stat: Move AC_LIBOBJ invocations to module description.
13113         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13114         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13115         here...
13116         * modules/stat (configure.ac): ... to here.
13117
13118 2011-05-21  Bruno Haible  <bruno@clisp.org>
13119
13120         sleep: Move AC_LIBOBJ invocations to module description.
13121         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13122         * modules/sleep (configure.ac): ... to here.
13123
13124 2011-05-21  Bruno Haible  <bruno@clisp.org>
13125
13126         signbit: Move AC_LIBOBJ invocations to module description.
13127         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13128         * modules/signbit (configure.ac): ... to here.
13129
13130 2011-05-21  Bruno Haible  <bruno@clisp.org>
13131
13132         sigprocmask: Move AC_LIBOBJ invocations to module description.
13133         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13134         gl_PREREQ_SIGPROMASK invocations from here...
13135         * modules/sigprocmask (configure.ac): ... to here.
13136
13137 2011-05-21  Bruno Haible  <bruno@clisp.org>
13138
13139         sigaction: Move AC_LIBOBJ invocations to module description.
13140         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13141         gl_PREREQ_SIGACTION invocations from here...
13142         * modules/sigaction (configure.ac): ... to here.
13143
13144 2011-05-21  Bruno Haible  <bruno@clisp.org>
13145
13146         sig2str: Move AC_LIBOBJ invocations to module description.
13147         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13148         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13149         here...
13150         * modules/sig2str (configure.ac): ... to here.
13151
13152 2011-05-21  Bruno Haible  <bruno@clisp.org>
13153
13154         setlocale: Move AC_LIBOBJ invocations to module description.
13155         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13156         gl_PREREQ_SETLOCALE invocations from here...
13157         * modules/setlocale (configure.ac): ... to here.
13158
13159 2011-05-21  Bruno Haible  <bruno@clisp.org>
13160
13161         unsetenv: Move AC_LIBOBJ invocations to module description.
13162         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13163         and gl_PREREQ_UNSETENV invocations from here...
13164         * modules/unsetenv (configure.ac): ... to here.
13165         (Depends-on): Update.
13166
13167 2011-05-21  Bruno Haible  <bruno@clisp.org>
13168
13169         setenv: Move AC_LIBOBJ invocations to module description.
13170         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13171         here...
13172         * modules/setenv (configure.ac): ... to here.
13173
13174 2011-05-21  Bruno Haible  <bruno@clisp.org>
13175
13176         selinux-h: Move AC_LIBOBJ invocations to module description.
13177         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13178         AC_LIBOBJ invocation from here...
13179         * modules/selinux-h (configure.ac): ... to here.
13180
13181 2011-05-21  Bruno Haible  <bruno@clisp.org>
13182
13183         select: Respect rules for use of AC_LIBOBJ.
13184         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13185         here...
13186         * modules/select (configure.ac): ... to here.
13187
13188 2011-05-21  Bruno Haible  <bruno@clisp.org>
13189
13190         scandir: Move AC_LIBOBJ invocations to module description.
13191         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13192         invocations from here...
13193         * modules/scandir (configure.ac): ... to here.
13194
13195 2011-05-21  Bruno Haible  <bruno@clisp.org>
13196
13197         rpmatch: Move AC_LIBOBJ invocations to module description.
13198         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13199         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13200         here...
13201         * modules/rpmatch (configure.ac): ... to here.
13202
13203 2011-05-21  Bruno Haible  <bruno@clisp.org>
13204
13205         rmdir: Respect rules for use of AC_LIBOBJ.
13206         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13207         * modules/rmdir (configure.ac): ... to here.
13208
13209 2011-05-21  Bruno Haible  <bruno@clisp.org>
13210
13211         renameat: Move AC_LIBOBJ invocations to module description.
13212         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13213         here...
13214         * modules/renameat (configure.ac): ... to here.
13215
13216 2011-05-21  Bruno Haible  <bruno@clisp.org>
13217
13218         rename: Respect rules for use of AC_LIBOBJ.
13219         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13220         here...
13221         * modules/rename (configure.ac): ... to here.
13222
13223 2011-05-21  Bruno Haible  <bruno@clisp.org>
13224
13225         remove: Move AC_LIBOBJ invocations to module description.
13226         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13227         here...
13228         * modules/remove (configure.ac): ... to here.
13229
13230 2011-05-21  Bruno Haible  <bruno@clisp.org>
13231
13232         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13233         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13234         macro.
13235         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13236         * modules/relocatable-lib (configure.ac): ... to here.
13237         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13238         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13239
13240 2011-05-21  Bruno Haible  <bruno@clisp.org>
13241
13242         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13243         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13244         here...
13245         * modules/relocatable-prog (configure.ac): ... to here.
13246
13247 2011-05-21  Bruno Haible  <bruno@clisp.org>
13248
13249         regex: Move AC_LIBOBJ invocations to module description.
13250         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13251         invocations from here...
13252         * modules/regex (configure.ac): ... to here.
13253
13254 2011-05-21  Bruno Haible  <bruno@clisp.org>
13255
13256         realloc-*: Move AC_LIBOBJ invocations to module description.
13257         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13258         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13259         AC_LIBOBJ invocations from here...
13260         * modules/realloc-gnu (configure.ac): ... to here.
13261         * modules/realloc-posix (configure.ac): ... and here.
13262
13263 2011-05-21  Bruno Haible  <bruno@clisp.org>
13264
13265         readutmp: Move AC_LIBOBJ invocations to module description.
13266         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13267         * modules/readutmp (configure.ac): ... to here.
13268
13269 2011-05-21  Bruno Haible  <bruno@clisp.org>
13270
13271         readlinkat: Move AC_LIBOBJ invocations to module description.
13272         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13273         here...
13274         * modules/readlinkat (configure.ac): ... to here.
13275
13276 2011-05-21  Bruno Haible  <bruno@clisp.org>
13277
13278         readlink: Move AC_LIBOBJ invocations to module description.
13279         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13280         gl_PREREQ_READLINK invocations from here...
13281         * modules/readlink (configure.ac): ... to here.
13282
13283 2011-05-21  Bruno Haible  <bruno@clisp.org>
13284
13285         readline: Move AC_LIBOBJ invocations to module description.
13286         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13287         gl_PREREQ_READLINE invocations from here...
13288         * modules/readline (configure.ac): ... to here.
13289
13290 2011-05-21  Bruno Haible  <bruno@clisp.org>
13291
13292         read: Move AC_LIBOBJ invocations to module description.
13293         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13294         * modules/read (configure.ac): ... to here.
13295
13296 2011-05-21  Bruno Haible  <bruno@clisp.org>
13297
13298         rawmemchr: Move AC_LIBOBJ invocations to module description.
13299         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13300         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13301         from here...
13302         * modules/rawmemchr (configure.ac): ... to here.
13303
13304 2011-05-21  Bruno Haible  <bruno@clisp.org>
13305
13306         random_r: Move AC_LIBOBJ invocations to module description.
13307         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13308         gl_PREREQ_RANDOM_R invocations from here...
13309         * modules/random_r (configure.ac): ... to here.
13310
13311 2011-05-21  Bruno Haible  <bruno@clisp.org>
13312
13313         pwrite: Move AC_LIBOBJ invocations to module description.
13314         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13315         * modules/pwrite (configure.ac): ... to here.
13316
13317 2011-05-21  Bruno Haible  <bruno@clisp.org>
13318
13319         putenv: Move AC_LIBOBJ invocations to module description.
13320         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13321         * modules/putenv (configure.ac): ... to here.
13322
13323 2011-05-21  Bruno Haible  <bruno@clisp.org>
13324
13325         login_tty: Move AC_LIBOBJ invocations to module description.
13326         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13327         * modules/login_tty (configure.ac): ... to here.
13328
13329 2011-05-21  Bruno Haible  <bruno@clisp.org>
13330
13331         openpty: Move AC_LIBOBJ invocations to module description.
13332         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13333         * modules/openpty (configure.ac): ... to here.
13334
13335 2011-05-21  Bruno Haible  <bruno@clisp.org>
13336
13337         forkpty: Move AC_LIBOBJ invocations to module description.
13338         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13339         * modules/forkpty (configure.ac): ... to here.
13340
13341 2011-05-21  Bruno Haible  <bruno@clisp.org>
13342
13343         ptsname: Move AC_LIBOBJ invocations to module description.
13344         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13345         invocations from here...
13346         * modules/ptsname (configure.ac): ... to here.
13347
13348 2011-05-21  Bruno Haible  <bruno@clisp.org>
13349
13350         pread: Move AC_LIBOBJ invocations to module description.
13351         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13352         * modules/pread (configure.ac): ... to here.
13353
13354 2011-05-21  Bruno Haible  <bruno@clisp.org>
13355
13356         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13357         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13358         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13359         * modules/posix_spawn (configure.ac): ... to here.
13360         * modules/posix_spawnp (configure.ac): ... and here.
13361
13362 2011-05-21  Bruno Haible  <bruno@clisp.org>
13363
13364         popen: Move AC_LIBOBJ invocations to module description.
13365         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13366         invocations from here...
13367         * modules/popen (configure.ac): ... to here.
13368
13369 2011-05-21  Bruno Haible  <bruno@clisp.org>
13370
13371         poll: Move AC_LIBOBJ invocations to module description.
13372         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13373         invocations from here...
13374         * modules/poll (configure.ac): ... to here.
13375
13376 2011-05-21  Bruno Haible  <bruno@clisp.org>
13377
13378         pipe-posix: Move AC_LIBOBJ invocations to module description.
13379         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13380         * modules/pipe-posix (configure.ac): ... to here.
13381
13382 2011-05-21  Bruno Haible  <bruno@clisp.org>
13383
13384         openat: Respect rules for use of AC_LIBOBJ.
13385         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13386         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13387         * modules/openat (configure.ac): ... to here.
13388
13389 2011-05-21  Bruno Haible  <bruno@clisp.org>
13390
13391         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13392         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13393         invocation from here...
13394         * modules/obstack-printf (configure.ac): ... to here.
13395         * modules/obstack-printf-posix (configure.ac): ... and here.
13396
13397 2011-05-21  Bruno Haible  <bruno@clisp.org>
13398
13399         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13400         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13401         from here...
13402         * modules/nl_langinfo (configure.ac): ... to here.
13403
13404 2011-05-21  Bruno Haible  <bruno@clisp.org>
13405
13406         nanosleep: Move AC_LIBOBJ invocations to module description.
13407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13408         gl_PREREQ_NANOSLEEP invocations from here...
13409         * modules/nanosleep (configure.ac): ... to here.
13410
13411 2011-05-21  Bruno Haible  <bruno@clisp.org>
13412
13413         mountlist: Move AC_LIBOBJ invocations to module description.
13414         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13415         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13416         * modules/mountlist (configure.ac): ... to here.
13417
13418 2011-05-21  Bruno Haible  <bruno@clisp.org>
13419
13420         mktime: Respect rules for use of AC_LIBOBJ.
13421         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13422         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13423         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13424         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13425         * modules/mktime (configure.ac): ... to here.
13426         * modules/mktime-internal (configure.ac): ... and here.
13427         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13428
13429 2011-05-21  Bruno Haible  <bruno@clisp.org>
13430
13431         mkstemps: Move AC_LIBOBJ invocations to module description.
13432         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13433         here...
13434         * modules/mkstemps (configure.ac): ... to here.
13435
13436 2011-05-21  Bruno Haible  <bruno@clisp.org>
13437
13438         mkstemp: Move AC_LIBOBJ invocations to module description.
13439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13440         gl_PREREQ_MKSTEMP invocations from here...
13441         * modules/mkstemp (configure.ac): ... to here.
13442
13443 2011-05-21  Bruno Haible  <bruno@clisp.org>
13444
13445         mkostemps: Move AC_LIBOBJ invocations to module description.
13446         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13447         here...
13448         * modules/mkostemps (configure.ac): ... to here.
13449
13450 2011-05-21  Bruno Haible  <bruno@clisp.org>
13451
13452         mkostemp: Move AC_LIBOBJ invocations to module description.
13453         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13454         gl_PREREQ_MKOSTEMP invocations from here...
13455         * modules/mkostemp (configure.ac): ... to here.
13456
13457 2011-05-21  Bruno Haible  <bruno@clisp.org>
13458
13459         mknod: Move AC_LIBOBJ invocations to module description.
13460         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13461         * modules/mknod (configure.ac): ... to here.
13462
13463 2011-05-21  Bruno Haible  <bruno@clisp.org>
13464
13465         mkfifoat: Move AC_LIBOBJ invocations to module description.
13466         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13467         here...
13468         * modules/mkfifoat (configure.ac): ... to here.
13469
13470 2011-05-21  Bruno Haible  <bruno@clisp.org>
13471
13472         mkfifo: Respect rules for use of AC_LIBOBJ.
13473         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13474         here...
13475         * modules/mkfifo (configure.ac): ... to here.
13476
13477 2011-05-21  Bruno Haible  <bruno@clisp.org>
13478
13479         mkdtemp: Move AC_LIBOBJ invocations to module description.
13480         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13481         invocations from here...
13482         * modules/mkdtemp (configure.ac): ... to here.
13483
13484 2011-05-21  Bruno Haible  <bruno@clisp.org>
13485
13486         mkdir: Move AC_LIBOBJ invocations to module description.
13487         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13488         * modules/mkdir (configure.ac): ... to here.
13489
13490 2011-05-21  Bruno Haible  <bruno@clisp.org>
13491
13492         memset: Move AC_LIBOBJ invocations to module description.
13493         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13495         here...
13496         * modules/memset (configure.ac): ... to here.
13497
13498 2011-05-21  Bruno Haible  <bruno@clisp.org>
13499
13500         memrchr: Move AC_LIBOBJ invocations to module description.
13501         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13502         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13503         here...
13504         * modules/memrchr (configure.ac): ... to here.
13505
13506 2011-05-21  Bruno Haible  <bruno@clisp.org>
13507
13508         mempcpy: Move AC_LIBOBJ invocations to module description.
13509         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13510         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13511         here...
13512         * modules/mempcpy (configure.ac): ... to here.
13513
13514 2011-05-21  Bruno Haible  <bruno@clisp.org>
13515
13516         memmove: Move AC_LIBOBJ invocations to module description.
13517         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13518         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13519         here...
13520         * modules/memmove (configure.ac): ... to here.
13521
13522 2011-05-21  Bruno Haible  <bruno@clisp.org>
13523
13524         memmem*: Move AC_LIBOBJ invocations to module description.
13525         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13526         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13527         here...
13528         (gl_FUNC_MEMMEM): ... and here...
13529         * modules/memmem-simple (configure.ac): ... to here.
13530         * modules/memmem (configure.ac): ... and here.
13531
13532 2011-05-21  Bruno Haible  <bruno@clisp.org>
13533
13534         memcpy: Move AC_LIBOBJ invocations to module description.
13535         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13536         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13537         here...
13538         * modules/memcpy (configure.ac): ... to here.
13539
13540 2011-05-21  Bruno Haible  <bruno@clisp.org>
13541
13542         memcmp: Simplify autoconf macro.
13543         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13544         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13545         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13546
13547 2011-05-21  Bruno Haible  <bruno@clisp.org>
13548
13549         memcmp: Move AC_LIBOBJ invocations to module description.
13550         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13551         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13552         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13553         * modules/memcmp (configure.ac): ... to here.
13554         (Depends-on): Update conditions.
13555
13556 2011-05-21  Bruno Haible  <bruno@clisp.org>
13557
13558         memchr: Respect rules for use of AC_LIBOBJ.
13559         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13560         invocations from here...
13561         * modules/memchr (configure.ac): ... to here.
13562
13563 2011-05-21  Bruno Haible  <bruno@clisp.org>
13564
13565         mbtowc: Move AC_LIBOBJ invocations to module description.
13566         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13567         invocations from here...
13568         * modules/mbtowc (configure.ac): ... to here.
13569
13570 2011-05-21  Bruno Haible  <bruno@clisp.org>
13571
13572         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13573         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13574         gl_PREREQ_MBSRTOWCS invocations from here...
13575         * modules/mbsrtowcs (configure.ac): ... to here.
13576
13577 2011-05-21  Bruno Haible  <bruno@clisp.org>
13578
13579         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13580         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13581         gl_PREREQ_MBSNRTOWCS invocations from here...
13582         * modules/mbsnrtowcs (configure.ac): ... to here.
13583
13584 2011-05-21  Bruno Haible  <bruno@clisp.org>
13585
13586         mbsinit: Move AC_LIBOBJ invocations to module description.
13587         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13588         invocations from here...
13589         * modules/mbsinit (configure.ac): ... to here.
13590
13591 2011-05-21  Bruno Haible  <bruno@clisp.org>
13592
13593         mbrlen: Move AC_LIBOBJ invocations to module description.
13594         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13595         invocations from here...
13596         * modules/mbrlen (configure.ac): ... to here.
13597
13598 2011-05-21  Bruno Haible  <bruno@clisp.org>
13599
13600         mbrtowc: Respect rules for use of AC_LIBOBJ.
13601         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13602         invocations from here...
13603         * modules/mbrtowc (configure.ac): ... to here.
13604
13605 2011-05-21  Bruno Haible  <bruno@clisp.org>
13606
13607         malloc-*: Move AC_LIBOBJ invocations to module description.
13608         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13609         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13610         AC_LIBOBJ invocations from here...
13611         * modules/malloc-gnu (configure.ac): ... to here.
13612         * modules/malloc-posix (configure.ac): ... and here.
13613
13614 2011-05-21  Bruno Haible  <bruno@clisp.org>
13615
13616         lstat, openat: Respect rules for use of AC_LIBOBJ.
13617         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13618         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13619         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13620         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13621         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13622         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13623         here.
13624         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13625
13626 2011-05-21  Bruno Haible  <bruno@clisp.org>
13627
13628         lseek: Move AC_LIBOBJ invocations to module description.
13629         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13630         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13631         * modules/lseek (configure.ac): ... to here.
13632
13633 2011-05-21  Bruno Haible  <bruno@clisp.org>
13634
13635         linkat: Move AC_LIBOBJ invocations to module description.
13636         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13637         here...
13638         * modules/linkat (configure.ac): ... to here.
13639
13640 2011-05-21  Bruno Haible  <bruno@clisp.org>
13641
13642         link: Respect rules for use of AC_LIBOBJ.
13643         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13644         * modules/link (configure.ac): ... to here.
13645
13646 2011-05-21  Bruno Haible  <bruno@clisp.org>
13647
13648         lchown: Move AC_LIBOBJ invocations to module description.
13649         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13650         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13651         * modules/lchown (configure.ac): ... to here.
13652
13653 2011-05-21  Bruno Haible  <bruno@clisp.org>
13654
13655         iswctype: Move AC_LIBOBJ invocations to module description.
13656         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13657         here...
13658         * modules/iswctype (configure.ac): ... to here.
13659
13660 2011-05-21  Bruno Haible  <bruno@clisp.org>
13661
13662         iswblank: Move AC_LIBOBJ invocations to module description.
13663         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13664         here...
13665         * modules/iswblank (configure.ac): ... to here.
13666
13667 2011-05-21  Bruno Haible  <bruno@clisp.org>
13668
13669         atanl: Move AC_LIBOBJ invocations to module description.
13670         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13671         * modules/atanl (configure.ac): ... to here.
13672
13673 2011-05-21  Bruno Haible  <bruno@clisp.org>
13674
13675         acosl: Move AC_LIBOBJ invocations to module description.
13676         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13677         * modules/acosl (configure.ac): ... to here.
13678
13679 2011-05-21  Bruno Haible  <bruno@clisp.org>
13680
13681         asinl: Respect rules for use of AC_LIBOBJ.
13682         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13683         * modules/asinl (configure.ac): ... to here.
13684
13685 2011-05-21  Bruno Haible  <bruno@clisp.org>
13686
13687         tanl: Move AC_LIBOBJ invocations to module description.
13688         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13689         * modules/tanl (configure.ac): ... to here.
13690
13691 2011-05-21  Bruno Haible  <bruno@clisp.org>
13692
13693         cosl: Move AC_LIBOBJ invocations to module description.
13694         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13695         * modules/cosl (configure.ac): ... to here.
13696
13697 2011-05-21  Bruno Haible  <bruno@clisp.org>
13698
13699         sinl: Move AC_LIBOBJ invocations to module description.
13700         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13701         * modules/sinl (configure.ac): ... to here.
13702
13703 2011-05-21  Bruno Haible  <bruno@clisp.org>
13704
13705         logl: Move AC_LIBOBJ invocations to module description.
13706         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13707         * modules/logl (configure.ac): ... to here.
13708
13709 2011-05-21  Bruno Haible  <bruno@clisp.org>
13710
13711         expl: Move AC_LIBOBJ invocations to module description.
13712         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13713         * modules/expl (configure.ac): ... to here.
13714
13715 2011-05-21  Bruno Haible  <bruno@clisp.org>
13716
13717         roundl: Move AC_LIBOBJ invocations to module description.
13718         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13719         * modules/roundl (configure.ac): ... to here.
13720
13721 2011-05-21  Bruno Haible  <bruno@clisp.org>
13722
13723         round: Move AC_LIBOBJ invocations to module description.
13724         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13725         * modules/round (configure.ac): ... to here.
13726
13727 2011-05-21  Bruno Haible  <bruno@clisp.org>
13728
13729         roundf: Move AC_LIBOBJ invocations to module description.
13730         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13731         * modules/roundf (configure.ac): ... to here.
13732
13733 2011-05-21  Bruno Haible  <bruno@clisp.org>
13734
13735         truncl: Move AC_LIBOBJ invocations to module description.
13736         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13737         * modules/truncl (configure.ac): ... to here.
13738
13739 2011-05-21  Bruno Haible  <bruno@clisp.org>
13740
13741         trunc: Move AC_LIBOBJ invocations to module description.
13742         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13743         * modules/trunc (configure.ac): ... to here.
13744
13745 2011-05-21  Bruno Haible  <bruno@clisp.org>
13746
13747         truncf: Move AC_LIBOBJ invocations to module description.
13748         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13749         * modules/truncf (configure.ac): ... to here.
13750
13751 2011-05-21  Bruno Haible  <bruno@clisp.org>
13752
13753         ceill: Move AC_LIBOBJ invocations to module description.
13754         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13755         * modules/ceill (configure.ac): ... to here.
13756
13757 2011-05-21  Bruno Haible  <bruno@clisp.org>
13758
13759         ceil: Move AC_LIBOBJ invocations to module description.
13760         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13761         * modules/ceil (configure.ac): ... to here.
13762
13763 2011-05-21  Bruno Haible  <bruno@clisp.org>
13764
13765         ceilf: Move AC_LIBOBJ invocations to module description.
13766         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13767         * modules/ceilf (configure.ac): ... to here.
13768
13769 2011-05-21  Bruno Haible  <bruno@clisp.org>
13770
13771         floorl: Respect rules for use of AC_LIBOBJ.
13772         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13773         * modules/floorl (configure.ac): ... to here.
13774
13775 2011-05-21  Bruno Haible  <bruno@clisp.org>
13776
13777         floor: Respect rules for use of AC_LIBOBJ.
13778         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13779         * modules/floor (configure.ac): ... to here.
13780
13781 2011-05-21  Bruno Haible  <bruno@clisp.org>
13782
13783         floorf: Move AC_LIBOBJ invocations to module description.
13784         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13785         * modules/floorf (configure.ac): ... to here.
13786
13787 2011-05-20  Bruno Haible  <bruno@clisp.org>
13788
13789         sqrtl: Respect rules for use of AC_LIBOBJ.
13790         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13791         * modules/sqrtl (configure.ac): ... to here.
13792
13793 2011-05-20  Bruno Haible  <bruno@clisp.org>
13794
13795         ldexpl: Respect rules for use of AC_LIBOBJ.
13796         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13797         * modules/ldexpl (configure.ac): ... to here.
13798
13799 2011-05-20  Bruno Haible  <bruno@clisp.org>
13800
13801         frexpl*: Respect rules for use of AC_LIBOBJ.
13802         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13803         invocation from here...
13804         * modules/frexpl (configure.ac): ... to here.
13805         * modules/frexpl-nolibm (configure.ac): ... and here.
13806
13807 2011-05-20  Bruno Haible  <bruno@clisp.org>
13808
13809         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13810         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13811         invocation from here...
13812         * modules/frexp (configure.ac): ... to here.
13813         * modules/frexp-nolibm (configure.ac): ... and here.
13814
13815 2011-05-20  Bruno Haible  <bruno@clisp.org>
13816
13817         isnan: Respect rules for use of AC_LIBOBJ.
13818         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13819         invocations here.
13820         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13821         REPLACE_ISNAN.
13822         * modules/isnand (configure.ac): Likewise.
13823         * modules/isnanl (configure.ac): Likewise.
13824
13825 2011-05-20  Bruno Haible  <bruno@clisp.org>
13826
13827         isnanl*: Respect rules for use of AC_LIBOBJ.
13828         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13829         invocation from here...
13830         * modules/isnanl (configure.ac): ... to here.
13831         * modules/isnanl-nolibm (configure.ac): ... and here.
13832
13833 2011-05-20  Bruno Haible  <bruno@clisp.org>
13834
13835         isnand*: Move AC_LIBOBJ invocations to module description.
13836         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13837         invocation from here...
13838         * modules/isnand (configure.ac): ... to here.
13839         * modules/isnand-nolibm (configure.ac): ... and here.
13840
13841 2011-05-20  Bruno Haible  <bruno@clisp.org>
13842
13843         isnanf*: Move AC_LIBOBJ invocations to module description.
13844         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13845         invocation from here...
13846         * modules/isnanf (configure.ac): ... to here.
13847         * modules/isnanf-nolibm (configure.ac): ... and here.
13848
13849 2011-05-20  Bruno Haible  <bruno@clisp.org>
13850
13851         isnan*: Separate the AC_LIBOBJ invocations.
13852         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13853         AC_LIBOBJ invocation.
13854         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13855         here.
13856         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13857         AC_LIBOBJ invocation.
13858         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13859         here.
13860         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13861         AC_LIBOBJ invocation.
13862         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13863         here.
13864         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13865
13866 2011-05-08  Bruno Haible  <bruno@clisp.org>
13867
13868         isinf: Move AC_LIBOBJ invocations to module description.
13869         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13870         * modules/isinf (configure.ac): ... to here.
13871
13872 2011-05-08  Bruno Haible  <bruno@clisp.org>
13873
13874         isfinite: Move AC_LIBOBJ invocations to module description.
13875         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13876         * modules/isfinite (configure.ac): ... to here.
13877
13878 2011-05-08  Bruno Haible  <bruno@clisp.org>
13879
13880         isblank: Move AC_LIBOBJ invocations to module description.
13881         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13882         here...
13883         * modules/isblank (configure.ac): ... to here.
13884
13885 2011-05-08  Bruno Haible  <bruno@clisp.org>
13886
13887         isapipe: Move AC_LIBOBJ invocations to module description.
13888         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13889         gl_PREREQ_ISAPIPE invocations from here...
13890         * modules/isapipe (configure.ac): ... to here.
13891         (Depends-on): Update condition.
13892
13893 2011-05-08  Bruno Haible  <bruno@clisp.org>
13894
13895         ioctl: Move AC_LIBOBJ invocations to module description.
13896         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13897         invocations from here...
13898         * modules/ioctl (configure.ac): ... to here.
13899         (Depends-on): Update condition.
13900
13901 2011-05-08  Bruno Haible  <bruno@clisp.org>
13902
13903         imaxdiv: Move AC_LIBOBJ invocations to module description.
13904         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13905         invocations from here...
13906         * modules/imaxdiv (configure.ac): ... to here.
13907
13908 2011-05-08  Bruno Haible  <bruno@clisp.org>
13909
13910         imaxabs: Move AC_LIBOBJ invocations to module description.
13911         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13912         invocations from here...
13913         * modules/imaxabs (configure.ac): ... to here.
13914
13915 2011-05-08  Bruno Haible  <bruno@clisp.org>
13916
13917         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13918         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13919         AC_LIBOBJ invocations from here...
13920         * modules/getaddrinfo (configure.ac): ... to here.
13921         (Depends-on): Add conditions.
13922
13923 2011-05-08  Bruno Haible  <bruno@clisp.org>
13924
13925         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13926         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13927         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13928         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13929         (gl_PREREQ_INET_PTON): ... from here.
13930         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13931         gl_PREREQ_INET_PTON here.
13932         (Depends-on): Update condition.
13933
13934 2011-05-08  Bruno Haible  <bruno@clisp.org>
13935
13936         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13937         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13938         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13939         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13940         (gl_PREREQ_INET_NTOP): ... from here.
13941         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13942         gl_PREREQ_INET_NTOP here.
13943         (Depends-on): Update condition.
13944
13945 2011-05-08  Bruno Haible  <bruno@clisp.org>
13946
13947         iconv_open: Move AC_LIBOBJ invocations to module description.
13948         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13949         AC_LIBOBJ invocations from here...
13950         * modules/iconv_open (configure.ac): ... to here.
13951
13952 2011-05-08  Bruno Haible  <bruno@clisp.org>
13953
13954         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13955         If module 'iconv_open' is among the main modules and module
13956         'iconv_open-utf' is among the tests dependencies, then
13957         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13958         return the special iconv_t values. Therefore iconv() and iconv_close()
13959         must support these special iconv_t values, already in lib, not only in
13960         tests.
13961         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13962         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13963         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13964         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13965         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13966         (Depends-on): Add the dependencies of iconv_open-utf.
13967         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13968         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13969         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13970
13971 2011-05-08  Bruno Haible  <bruno@clisp.org>
13972
13973         group-member: Move AC_LIBOBJ invocations to module description.
13974         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13975         gl_PREREQ_GROUP_MEMBER invocations from here...
13976         * modules/group-member (configure.ac): ... to here.
13977
13978 2011-05-08  Bruno Haible  <bruno@clisp.org>
13979
13980         grantpt: Move AC_LIBOBJ invocations to module description.
13981         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13982         invocations from here...
13983         * modules/grantpt (configure.ac): ... to here.
13984
13985 2011-05-08  Bruno Haible  <bruno@clisp.org>
13986
13987         glob: Move AC_LIBOBJ invocations to module description.
13988         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13989         from here...
13990         * modules/glob (configure.ac): ... to here.
13991
13992 2011-05-08  Bruno Haible  <bruno@clisp.org>
13993
13994         getusershell: Move AC_LIBOBJ invocations to module description.
13995         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13996         Move AC_LIBOBJ invocation from here...
13997         * modules/getusershell (configure.ac): ... to here.
13998         (Depends-on): Update condition.
13999
14000 2011-05-08  Bruno Haible  <bruno@clisp.org>
14001
14002         gettimeofday: Move AC_LIBOBJ invocations to module description.
14003         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14004         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14005         gl_PREREQ_GETTIMEOFDAY invocations from here...
14006         * modules/gettimeofday (configure.ac): ... to here.
14007
14008 2011-05-08  Bruno Haible  <bruno@clisp.org>
14009
14010         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14011         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14012         just gl_FUNC_TZSET.
14013         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14014         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14015         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14016         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14017
14018 2011-05-08  Bruno Haible  <bruno@clisp.org>
14019
14020         getsubopt: Move AC_LIBOBJ invocations to module description.
14021         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14022         gl_PREREQ_GETSUBOPT invocations from here...
14023         * modules/getsubopt (configure.ac): ... to here.
14024
14025 2011-05-08  Bruno Haible  <bruno@clisp.org>
14026
14027         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14028         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14029         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14030         * modules/getpass-gnu (configure.ac): ... to here.
14031
14032 2011-05-08  Bruno Haible  <bruno@clisp.org>
14033
14034         getpass: Move AC_LIBOBJ invocations to module description.
14035         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14036         gl_PREREQ_GETPASS invocations from here...
14037         * modules/getpass (configure.ac): ... to here.
14038
14039 2011-05-08  Bruno Haible  <bruno@clisp.org>
14040
14041         getpagesize: Move AC_LIBOBJ invocations to module description.
14042         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14043         from here...
14044         * modules/getpagesize (configure.ac): ... to here.
14045
14046 2011-05-08  Bruno Haible  <bruno@clisp.org>
14047
14048         getopt: Move AC_LIBOBJ invocations to module description.
14049         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14050         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14051         invocations from here...
14052         * modules/getopt-gnu (configure.ac): ... to here.
14053         * modules/getopt-posix (configure.ac): ... and here.
14054         (Depends-on): Update condition.
14055
14056 2011-05-08  Bruno Haible  <bruno@clisp.org>
14057
14058         getopt, argp: Respect rules for use of AC_LIBOBJ.
14059         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14060         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14061         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14062         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14063
14064 2011-05-08  Bruno Haible  <bruno@clisp.org>
14065
14066         getlogin_r: Move AC_LIBOBJ invocations to module description.
14067         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14068         gl_PREREQ_GETLOGIN_R invocations from here...
14069         * modules/getlogin_r (configure.ac): ... to here.
14070
14071 2011-05-08  Bruno Haible  <bruno@clisp.org>
14072
14073         getlogin: Move AC_LIBOBJ invocations to module description.
14074         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14075         here...
14076         * modules/getlogin (configure.ac): ... to here.
14077
14078 2011-05-08  Bruno Haible  <bruno@clisp.org>
14079
14080         getloadavg: Move AC_LIBOBJ invocations to module description.
14081         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14082         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14083         * modules/getloadavg (configure.ac): ... to here.
14084
14085 2011-05-08  Bruno Haible  <bruno@clisp.org>
14086
14087         gethrxtime: Move AC_LIBOBJ invocations to module description.
14088         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14089         LIB_GETHRXTIME from here...
14090         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14091         invocations from here...
14092         * modules/gethrxtime (configure.ac): ... to here.
14093
14094 2011-05-08  Bruno Haible  <bruno@clisp.org>
14095
14096         gethostname: Move AC_LIBOBJ invocations to module description.
14097         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14098         gl_PREREQ_GETHOSTNAME invocations from here...
14099         * modules/gethostname (configure.ac): ... to here.
14100
14101 2011-05-08  Bruno Haible  <bruno@clisp.org>
14102
14103         getgroups: Move AC_LIBOBJ invocations to module description.
14104         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14105         here...
14106         * modules/getgroups (configure.ac): ... to here.
14107
14108 2011-05-08  Bruno Haible  <bruno@clisp.org>
14109
14110         getdtablesize: Move AC_LIBOBJ invocations to module description.
14111         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14112         invocation from here...
14113         * modules/getdtablesize (configure.ac): ... to here.
14114
14115 2011-05-08  Bruno Haible  <bruno@clisp.org>
14116
14117         getdomainname: Move AC_LIBOBJ invocations to module description.
14118         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14119         gl_PREREQ_GETDOMAINNAME invocations from here...
14120         * modules/getdomainname (configure.ac): ... to here.
14121
14122 2011-05-08  Bruno Haible  <bruno@clisp.org>
14123
14124         getline: Move AC_LIBOBJ invocations to module description.
14125         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14126         invocations from here...
14127         * modules/getline (configure.ac): ... to here.
14128
14129 2011-05-08  Bruno Haible  <bruno@clisp.org>
14130
14131         getline: Simplify.
14132         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14133         It's already handled through the module dependency.
14134
14135 2011-05-08  Bruno Haible  <bruno@clisp.org>
14136
14137         getdelim: Move AC_LIBOBJ invocations to module description.
14138         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14139         and gl_PREREQ_GETDELIM invocations from here...
14140         * modules/getdelim (configure.ac): ... to here.
14141         (Depends-on): Fix condition.
14142
14143 2011-05-08  Bruno Haible  <bruno@clisp.org>
14144
14145         getcwd: Move AC_LIBOBJ invocations to module description.
14146         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14147         invocations from here...
14148         * modules/getcwd (configure.ac): ... to here.
14149
14150 2011-05-08  Bruno Haible  <bruno@clisp.org>
14151
14152         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14153         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14154         here...
14155         * modules/getcwd-lgpl (configure.ac): ... to here.
14156
14157 2011-05-07  Bruno Haible  <bruno@clisp.org>
14158
14159         crypto/gc: Move AC_LIBOBJ invocations to module description.
14160         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14161         * modules/crypto/gc (configure.ac): ... to here.
14162
14163 2011-05-07  Bruno Haible  <bruno@clisp.org>
14164
14165         fwriting: Move AC_LIBOBJ invocations to module description.
14166         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14167         here...
14168         * modules/fwriting (configure.ac): ... to here.
14169
14170 2011-05-07  Bruno Haible  <bruno@clisp.org>
14171
14172         fwritable: Move AC_LIBOBJ invocations to module description.
14173         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14174         here...
14175         * modules/fwritable (configure.ac): ... to here.
14176
14177 2011-05-07  Bruno Haible  <bruno@clisp.org>
14178
14179         futimens: Move AC_LIBOBJ invocations to module description.
14180         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14181         here...
14182         * modules/futimens (configure.ac): ... to here.
14183
14184 2011-05-07  Bruno Haible  <bruno@clisp.org>
14185
14186         ftruncate: Move AC_LIBOBJ invocations to module description.
14187         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14188         gl_PREREQ_FTRUNCATE invocations from here...
14189         * modules/ftruncate (configure.ac): ... to here.
14190
14191 2011-05-07  Bruno Haible  <bruno@clisp.org>
14192
14193         fsync: Move AC_LIBOBJ invocations to module description.
14194         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14195         invocations from here...
14196         * modules/fsync (configure.ac): ... to here.
14197
14198 2011-05-07  Bruno Haible  <bruno@clisp.org>
14199
14200         fsusage: Move AC_LIBOBJ invocations to module description.
14201         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14202         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14203         * modules/fsusage (configure.ac): ... to here.
14204
14205 2011-05-07  Bruno Haible  <bruno@clisp.org>
14206
14207         freopen: Move AC_LIBOBJ invocations to module description.
14208         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14209         invocations from here...
14210         * modules/freopen (configure.ac): ... to here.
14211
14212 2011-05-07  Bruno Haible  <bruno@clisp.org>
14213
14214         free: Move AC_LIBOBJ invocations to module description.
14215         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14216         invocations from here...
14217         * modules/free (configure.ac): ... to here.
14218
14219 2011-05-07  Bruno Haible  <bruno@clisp.org>
14220
14221         freadable: Move AC_LIBOBJ invocations to module description.
14222         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14223         here...
14224         * modules/freadable (configure.ac): ... to here.
14225
14226 2011-05-07  Bruno Haible  <bruno@clisp.org>
14227
14228         fpurge: Move AC_LIBOBJ invocations to module description.
14229         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14230         invocations from here...
14231         * modules/fpurge (configure.ac): ... to here.
14232
14233 2011-05-07  Bruno Haible  <bruno@clisp.org>
14234
14235         fpending: Move AC_LIBOBJ invocations to module description.
14236         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14237         gl_FUNC_FPENDING.
14238         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14239         invocations from here...
14240         * modules/fpending (configure.ac): ... to here.
14241
14242 2011-05-07  Bruno Haible  <bruno@clisp.org>
14243
14244         fopen: Move AC_LIBOBJ invocations to module description.
14245         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14246         invocations from here...
14247         * modules/fopen (configure.ac): ... to here.
14248
14249 2011-05-07  Bruno Haible  <bruno@clisp.org>
14250
14251         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14252         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14253         gl_FUNC_FNMATCH_POSIX.
14254         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14255         invocations from here...
14256         * modules/fnmatch (configure.ac): ... to here.
14257         * modules/fnmatch-gnu (configure.ac): ... and here.
14258
14259 2011-05-07  Bruno Haible  <bruno@clisp.org>
14260
14261         flock: Move AC_LIBOBJ invocations to module description.
14262         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14263         invocations from here...
14264         * modules/flock (configure.ac): ... to here.
14265
14266 2011-05-07  Bruno Haible  <bruno@clisp.org>
14267
14268         fileblocks: Move AC_LIBOBJ invocations to module description.
14269         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14270         gl_PREREQ_FILEBLOCKS invocations from here...
14271         * modules/fileblocks (configure.ac): ... to here.
14272
14273 2011-05-06  Bruno Haible  <bruno@clisp.org>
14274
14275         fflush: Move AC_LIBOBJ invocations to module description.
14276         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14277         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14278         invocations from here...
14279         * modules/fflush (configure.ac): ... to here.
14280
14281 2011-05-06  Bruno Haible  <bruno@clisp.org>
14282
14283         fdopendir: Move AC_LIBOBJ invocations to module description.
14284         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14285         here...
14286         * modules/fdopendir (configure.ac): ... to here.
14287         (Depends-on): Improve conditions.
14288
14289 2011-05-06  Bruno Haible  <bruno@clisp.org>
14290
14291         _Exit: Move AC_LIBOBJ invocations to module description.
14292         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14293         invocations from here...
14294         * modules/_Exit (configure.ac): ... to here.
14295
14296 2011-05-21  Bruno Haible  <bruno@clisp.org>
14297
14298         euidaccess: Respect rules for use of AC_LIBOBJ.
14299         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14300         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14301         from here...
14302         * modules/euidaccess (configure.ac): ... to here.
14303
14304 2011-05-06  Bruno Haible  <bruno@clisp.org>
14305
14306         error: Move AC_LIBOBJ invocations to module description.
14307         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14308         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14309         invocations from here...
14310         * modules/error (configure.ac): ... to here.
14311
14312 2011-05-06  Bruno Haible  <bruno@clisp.org>
14313
14314         duplocale: Move AC_LIBOBJ invocations to module description.
14315         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14316         gl_PREREQ_DUPLOCALE invocations from here...
14317         * modules/duplocale (configure.ac): ... to here.
14318
14319 2011-05-05  Bruno Haible  <bruno@clisp.org>
14320
14321         dirfd: Move AC_LIBOBJ invocations to module description.
14322         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14323         gl_FUNC_DIRFD.
14324         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14325         here...
14326         * modules/dirfd (configure.ac): ... to here.
14327         (Depends-on): Fix condition.
14328
14329 2011-05-05  Bruno Haible  <bruno@clisp.org>
14330
14331         chown: Respect rules for use of AC_LIBOBJ.
14332         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14333         * modules/chown (configure.ac): ... to here.
14334
14335 2011-05-05  Bruno Haible  <bruno@clisp.org>
14336
14337         chdir-long: Move AC_LIBOBJ invocations to module description.
14338         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14339         gl_PREREQ_CHDIR_LONG invocations from here...
14340         * modules/chdir-long (configure.ac): ... to here.
14341
14342 2011-05-05  Bruno Haible  <bruno@clisp.org>
14343
14344         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14345         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14346         from here...
14347         * modules/canonicalize-lgpl (configure.ac): ... to here.
14348
14349 2011-05-05  Bruno Haible  <bruno@clisp.org>
14350
14351         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14352         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14353         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14354         REPLACE_CALLOC.
14355         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14356         * modules/calloc-gnu (configure.ac): Likewise.
14357
14358 2011-05-05  Bruno Haible  <bruno@clisp.org>
14359
14360         btowc: Move AC_LIBOBJ invocations to module description.
14361         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14362         invocations from here...
14363         * modules/btowc (configure.ac): ... to here.
14364
14365 2011-05-21  Bruno Haible  <bruno@clisp.org>
14366
14367         atexit: Move AC_LIBOBJ invocations to module description.
14368         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14369         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14370         here...
14371         * modules/atexit (configure.ac): ... to here.
14372
14373 2011-05-05  Bruno Haible  <bruno@clisp.org>
14374
14375         atoll: Move AC_LIBOBJ invocations to module description.
14376         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14377         invocations from here...
14378         * modules/atoll (configure.ac): ... to here.
14379
14380 2011-05-05  Bruno Haible  <bruno@clisp.org>
14381
14382         argz: Move AC_LIBOBJ invocations to module description.
14383         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14384         * modules/argz (configure.ac): ... to here.
14385
14386 2011-05-05  Bruno Haible  <bruno@clisp.org>
14387
14388         alphasort: Move AC_LIBOBJ invocations to module description.
14389         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14390         gl_PREREQ_ALPHASORT invocations from here...
14391         * modules/alphasort (configure.ac): ... to here.
14392
14393 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14394
14395         verify: new macro verify_expr; verify_true deprecated
14396         * NEWS: Mention this.
14397         * doc/verify.texi (Compile-time Assertions): Document this.
14398         * lib/verify.h (verify_true): Deprecate.
14399         (verify_expr): New macro.
14400         * tests/test-verify.c (function): Test verify_expr.
14401
14402 2011-06-14  Jim Meyering  <meyering@redhat.com>
14403
14404         init.sh: give more portable redirection-related advice in a comment
14405         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14406         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14407         for lots of discussion.  Stefano Lattarini suggested the solution
14408         of putting "9>&2" after the command.  Reported by Bruno Haible.
14409
14410 2011-06-13  Bruno Haible  <bruno@clisp.org>
14411
14412         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14413         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14414         'none'.
14415
14416 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14417
14418         ftoastr: use strtof only if HAVE_STRTOF
14419         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14421         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14422         * modules/ftoastr (configure.ac): Check for strtof.
14423
14424 2011-06-13  Bruno Haible  <bruno@clisp.org>
14425
14426         gnulib-tool: Addendum to 2011-06-08 commit.
14427         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14428         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14429
14430 2011-06-13  Bruno Haible  <bruno@clisp.org>
14431
14432         fseeko: Provide a non-inline replacement of fseek().
14433         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14434         * modules/fseeko (Depends-on): Add fseek.
14435         * modules/fseek (License): Change to LGPLv2+.
14436
14437 2011-06-13  Bruno Haible  <bruno@clisp.org>
14438
14439         ftello: Provide a non-inline replacement of ftell().
14440         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14441         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14442         not have ftello() (such as on mingw).
14443         * modules/ftello (Depends-on): Add ftell.
14444         * modules/ftell (License): Change to LGPLv2+.
14445
14446 2011-05-07  Bruno Haible  <bruno@clisp.org>
14447
14448         ftell: Move AC_LIBOBJ invocations to module description.
14449         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14450         * modules/ftell (configure.ac): ... to here.
14451
14452 2011-05-07  Bruno Haible  <bruno@clisp.org>
14453
14454         ftello: Respect rules for use of AC_LIBOBJ.
14455         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14456         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14457         here...
14458         * modules/ftello (configure.ac): ... to here.
14459
14460 2011-05-07  Bruno Haible  <bruno@clisp.org>
14461
14462         fseeko: Simplify.
14463         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14464         (gl_FUNC_FSEEKO): Inline it here.
14465
14466 2011-05-07  Bruno Haible  <bruno@clisp.org>
14467
14468         fseek: Move AC_LIBOBJ invocations to module description.
14469         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14470         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14471         * modules/fseek (configure.ac): ... to here.
14472
14473 2011-05-07  Bruno Haible  <bruno@clisp.org>
14474
14475         fseek: Respect rules for use of AC_LIBOBJ.
14476         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14477         here...
14478         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14479
14480 2011-05-07  Bruno Haible  <bruno@clisp.org>
14481
14482         fseeko: Respect rules for use of AC_LIBOBJ.
14483         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14484         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14485         here...
14486         * modules/fseeko (configure.ac): ... to here.
14487
14488 2011-06-13  Bruno Haible  <bruno@clisp.org>
14489
14490         gnulib-tool: Allow comments in the 'Depends-on' section.
14491         * doc/gnulib.texi (Module description): Mention comment syntax in the
14492         Depends-on section.
14493         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14494
14495 2011-06-13  Bruno Haible  <bruno@clisp.org>
14496
14497         file-set.h: guard __attibute__ use, now that it's not always defined
14498         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14499         versions that support it.  This fixes a coreutils build failure with
14500         the vendor cc on HP-UX 11.31.
14501
14502 2011-06-12  Bruno Haible  <bruno@clisp.org>
14503
14504         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14505         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14506         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14507         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14508         (acl, aclsort): New declarations.
14509         (aclv_nontrivial): New declaration.
14510         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14511         (file_has_acl): Read also the second kind of HP-UX ACLs.
14512         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14513         kind of HP-UX ACLs if the first kind fails.
14514         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14515         second kind of HP-UX ACLs.
14516         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14517         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14518         agree.
14519         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14520         hpuxjfs.
14521         Handle hpuxjfs.
14522         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14523         hpuxjfs.
14524         Handle hpuxjfs.
14525         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14526         (func_test_same_acls): Use both lsacl and getacl.
14527         Handle hpuxjfs.
14528         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14529         (func_test_same_acls): Use both lsacl and getacl.
14530         Handle hpuxjfs.
14531
14532 2011-06-12  Bruno Haible  <bruno@clisp.org>
14533
14534         acl: Complete the 2010-08-10 fix.
14535         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14536         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14537         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14538         explicitly.
14539         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14540         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14541
14542 2011-06-12  Bruno Haible  <bruno@clisp.org>
14543
14544         spawn-pipe tests: Comments.
14545         * tests/test-spawn-pipe-child.c (main): Update comment.
14546         Reported by James Youngman <jay@gnu.org>.
14547
14548 2011-06-11  James Youngman  <jay@gnu.org>
14549
14550         New module 'stat-size'.
14551         * modules/stat-size: New module.  Provides macros for accessing
14552         file size information in instances of struct stat.  Depends on the
14553         fileblocks module because it calls st_blocks.
14554         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14555         * doc/gnulib.texi: Include stat-size.texi.
14556         * doc/stat-size.texi: Documentation for this module.
14557         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14558         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14559         AC_STRUCT_ST_BLOCKS.
14560
14561 2011-06-09  Bruno Haible  <bruno@clisp.org>
14562
14563         thread: Support pthreads-win32.
14564         * lib/glthread/thread.h (gl_thread_self): Define differently on
14565         pthreads-win32.
14566         (gl_null_thread): New declaration.
14567         (gl_thread_self_pointer): New macro.
14568         * lib/glthread/thread.c (gl_null_thread): New constant.
14569         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14570         gl_thread_self.
14571         * tests/test-tls.c: Likewise.
14572         Suggested by Paul Eggert. Reported by Eric Blake.
14573
14574 2011-06-09  Bruno Haible  <bruno@clisp.org>
14575
14576         thread: Fix confusion between NULL and 0.
14577         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14578         Reported by Paul Eggert.
14579
14580 2011-06-09  Bruno Haible  <bruno@clisp.org>
14581
14582         spawn-pipe tests: Avoid test failure on HP-UX 11.
14583         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14584         is closed.
14585
14586 2011-06-09  Bruno Haible  <bruno@clisp.org>
14587
14588         acl tests: Fix compilation error on HP-UX 11.
14589         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14590
14591 2011-06-09  Bruno Haible  <bruno@clisp.org>
14592
14593         rmdir: Avoid test failure on HP-UX 10.20.
14594         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14595         EEXIST.
14596
14597 2011-06-08  Eric Blake  <eblake@redhat.com>
14598
14599         perror: fix test on mingw
14600         * modules/perror-tests (Depends-on): Add dup2.
14601
14602         strerror_r-posix: fix on MacOS
14603         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14604         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14605         logic bug.
14606         * lib/strerror_r.c (strerror_r): Fix the bug.
14607         * lib/strerror.c (strerror): Likewise.
14608         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14609         problem.
14610         * doc/posix-functions/strerror.texi (strerror): Likewise.
14611         * doc/posix-functions/perror.texi (perror): Likewise.
14612         * tests/test-strerror.c (main): Enhance test.
14613         * tests/test-strerror_r.c (main): Likewise.
14614
14615 2011-06-08  Bruno Haible  <bruno@clisp.org>
14616
14617         gnulib-tool: Better isolation between different gnulib-tool invocations.
14618         * gnulib-tool: New option --witness-c-macro.
14619         (witness_c_macro): New variable.
14620         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14621         AM_CPPFLAGS define it as a C macro.
14622         (func_emit_tests_Makefile_am): Likewise.
14623         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14624         read it from there.
14625         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14626         m4_define, not AC_DEFUN.
14627         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14628         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14629         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14630         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14631         s|...|...|, to substitute the values of the GNULIB_* module indicator
14632         variables.
14633         * modules/dirent (Makefile.am): Likewise.
14634         * modules/fcntl-h (Makefile.am): Likewise.
14635         * modules/iconv-h (Makefile.am): Likewise.
14636         * modules/langinfo (Makefile.am): Likewise.
14637         * modules/locale (Makefile.am): Likewise.
14638         * modules/math (Makefile.am): Likewise.
14639         * modules/netdb (Makefile.am): Likewise.
14640         * modules/poll-h (Makefile.am): Likewise.
14641         * modules/pty (Makefile.am): Likewise.
14642         * modules/search (Makefile.am): Likewise.
14643         * modules/signal (Makefile.am): Likewise.
14644         * modules/spawn (Makefile.am): Likewise.
14645         * modules/stdio (Makefile.am): Likewise.
14646         * modules/stdlib (Makefile.am): Likewise.
14647         * modules/string (Makefile.am): Likewise.
14648         * modules/sys_ioctl (Makefile.am): Likewise.
14649         * modules/sys_select (Makefile.am): Likewise.
14650         * modules/sys_socket (Makefile.am): Likewise.
14651         * modules/sys_stat (Makefile.am): Likewise.
14652         * modules/sys_times (Makefile.am): Likewise.
14653         * modules/sys_utsname (Makefile.am): Likewise.
14654         * modules/sys_wait (Makefile.am): Likewise.
14655         * modules/termios (Makefile.am): Likewise.
14656         * modules/time (Makefile.am): Likewise.
14657         * modules/unistd (Makefile.am): Likewise.
14658         * modules/wchar (Makefile.am): Likewise.
14659
14660 2011-06-08  Eric Blake  <eblake@redhat.com>
14661
14662         strerror: simplify replacement
14663         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14664         * modules/strerror (configure.ac): No prereqs needed here...
14665         * modules/strerror-override (configure.ac): ...but this needs it.
14666         (Files): Add file for needed prereq macro.
14667
14668 2011-06-08  Bruno Haible  <bruno@clisp.org>
14669
14670         strerror_r-posix: Tweaks.
14671         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14672         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14673         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14674         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14675         (gl_FUNC_STRERROR_R): ... to here.
14676         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14677
14678 2011-06-07  Eric Blake  <eblake@redhat.com>
14679
14680         perror: document fixed bugs
14681         * doc/posix-functions/perror.texi (perror): Document recent
14682         patches.
14683
14684 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14685
14686         stat-time: get_stat_birthtime failure is better-defined
14687         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14688         return a timestamp whose tv_sec and tv_nsec values are both -1.
14689         Previously, the spec said only that the tv_nsec value was negative.
14690         This upward-compatible change simplifies GNU tar a bit.
14691
14692 2011-06-07  Eric Blake  <eblake@redhat.com>
14693
14694         strerror_r-posix: work around cygwin 1.7.9
14695         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14696         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14697         bug without replacing strerror_r.
14698         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14699         strerror_r is buggy, but without requiring strerror_r compilation.
14700         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14701
14702         test-perror: relax test to ignore cygwin bug
14703         * tests/test-perror2.c (main): Relax test on requiring detection
14704         of stream errors, and use unbuffered stream.
14705         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14706         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14707         * doc/posix-functions/fputc.texi (fputc): Likewise.
14708         * doc/posix-functions/fputs.texi (fputs): Likewise.
14709         * doc/posix-functions/fputws.texi (fputws): Likewise.
14710         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14711         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14712         * doc/posix-functions/getopt.texi (getopt): Likewise.
14713         * doc/posix-functions/perror.texi (perror): Likewise.
14714         * doc/posix-functions/printf.texi (printf): Likewise.
14715         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14716         * doc/posix-functions/psignal.texi (psignal): Likewise.
14717         * doc/posix-functions/putc.texi (putc): Likewise.
14718         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14719         Likewise.
14720         * doc/posix-functions/putchar.texi (putchar): Likewise.
14721         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14722         Likewise.
14723         * doc/posix-functions/puts.texi (puts): Likewise.
14724         * doc/posix-functions/putwc.texi (putwc): Likewise.
14725         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14726         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14727         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14728         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14729         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14730         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14731         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14732         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14733
14734 2011-05-22  Bruno Haible  <bruno@clisp.org>
14735
14736         strerror: Move AC_LIBOBJ invocations to module description.
14737         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14738         gl_PREREQ_STRERROR invocations from here...
14739         * modules/strerror (configure.ac): ... to here.
14740
14741 2011-05-21  Bruno Haible  <bruno@clisp.org>
14742
14743         perror: Use common idiom.
14744         * modules/perror (configure.ac): Reorder statements.
14745
14746 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14747
14748         tests: fix usage message in 'mktempd_'
14749         * tests/init.sh (mktempd_): In the usage message, use literal
14750         'mktempd_', not '$ME' (which is even undefined), as the name of
14751         the subroutine.
14752
14753 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14754
14755         tests init: new function 'fatal_', for hard errors
14756         Before this patch, the only way offered by tests/init.sh to
14757         properly signal a hard error was the `framework_failure_'
14758         function.  But the error message issued by that function,
14759         as its name would suggest, refers to a set-up failure in the
14760         testsuite, while hard errors can obviously also be due to
14761         other reasons.  The best way to fix this inconsistency is to
14762         introduce a new function with a more general error message.
14763         * tests/init.sh (fatal_): New function.
14764
14765 2011-06-06  Eric Blake  <eblake@redhat.com>
14766
14767         canonicalize-lgpl: use common idiom
14768         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14769         over newer POSIX -Rf.
14770         Reported by Bruno Haible.
14771
14772         canonicalize-lgpl: work around AIX realpath bug
14773         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14774         * doc/posix-functions/realpath.texi (realpath): Document it.
14775         Reported by Bruno Haible.
14776
14777         strerror: work around FreeBSD bug
14778         * lib/strerror.c (strerror): Special case 0.
14779         Reported by Bruno Haible.
14780
14781         strerror-override: avoid bloating errno module
14782         * modules/errno (Files, configure.ac): Move replacement strings...
14783         * modules/strerror-override: ...to new module.
14784         * modules/strerror (Depends-on): Add strerror-override.
14785         * modules/strerror_r-posix (Depends-on): Likewise.
14786         * MODULES.html.sh: Document new module.
14787         Reported by Bruno Haible.
14788
14789 2011-06-06  Bruno Haible  <bruno@clisp.org>
14790
14791         spawn-pipe tests: Rename program.
14792         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14793         * tests/test-spawn-pipe-child.c: Update comment.
14794         * tests/test-spawn-pipe.sh: Update.
14795         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14796
14797         spawn-pipe tests: Link the child program only against libc.
14798         * tests/test-spawn-pipe-child.c: New file, extracted from
14799         tests/test-spawn-pipe.c.
14800         (main): Expect only one argument.
14801         (is_open): New function, copied from tests/test-pipe.c.
14802         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14803         (child_main): Remove function.
14804         (test_pipe): Pass only one argument to the child program.
14805         (main): Remove child process code. Expect the child program's name as
14806         first argument.
14807         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14808         argument.
14809         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14810         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14811         test-spawn-pipe-child against no libraries.
14812
14813 2011-06-06  Bruno Haible  <bruno@clisp.org>
14814
14815         careadlinkat: Avoid mismatch between ssize_t and int.
14816         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14817         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14818
14819 2011-06-06  Jim Meyering  <meyering@redhat.com>
14820
14821         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14822         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14823         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14824
14825 2011-06-05  Bruno Haible  <bruno@clisp.org>
14826
14827         ansi-c++-opt: Interoperability with libtool.
14828         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14829         set the variable to "no", not to ":".
14830         * NEWS: Mention the change.
14831
14832 2011-06-05  Bruno Haible  <bruno@clisp.org>
14833
14834         acl: Fix test failure on AIX 7.
14835         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14836         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14837
14838 2011-06-05  Bruno Haible  <bruno@clisp.org>
14839
14840         pipe-filter-ii: Fix test failure on AIX and IRIX.
14841         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14842         with EAGAIN, retry with a smaller buffer size.
14843
14844 2011-06-05  Bruno Haible  <bruno@clisp.org>
14845
14846         localename: Fix link dependencies.
14847         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14848         * modules/localename-tests (Makefile.am): Link test-localename with
14849         $(LIBTHREAD).
14850
14851 2011-06-05  Bruno Haible  <bruno@clisp.org>
14852
14853         error: Avoid gcc warning.
14854         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14855
14856 2011-06-05  Bruno Haible  <bruno@clisp.org>
14857
14858         unsetenv: Avoid gcc warning.
14859         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14860
14861 2011-06-05  Bruno Haible  <bruno@clisp.org>
14862
14863         setenv: Avoid gcc warning.
14864         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14865
14866 2011-06-05  Bruno Haible  <bruno@clisp.org>
14867
14868         sys_select: Ensure memset is declared also on AIX 7.
14869         * lib/sys_select.in.h: Include <string.h> also on AIX.
14870         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14871         self-contained also on AIX 7.1.
14872
14873 2011-06-04  Jim Meyering  <meyering@redhat.com>
14874
14875         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14876         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14877         function name, "error".
14878         (_gl_translatable_diag_func_re): New configurable variable.
14879
14880 2011-06-04  Bruno Haible  <bruno@clisp.org>
14881
14882         getopt: Avoid gcc warning.
14883         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14884
14885 2011-06-04  Bruno Haible  <bruno@clisp.org>
14886
14887         strerror_r: Fix comments.
14888         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14889         commit.
14890
14891 2011-06-04  Bruno Haible  <bruno@clisp.org>
14892
14893         perror: Fix compilation error.
14894         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14895         Undefine fprintf, not sprintf.
14896         * modules/perror (Depends-on): Remove intprops, verify.
14897
14898 2011-06-04  Bruno Haible  <bruno@clisp.org>
14899
14900         setlocale: Enable replacement on Cygwin 1.5.
14901         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14902         Cygwin 1.5.x.
14903         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14904         LC_CTYPE category also exists on Cygwin 1.5.x.
14905
14906 2011-06-04  Bruno Haible  <bruno@clisp.org>
14907
14908         strerror-override: Don't disable symbol renamings.
14909         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14910         * lib/strerror-override.c: Include config.h.
14911         (strerror_override): Don't undefine.
14912
14913 2011-06-03  Bruno Haible  <bruno@clisp.org>
14914
14915         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14916         * lib/localename.h: Update copyright header.
14917         * lib/localename.c: Likewise.
14918         * lib/relocatable.h: Likewise.
14919         * lib/relocatable.c: Likewise.
14920
14921 2011-06-02  Bruno Haible  <bruno@clisp.org>
14922
14923         doc: Fix a module name.
14924         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14925
14926 2011-06-02  Bruno Haible  <bruno@clisp.org>
14927
14928         pipe2: Remove dependency on 'nonblocking' module.
14929         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14930         O_NONBLOCK is defined by gnulib.
14931         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14932         is zero.
14933         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14934         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14935         defined by gnulib.
14936         (get_nonblocking_flag): New function.
14937         (main): Test O_NONBLOCK flag only if it is nonzero.
14938         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14939
14940 2011-06-03  Jim Meyering  <meyering@redhat.com>
14941
14942         maint: three new prohibit-header-without-use rules
14943         Prohibit use of cloexec.h, posixver.h, same.h without use.
14944         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14945         (sc_prohibit_posixver_without_use): Likewise.
14946         (sc_prohibit_same_without_use): Likewise.
14947
14948 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14949
14950         allocator: 'die' routine is now given requested size
14951         * lib/allocator.h (struct allocator.die): New size arg.
14952         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14953         If the actual problem is an ssize_t limitation, not a size_t or
14954         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14955
14956 2011-06-01  Eric Blake  <eblake@redhat.com>
14957
14958         strerror: drop strerror_r dependency
14959         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14960         * lib/strerror-override.c (strerror_override): ...to new file.
14961         * lib/strerror-override.h: Add prototype.
14962         * lib/strerror-impl.h: Delete.
14963         * lib/strerror.c (strerror): New implementation.
14964         * modules/errno (Files): Add new files.
14965         (configure.ac): Compile new file as appropriate.
14966         * modules/strerror (Files): Drop unused file.
14967         (Depends-on): Drop strerror_r-posix.
14968         * MODULES.html.sh: Document strerror_r-posix.
14969         Requested by Sam Steingold.
14970
14971         perror: call strerror_r directly
14972         * modules/perror (Files): Drop strerror-impl.h.
14973         * lib/perror.c (perror): Use our own stack buffer, rather than
14974         calling a wrapper that uses static storage.
14975         * doc/posix-functions/perror.texi (perror): Document a limitation
14976         of our replacement.
14977
14978         strerror_r: fix includes for FreeBSD
14979         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14980         since we use abort on some platforms.
14981         Reported by Matthias Bolte.
14982
14983 2011-05-31  Bruno Haible  <bruno@clisp.org>
14984
14985         Fix link errors in tests: openat-die uses gettext-h.
14986         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14987         against $(LIBINTL).
14988         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14989         against $(LIBINTL).
14990         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14991         $(LIBINTL).
14992         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14993         against $(LIBINTL).
14994         * modules/linkat-tests (Makefile.am): Link test-linkat against
14995         $(LIBINTL).
14996         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14997         $(LIBINTL).
14998         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14999         against $(LIBINTL).
15000         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15001         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15002         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15003         $(LIBINTL).
15004         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15005         $(LIBINTL).
15006         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15007         $(LIBINTL).
15008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15009
15010 2011-05-31  Bruno Haible  <bruno@clisp.org>
15011
15012         Fix link errors in tests: wait-process uses gettext-h.
15013         * modules/nonblocking-pipe-tests (Makefile.am): Set
15014         test_nonblocking_pipe_main_LDADD.
15015         * modules/nonblocking-socket-tests (Makefile.am): Link
15016         test-nonblocking-socket-main against $(LIBINTL).
15017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15018
15019 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15020
15021         assert-h: work around 'verify' incompatibility
15022         * lib/verify.h: Use @...@ directives, not ifdef.
15023         * modules/assert-h (assert.h): Implement the directives.
15024         (assert.h): Substitute the symbol-prefix more consistently.
15025
15026 2011-05-29  Jim Meyering  <meyering@redhat.com>
15027
15028         trim: remove three superfluous assignments
15029         * lib/trim.c (trim2): Remove three superfluous assignments
15030         and correct brace positioning.
15031
15032 2011-05-29  Bruno Haible  <bruno@clisp.org>
15033
15034         wctype-h: Avoid namespace pollution on Solaris 2.6.
15035         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15036         identifiers.
15037         * doc/posix-headers/wctype.texi: Mention the problem.
15038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15039
15040 2011-05-28  Jim Meyering  <meyering@redhat.com>
15041
15042         parse-datetime.y: accommodate -Wstrict-overflow
15043         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15044         placate -Wstrict-overflow.
15045
15046         trim: avoid a warning from -O2 -Wstrict-overflow
15047         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15048
15049 2011-05-29  Bruno Haible  <bruno@clisp.org>
15050
15051         gnulib-tool: Fix bug in yesterday's commit.
15052         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15053         twice.
15054
15055 2011-05-29  Bruno Haible  <bruno@clisp.org>
15056
15057         Allow multiple gnulib generated include files to be combined.
15058         * gnulib-tool (func_compute_include_guard_prefix): New function.
15059         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15060         ${gl_include_guard_prefix} references.
15061         (func_import, func_create_testdir): Invoke
15062         func_compute_include_guard_prefix.
15063         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15064         * lib/ctype.in.h: Likewise.
15065         * lib/dirent.in.h: Likewise.
15066         * lib/errno.in.h: Likewise.
15067         * lib/fcntl.in.h: Likewise.
15068         * lib/float.in.h: Likewise.
15069         * lib/getopt.in.h: Likewise.
15070         * lib/iconv.in.h: Likewise.
15071         * lib/langinfo.in.h: Likewise.
15072         * lib/locale.in.h: Likewise.
15073         * lib/math.in.h: Likewise.
15074         * lib/netdb.in.h: Likewise.
15075         * lib/netinet_in.in.h: Likewise.
15076         * lib/poll.in.h: Likewise.
15077         * lib/pthread.in.h: Likewise.
15078         * lib/pty.in.h: Likewise.
15079         * lib/sched.in.h: Likewise.
15080         * lib/se-selinux.in.h: Likewise.
15081         * lib/search.in.h: Likewise.
15082         * lib/signal.in.h: Likewise.
15083         * lib/spawn.in.h: Likewise.
15084         * lib/stdarg.in.h: Likewise.
15085         * lib/stddef.in.h: Likewise.
15086         * lib/stdint.in.h: Likewise.
15087         * lib/stdio.in.h: Likewise.
15088         * lib/stdlib.in.h: Likewise.
15089         * lib/string.in.h: Likewise.
15090         * lib/strings.in.h: Likewise.
15091         * lib/sys_file.in.h: Likewise.
15092         * lib/sys_ioctl.in.h: Likewise.
15093         * lib/sys_select.in.h: Likewise.
15094         * lib/sys_socket.in.h: Likewise.
15095         * lib/sys_stat.in.h: Likewise.
15096         * lib/sys_time.in.h: Likewise.
15097         * lib/sys_times.in.h: Likewise.
15098         * lib/sys_uio.in.h: Likewise.
15099         * lib/sys_utsname.in.h: Likewise.
15100         * lib/sys_wait.in.h: Likewise.
15101         * lib/sysexits.in.h: Likewise.
15102         * lib/termios.in.h: Likewise.
15103         * lib/time.in.h: Likewise.
15104         * lib/unistd.in.h: Likewise.
15105         * lib/wchar.in.h: Likewise.
15106         * lib/wctype.in.h: Likewise.
15107         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15108         * modules/ctype (Makefile.am): Likewise.
15109         * modules/dirent (Makefile.am): Likewise.
15110         * modules/errno (Makefile.am): Likewise.
15111         * modules/fcntl-h (Makefile.am): Likewise.
15112         * modules/float (Makefile.am): Likewise.
15113         * modules/getopt-posix (Makefile.am): Likewise.
15114         * modules/iconv-h (Makefile.am): Likewise.
15115         * modules/langinfo (Makefile.am): Likewise.
15116         * modules/locale (Makefile.am): Likewise.
15117         * modules/math (Makefile.am): Likewise.
15118         * modules/netdb (Makefile.am): Likewise.
15119         * modules/netinet_in (Makefile.am): Likewise.
15120         * modules/poll-h (Makefile.am): Likewise.
15121         * modules/pthread (Makefile.am): Likewise.
15122         * modules/pty (Makefile.am): Likewise.
15123         * modules/sched (Makefile.am): Likewise.
15124         * modules/search (Makefile.am): Likewise.
15125         * modules/selinux-h (Makefile.am): Likewise.
15126         * modules/signal (Makefile.am): Likewise.
15127         * modules/spawn (Makefile.am): Likewise.
15128         * modules/stdarg (Makefile.am): Likewise.
15129         * modules/stddef (Makefile.am): Likewise.
15130         * modules/stdint (Makefile.am): Likewise.
15131         * modules/stdio (Makefile.am): Likewise.
15132         * modules/stdlib (Makefile.am): Likewise.
15133         * modules/string (Makefile.am): Likewise.
15134         * modules/strings (Makefile.am): Likewise.
15135         * modules/sys_file (Makefile.am): Likewise.
15136         * modules/sys_ioctl (Makefile.am): Likewise.
15137         * modules/sys_select (Makefile.am): Likewise.
15138         * modules/sys_socket (Makefile.am): Likewise.
15139         * modules/sys_stat (Makefile.am): Likewise.
15140         * modules/sys_time (Makefile.am): Likewise.
15141         * modules/sys_times (Makefile.am): Likewise.
15142         * modules/sys_uio (Makefile.am): Likewise.
15143         * modules/sys_utsname (Makefile.am): Likewise.
15144         * modules/sys_wait (Makefile.am): Likewise.
15145         * modules/sysexits (Makefile.am): Likewise.
15146         * modules/termios (Makefile.am): Likewise.
15147         * modules/time (Makefile.am): Likewise.
15148         * modules/unistd (Makefile.am): Likewise.
15149         * modules/wchar (Makefile.am): Likewise.
15150         * modules/wctype-h (Makefile.am): Likewise.
15151         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15152
15153 2011-05-29  Bruno Haible  <bruno@clisp.org>
15154
15155         assert-h: Allow multiple gnulib generated replacements to coexist.
15156         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15157
15158 2011-05-29  Bruno Haible  <bruno@clisp.org>
15159
15160         argp: Allow coexistence with strerror_r-posix module.
15161         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15162         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15163         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15164         not the glibc signature.
15165
15166 2011-05-28  Bruno Haible  <bruno@clisp.org>
15167
15168         gnulib-tool: Alternative structure of testdirs, similar to --import.
15169         * gnulib-tool: New option --single-configure.
15170         (func_usage): Document it.
15171         (single_configure): New variable.
15172         (func_modules_transitive_closure_separately,
15173         func_modules_transitive_closure_separately,
15174         func_determine_use_libtests, func_modules_add_dummy_separately,
15175         func_modules_to_filelist_separately): New functions, extracted from
15176         func_import.
15177         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15178         (func_import): Use the new functions.
15179         (func_create_testdir): Set final_modules. Handle $single_configure =
15180         true case.
15181
15182 2011-05-28  Bruno Haible  <bruno@clisp.org>
15183
15184         getloadavg: Remove an unreliable safety check.
15185         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15186         getloadavg.c is in place.
15187         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15188         Reported by Sam Steingold <sds@gnu.org>.
15189
15190 2011-05-28  Bruno Haible  <bruno@clisp.org>
15191
15192         doc: Cleanup yet another file produced by texinfo.tex.
15193         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15194
15195 2011-05-28  Bruno Haible  <bruno@clisp.org>
15196
15197         Finish the conditional dependencies mechanism.
15198         * gnulib-tool: New option --no-conditional-dependencies.
15199         (func_usage): Document it. Don't mark --conditional-dependencies as
15200         experimental.
15201         (cond_dependencies): The possible values can now be true, false, empty.
15202         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15203         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15204         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15205
15206 2011-05-28  Bruno Haible  <bruno@clisp.org>
15207
15208         doc: Use a recent texinfo.tex.
15209         * doc/Makefile (tex_opts): New variable.
15210         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15211
15212 2011-05-28  Jim Meyering  <meyering@redhat.com>
15213
15214         intprops.h: adjust comment to match code change
15215         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15216         only once, it *may* have side effects.  Also fix an unrelated typo.
15217         (_GL_INT_SIGNED): Likewise.
15218
15219 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15220
15221         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15222
15223 2011-05-26  Bruno Haible  <bruno@clisp.org>
15224
15225         mbsrchr: Avoid collision with system function on Interix.
15226         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15227         Reported by Markus Duft <mduft@gentoo.org>.
15228
15229 2011-05-15  James Youngman  <jay@gnu.org>
15230
15231         getopt: for ambiguous options, enumerate the possibilities.
15232         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15233         the ambiguous options when an ambiguous prefix is given. This was
15234         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15235         glibc change was
15236         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15237
15238 2011-05-25  Eric Blake  <eblake@redhat.com>
15239
15240         getcwd: work around mingw bug
15241         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15242         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15243         Reported by Matthias Bolte.
15244
15245 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15246
15247         test-intprops: disable -Wtype-limits diagnostics
15248         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15249         diagnostics.  Otherwise, the integer overflow macros generate many
15250         diagnostics.  Reported by Jim Meyering in
15251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15252
15253         intprops: shorten, to pacify gcc -Woverlength-strings
15254         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15255         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15256         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15257         likely to run afoul of C compiler limits for string constant lengths.
15258         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15259
15260 2011-05-24  Eric Blake  <eblake@redhat.com>
15261
15262         docs: document recently fixed glibc printf bug
15263         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15264         * doc/posix-functions/printf.texi (printf): Likewise.
15265         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15266         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15267
15268         closein-tests: convert to init.sh
15269         * modules/closein-tests (Files): Add init.sh
15270         * tests/test-closein.sh Use it.
15271
15272         yesno-tests: convert to init.sh
15273         * modules/yesno-tests (Files): Add init.sh.
15274         * tests/test-yesno.sh: Use it.
15275
15276         atexit-tests: ensure reliable exit status
15277         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15278         Reported by Bruno Haible.
15279
15280 2011-05-24  Bruno Haible  <bruno@clisp.org>
15281
15282         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15283         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15284         gl_PREREQ_STRERROR_R invocations from here...
15285         * modules/strerror_r-posix (configure.ac): ... to here.
15286
15287 2011-05-24  Eric Blake  <eblake@redhat.com>
15288
15289         strerror_r: fix missing header
15290         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15291
15292         strerror_r: fix AIX test failures
15293         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15294         ERANGE failure.
15295
15296         strerror_r: fix Solaris test failures
15297         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15298         failures.
15299         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15300
15301         strerror_r: enforce POSIX recommendations
15302         * lib/strerror_r.c (safe_copy): New helper method.
15303         (strerror_r): Guarantee a non-empty string.
15304         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15305         recent POSIX rulings and to match our strerror guarantees.
15306         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15307
15308 2011-05-24  Jim Meyering  <meyering@redhat.com>
15309
15310         test-perror2.c: avoid warning about unused variable
15311         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15312
15313 2011-05-24  Eric Blake  <eblake@redhat.com>
15314
15315         perror: avoid spurious test failure on HP-UX
15316         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15317
15318         tests: fix logic bug in init.sh
15319         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15320         shell.
15321
15322 2011-05-24  Jim Meyering  <meyering@redhat.com>
15323
15324         utimensat: do not reference an out-of-scope buffer
15325         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15326         declared in an inner scope, yet "times" would be dereferenced outside
15327         the scope in which "ts" was valid.
15328         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15329         of ts[2] "out/up", so that the use of aliased "times" (via
15330         "times = ts;") does not end up referencing an out-of-scope "ts"
15331
15332         opendir-safer.c: don't clobber errno; don't close negative FD
15333         * lib/opendir-safer.c (opendir_safer):
15334         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15335         file descriptor, and more importantly, don't clobber the
15336         offending errno value with EINVAL.  Before, upon failure
15337         of dup_safer, we would pass the negative file descriptor to
15338         fdopendir, which would clobber errno.
15339
15340 2011-05-23  Bruno Haible  <bruno@clisp.org>
15341
15342         idcache: Fix module description.
15343         * modules/idcache (Include): Set to "idcache.h".
15344
15345 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15346
15347         gnulib-tool: fix portability problem with MacOS sed
15348         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15349         before the "}".  Problem reported by Leo in
15350         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15351         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15352         sed_extract_condition1, sed_extract_condition2.
15353
15354 2011-05-23  Bruno Haible  <bruno@clisp.org>
15355
15356         hash: Simplify autoconf macro.
15357         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15358
15359 2011-05-23  Bruno Haible  <bruno@clisp.org>
15360
15361         getugroups: Fix module description.
15362         * modules/getugroups (Include): Set to "getugroups.h".
15363
15364 2011-05-23  Bruno Haible  <bruno@clisp.org>
15365
15366         linkat: Simplify autoconf macro.
15367         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15368
15369 2011-05-23  Bruno Haible  <bruno@clisp.org>
15370             Eric Blake  <eblake@redhat.com>
15371
15372         linkat, renameat: Update dependencies.
15373         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15374         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15375         symlinkat.
15376
15377 2011-05-23  Jim Meyering  <meyering@redhat.com>
15378
15379         maint.mk: more tight_scope improvements
15380         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15381         (_gl_TS_headers): Define only in if-0'd block.
15382         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15383         sometimes we must *not* use it.  Adjust uses accordingly.
15384         (sc_tight_scope): Use much simpler grep-based test to determine
15385         whether we skip this rule.
15386
15387         maint.mk: generalize/improve the tight-scope rule
15388         * top/maint.mk: Emit a warning when the test is skipped.
15389         (_gl_TS_dir): Add $(srcdir)/ prefix.
15390         (_gl_TS_function_match): Simplify, rather than trying
15391         to enumerate common types.  Otherwise, it would fail to match an
15392         "extern unsigned char const *" declaration in idutils.
15393         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15394         a way to support use of that type of macro.
15395         (_gl_TS_var_match): Simplify regexp.
15396         (_gl_TS_obj_files): New configurable variable.
15397         (_gl_TS_headers): Likewise.
15398
15399 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15400
15401         verify: fix bug when gnulib <assert.h> is also included
15402         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15403         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15404         Perhaps there's a better way, but this fixes the immediate problem.
15405         Problem reported by Bruno Haible in
15406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15407
15408 2011-05-22  Bruno Haible  <bruno@clisp.org>
15409
15410         xgetcwd: Simplify autoconf macro.
15411         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15412
15413 2011-05-22  Bruno Haible  <bruno@clisp.org>
15414
15415         New module 'mktime-internal'.
15416         * modules/mktime-internal: New file.
15417         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15418         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15419         mktime_internal as a C macro if libc has __mktime_internal.
15420         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15421         conditions.
15422         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15423
15424 2011-05-22  Bruno Haible  <bruno@clisp.org>
15425
15426         timegm: Correct mktime replacement statements.
15427         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15428         defining mktime as a C macro. This completes a 2009-07-28 commit.
15429
15430 2011-05-22  Bruno Haible  <bruno@clisp.org>
15431
15432         timegm: Simplify autoconf macro.
15433         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15434
15435 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15436
15437         clock-time: change to LGPLv2+.
15438         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15439         BSD-like but we have no mark for that; this is good enough for now.
15440
15441 2011-05-21  Bruno Haible  <bruno@clisp.org>
15442
15443         strerror_r: Fix comments.
15444         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15445
15446 2011-05-21  Bruno Haible  <bruno@clisp.org>
15447
15448         relocatable-prog-wrapper: Fix possible link error.
15449         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15450         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15451         (gl_FUNC_SETENV): ... to here.
15452         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15453         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15454
15455 2011-05-21  Bruno Haible  <bruno@clisp.org>
15456
15457         relocatable-prog-wrapper: Assume strerror() exists.
15458         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15459         m4/strerror.m4.
15460         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15461         * lib/relocwrapper.c: Remove mention of strerror module.
15462         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15463         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15464         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15465         C macro.
15466
15467 2011-05-21  Bruno Haible  <bruno@clisp.org>
15468
15469         select: Simplify replacement idiom.
15470         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15471         Win32 platforms.
15472         * lib/sys_select.in.h (select): Simplify accordingly.
15473         * modules/select (Depends-on): Likewise.
15474
15475 2011-05-21  Bruno Haible  <bruno@clisp.org>
15476
15477         mkdir-p: Simplify autoconf macro.
15478         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15479         gl_FUNC_LCHOWN.
15480
15481 2011-05-21  Eric Blake  <eblake@redhat.com>
15482
15483         strerror_r: avoid clobbering strerror on cygwin
15484         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15485         fall back instead to sys_errlist.
15486         * modules/strerror (configure.ac): Add witness.
15487         * tests/test-strerror_r.c (main): Enhance test.
15488         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15489         * tests/test-perror2.c (main): Free memory before exit.
15490
15491 2011-05-21  Bruno Haible  <bruno@clisp.org>
15492
15493         mkdtemp: Use gnulib naming conventions.
15494         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15495         * modules/mkdtemp (configure.ac): Update.
15496
15497 2011-05-20  Eric Blake  <eblake@redhat.com>
15498
15499         strerror_r: avoid corrupting errno on Solaris
15500         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15501         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15502
15503         strerror_r: avoid compiler warning
15504         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15505
15506         strerror_r: simplify AIX code
15507         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15508
15509         test-perror: avoid spurious failure on FreeBSD
15510         * modules/perror-tests (Depends-on): Add strerror, now that
15511         strerror_r no longer pulls it in.
15512
15513 2011-05-20  Bruno Haible  <bruno@clisp.org>
15514
15515         strerror_r-posix: Remove unused dependencies.
15516         * modules/strerror_r-posix (Depends-on): Remove strerror.
15517         Reported by Eric Blake.
15518
15519 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15520
15521         intprops: remove assumption about A|B representation
15522         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15523         is a valid integer if both A and B are.  Although this is true for
15524         all known practical hosts, the C standard doesn't guarantee it,
15525         and the code need not assume it.  Also, this change may work around
15526         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15528
15529 2011-05-20  Eric Blake  <eblake@redhat.com>
15530
15531         perror: work around FreeBSD bug
15532         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15533         is broken.  Move AC_LIBOBJ...
15534         * modules/perror (configure.ac): Here.
15535         * doc/posix-functions/perror.texi (perror): Document this.
15536         * tests/test-perror2.c (main): Enhance test.
15537
15538         test-perror: check for strerror interactions
15539         * tests/macros.h (STREQ): Add macro.
15540         * modules/perror-tests (Files): Add second test.
15541         * tests/test-perror2.c (main): New file.
15542         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15543
15544         test-perror: rewrite to use init script
15545         * modules/perror-tests (Files): Add init.sh.
15546         * tests/test-perror.sh: Use temporary directory.
15547
15548 2011-05-20  Jim Meyering  <meyering@redhat.com>
15549
15550         maint: replace misused "a" with "an"
15551         * doc/intprops.texi: "a integer"
15552         * doc/regex.texi: "a explanation"
15553         * lib/alignof.h: "a object"
15554         * lib/argmatch.h: "a explanation"
15555         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15556         * lib/stdint.in.h: "a integer"
15557         * lib/userspec.c: "a owner"
15558         * doc/gnulib.texi: Fix "a idea", and reword.
15559
15560 2011-05-19  Jim Meyering  <meyering@redhat.com>
15561
15562         maint: correct misuse of "a" and "an"
15563         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15564         * lib/argp-help.c: "an docum...": s/an/a/
15565         * lib/argp-parse.c: "An vector": s/An/A/
15566         * lib/execute.c: "an native": s/an/a/
15567         * lib/spawn-pipe.c: Likewise.
15568         * lib/gc.h: "an Gc_rc": s/an/a/
15569         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15570         * lib/fts.c: "an stat.st_dev": s/an/a/
15571
15572 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15573
15574         intprops-tests: work around HP-UX 11.23 cc bug with constants
15575         * tests/test-intprops.c (VERIFY): New macro.
15576         (main): Use it, instead of verify, to work around the compiler bug; see
15577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15578
15579         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15580         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15581         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15582         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15583         (_GL_REMAINDER_OVERFLOW): Use it.
15584
15585         intprops-tests: revert unsigned part of previous change
15586         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15587         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15588         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15590
15591 2011-05-19  Bruno Haible  <bruno@clisp.org>
15592
15593         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15594         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15595         strerror_r() returned without filling the buffer.
15596         Reported by Eric Blake.
15597
15598 2011-05-19  Eric Blake  <eblake@redhat.com>
15599
15600         strerror_r: guarantee unchanged errno
15601         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15602         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15603         failure.
15604         * tests/test-strerror_r.c (main): Enhance test.
15605
15606 2011-05-19  Bruno Haible  <bruno@clisp.org>
15607
15608         strerror_r: Reorder #if blocks.
15609         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15610         for consistency with the previous commit.
15611
15612 2011-05-19  Bruno Haible  <bruno@clisp.org>
15613
15614         perror: Avoid clobbering the strerror buffer when possible.
15615         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15616         * lib/strerror.c: Include it.
15617         * modules/strerror (Files): Add lib/strerror-impl.h.
15618         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15619         (my_strerror): New function, defined through lib/strerror-impl.h.
15620         (perror): Use it instead of strerror.
15621         * modules/perror (Files): Add lib/strerror-impl.h.
15622         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15623
15624 2011-05-19  Eric Blake  <eblake@redhat.com>
15625
15626         strerror_r: fix on newer cygwin
15627         * lib/strerror_r.c (strerror_r): Cygwin now has
15628         __xpg_strerror_r, use it.
15629
15630 2011-05-19  Bruno Haible  <bruno@clisp.org>
15631
15632         strerror_r: Avoid clobbering the strerror buffer when possible.
15633         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15634         (sys_nerr, sys_errlist): New declarations.
15635         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15636         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15637         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15638
15639 2011-05-19  Bruno Haible  <bruno@clisp.org>
15640
15641         strerror_r: Fix test failure on mingw.
15642         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15643         EXTEND_STRERROR_R.
15644         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15645         macros from errno.in.h instead.
15646
15647 2011-05-19  Eric Blake  <eblake@redhat.com>
15648
15649         strerror: relax test for Solaris
15650         * tests/test-strerror.c (main): Permit Solaris behavior.
15651         * tests/test-strerror_r.c (main): Likewise.
15652
15653         strerror: enforce POSIX ruling on strerror(0)
15654         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15655         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15656         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15657         * doc/posix-functions/strerror.texi (strerror): Document it.
15658         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15659         * tests/test-strerror.c (main): Strengthen test.
15660         * tests/test-strerror_r.c (main): Likewise.
15661
15662 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15663
15664         intprop-tests: port to older and more-pedantic compilers
15665         * modules/intprops-tests (Files): Add tests/macros.h.
15666         * tests/test-intprops.c: Include macros.h.
15667         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15668         it's no longer documented to expand to an integer constant expression.
15669         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15670         argument is floating point, as it's no longer documented to expand
15671         to an integer constant expression in that case.
15672         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15673         compiler bugs reported by Bruno Haible.  See
15674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15675         (U0, U1): New constants, to work around the same bugs.  Also,
15676         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15677
15678         intprops: work around C compiler bugs
15679         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15680         bug in Sun C 5.11 2010/08/13 and other compilers; see
15681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15682
15683         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15684         * doc/intprops.texi (Integer Type Determination): Fix
15685         documentation for TYPE_IS_INTEGER: it returns an constant
15686         expression, not an integer constant expression.  Fix doc for
15687         TYPE_SIGNED: it returns an integer constant expression only if its
15688         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15689         hardly worth documented that way....)
15690
15691 2011-05-18  Bruno Haible  <bruno@clisp.org>
15692
15693         strerror_r: Avoid clobbering the strerror buffer when possible.
15694         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15695         Handle gnulib defined errno values here. When strerror() returns NULL
15696         or an empty string, return EINVAL.
15697         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15698         gnulib defined errno values here.
15699         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15700
15701 2011-05-18  Eric Blake  <eblake@redhat.com>
15702
15703         fnmatch: avoid compiler warning
15704         * lib/fnmatch_loop.c (FCT): Use correct type.
15705         Reported by Matthias Bolte.
15706
15707 2011-05-13  Jim Meyering  <meyering@redhat.com>
15708
15709         maint.mk: three new prohibit_<HDR>_without_use rules
15710         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15711         (sc_prohibit_stdio-safer_without_use): Likewise.
15712         (sc_prohibit_xfreopen_without_use): Likewise.
15713
15714 2011-05-17  Jim Meyering  <meyering@redhat.com>
15715
15716         announce-gen: fail if the NEWS delta is empty
15717         If there's nothing noteworthy in NEWS, then either you forgot
15718         or you shouldn't be releasing.
15719         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15720
15721 2011-05-17  Pádraig Brady <P@draigBrady.com>
15722
15723         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15724         reserved symbols starting with double underscore from the check.
15725
15726 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15727
15728         intprops: add doc
15729         * doc/intprops.texi: New file, documenting intprops.
15730         * doc/gnulib.texi (Particular Modules): Include it.
15731
15732         verify: add doc to gnulib manual and fix example
15733         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15734         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15735         (Compile-time Assertions): Fix example so it can't overflow.
15736
15737 2011-05-17  Jim Meyering  <meyering@redhat.com>
15738
15739         warnings.m4: don't usurp save_CPPFLAGS variable name
15740         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15741
15742         doc: fix typo
15743         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15744
15745 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15746             Bruno Haible  <bruno@clisp.org>
15747
15748         doc: Tweak recent change.
15749         * README (Portability guidelines): Tweak new text.
15750         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15751         Interix 6.1.
15752
15753 2011-05-16  Eric Blake  <eblake@redhat.com>
15754
15755         inttypes: avoid autoconf warning
15756         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15757         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15758
15759 2011-05-16  Sam Steingold <sds@gnu.org>
15760         and Eric Blake  <eblake@redhat.com>
15761
15762         vc-list-files: accept multiple directory operands
15763         * build-aux/vc-list-files: Iterate over all remaining operands.
15764
15765 2011-05-16  Bruno Haible  <bruno@clisp.org>
15766
15767         Fix confusion regarding deprecated modules.
15768         * modules/calloc (Status, Notice): Mark module as deprecated, not
15769         obsolete.
15770         * modules/fnmatch-posix (Status, Notice): Likewise.
15771         * modules/getdate (Status, Notice): Likewise.
15772         * modules/getopt (Status, Notice): Likewise.
15773         * modules/malloc (Status, Notice): Likewise.
15774         * modules/pipe (Status, Notice): Likewise.
15775         * modules/realloc (Status, Notice): Likewise.
15776         * modules/rename-dest-slash (Status, Notice): Likewise.
15777         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15778         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15779         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15780         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15781         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15782
15783 2011-05-16  Bruno Haible  <bruno@clisp.org>
15784
15785         doc: List the target platforms.
15786         * doc/gnulib-intro.texi (Target Platforms): New section.
15787         * doc/gnulib.texi (Introduction): Update menu.
15788         * README (Portability guidelines): Refer to the new section. Update
15789         statement about oldest supported environment. Remove rationale why
15790         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15791         unportable C89 function.
15792         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15793         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15794
15795 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15796
15797         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15798
15799 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15800
15801         intprops-tests: new module
15802         * modules/intprops-tests, tests/test-intprops.c: New files.
15803
15804         intprops: add safe, portable integer overflow checking
15805         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15806         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15807         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15808         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15809         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15810         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15811         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15812         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15813         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15814         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15815         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15816
15817 2011-05-12  James Youngman  <jay@gnu.org>
15818
15819         Add a test for glibc's Bugzilla bug #12378.
15820         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15821         doesn't allow the literal matching of a lone "[" (which is
15822         required by POSIX).
15823         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15824
15825 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15826
15827         Sync glibc change fixing Bugzilla bug #12378.
15828         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15829         beginning and fall back to matching as normal character if the
15830         string ends before the matching ']' is found.  This is what POSIX
15831         requires.
15832
15833 2011-05-13  Eric Blake  <eblake@redhat.com>
15834
15835         getcwd-lgpl: relax test for FreeBSD
15836         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15837         issue.
15838         * tests/test-getcwd-lgpl.c (main): Relax test.
15839         Reported by Matthias Bolte.
15840
15841 2011-05-11  Eric Blake  <eblake@redhat.com>
15842
15843         test-fflush: silence compiler warning
15844         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15845
15846 2011-05-11  Bruno Haible  <bruno@clisp.org>
15847
15848         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15849         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15850         * modules/canonicalize (Depends-on): Add 'nocrash'.
15851         * modules/canonicalize-lgpl (Depends-on): Likewise.
15852         * doc/posix-functions/realpath.texi: Update platforms list.
15853         Reported by Ryan Schmidt <ryandesign@macports.org>.
15854
15855 2011-05-11  Bruno Haible  <bruno@clisp.org>
15856
15857         group-member: Declare function in <unistd.h>.
15858         * lib/unistd.in.h (group_member): New declaration.
15859         * lib/group-member.h: Remove file.
15860         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15861         * tests/test-unistd-c++.cc: Check signature of group_member.
15862         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15863         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15864         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15865         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15866         HAVE_GROUP_MEMBER.
15867         * modules/group-member (Files): Remove lib/group-member.h.
15868         (Depends-on): Add unistd. Specify conditions.
15869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15870         (Include): Change to <unistd.h>.
15871         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15872         HAVE_GROUP_MEMBER.
15873         * NEWS: Mention the change.
15874         * lib/euidaccess.c: Don't include group-member.h.
15875
15876 2011-05-11  Bruno Haible  <bruno@clisp.org>
15877
15878         group-member: Document module.
15879         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15880         module.
15881
15882 2011-05-11  Bruno Haible  <bruno@clisp.org>
15883
15884         fclose: Fix mistake earlier today.
15885         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15886
15887 2011-05-11  Eric Blake  <eblake@redhat.com>
15888
15889         fclose: preserve fflush errors
15890         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15891         Reported by Jim Meyering.
15892
15893         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15894         * build-aux/bootstrap (check_versions): When no specific version
15895         is required, merely check that the app produces an exit status
15896         that indicates its existence.
15897
15898         maint.mk: drop redundant check
15899         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15900         the same but better.
15901
15902 2011-05-11  Bruno Haible  <bruno@clisp.org>
15903
15904         fclose: Fix possible link error.
15905         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15906         unregister_shadow_fd. Improve comments.
15907         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15908         Eric Blake.
15909
15910 2011-05-11  Jim Meyering  <meyering@redhat.com>
15911
15912         maint.mk: improve "can not" detection and generalize rule name
15913         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15914         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15915         Use the same technique as in sc_prohibit_doubled_word, so that
15916         we recognize "can not" also when the words are separated by a newline.
15917         Suggested by Eric Blake.
15918         (perl_filename_lineno_text_): Define.  Factored out of...
15919         (prohibit_doubled_word_): ...here.  Use the new definition.
15920         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15921         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15922         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15923
15924 2011-05-10  Eric Blake  <eblake@redhat.com>
15925
15926         fclose: avoid double close race when possible
15927         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15928         all but WINDOWS_SOCKETS.
15929
15930 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15931
15932         openat: correct new comment
15933         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15934
15935 2011-05-10  Jim Meyering  <meyering@redhat.com>
15936
15937         openat: add comments
15938         * lib/openat-proc.c (openat_proc_name): Add comments,
15939         mostly from Eric Blake.
15940
15941 2011-05-09  Eric Blake  <eblake@redhat.com>
15942
15943         openat: reduce syscalls in first probe of /proc
15944         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15945         be a directory.  Simplify the probe for .. bugs.
15946         * modules/openat (Depends-on): Drop same-inode.
15947         Reported by Bastien ROUCARIES.
15948
15949 2011-05-09  Jim Meyering  <meyering@redhat.com>
15950
15951         maint.mk: change semantics/name of tight_scope variables
15952         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15953         Rename variables to align with semantics that make them more useful.
15954
15955         maint.mk: tweak new rule's name not to impinge
15956         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15957         (sc_tight_scope): Use new rule name rather than $@-0.
15958
15959         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15960         * top/maint.mk (sc_tight_scope): New rule.
15961         (sc_tight_scope-0): New rule, ifdef'd out.
15962         (_gl_TS_dir): Default.
15963         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15964         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15965
15966 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15967
15968         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15969         Haible <bruno@clisp.org>.
15970
15971 2011-05-08  Bruno Haible  <bruno@clisp.org>
15972
15973         Comments.
15974         * m4/isnanf.m4: Add comment.
15975         * m4/isnanl.m4: Likewise.
15976
15977 2011-05-08  Bruno Haible  <bruno@clisp.org>
15978
15979         glob: Remove obsolete macro.
15980         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15981
15982 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15983
15984         intprops: Sun C 5.11 supports __typeof__
15985         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15986         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15987         which is new.
15988         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15989
15990         intprops: switch to usual gnulib indenting and naming
15991         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15992         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15993
15994         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15995
15996 2011-05-08  Jim Meyering  <meyering@redhat.com>
15997
15998         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15999         * top/maint.mk (release-prep): Use make's --no-print-directory
16000         option when generating the announcement.  This eliminates the
16001         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16002         generated announcement template.
16003
16004 2011-05-08  Bruno Haible  <bruno@clisp.org>
16005
16006         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16007         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16008         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16009
16010 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16011
16012         ignore-value, verify: Omit include files from lib_SOURCES.
16013         * modules/ignore-value, modules/verify (Makefile.am):
16014         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16015         that leads Automake to duplicate use of am__objects_... variables
16016         in Makefile.in.  See
16017         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16018
16019 2011-05-07  Bruno Haible  <bruno@clisp.org>
16020
16021         fclose: Simplify autoconf macro.
16022         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16023         defined.
16024
16025 2011-05-07  Bruno Haible  <bruno@clisp.org>
16026
16027         canonicalize-lgpl: Fix autoconf macro ordering bug.
16028         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16029         gl_STDLIB_H_DEFAULTS.
16030
16031 2011-05-06  Eric Blake  <eblake@redhat.com>
16032
16033         maintainer-makefile: make sc_po_check easier to tune
16034         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16035         to probe for strings, such as an alternate location for gnulib.
16036
16037         fclose: guarantee behavior on seekable stdin
16038         * modules/fclose (Depends-on): Add fflush.
16039         * doc/posix-functions/fclose.texi (fclose): Document this.
16040         * tests/test-fclose.c (main): Make test for this unconditional.
16041
16042 2011-05-06  Bruno Haible  <bruno@clisp.org>
16043
16044         fflush, fpurge: Relicense under LGPLv2+.
16045         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16046         * modules/fpurge (License): Likewise.
16047         With permission from Eric Blake and Jim Meyering.
16048         Suggested by Eric Blake.
16049
16050 2011-05-06  Karl Berry  <karl@gnu.org>
16051
16052         * MODULES.html.sh (func_all_modules): remove exit.
16053
16054 2011-05-06  Jim Meyering  <meyering@redhat.com>
16055
16056         maint.mk: use info-gnu@ as the default only for a stable release
16057         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16058         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16059         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16060         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16061
16062 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16063
16064         assert-h: new module, which supports C1X-style static_assert
16065         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16066         * lib/verify.h: Revamp so that this can be copied into assert.h,
16067         while retaining the ability to use it standalone as before.
16068         Rename private identifiers so as not to encroach on the
16069         standard C namespace, since this is now used by assert.h.
16070         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16071         the old verify_true.
16072         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16073         the old verify_true.  Use _GL_VERIFY_TYPE.
16074         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16075         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16076         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16077         defined when this file is copied into the replacement assert.h.
16078         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16079         and _Static_assert is not built in.
16080         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16081         defined, and use the new macros mentioned above.
16082         * doc/posix-headers/assert.texi: Document this.
16083
16084 2011-05-05  Bruno Haible  <bruno@clisp.org>
16085
16086         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16087         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16088         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16089         gl_REPLACE_FCLOSE here.
16090         * modules/fflush (Depends-on): Remove fclose.
16091         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16092         combination with module 'fclose'.
16093
16094 2011-05-05  Bruno Haible  <bruno@clisp.org>
16095
16096         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16097         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16098         gl_FUNC_FFLUSH.
16099         (gl_FUNC_FFLUSH): Use it.
16100         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16101         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16102         gl_REPLACE_FSEEKO here.
16103
16104 2011-05-05  Bruno Haible  <bruno@clisp.org>
16105
16106         tzset: Relicense under LGPL.
16107         * modules/tzset (License): Change to LGPL.
16108         No agreement needed; it's a no-op.
16109
16110         strtoimax, strtoumax: Relicense under LGPL.
16111         * modules/strtoimax (License): Change to LGPL.
16112         * modules/strtoumax (License): Likewise.
16113         With permission from Jim Meyering, Paul Eggert:
16114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16116
16117         getgroups: Relicense under LGPL.
16118         * modules/getgroups (License): Change to LGPL.
16119         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16123
16124         nanosleep: Relicense under LGPL.
16125         * modules/nanosleep (License): Change to LGPL.
16126         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16127         Haible:
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         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16132
16133         futimens: Relicense under LGPL.
16134         * modules/futimens (License): Change to LGPL.
16135         With permission from Eric Blake:
16136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16137
16138         fflush: Relicense under LGPL.
16139         * modules/fflush (License): Change to LGPL.
16140         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16144
16145         tmpfile: Relicense under LGPL.
16146         * modules/tmpfile (License): Change to LGPL.
16147         With permission from Ben Pfaff:
16148         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16149
16150         isfinite: Relicense under LGPL.
16151         * modules/isfinite (License): Change to LGPL.
16152         With permission from Ben Pfaff, Bruno Haible:
16153         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16155
16156         acosl..tanl: Relicense under LGPL.
16157         * modules/acosl (License): Change to LGPL.
16158         * modules/asinl (License): Likewise.
16159         * modules/atanl (License): Likewise.
16160         * modules/cosl (License): Likewise.
16161         * modules/expl (License): Likewise.
16162         * modules/logl (License): Likewise.
16163         * modules/sinl (License): Likewise.
16164         * modules/sqrtl (License): Likewise.
16165         * modules/tanl (License): Likewise.
16166         Source code originally from glibc and Paolo Bonzini. Agreements:
16167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16169
16170 2011-05-05  Bruno Haible  <bruno@clisp.org>
16171
16172         signal: Define sighandler_t.
16173         * lib/signal.in.h (sighandler_t): New type.
16174         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16175         whether sighandler_t is defined.
16176         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16177         * modules/signal (Depends-on): Add extensions.
16178         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16179         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16180         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16181
16182 2011-05-05  Eric Blake  <eblake@redhat.com>
16183
16184         maint: remove useless REPLACE_*_H macros
16185         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16186         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16187         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16188         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16189         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16190         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16191         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16192         * m4/btowc.m4: Update callers.
16193         * m4/dirfd.m4: Likewise.
16194         * m4/duplocale.m4: Likewise.
16195         * m4/fchdir.m4: Likewise.
16196         * m4/fdopendir.m4: Likewise.
16197         * m4/inet_ntop.m4: Likewise.
16198         * m4/inet_pton.m4: Likewise.
16199         * m4/ioctl.m4: Likewise.
16200         * m4/mbrlen.m4: Likewise.
16201         * m4/mbrtowc.m4: Likewise.
16202         * m4/mbsinit.m4: Likewise.
16203         * m4/mbsnrtowcs.m4: Likewise.
16204         * m4/mbsrtowcs.m4: Likewise.
16205         * m4/poll.m4: Likewise.
16206         * m4/setlocale.m4: Likewise.
16207         * m4/wcrtomb.m4: Likewise.
16208         * m4/wcsnrtombs.m4: Likewise.
16209         * m4/wcsrtombs.m4: Likewise.
16210         * m4/wctob.m4: Likewise.
16211         * m4/wcwidth.m4: Likewise.
16212         * modules/posix_spawn: Likewise.
16213         * modules/posix_spawn_file_actions_addclose: Likewise.
16214         * modules/posix_spawn_file_actions_adddup2: Likewise.
16215         * modules/posix_spawn_file_actions_addopen: Likewise.
16216         * modules/posix_spawn_file_actions_destroy: Likewise.
16217         * modules/posix_spawn_file_actions_init: Likewise.
16218         * modules/posix_spawnattr_destroy: Likewise.
16219         * modules/posix_spawnattr_getflags: Likewise.
16220         * modules/posix_spawnattr_getpgroup: Likewise.
16221         * modules/posix_spawnattr_getschedparam: Likewise.
16222         * modules/posix_spawnattr_getschedpolicy: Likewise.
16223         * modules/posix_spawnattr_getsigdefault: Likewise.
16224         * modules/posix_spawnattr_getsigmask: Likewise.
16225         * modules/posix_spawnattr_init: Likewise.
16226         * modules/posix_spawnattr_setflags: Likewise.
16227         * modules/posix_spawnattr_setpgroup: Likewise.
16228         * modules/posix_spawnattr_setschedparam: Likewise.
16229         * modules/posix_spawnattr_setschedpolicy: Likewise.
16230         * modules/posix_spawnattr_setsigdefault: Likewise.
16231         * modules/posix_spawnattr_setsigmask: Likewise.
16232         * modules/posix_spawnp: Likewise.
16233
16234 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16235
16236         Add option to do-release-commit-and-tag to specify branch.
16237         * build-aux/do-release-commit-and-tag: Add --branch.
16238
16239 2011-05-03  Bruno Haible  <bruno@clisp.org>
16240
16241         Avoid unnecessary compilation units, through conditional dependencies.
16242         * modules/accept (Depends-on): Add conditions to the dependencies.
16243         * modules/acosl (Depends-on): Likewise.
16244         * modules/argz (Depends-on): Likewise.
16245         * modules/asinl (Depends-on): Likewise.
16246         * modules/atanl (Depends-on): Likewise.
16247         * modules/atoll (Depends-on): Likewise.
16248         * modules/bind (Depends-on): Likewise.
16249         * modules/btowc (Depends-on): Likewise.
16250         * modules/canonicalize-lgpl (Depends-on): Likewise.
16251         * modules/ceil (Depends-on): Likewise.
16252         * modules/ceilf (Depends-on): Likewise.
16253         * modules/ceill (Depends-on): Likewise.
16254         * modules/chdir-long (Depends-on): Likewise.
16255         * modules/chown (Depends-on): Likewise.
16256         * modules/close (Depends-on): Likewise.
16257         * modules/connect (Depends-on): Likewise.
16258         * modules/cosl (Depends-on): Likewise.
16259         * modules/dirfd (Depends-on): Likewise.
16260         * modules/dprintf (Depends-on): Likewise.
16261         * modules/dprintf-posix (Depends-on): Likewise.
16262         * modules/error (Depends-on): Likewise.
16263         * modules/euidaccess (Depends-on): Likewise.
16264         * modules/expl (Depends-on): Likewise.
16265         * modules/faccessat (Depends-on): Likewise.
16266         * modules/fchdir (Depends-on): Likewise.
16267         * modules/fclose (Depends-on): Likewise.
16268         * modules/fcntl (Depends-on): Likewise.
16269         * modules/fdopendir (Depends-on): Likewise.
16270         * modules/fflush (Depends-on): Likewise.
16271         * modules/floor (Depends-on): Likewise.
16272         * modules/floorf (Depends-on): Likewise.
16273         * modules/floorl (Depends-on): Likewise.
16274         * modules/fnmatch (Depends-on): Likewise.
16275         * modules/fopen (Depends-on): Likewise.
16276         * modules/fprintf-posix (Depends-on): Likewise.
16277         * modules/frexp (Depends-on): Likewise.
16278         * modules/frexp-nolibm (Depends-on): Likewise.
16279         * modules/frexpl (Depends-on): Likewise.
16280         * modules/frexpl-nolibm (Depends-on): Likewise.
16281         * modules/fseek (Depends-on): Likewise.
16282         * modules/fsusage (Depends-on): Likewise.
16283         * modules/ftell (Depends-on): Likewise.
16284         * modules/ftello (Depends-on): Likewise.
16285         * modules/futimens (Depends-on): Likewise.
16286         * modules/getcwd (Depends-on): Likewise.
16287         * modules/getcwd-lgpl (Depends-on): Likewise.
16288         * modules/getdelim (Depends-on): Likewise.
16289         * modules/getdomainname (Depends-on): Likewise.
16290         * modules/getgroups (Depends-on): Likewise.
16291         * modules/gethostname (Depends-on): Likewise.
16292         * modules/getline (Depends-on): Likewise.
16293         * modules/getlogin_r (Depends-on): Likewise.
16294         * modules/getopt-posix (Depends-on): Likewise.
16295         * modules/getpeername (Depends-on): Likewise.
16296         * modules/getsockname (Depends-on): Likewise.
16297         * modules/getsockopt (Depends-on): Likewise.
16298         * modules/getsubopt (Depends-on): Likewise.
16299         * modules/getusershell (Depends-on): Likewise.
16300         * modules/glob (Depends-on): Likewise.
16301         * modules/grantpt (Depends-on): Likewise.
16302         * modules/iconv_open (Depends-on): Likewise.
16303         * modules/iconv_open-utf (Depends-on): Likewise.
16304         * modules/inet_ntop (Depends-on): Likewise.
16305         * modules/inet_pton (Depends-on): Likewise.
16306         * modules/ioctl (Depends-on): Likewise.
16307         * modules/isapipe (Depends-on): Likewise.
16308         * modules/isfinite (Depends-on): Likewise.
16309         * modules/isinf (Depends-on): Likewise.
16310         * modules/lchown (Depends-on): Likewise.
16311         * modules/ldexpl (Depends-on): Likewise.
16312         * modules/link (Depends-on): Likewise.
16313         * modules/linkat (Depends-on): Likewise.
16314         * modules/listen (Depends-on): Likewise.
16315         * modules/logl (Depends-on): Likewise.
16316         * modules/lstat (Depends-on): Likewise.
16317         * modules/mbrlen (Depends-on): Likewise.
16318         * modules/mbrtowc (Depends-on): Likewise.
16319         * modules/mbsinit (Depends-on): Likewise.
16320         * modules/mbsnrtowcs (Depends-on): Likewise.
16321         * modules/mbsrtowcs (Depends-on): Likewise.
16322         * modules/mbtowc (Depends-on): Likewise.
16323         * modules/memcmp (Depends-on): Likewise.
16324         * modules/mkdir (Depends-on): Likewise.
16325         * modules/mkdtemp (Depends-on): Likewise.
16326         * modules/mkfifo (Depends-on): Likewise.
16327         * modules/mkfifoat (Depends-on): Likewise.
16328         * modules/mknod (Depends-on): Likewise.
16329         * modules/mkostemp (Depends-on): Likewise.
16330         * modules/mkostemps (Depends-on): Likewise.
16331         * modules/mkstemp (Depends-on): Likewise.
16332         * modules/mkstemps (Depends-on): Likewise.
16333         * modules/mktime (Depends-on): Likewise.
16334         * modules/nanosleep (Depends-on): Likewise.
16335         * modules/open (Depends-on): Likewise.
16336         * modules/openat (Depends-on): Likewise.
16337         * modules/perror (Depends-on): Likewise.
16338         * modules/poll (Depends-on): Likewise.
16339         * modules/popen (Depends-on): Likewise.
16340         * modules/posix_spawn (Depends-on): Likewise.
16341         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16342         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16343         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16344         * modules/posix_spawnp (Depends-on): Likewise.
16345         * modules/pread (Depends-on): Likewise.
16346         * modules/printf-posix (Depends-on): Likewise.
16347         * modules/ptsname (Depends-on): Likewise.
16348         * modules/putenv (Depends-on): Likewise.
16349         * modules/pwrite (Depends-on): Likewise.
16350         * modules/readline (Depends-on): Likewise.
16351         * modules/readlink (Depends-on): Likewise.
16352         * modules/readlinkat (Depends-on): Likewise.
16353         * modules/recv (Depends-on): Likewise.
16354         * modules/recvfrom (Depends-on): Likewise.
16355         * modules/regex (Depends-on): Likewise.
16356         * modules/remove (Depends-on): Likewise.
16357         * modules/rename (Depends-on): Likewise.
16358         * modules/renameat (Depends-on): Likewise.
16359         * modules/rmdir (Depends-on): Likewise.
16360         * modules/round (Depends-on): Likewise.
16361         * modules/roundf (Depends-on): Likewise.
16362         * modules/roundl (Depends-on): Likewise.
16363         * modules/rpmatch (Depends-on): Likewise.
16364         * modules/select (Depends-on): Likewise.
16365         * modules/send (Depends-on): Likewise.
16366         * modules/sendto (Depends-on): Likewise.
16367         * modules/setenv (Depends-on): Likewise.
16368         * modules/setlocale (Depends-on): Likewise.
16369         * modules/setsockopt (Depends-on): Likewise.
16370         * modules/shutdown (Depends-on): Likewise.
16371         * modules/sigaction (Depends-on): Likewise.
16372         * modules/signbit (Depends-on): Likewise.
16373         * modules/sigprocmask (Depends-on): Likewise.
16374         * modules/sinl (Depends-on): Likewise.
16375         * modules/sleep (Depends-on): Likewise.
16376         * modules/snprintf (Depends-on): Likewise.
16377         * modules/snprintf-posix (Depends-on): Likewise.
16378         * modules/socket (Depends-on): Likewise.
16379         * modules/sprintf-posix (Depends-on): Likewise.
16380         * modules/sqrtl (Depends-on): Likewise.
16381         * modules/stat (Depends-on): Likewise.
16382         * modules/strchrnul (Depends-on): Likewise.
16383         * modules/strdup-posix (Depends-on): Likewise.
16384         * modules/strerror (Depends-on): Likewise.
16385         * modules/strerror_r-posix (Depends-on): Likewise.
16386         * modules/strndup (Depends-on): Likewise.
16387         * modules/strnlen (Depends-on): Likewise.
16388         * modules/strptime (Depends-on): Likewise.
16389         * modules/strsep (Depends-on): Likewise.
16390         * modules/strsignal (Depends-on): Likewise.
16391         * modules/strstr-simple (Depends-on): Likewise.
16392         * modules/strtod (Depends-on): Likewise.
16393         * modules/strtoimax (Depends-on): Likewise.
16394         * modules/strtok_r (Depends-on): Likewise.
16395         * modules/strtoumax (Depends-on): Likewise.
16396         * modules/symlink (Depends-on): Likewise.
16397         * modules/symlinkat (Depends-on): Likewise.
16398         * modules/tanl (Depends-on): Likewise.
16399         * modules/tcgetsid (Depends-on): Likewise.
16400         * modules/tmpfile (Depends-on): Likewise.
16401         * modules/trunc (Depends-on): Likewise.
16402         * modules/truncf (Depends-on): Likewise.
16403         * modules/truncl (Depends-on): Likewise.
16404         * modules/uname (Depends-on): Likewise.
16405         * modules/unlink (Depends-on): Likewise.
16406         * modules/unlockpt (Depends-on): Likewise.
16407         * modules/unsetenv (Depends-on): Likewise.
16408         * modules/usleep (Depends-on): Likewise.
16409         * modules/utimensat (Depends-on): Likewise.
16410         * modules/vasprintf (Depends-on): Likewise.
16411         * modules/vdprintf (Depends-on): Likewise.
16412         * modules/vdprintf-posix (Depends-on): Likewise.
16413         * modules/vfprintf-posix (Depends-on): Likewise.
16414         * modules/vprintf-posix (Depends-on): Likewise.
16415         * modules/vsnprintf (Depends-on): Likewise.
16416         * modules/vsnprintf-posix (Depends-on): Likewise.
16417         * modules/vsprintf-posix (Depends-on): Likewise.
16418         * modules/wcrtomb (Depends-on): Likewise.
16419         * modules/wcscasecmp (Depends-on): Likewise.
16420         * modules/wcscspn (Depends-on): Likewise.
16421         * modules/wcsdup (Depends-on): Likewise.
16422         * modules/wcsncasecmp (Depends-on): Likewise.
16423         * modules/wcsnrtombs (Depends-on): Likewise.
16424         * modules/wcspbrk (Depends-on): Likewise.
16425         * modules/wcsrtombs (Depends-on): Likewise.
16426         * modules/wcsspn (Depends-on): Likewise.
16427         * modules/wcsstr (Depends-on): Likewise.
16428         * modules/wcstok (Depends-on): Likewise.
16429         * modules/wcswidth (Depends-on): Likewise.
16430         * modules/wctob (Depends-on): Likewise.
16431         * modules/wctomb (Depends-on): Likewise.
16432         * modules/wctype (Depends-on): Likewise.
16433         * modules/wcwidth (Depends-on): Likewise.
16434         * modules/write (Depends-on): Likewise.
16435
16436 2011-05-03  Bruno Haible  <bruno@clisp.org>
16437
16438         Support for conditional dependencies.
16439         * doc/gnulib.texi (Module description): Document the syntax of
16440         conditional dependencies.
16441         * gnulib-tool: New option --conditional-dependencies.
16442         (func_usage): Document it.
16443         (cond_dependencies): New variable.
16444         (func_get_automake_snippet_conditional,
16445         func_get_automake_snippet_unconditional): New functions, extracted from
16446         func_get_automake_snippet.
16447         (func_get_automake_snippet): Use them.
16448         (sed_first_32_chars): New variable.
16449         (func_module_shellfunc_name): New function.
16450         (func_module_shellvar_name): New function.
16451         (func_module_conditional_name): New function.
16452         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16453         func_cond_module_condition): New functions.
16454         (func_modules_transitive_closure): Add support for conditional
16455         dependencies.
16456         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16457         conditional automake snippet in an automake conditional.
16458         (func_emit_autoconf_snippets): Emit shell functions that contain the
16459         code for conditional modules.
16460         (func_import, func_create_testdir): Update specification.
16461
16462 2011-05-03  Eric Blake  <eblake@redhat.com>
16463
16464         test-getaddrinfo: report error information
16465         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16466
16467 2011-05-03  Jim Meyering  <meyering@redhat.com>
16468
16469         bootstrap: avoid build failure when $GZIP is set
16470         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16471         program name.  If defined at all, it is supposed to list gzip options.
16472         Reported by Alan Curry in http://debbugs.gnu.org/8609
16473
16474 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16475
16476         readme-release: new module with release instructions
16477         * modules/readme-release: New module.
16478         * top/README-release: New file, from coreutils, grep, diffutils.
16479         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16480
16481 2011-05-02  Eric Blake  <eblake@redhat.com>
16482
16483         fflush: also replace fclose when fixing fflush
16484         * modules/fflush (Depends-on): Add fclose.
16485         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16486         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16487         memstreams with no backing fd.
16488         * doc/posix-functions/fclose.texi (fclose): Document the use of
16489         fflush module to fix the bug.
16490         * tests/test-fclose.c (main): Relax test when fclose is used in
16491         isolation.
16492
16493         fclose: add some tests
16494         * modules/fclose-tests: New test module.
16495         * tests/test-fclose.c: New file.
16496         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16497
16498         fclose: reduced dependencies
16499         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16500         simpler lseek.
16501         * lib/fclose.c (rpl_fclose): Likewise.
16502         Reported by Simon Josefsson.
16503
16504         exit: drop remaining clients
16505         * modules/argmatch (Depends-on): Replace exit with stdlib.
16506         * modules/copy-file (Depends-on): Likewise.
16507         * modules/execute (Depends-on): Likewise.
16508         * modules/exitfail (Depends-on): Likewise.
16509         * modules/obstack (Depends-on): Likewise.
16510         * modules/pagealign_alloc (Depends-on): Likewise.
16511         * modules/pipe-filter-gi (Depends-on): Likewise.
16512         * modules/pipe-filter-ii (Depends-on): Likewise.
16513         * modules/savewd (Depends-on): Likewise.
16514         * modules/spawn-pipe (Depends-on): Likewise.
16515         * modules/wait-process (Depends-on): Likewise.
16516         * modules/xsetenv (Depends-on): Likewise.
16517         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16518         * modules/git-merge-changelog (Depends-on): Likewise.
16519         * modules/long-options (Depends-on): Likewise.
16520         * modules/pt_chown (Depends-on): Likewise.
16521         * modules/sysexits (Depends-on): Likewise.
16522
16523         freading: relax license from LGPLv3+ to LGPLv2+
16524         * modules/freading (License): Relax LGPL version.
16525
16526 2011-05-02  Bruno Haible  <bruno@clisp.org>
16527
16528         fchdir: Remove unused dependencies.
16529         * modules/fchdir (Depends-on): Remove include_next.
16530
16531 2011-05-02  Bruno Haible  <bruno@clisp.org>
16532
16533         gnulib-tool: Refactor.
16534         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16535         from func_emit_autoconf_snippets.
16536         (func_emit_autoconf_snippets): Use it.
16537
16538 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16539
16540         * NEWS: Document removal of 'exit'.
16541         * modules/exit: Remove file.
16542
16543 2011-05-01  Bruno Haible  <bruno@clisp.org>
16544
16545         Update DEPENDENCIES.
16546         * DEPENDENCIES (gettext): Recommend the newest release.
16547         Reported by Simon Josefsson.
16548
16549 2011-05-01  Bruno Haible  <bruno@clisp.org>
16550
16551         gnulib-tool: Reduce code duplication.
16552         * gnulib-tool (func_emit_autoconf_snippets): New function.
16553         (func_import, func_create_testdir): Use it.
16554
16555 2011-04-30  Eric Blake  <eblake@redhat.com>
16556
16557         fclose: don't fail on non-seekable input stream
16558         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16559         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16560         since fflush is allowed to fail in that case.
16561
16562 2011-04-30  Bruno Haible  <bruno@clisp.org>
16563
16564         dup3: cleanup
16565         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16566
16567 2011-04-30  Bruno Haible  <bruno@clisp.org>
16568
16569         netdb: Make it work in C++ mode.
16570         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16571         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16572         module.
16573         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16574         gl_MODULE_INDICATOR_FOR_TESTS.
16575         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16576         * modules/netdb-c++-tests: New file.
16577         * tests/test-netdb-c++.cc: New file.
16578
16579 2011-04-30  Bruno Haible  <bruno@clisp.org>
16580
16581         New modules 'vfscanf', 'vscanf'.
16582         * modules/vfscanf: New file.
16583         * modules/vscanf: New file.
16584         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16585         here.
16586         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16587         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16588
16589 2011-04-30  Bruno Haible  <bruno@clisp.org>
16590
16591         passfd: Add comments.
16592         * lib/passfd.c: Add comments about platforms.
16593
16594 2011-04-30  Bruno Haible  <bruno@clisp.org>
16595
16596         sys_uio: Make <sys/uio.h> self-contained.
16597         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16598         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16599
16600 2011-04-30  Bruno Haible  <bruno@clisp.org>
16601
16602         sys_socket: Ensure 'struct iovec' definition.
16603         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16604         <sys/socket.h>.
16605         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16606
16607 2011-04-30  Bruno Haible  <bruno@clisp.org>
16608
16609         sys_uio: Protect definition of 'struct iovec'.
16610         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16611         it as a C struct.
16612
16613 2011-04-30  Bruno Haible  <bruno@clisp.org>
16614
16615         manywarnings: fix indentation
16616         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16617
16618 2011-04-30  Pádraig Brady <P@draigBrady.com>
16619
16620         manywarnings: add -Wno-missing-field-initializers if needed.
16621         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16622         option if it's needed to allow initialization with { 0, }
16623
16624 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16625
16626         announce-gen: cosmetic improvement
16627         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16628
16629 2011-04-29  Jim Meyering  <meyering@redhat.com>
16630
16631         vc-list-files: indent with spaces, not TABs
16632         * build-aux/vc-list-files: Convert leading TABs to spaces,
16633         to match the style of most other files in gnulib.
16634
16635         announce-gen: indent with spaces, not TABs
16636         * build-aux/announce-gen: Convert all TABs to spaces, to match
16637         the style of most other files in gnulib.
16638
16639 2011-04-29  Eric Blake  <eblake@redhat.com>
16640
16641         quotearg: avoid uninitialized variable use
16642         * lib/quotearg.c (quoting_options_from_style): Initialize
16643         remaining fields, and ensure that custom styles are only used via
16644         quoting_options rather than quoting_style.
16645
16646 2011-04-29  Jim Meyering  <meyering@redhat.com>
16647
16648         maint.mk: remove unused VC-tag variable
16649         * top/maint.mk (VC-tag): Remove unused variable.
16650
16651 2011-04-29  Bruno Haible  <bruno@clisp.org>
16652
16653         netdb: fix gai_strerror replacements
16654         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16655         * modules/netdb: Substitute it.
16656
16657 2011-04-29  Jim Meyering  <meyering@redhat.com>
16658
16659         test-getcwd.c: avoid new set-but-not-used warning
16660         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16661         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16662         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16663         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16664
16665         test-hash.c: avoid a new shadowing warning
16666         * tests/test-hash.c (main): Don't shadow "dup".
16667
16668 2011-04-28  Eric Blake  <eblake@redhat.com>
16669
16670         getaddrinfo: fix gai_strerror signature
16671         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16672         and work around mingw with UNICODE defined.
16673         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16674         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16675         * modules/netdb (Makefile.am): Substitute it.
16676         * lib/netdb.in.h (gai_strerror): Declare replacement.
16677         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16678         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16679         the fix.
16680
16681         getsockopt: avoid compiler warning
16682         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16683         Reported by Matthias Bolte.
16684
16685         tests: drop unused link dependency
16686         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16687         * modules/dirent-safer-tests (Makefile.am): Likewise.
16688         * modules/fdopendir-tests (Makefile.am): Likewise.
16689         * modules/mkfifoat-tests (Makefile.am): Likewise.
16690         * modules/openat-safer-tests (Makefile.am): Likewise.
16691         * modules/openat-tests (Makefile.am): Likewise.
16692         * modules/readlinkat-tests (Makefile.am): Likewise.
16693         * modules/symlinkat-tests (Makefile.am): Likewise.
16694         * modules/linkat-tests (Makefile.am): Likewise.
16695         (Depends-on): Switch to filenamecat-lgpl.
16696         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16697         LIBINTL.
16698         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16699         * tests/test-linkat.c (main): Don't require xalloc.
16700
16701         hash, mgetgroups: drop xalloc dependency
16702         * lib/hash.c (includes): Adjust includes.
16703         * lib/mgetgroups.c (includes): Likewise.
16704         (xgetgroups): Move...
16705         * lib/xgetgroups.c: ...to new file.
16706         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16707         * modules/xgetgroups: New file, split from...
16708         * modules/mgetgroups: ...here.
16709         (Depends-on): Add xalloc-oversized.
16710         * modules/hash (Depends-on): Likewise.
16711         * modules/hash-tests (Depends-on): Drop xalloc.
16712         (test_hash_LDADD): Drop unused library.
16713         * tests/test-hash.c (main): Break xalloc dependency.
16714         (includes): Drop unused include.
16715
16716         xalloc-oversized: new module
16717         * modules/xalloc-oversized: New module.
16718         * modules/xalloc (Depends-on): Add it.
16719         * lib/xalloc.h (xalloc_oversized): Move...
16720         * lib/xalloc-oversized.h: ...into new file.
16721
16722         utimecmp: drop dependency on xmalloc
16723         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16724         due to memory pressure.
16725         * modules/utimecmp (Depends-on): Drop xalloc.
16726
16727 2011-04-27  Eric Blake  <eblake@redhat.com>
16728
16729         getcwd: fix mingw bugs
16730         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16731         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16732         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16733
16734 2011-04-27  Bruno Haible  <bruno@clisp.org>
16735
16736         mkstemps: Ensure declaration on MacOS X 10.5.
16737         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16738         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16739         MacOS X.
16740
16741 2011-04-27  Bruno Haible  <bruno@clisp.org>
16742
16743         mkstemp: More documentation.
16744         * doc/posix-functions/mkstemp.texi: Document header file problem on
16745         MacOS X.
16746
16747 2011-04-27  Bruno Haible  <bruno@clisp.org>
16748
16749         mkstemp: Tweak configure message when cross-compiling.
16750         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16751         result as a guess.
16752
16753 2011-04-27  Bruno Haible  <bruno@clisp.org>
16754
16755         clean-temp: Clarify what it does.
16756         * lib/clean-temp.h: Add more comments.
16757         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16758         module.
16759         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16760         * doc/glibc-functions/mkstemps.texi: Likewise.
16761         * doc/glibc-functions/mkostemps.texi: Likewise.
16762
16763 2011-04-27  Eric Blake  <eblake@redhat.com>
16764
16765         fchdir: avoid extra chdir and fix test
16766         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16767         getcwd-lgpl.
16768         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16769         have to be canonical.
16770         (canonicalize_file_name): Drop unused macro.
16771         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16772
16773         filenamecat-lgpl: fix licence
16774         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16775         when it was first created.
16776
16777         linkat, renameat: add missing dependency
16778         * modules/linkat (Depends-on): Require getcwd-lgpl.
16779         * modules/renameat (Depends-on): Likewise.
16780
16781         tests: reduce dependencies
16782         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16783         * tests/test-renameat.c (main): Likewise.
16784         * modules/linkat-tests (Depends-on): Relax dependency.
16785         * modules/renameat-tests (Depends-on): Likewise.
16786         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16787         dependency explicit.
16788
16789         save-cwd: reduce default dependency
16790         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16791         * lib/save-cwd.c: Update comments.
16792         * NEWS: Document the semantic change.
16793
16794         getcwd: enhance tests
16795         * tests/test-getcwd-lgpl.c: New file, taken from...
16796         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16797         repeat long path stress tests from m4 probe.
16798         * modules/getcwd-lgpl-tests: New module.
16799         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16800         * m4/getcwd-abort-bug.m4: Update comment.
16801         * m4/getcwd-path-max.m4: Likewise.
16802
16803         getcwd-lgpl: new module
16804         * modules/getcwd-lgpl: New module.
16805         * lib/getcwd-lgpl.c: New file.
16806         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16807         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16808         * modules/getcwd (configure.ac): Set C witness.
16809         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16810
16811         getcwd: tweak comments
16812         * m4/getcwd-abort-bug.m4: Fix comments.
16813         * m4/getcwd-path-max.m4: Likewise.
16814         * m4/getcwd.m4: Likewise.
16815
16816 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16817         and Eric Blake  <eblake@redhat.com>
16818
16819         mkstemp: replace if system version uses wrong permissions
16820         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16821         read/write mode bits set in file created by mkstemp.
16822         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16823
16824 2011-04-27  Eric Blake  <eblake@redhat.com>
16825
16826         passfd: avoid compiler warning
16827         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16828         Reported by Laine Stump.
16829
16830 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16831
16832         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16833         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16834
16835 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16836         and Eric Blake  <eblake@redhat.com>
16837
16838         mkstemp: mention clean-temp module
16839         * lib/mkstemp.c: Add comment.
16840         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16841
16842 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16843
16844         inttypes: also provide default values for 32-bit tests
16845         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16846         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16847
16848 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16849
16850         strtoumax: remove dependency on strtoimax
16851         This is like the strtoull change of yesterday.
16852         * modules/strtoumax (Files): Add lib/strtoimax.c.
16853         (Depends-on): Remove strtoimax and add verify.
16854
16855         inttypes-incomplete: new module
16856         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16857         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16858         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16859         of gl_INTTYPES_H.
16860         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16861         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16862         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16863         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16864         * modules/strtoumax, modules/xstrtol (Depends-on):
16865         Depend on inttypes-incomplete, not inttypes.
16866         * modules/inttypes-incomplete: New module, containing the contents
16867         of the old modules/inttypes module, except that the Files: section
16868         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16869         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16870         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16871         (Depends-on): Depend only on inttypes-incomplete.
16872         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16873
16874         inttypes: omit now-redundant strtoimax and strtoumax work
16875         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16876         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16877
16878         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16879         This supports apps that need pointers to strtoimax and strtoumax,
16880         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16881         nonexistent functions.  See
16882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16883         et seq.
16884         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16885         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16886         a macro.
16887         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16888
16889 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16890
16891         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16892
16893 2011-04-25  Bruno Haible  <bruno@clisp.org>
16894
16895         strtol, strtoul: Mark modules as obsolete.
16896         * modules/strtol (Status, Notice): New sections.
16897         * modules/strtoul (Status, Notice): New sections.
16898
16899 2011-04-25  Bruno Haible  <bruno@clisp.org>
16900
16901         strtod: Remove check for strtod, unless supporting old platforms.
16902         * modules/strtod-obsolete: New file.
16903         * m4/strtod-obsolete.m4: New file.
16904         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16905         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16906         * modules/strtod (Depends-on): Add strtod-obsolete.
16907         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16908
16909 2011-04-25  Bruno Haible  <bruno@clisp.org>
16910
16911         strcase: Make module obsolete.
16912         * modules/strcase (Status, Notice): New sections.
16913
16914 2011-04-25  Bruno Haible  <bruno@clisp.org>
16915
16916         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16917         * modules/dup2-obsolete: New file.
16918         * m4/dup2-obsolete.m4: New file.
16919         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16920         gl_FUNC_DUP2_OBSOLETE is not also defined.
16921         * modules/dup2 (Depends-on): Add dup2-obsolete.
16922         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16923
16924 2011-04-25  Bruno Haible  <bruno@clisp.org>
16925
16926         strnlen: Avoid memchr related link error on old obsolete platforms.
16927         * modules/memchr-obsolete: New file.
16928         * m4/memchr-obsolete.m4: New file.
16929         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16930         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16931         * modules/memchr (Depends-on): Add memchr-obsolete.
16932         * modules/strnlen (Depends-on): Likewise.
16933         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16934
16935 2011-04-25  Jim Meyering  <meyering@redhat.com>
16936
16937         maint.mk: makefile_at_at_check extend and clean up
16938         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16939         in addition to */Makefile.am.
16940         Exempt legitimate uses of @VAR@ notation, e.g.,
16941         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16942         Remove obsolete coreutils-specific comment.
16943         Prompted by discussion here:
16944         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16945
16946 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16947
16948         strtoul: remove dependency on strtol
16949         This is so that 'configure' need not check for strtol merely because
16950         the application needs strtoul.
16951         * modules/strtoul (Files): Add lib/strtol.c.
16952         (Depends-on): Remove strtol.
16953
16954         strtoull: remove dependency on strtoul
16955         This is like the strtoll change.
16956         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16957         (Depends-on): Remove strtoul.
16958
16959         strtoll: remove dependency on strtol
16960         This is so that 'configure' need not check for strtol merely because
16961         the application needs strtoll.
16962         * modules/strtoll (Files): Add lib/strtol.c.
16963         (Depends-on): Remove strtol.
16964
16965 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16966
16967         inttypes: Move some configure check to module 'imaxdiv'.
16968         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16969         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16970         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16971
16972 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16973
16974         inttypes: Move some configure check to module 'imaxabs'.
16975         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16976         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16977         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16978
16979 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16980
16981         inttypes: Remove configure tests that are not needed since 2009-12-31.
16982         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16983         gl_cv_header_working_inttypes_h.
16984
16985 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16986
16987         * modules/strnlen (Depends-on): Remove memchr.
16988         The strnlen implementation doesn't need the memchr module's fixes; see
16989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16990
16991         strtol: remove dependency on wchar
16992         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16993         * modules/strtol (Depends-on): Remove wchar.
16994
16995 2011-04-21  Eric Blake  <eblake@redhat.com>
16996
16997         passfd: fix test regression on Linux
16998         * modules/passfd-tests (configure.ac): Correct socketpair check.
16999
17000         passfd: speed up configure and drop unused code
17001         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17002         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17003         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17004         Instead of probing at configure for unix_scm_rights_bsd44_way,
17005         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17006         check to a struct member probe.
17007         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17008         (sendfd, recvfd): Update preprocessor checks.
17009         * modules/passfd (Files): Reflect rename, and drop unused file.
17010         (Depends-on): Drop unused dependency.
17011
17012         passfd: allow compilation on mingw
17013         * modules/sys_socket (Depends-on): Add sys_uio.
17014         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17015         iovec and a minimal struct msghdr.
17016         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17017         * tests/test-sys_socket.c (main): Enhance test.
17018         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17019         guaranteed to provide what we need.
17020         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17021         * modules/passfd-tests (Depends-on): Add sys_wait.
17022         * tests/test-passfd.c (main): Skip test on mingw, for now.
17023         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17024         partial 'struct msghdr' implementation.
17025
17026         sys_uio: new module
17027         * modules/sys_uio: New module.
17028         * modules/sys_uio-tests: Likewise.
17029         * lib/sys_uio.in.h: New file.
17030         * m4/sys_uio_h.m4: Likewise.
17031         * tests/test-sys_uio.c: Likewise.
17032         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17033         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17034
17035 2011-04-20  Jim Meyering  <meyering@redhat.com>
17036
17037         useless-if-before-free: avoid false-positive
17038         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17039         disjunct so that it too requires a terminating ";".  Without that,
17040         this script would identify as useless one statement from gcc that
17041         was not:
17042           if (aligned_ptr)
17043             free (((void **) aligned_ptr) [-1]);
17044
17045 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17046
17047         doc: update users.txt.
17048         * users.txt: Add barcode.
17049
17050 2011-04-19  Bruno Haible  <bruno@clisp.org>
17051
17052         ioctl: Remove link dependency on native Windows.
17053         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17054         (gl_close_fn, gl_ioctl_fn): New types.
17055         (struct fd_hook): Renamed from struct close_hook. Change type of
17056         private_close_fn field. Add private_ioctl_fn field.
17057         (close_hook_fn): Add parameter for primary close method.
17058         (execute_close_hooks, execute_all_close_hooks): Likewise.
17059         (ioctl_hook_fn): New type.
17060         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17061         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17062         argument.
17063         (unregister_fd_hook): Renamed from unregister_close_hook.
17064         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17065         Don't include <unistd.h>.
17066         (close): Remove undef.
17067         (anchor): Update.
17068         (execute_close_hooks): Add argument for primary close method.
17069         (execute_all_close_hooks): Likewise.
17070         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17071         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17072         argument. Allow each argument to be NULL.
17073         (unregister_fd_hook): Renamed from unregister_close_hook.
17074         * lib/close.c (rpl_close): Pass 'close' function pointer to
17075         execute_all_close_hooks.
17076         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17077         (primary_ioctl): New function.
17078         (ioctl): Don't call ioctlsocket here. Instead, call
17079         execute_all_ioctl_hooks.
17080         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17081         close method.
17082         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17083         (fd_sockets_hook): Renamed from close_sockets_hook.
17084         (gl_sockets_startup, gl_sockets_cleanup): Update.
17085         * modules/fd-hook: Renamed from modules/close-hook. Update.
17086         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17087         * modules/sockets (Depends-on): Likewise.
17088         * modules/ioctl (Depends-on): Add fd-hook.
17089         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17090         GNULIB_SOCKET.
17091
17092 2011-04-19  Bruno Haible  <bruno@clisp.org>
17093
17094         Move the support of O_NONBLOCK in open() to the 'open' module.
17095         * modules/nonblocking (Depends-on): Remove 'open'.
17096         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17097         gl_cv_have_open_O_NONBLOCK.
17098         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17099         O_NONBLOCK support.
17100         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17101
17102 2011-04-17  Bruno Haible  <bruno@clisp.org>
17103
17104         pipe2: Simplify code.
17105         * lib/pipe2.c (pipe2): Reduce code duplication.
17106
17107 2011-04-17  Bruno Haible  <bruno@clisp.org>
17108
17109         nonblocking: Add comment.
17110         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17111
17112 2011-04-17  Bruno Haible  <bruno@clisp.org>
17113
17114         nonblocking: Add tests for sockets.
17115         * tests/test-nonblocking-socket.sh: New file.
17116         * tests/test-nonblocking-socket-main.c: New file.
17117         * tests/test-nonblocking-socket-child.c: New file.
17118         * tests/test-nonblocking-socket.h: New file.
17119         * tests/socket-server.h: New file.
17120         * tests/socket-client.h: New file.
17121         * modules/nonblocking-socket-tests: New file.
17122         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17123
17124 2011-04-17  Bruno Haible  <bruno@clisp.org>
17125
17126         nonblocking: Add tests for pipes.
17127         * tests/test-nonblocking-pipe.sh: New file.
17128         * tests/test-nonblocking-pipe-main.c: New file.
17129         * tests/test-nonblocking-pipe-child.c: New file.
17130         * tests/test-nonblocking-pipe.h: New file.
17131         * tests/test-nonblocking-writer.h: New file.
17132         * tests/test-nonblocking-reader.h: New file.
17133         * tests/test-nonblocking-misc.h: New file.
17134         * modules/nonblocking-pipe-tests: New file.
17135         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17136
17137 2011-04-16  Bruno Haible  <bruno@clisp.org>
17138
17139         gettext: Clarify the needed programmer actions.
17140         * modules/gettext (Notice): New field.
17141         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17142
17143 2011-04-16  Bruno Haible  <bruno@clisp.org>
17144
17145         strchrnul: Tweak last commit.
17146         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17147         bug.
17148         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17149         as in _GL_FUNCDECL_SYS.
17150         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17151         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17152
17153 2011-04-15  Eric Blake  <eblake@redhat.com>
17154
17155         strchrnul: work around cygwin bug
17156         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17157         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17159         * modules/string (Makefile.am): Substitute it.
17160         * lib/string.in.h (strchrnul): Use it.
17161
17162 2011-04-15  Bruno Haible  <bruno@clisp.org>
17163
17164         Don't require lib/stdio-write.c when only module 'stdio' is used.
17165         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17166         invocation.
17167         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17168
17169 2011-04-14  Bruno Haible  <bruno@clisp.org>
17170
17171         Support non-blocking pipe I/O in read() on native Windows.
17172         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17173         (read): New declaration.
17174         * lib/read.c: New file.
17175         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17176         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17177         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17178         vscanf): New declarations.
17179         * lib/stdio-read.c: New file.
17180         * m4/read.m4: New file.
17181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17182         REPLACE_READ.
17183         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17184         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17185         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17186         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17187         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17188         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17189         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17190         * modules/read: New file.
17191         * modules/nonblocking (Files): Add lib/stdio-read.c.
17192         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17193         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17194         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17195         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17196         * modules/pread (Depends-on): Add read.
17197         * modules/safe-read (Depends-on): Likewise.
17198         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17199         gets, scanf, vfscanf, vscanf): Verify signatures.
17200         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17201         problem with non-blocking pipes.
17202         * doc/posix-functions/fgetc.texi: Likewise.
17203         * doc/posix-functions/fgets.texi: Likewise.
17204         * doc/posix-functions/fread.texi: Likewise.
17205         * doc/posix-functions/fscanf.texi: Likewise.
17206         * doc/posix-functions/getc.texi: Likewise.
17207         * doc/posix-functions/getchar.texi: Likewise.
17208         * doc/posix-functions/gets.texi: Likewise.
17209         * doc/posix-functions/scanf.texi: Likewise.
17210         * doc/posix-functions/vfscanf.texi: Likewise.
17211         * doc/posix-functions/vscanf.texi: Likewise.
17212
17213 2011-04-14  Bruno Haible  <bruno@clisp.org>
17214
17215         Support non-blocking pipe I/O in write() on native Windows.
17216         * lib/write.c (rpl_write): Split a write request that failed merely
17217         because the byte count was larger than the pipe buffer's size.
17218         * doc/posix-functions/write.texi: Mention the problem with large byte
17219         counts.
17220
17221 2011-04-14  Bruno Haible  <bruno@clisp.org>
17222
17223         wchar: Ensure that wchar_t gets defined on uClibc.
17224         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17225         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17226
17227 2011-04-13  Bruno Haible  <bruno@clisp.org>
17228
17229         safe-write, full-read: Avoid unnecessary compilation units.
17230         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17231         (Depends-on): Remove safe-read. Add ssize_t.
17232         * modules/full-read (Files): Add lib/full-write.c.
17233         (Depends-on): Add full-write.
17234
17235 2011-04-13  Bruno Haible  <bruno@clisp.org>
17236
17237         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17238         * modules/pwrite (Depends-on): Add 'write'.
17239
17240 2011-04-13  Bruno Haible  <bruno@clisp.org>
17241
17242         Support non-blocking pipe I/O in write() on native Windows.
17243         * lib/unistd.in.h (write): Enable replacement also if
17244         GNULIB_UNISTD_H_NONBLOCKING is 1.
17245         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17246         (rpl_write): When failing to write on a non-blocking pipe, change
17247         errno from ENOSPC to EAGAIN.
17248         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17249         putchar, puts, vfprintf, vprintf): Enable replacement also if
17250         GNULIB_STDIO_H_NONBLOCKING is 1.
17251         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17252         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17253         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17254         CALL_WITH_SIGPIPE_EMULATION.
17255         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17256         * m4/nonblocking.m4: New file.
17257         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17258         for non-blocking I/O support.
17259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17260         GNULIB_UNISTD_H_NONBLOCKING.
17261         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17262         required for non-blocking I/O support.
17263         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17264         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17265         lib/stdio-write.c, m4/asm-underscore.m4.
17266         (Depends-on): Add stdio, unistd.
17267         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17268         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17269         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17270         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17271         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17272         problem with non-blocking pipes.
17273         * doc/posix-functions/fputc.texi: Likewise.
17274         * doc/posix-functions/fputs.texi: Likewise.
17275         * doc/posix-functions/fwrite.texi: Likewise.
17276         * doc/posix-functions/printf.texi: Likewise.
17277         * doc/posix-functions/putc.texi: Likewise.
17278         * doc/posix-functions/putchar.texi: Likewise.
17279         * doc/posix-functions/puts.texi: Likewise.
17280         * doc/posix-functions/vfprintf.texi: Likewise.
17281         * doc/posix-functions/vprintf.texi: Likewise.
17282         * doc/posix-functions/write.texi: Likewise.
17283
17284 2011-04-10  Jim Meyering  <meyering@redhat.com>
17285
17286         maint.mk: prohibit doubled words
17287         Detect them also when they're separated by a newline.
17288         There are 3 ways to customize it:
17289           - disable the test on a per file basis, as usual with rules using
17290             $(VC_LIST_EXCEPT)
17291           - replace the default doubled-word-selecting regexp (affects all files)
17292           - ignore a particular file-vs-doubled-word match
17293         I nearly used that last one to ignore the "is is" match in
17294         coreutils' NEWS file, since the text was "ls -is is ..."
17295         To do that, I would have added this line to cfg.mk:
17296           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17297         but it would have ignored any "is is" match in NEWS.
17298         Low probability, but still...
17299         Instead, I changed the text, slightly:
17300           -  ls -is is now consistent with ls -lis in ignoring values returned
17301           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17302         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17303         (prohibit_doubled_word_): Define.
17304         (sc_prohibit_doubled_word): New rule.
17305         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17306
17307 2011-04-10  Jim Meyering  <meyering@redhat.com>
17308
17309         maint: fix doubled-word typo in comment
17310         * m4/gethostname.m4: s/is is/it is/
17311         * m4/getdomainname.m4: Likewise.
17312
17313 2011-04-10  Jim Meyering  <meyering@redhat.com>
17314
17315         maint: remove doubled word: s/it it/it/
17316         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17317
17318 2011-04-10  Jim Meyering  <meyering@redhat.com>
17319
17320         maint.mk: remove useless semicolon and backslash
17321         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17322         semicolon and backslash.
17323
17324 2011-04-10  Bruno Haible  <bruno@clisp.org>
17325
17326         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17327         * modules/stdint-tests (Depends-on): Add wchar.
17328
17329 2011-04-10  Jim Meyering  <meyering@redhat.com>
17330
17331         maint: remove doubled words in comments, e.g., s/a a/a/
17332         * lib/strptime.c (day_of_the_week): s/the the/the/
17333         * tests/test-chown.h (test_chown): s/a a/a/
17334
17335         test-chown.h: correct a cast
17336         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17337         when the destination is a stat.st_gid.
17338
17339 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17340
17341         getaddrinfo: Fix test for sa_len member.
17342         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17343         include <sys/types.h> before <sys/socket.h>.
17344
17345 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17346
17347         maint: change "can not" to "cannot"
17348         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17349         boundaries.
17350
17351 2011-04-09  Jim Meyering  <meyering@redhat.com>
17352
17353         maint: change "a a" to "a"
17354         * tests/test-lchown.h (test_lchown): s/a a/a/
17355
17356         maint.mk: prohibit \<the the\>
17357         * top/maint.mk (sc_prohibit_the_the): New rule.
17358
17359         maint: fix "the the" in comment
17360         * lib/count-one-bits.h: s/the the/the/
17361
17362         maint: change "can not" to "cannot"
17363         But do not change the occurrences in maintain.texi or in
17364         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17365         * doc/gnulib-tool.texi: s/can not/cannot/
17366         * doc/posix-functions/accept.texi (accept): Likewise.
17367         * doc/posix-functions/socket.texi (socket): Likewise.
17368         * lib/mbrtowc.c: Likewise.
17369
17370         maint.mk: prohibit use of "can not"
17371         * top/maint.mk (sc_prohibit_can_not): New rule.
17372         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17373
17374 2011-04-09  Bruno Haible  <bruno@clisp.org>
17375
17376         careadlinkat: Guard against misuse of careadlinkatcwd.
17377         * lib/careadlinkat.c: Include <stdlib.h>.
17378         (careadlinkatcwd): Check that the fd argument is as expected.
17379
17380 2011-04-09  Bruno Haible  <bruno@clisp.org>
17381
17382         careadlinkat: Use common coding style.
17383         * lib/careadlinkat.c: Move gnulib includes after system includes.
17384
17385 2011-04-09  Bruno Haible  <bruno@clisp.org>
17386
17387         careadlinkat: Clarify specification.
17388         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17389         (careadlinkatcwd): Add comment.
17390         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17391
17392 2011-04-09  Bruno Haible  <bruno@clisp.org>
17393
17394         areadlinkat: Avoid link error on many platforms.
17395         * modules/areadlinkat (Depends-on): Add areadlink.
17396
17397 2011-04-09  Bruno Haible  <bruno@clisp.org>
17398
17399         allocator, careadlinkat: Fix double-inclusion guard.
17400         * lib/allocator.h: Fix double-inclusion guard.
17401         * lib/careadlinkat.h: Likewise.
17402
17403 2011-04-09  Bruno Haible  <bruno@clisp.org>
17404
17405         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17406         * lib/relocwrapper.c: Update dependencies hierarchy.
17407         * build-aux/install-reloc: Update list of files to be compiled.
17408         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17409         lib/allocator.[hc].
17410
17411 2011-04-08  Eric Blake  <eblake@redhat.com>
17412
17413         strftime: silence gnulib-tool warning
17414         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17415
17416 2011-04-08  Bruno Haible  <bruno@clisp.org>
17417
17418         verify: Fix syntax error with GCC 4.6 in C++ mode.
17419         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17420         (HAVE_STATIC_ASSERT): New macro.
17421         (verify_true, verify): Use 'static_assert' if it is supported and
17422         '_Static_assert' is not supported.
17423
17424 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17425
17426         allocator: New module.
17427         * modules/allocator, lib/allocator.c: New files.
17428         * lib/allocator.h (stdlib_allocator): New decl.
17429         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17430         Remove.  Do not include <stdlib.h>.
17431         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17432         * modules/careadlinkat (Files): Remove lib/allocator.h.
17433         (Depends-on): Add allocator.
17434
17435         stdlib: let modules use system malloc, realloc
17436         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17437         if !_GL_USE_STDLIB_ALLOC.
17438         (malloc, realloc): Limit this change to a smaller scope.
17439
17440         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17441         (malloc, realloc): Don't #undef; no longer needed.
17442         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17443         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17444         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17445         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17446         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17447         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17448         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17449         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17450
17451         careadlinkat: rename members to avoid problem
17452         * lib/allocator.h (struct allocator): Rename members from
17453         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17454         and realloc are #define'd.  Reported by Eric Blake in
17455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17456         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17457
17458 2011-04-08  Eric Blake  <eblake@redhat.com>
17459
17460         nonblocking: reduce dependency
17461         * tests/test-nonblocking.c: Only test sockets when in use.
17462         * modules/nonblocking-tests (Depends-on): Drop socket.
17463         (Makefile.am): Link even if sockets are not present.
17464         * modules/pipe2-tests (Makefile.am): Likewise.
17465         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17466
17467         pipe2: fix O_NONBLOCK support on mingw
17468         * modules/pipe2 (Depends-on): Add nonblocking.
17469         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17470         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17471         * tests/test-nonblocking.c (main): Likewise.
17472         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17473
17474         fcntl-h: fix O_ACCMODE on cygwin
17475         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17476         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17477
17478         pipe-filter: drop O_NONBLOCK workarounds
17479         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17480         * modules/pipe-filter-ii (Depends-on): Likewise.
17481         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17482
17483         nonblocking: provide O_NONBLOCK for mingw
17484         * modules/nonblocking (Depends-on): Add open.
17485         (configure.ac): Set new witness macro.
17486         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17487         * modules/fcntl-h (Makefile.am): Substitute it.
17488         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17489         nonblocking module is in use.
17490         * lib/nonblocking.c: Adjust portability test.
17491         * lib/open.c (open): Don't let native open see gnulib flag.
17492         * tests/test-fcntl-h.c (main): Enhance test.
17493         * tests/test-open.h (test_open): Likewise.
17494         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17495
17496         careadlinkat: fix compilation error on mingw
17497         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17498         within struct allocator.
17499
17500 2011-04-06  Eric Blake  <eblake@redhat.com>
17501
17502         binary-io: relicense under LGPLv2+
17503         * modules/binary-io (License): Relax to LGPLv2+.
17504         Requested for libvirt, and required by pipe2.
17505
17506 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17507
17508         verify: use _Static_assert if available
17509         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17510         (verify_true, verify): Use it if available.  This generates better
17511         diagnostics with GCC 4.6.0 and later.
17512
17513 2011-04-05  Bruno Haible  <bruno@clisp.org>
17514
17515         Remove leftover generated .h files after config.status changed.
17516
17517         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17518         GL_GENERATE_ALLOCA_H.
17519         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17520         GL_GENERATE_ALLOCA_H evaluates to false.
17521
17522         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17523         GL_GENERATE_ARGZ_H.
17524         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17525         evaluates to false.
17526
17527         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17528         GL_GENERATE_BYTESWAP_H.
17529         * modules/byteswap (Makefile.am): Remove byteswap.h if
17530         GL_GENERATE_BYTESWAP_H evaluates to false.
17531
17532         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17533         GL_GENERATE_ERRNO_H.
17534         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17535         evaluates to false.
17536
17537         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17538         GL_GENERATE_FLOAT_H.
17539         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17540         evaluates to false.
17541
17542         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17543         GL_GENERATE_FNMATCH_H.
17544         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17545         GL_GENERATE_FNMATCH_H evaluates to false.
17546
17547         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17548         GL_GENERATE_GLOB_H.
17549         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17550         evaluates to false.
17551
17552         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17553         automake conditional GL_GENERATE_ICONV_H.
17554         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17555         evaluates to false.
17556
17557         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17558         GL_GENERATE_NETINET_IN_H.
17559         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17560         GL_GENERATE_NETINET_IN_H evaluates to false.
17561
17562         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17563         conditional GL_GENERATE_PTHREAD_H.
17564         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17565         * modules/pthread (Makefile.am): Remove pthread.h if
17566         GL_GENERATE_PTHREAD_H evaluates to false.
17567
17568         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17569         GL_GENERATE_SCHED_H.
17570         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17571         evaluates to false.
17572
17573         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17574         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17575         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17576         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17577
17578         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17579         GL_GENERATE_STDARG_H.
17580         * modules/stdarg (Makefile.am): Remove stdarg.h if
17581         GL_GENERATE_STDARG_H evaluates to false.
17582
17583         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17584         GL_GENERATE_STDBOOL_H.
17585         * modules/stdbool (Makefile.am): Remove stdbool.h if
17586         GL_GENERATE_STDBOOL_H evaluates to false.
17587
17588         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17589         conditional GL_GENERATE_STDDEF_H.
17590         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17591         * modules/stddef (Makefile.am): Remove stddef.h if
17592         GL_GENERATE_STDDEF_H evaluates to false.
17593
17594         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17595         GL_GENERATE_STDINT_H.
17596         * modules/stdint (Makefile.am): Remove stdint.h if
17597         GL_GENERATE_STDINT_H evaluates to false.
17598
17599         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17600         GL_GENERATE_SYSEXITS_H.
17601         * modules/sysexits (Makefile.am): Remove sysexits.h if
17602         GL_GENERATE_SYSEXITS_H evaluates to false.
17603
17604         Reported by Karl Berry and Ralf Wildenhues.
17605
17606 2011-04-05  Bruno Haible  <bruno@clisp.org>
17607
17608         Ensure to rebuild generated .h files when config.status has changed.
17609         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17610         config.status.
17611         * modules/ctype (Makefile.am): Likewise.
17612         * modules/dirent (Makefile.am): Likewise.
17613         * modules/errno (Makefile.am): Likewise.
17614         * modules/fcntl-h (Makefile.am): Likewise.
17615         * modules/float (Makefile.am): Likewise.
17616         * modules/getopt-posix (Makefile.am): Likewise.
17617         * modules/glob (Makefile.am): Likewise.
17618         * modules/iconv-h (Makefile.am): Likewise.
17619         * modules/inttypes (Makefile.am): Likewise.
17620         * modules/langinfo (Makefile.am): Likewise.
17621         * modules/locale (Makefile.am): Likewise.
17622         * modules/math (Makefile.am): Likewise.
17623         * modules/netdb (Makefile.am): Likewise.
17624         * modules/netinet_in (Makefile.am): Likewise.
17625         * modules/poll-h (Makefile.am): Likewise.
17626         * modules/pthread (Makefile.am): Likewise.
17627         * modules/pty (Makefile.am): Likewise.
17628         * modules/sched (Makefile.am): Likewise.
17629         * modules/search (Makefile.am): Likewise.
17630         * modules/selinux-h (Makefile.am): Likewise.
17631         * modules/signal (Makefile.am): Likewise.
17632         * modules/spawn (Makefile.am): Likewise.
17633         * modules/stdarg (Makefile.am): Likewise.
17634         * modules/stdbool (Makefile.am): Likewise.
17635         * modules/stddef (Makefile.am): Likewise.
17636         * modules/stdint (Makefile.am): Likewise.
17637         * modules/stdio (Makefile.am): Likewise.
17638         * modules/stdlib (Makefile.am): Likewise.
17639         * modules/string (Makefile.am): Likewise.
17640         * modules/strings (Makefile.am): Likewise.
17641         * modules/sys_file (Makefile.am): Likewise.
17642         * modules/sys_ioctl (Makefile.am): Likewise.
17643         * modules/sys_select (Makefile.am): Likewise.
17644         * modules/sys_socket (Makefile.am): Likewise.
17645         * modules/sys_stat (Makefile.am): Likewise.
17646         * modules/sys_time (Makefile.am): Likewise.
17647         * modules/sys_times (Makefile.am): Likewise.
17648         * modules/sys_utsname (Makefile.am): Likewise.
17649         * modules/sys_wait (Makefile.am): Likewise.
17650         * modules/sysexits (Makefile.am): Likewise.
17651         * modules/termios (Makefile.am): Likewise.
17652         * modules/time (Makefile.am): Likewise.
17653         * modules/unistd (Makefile.am): Likewise.
17654         * modules/wchar (Makefile.am): Likewise.
17655         * modules/wctype-h (Makefile.am): Likewise.
17656         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17657
17658 2011-04-05  Bruno Haible  <bruno@clisp.org>
17659
17660         pipe2: Relicense under LGPLv2+.
17661         * modules/pipe2 (License): Change to LGPLv2+.
17662         Requested by Eric Blake, for libvirt.
17663
17664 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17665
17666         bootstrap: compute gnulib_extra_files after updating build_aux
17667         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17668         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17669
17670 2011-04-05  Eric Blake  <eblake@redhat.com>
17671
17672         bootstrap: preserve git whitelist item sorting
17673         * build-aux/bootstrap (sort_patterns): New function.
17674         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17675
17676 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17677
17678         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17679         sc_space_tab check.
17680
17681 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17682
17683         areadlink, areadlinkat: rewrite in terms of careadlinkat
17684         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17685         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17686         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17687         (malloc, realloc): Remove #undefs.
17688         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17689         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17690         readlink, ssize_t, stdint, unistd.
17691         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17692         areadlink, stdint.
17693
17694         careadlinkat: new module
17695         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17696         * modules/careadlinkat: New files, written by me with
17697         a review and feedback from Ben Pfaff in
17698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17699
17700 2011-04-01  Bruno Haible  <bruno@clisp.org>
17701
17702         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17703         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17704         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17705         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17706         Reported by Bruce Korb <bruce.korb@gmail.com>.
17707
17708 2011-04-01  Bruno Haible  <bruno@clisp.org>
17709
17710         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17711         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17712         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17713         * modules/wcpcpy (Depends-on): Add extensions.
17714         * modules/wcpncpy (Depends-on): Likewise.
17715         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17716         systems.
17717         * doc/posix-functions/wcpncpy.texi: Likewise.
17718         * doc/posix-functions/wcwidth.texi: Likewise.
17719
17720 2011-03-31  Eric Blake  <eblake@redhat.com>
17721
17722         nonblocking: fix mingw test failures
17723         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17724         non-blocking flag on regular file.
17725         (get_nonblocking_flag): Set errno on invalid fd.
17726         * tests/test-nonblocking.c (main): Avoid test failure on
17727         directories if fchdir is not active.
17728         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17729
17730 2011-03-31  Bruno Haible  <bruno@clisp.org>
17731
17732         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17733         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17734         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17735         Reported by Simon Josefsson <simon@josefsson.org>.
17736
17737 2011-03-31  Bruno Haible  <bruno@clisp.org>
17738         and Eric Blake  <eblake@redhat.com>
17739
17740         nonblocking: new module
17741         * modules/nonblocking: New module.
17742         * modules/nonblocking-tests: Likewise.
17743         * lib/nonblocking.h: New file.
17744         * lib/nonblocking.c: Likewise.
17745         * tests/test-nonblocking.c: New test.
17746         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17747
17748 2011-03-30  Bruno Haible  <bruno@clisp.org>
17749
17750         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17751         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17752         instead of 'printf' format for GCC >= 4.4.
17753         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17754         (fprintf, printf, vfprintf, vprintf): Declare with
17755         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17756         the system's vfprintf() function.
17757         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17758
17759 2011-03-30  Eric Blake  <eblake@redhat.com>
17760
17761         passfd: fix scoping bug
17762         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17763         before sendmsg/recvmsg.
17764
17765         passfd: standardize coding conventions
17766         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17767         can be learned at compile time.
17768         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17769         ifdefs.
17770         (sendfd, recvfd): Follow gnulib code conventions.
17771
17772         passfd: fix incorrect sendmsg arguments
17773         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17774         incorrect msg_controllen value.
17775         * modules/passfd-tests (Depends-on): Check for alarm.
17776         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17777         Reported by Bastien ROUCARIES.
17778
17779 2011-03-30  Bruno Haible  <bruno@clisp.org>
17780
17781         c-strcasestr: Relicense under LGPLv2+.
17782         * modules/c-strcasestr (License): Change to LGPLv2+.
17783         Requested by Eric Blake, for libvirt.
17784
17785 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17786
17787         * users.txt: Add libidn2.  Fix libtasn1 link.
17788
17789 2011-03-30  Jim Meyering  <meyering@redhat.com>
17790
17791         tests: readlink* ("",... fails with EINVAL on newer kernels
17792         readlink and readlinkat have typically failed with ENOENT for
17793         the invalid, empty file name,  "".  However, with the advent
17794         of linux-2.6.39, they fail with EINVAL.
17795         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17796         when operating on the empty file name.
17797         * tests/test-readlink.h (test_readlink): Likewise.
17798
17799 2011-03-29  Bruno Haible  <bruno@clisp.org>
17800
17801         Relicense some modules under LGPLv2+, for libidn2.
17802         * modules/array-mergesort (License): Change to LGPLv2+.
17803         * modules/c-strcaseeq (License): Likewise.
17804         * modules/striconveh (License): Likewise.
17805         * modules/striconveha (License): Likewise.
17806         * modules/uniconv/base (License): Likewise.
17807         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17808         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17809         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17810         * modules/unictype/base (License): Likewise.
17811         * modules/unictype/bidiclass-of (License): Likewise.
17812         * modules/unictype/category-M (License): Likewise.
17813         * modules/unictype/category-none (License): Likewise.
17814         * modules/unictype/category-of (License): Likewise.
17815         * modules/unictype/category-test (License): Likewise.
17816         * modules/unictype/category-test-withtable (License): Likewise.
17817         * modules/unictype/combining-class (License): Likewise.
17818         * modules/unictype/joiningtype-of (License): Likewise.
17819         * modules/unictype/scripts (License): Likewise.
17820         * modules/uninorm/base (License): Likewise.
17821         * modules/uninorm/canonical-decomposition (License): Likewise.
17822         * modules/uninorm/composition (License): Likewise.
17823         * modules/uninorm/decompose-internal (License): Likewise.
17824         * modules/uninorm/decomposition-table (License): Likewise.
17825         * modules/uninorm/nfc (License): Likewise.
17826         * modules/uninorm/nfd (License): Likewise.
17827         * modules/uninorm/u32-normalize (License): Likewise.
17828         * modules/unistr/base (License): Likewise.
17829         * modules/unistr/u32-cpy (License): Likewise.
17830         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17831         * modules/unistr/u32-to-u8 (License): Likewise.
17832         * modules/unistr/u32-uctomb (License): Likewise.
17833         * modules/unistr/u8-check (License): Likewise.
17834         * modules/unistr/u8-mblen (License): Likewise.
17835         * modules/unistr/u8-mbtouc (License): Likewise.
17836         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17837         * modules/unistr/u8-mbtoucr (License): Likewise.
17838         * modules/unistr/u8-prev (License): Likewise.
17839         * modules/unistr/u8-strlen (License): Likewise.
17840         * modules/unistr/u8-to-u32 (License): Likewise.
17841         * modules/unistr/u8-uctomb (License): Likewise.
17842         * modules/unitypes (License): Likewise.
17843         Requested by Simon Josefsson.
17844
17845 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17846
17847         lib-symbol-visibility: Add a notice.
17848         * modules/lib-symbol-visibility (Notice): New field.
17849
17850 2011-03-29  Bruno Haible  <bruno@clisp.org>
17851
17852         getaddrinfo: Doc fix.
17853         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17854         section "fixed in Gnulib".
17855
17856 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17857
17858         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17859         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17860
17861 2011-03-26  Bruno Haible  <bruno@clisp.org>
17862
17863         unictype/property-byname: Reduce the number of load-time relocations.
17864         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17865         (UC_PROPERTY_INDEX_*): New enumeration values.
17866         (uc_property_byname): Convert an index from the lookup table to an
17867         uc_property_t.
17868         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17869         values.
17870
17871 2011-03-26  Bruno Haible  <bruno@clisp.org>
17872
17873         unictype/property-byname: Allow omitted word separators and aliases.
17874         * lib/unictype/pr_byname.gperf: Add property names without word
17875         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17876         for 'space'.
17877
17878 2011-03-26  Bruno Haible  <bruno@clisp.org>
17879
17880         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17881         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17882         also hyphens to space.
17883         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17884         without spaces.
17885         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17886
17887 2011-03-26  Bruno Haible  <bruno@clisp.org>
17888
17889         unictype/joiningtype-byname: Recognize long names as well.
17890         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17891         a long name.
17892         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17893         unictype/joiningtype_byname.h.
17894         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17895         * lib/unictype/joiningtype_byname.gperf: New file.
17896         * modules/unictype/joiningtype-byname (Files): Add
17897         lib/unictype/joiningtype_byname.gperf.
17898         (Depends-on): Add gperf.
17899         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17900         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17901         long names.
17902
17903         Tests for module 'unictype/joiningtype-longname'.
17904         * modules/unictype/joiningtype-longname-tests: New file.
17905         * tests/unictype/test-joiningtype_longname.c: New file.
17906
17907         New module 'unictype/joiningtype-longname'.
17908         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17909         * lib/unictype/joiningtype_longname.c: New file.
17910         * modules/unictype/joiningtype-longname: New file.
17911         * modules/unictype/joiningtype-all (Depends-on): Add
17912         unictype/joiningtype-longname.
17913
17914 2011-03-26  Bruno Haible  <bruno@clisp.org>
17915
17916         unictype/bidiclass-byname: Recognize long names as well.
17917         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17918         name.
17919         * lib/unictype/bidi_byname.c: Include <string.h>,
17920         unictype/bidi_byname.h.
17921         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17922         * lib/unictype/bidi_byname.gperf: New file.
17923         * modules/unictype/bidiclass-byname (Files): Add
17924         lib/unictype/bidi_byname.gperf.
17925         (Depends-on): Add gperf.
17926         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17927         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17928         long names.
17929
17930         Tests for module 'unictype/bidiclass-longname'.
17931         * modules/unictype/bidiclass-longname-tests: New file.
17932         * tests/unictype/test-bidi_longname.c: New file.
17933
17934         New module 'unictype/bidiclass-longname'.
17935         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17936         * lib/unictype/bidi_longname.c: New file.
17937         * modules/unictype/bidiclass-longname: New file.
17938         * modules/unictype/bidiclass-all (Depends-on): Add
17939         unictype/bidiclass-longname.
17940
17941 2011-03-26  Bruno Haible  <bruno@clisp.org>
17942
17943         unictype/bidi*: Rename modules.
17944         * modules/unictype/bidiclass-all: Renamed from
17945         modules/unictype/bidicategory-all.
17946         * modules/unictype/bidiclass-name: Renamed from
17947         modules/unictype/bidiclass-name.
17948         (Description): Update.
17949         * modules/unictype/bidiclass-name-tests: Renamed from
17950         modules/unictype/bidicategory-name-tests.
17951         * modules/unictype/bidiclass-byname: Renamed from
17952         modules/unictype/bidicategory-byname.
17953         (Description): Update.
17954         * modules/unictype/bidiclass-byname-tests: Renamed from
17955         modules/unictype/bidicategory-byname-tests.
17956         * modules/unictype/bidiclass-of: Renamed from
17957         modules/unictype/bidicategory-of.
17958         (Description): Update.
17959         * modules/unictype/bidiclass-of-tests: Renamed from
17960         modules/unictype/bidicategory-of-tests.
17961         * modules/unictype/bidiclass-test: Renamed from
17962         modules/unictype/bidicategory-test.
17963         (Description): Update.
17964         * modules/unictype/bidiclass-test-tests: Renamed from
17965         modules/unictype/bidicategory-test-tests.
17966         * modules/unictype/bidicategory-all: New file, a simple redirection.
17967         * modules/unictype/bidicategory-name: Likewise.
17968         * modules/unictype/bidicategory-byname: Likewise.
17969         * modules/unictype/bidicategory-of: Likewise.
17970         * modules/unictype/bidicategory-test: Likewise.
17971         * modules/unictype/property-bidi-* (Dependencies): Update.
17972         * lib/unictype/bidi_*.c: Update comment.
17973
17974 2011-03-26  Bruno Haible  <bruno@clisp.org>
17975
17976         unictype/bidi*: Rename functions, part 2.
17977         * modules/unictype/bidicategory-name (configure.ac): Update required
17978         libunistring version.
17979         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17980
17981 2011-03-25  Bruno Haible  <bruno@clisp.org>
17982
17983         New module 'unictype/combining-class-all'.
17984         * modules/unictype/combining-class-all: New file.
17985
17986         Tests for module 'unictype/combining-class-byname'.
17987         * modules/unictype/combining-class-byname-tests: New file.
17988         * tests/unictype/test-combiningclass_byname.c: New file.
17989
17990         New module 'unictype/combining-class-byname'.
17991         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17992         * lib/unictype/combiningclass_byname.c: New file.
17993         * lib/unictype/combiningclass_byname.gperf: New file.
17994         * modules/unictype/combining-class-byname: New file.
17995
17996         Tests for module 'unictype/combining-class-longname'.
17997         * modules/unictype/combining-class-longname-tests: New file.
17998         * tests/unictype/test-combiningclass_longname.c: New file.
17999
18000         New module 'unictype/combining-class-longname'.
18001         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18002         * lib/unictype/combiningclass_longname.c: New file.
18003         * modules/unictype/combining-class-longname: New file.
18004
18005         Tests for module 'unictype/combining-class-name'.
18006         * modules/unictype/combining-class-name-tests: New file.
18007         * tests/unictype/test-combiningclass_name.c: New file.
18008
18009         New module 'unictype/combining-class-name'.
18010         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18011         * lib/unictype/combiningclass_name.c: New file.
18012         * modules/unictype/combining-class-name: New file.
18013
18014 2011-03-25  Bruno Haible  <bruno@clisp.org>
18015
18016         unictype/combining-class: Rename source files.
18017         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18018         of unictype/combining.h.
18019         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18020         Update.
18021         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18022         * modules/unictype/combining-class (Description): Fix.
18023         (Files, Makefile.am): Update.
18024         * tests/unictype/test-combiningclass.c: Renamed from
18025         tests/unictype/test-combining.c.
18026         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18027
18028 2011-03-25  Bruno Haible  <bruno@clisp.org>
18029
18030         unictype: Update list of canonical combining classes.
18031         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18032
18033 2011-03-25  Bruno Haible  <bruno@clisp.org>
18034
18035         unictype/category-byname: Recognize long names as well.
18036         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18037         a long name.
18038         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18039         unictype/categ_byname.h.
18040         (UC_CATEGORY_INDEX_*): New enumeration values.
18041         (uc_general_category_byname): Use uc_general_category_lookup and
18042         convert from index to value.
18043         * lib/unictype/categ_byname.gperf: New file.
18044         * modules/unictype/category-byname (Files): Add
18045         lib/unictype/categ_byname.gperf.
18046         (Depends-on): Add gperf.
18047         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18048         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18049         long names.
18050
18051         Tests for module 'unictype/category-longname'.
18052         * modules/unictype/category-longname-tests: New file.
18053         * tests/unictype/test-categ_longname.c: New file.
18054
18055         New module 'unictype/category-longname'.
18056         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18057         * lib/unictype/categ_longname.c: New file.
18058         * modules/unictype/category-longname: New file.
18059         * modules/unictype/category-all (Depends-on): Add it.
18060
18061 2011-03-25  Bruno Haible  <bruno@clisp.org>
18062
18063         Tests for module 'unictype/category-LC'.
18064         * modules/unictype/category-LC-tests: New file.
18065         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18066
18067         New module 'unictype/category-LC'.
18068         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18069         (UC_CATEGORY_LC): New declaration.
18070         (UC_CASED_LETTER): New macro.
18071         * lib/gen-uni-tables.c (is_category_LC): New function.
18072         (output_categories): Also handle category LC.
18073         (UC_CATEGORY_MASK_LC): New enumeration value.
18074         (general_category_byname): Also handle category LC.
18075         * lib/unictype/categ_LC.c: New file.
18076         * lib/unictype/categ_LC.h: New file, automatically generated.
18077         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18078         category LC.
18079         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18080         * modules/unictype/category-LC: New file.
18081         * modules/unictype/category-byname (Depends-on): Add
18082         unictype/category-LC.
18083         * modules/unictype/category-all (Depends-on): Likewise.
18084
18085 2011-03-25  Eric Blake  <eblake@redhat.com>
18086
18087         xmalloc: revert yesterday's regression
18088         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18089         realloc's underlying behavior (allowing allocation of zero-size
18090         objects, especially if malloc-gnu is also in use).
18091
18092 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18093
18094         maint.mk: add missing version to VC-tag
18095         * top/maint.mk: git tag was missing actual tag name; add it.
18096
18097         valgrind: do leak checking, and exit with code 1 on error (not 0)
18098         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18099         to VALGRIND.
18100
18101 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18102
18103         posix-modules: say what it does.
18104         * posix-modules: Add a line to the --help output saying what it does.
18105
18106 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18107
18108         xmalloc: Do not leak if underlying realloc is C99 compatible.
18109         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18110         This avoids a leak on C99-based systems.  See
18111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18112
18113 2011-03-24  Eric Blake  <eblake@redhat.com>
18114
18115         realloc: document portability problem
18116         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18117         passing 0 size to realloc.
18118
18119 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18120
18121         doc: update users.txt
18122         * users.txt: Add cvsps, tmpwatch
18123
18124 2011-03-23  Matt Rice  <ratmice@gmail.com>
18125
18126         doc: update users.txt
18127         * users.txt: Add gdb.
18128
18129 2011-03-23  Jim Meyering  <meyering@redhat.com>
18130
18131         doc: update users.txt
18132         Looking through matches up to the following URL (there are still
18133         several more pages), I found several projects that use gnulib:
18134         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18135         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18136         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18137
18138 2011-03-22  Bruno Haible  <bruno@clisp.org>
18139
18140         unictype/bidi*: Rename functions.
18141         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18142         uc_bidi_class, uc_is_bidi_class): New declarations.
18143         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18144         uc_bidi_category_byname.
18145         (uc_bidi_category_byname): New function.
18146         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18147         u_bidi_category_name.
18148         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18149         (uc_bidi_category_name): New function.
18150         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18151         uc_bidi_category.
18152         (uc_bidi_category): New function.
18153         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18154         uc_is_bidi_category. Invoke uc_bidi_class.
18155         (uc_is_bidi_category): New function.
18156         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18157         instead of uc_bidi_category_byname.
18158         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18159         instead of uc_bidi_category_name.
18160         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18161         uc_bidi_category.
18162         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18163         instead of uc_is_bidi_category.
18164
18165 2011-03-21  Bruno Haible  <bruno@clisp.org>
18166
18167         New module 'unictype/joininggroup-all'.
18168         * modules/unictype/joininggroup-all: New file.
18169
18170         Tests for module 'unictype/joininggroup-of'.
18171         * modules/unictype/joininggroup-of-tests: New file.
18172         * tests/unictype/test-joininggroup_of.c: New file.
18173         * tests/unictype/test-joininggroup_of.h: New file, automatically
18174         generated by gen-uni-tables.
18175
18176         New module 'unictype/joininggroup-of'.
18177         * modules/unictype/joininggroup-of: New file.
18178         * lib/unictype/joininggroup_of.c: New file.
18179         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18180         gen-uni-tables.
18181
18182         Tests for module 'unictype/joininggroup-byname'.
18183         * modules/unictype/joininggroup-byname-tests: New file.
18184         * tests/unictype/test-joininggroup_byname.c: New file.
18185
18186         New module 'unictype/joininggroup-byname'.
18187         * modules/unictype/joininggroup-byname: New file.
18188         * lib/unictype/joininggroup_byname.c: New file.
18189         * lib/unictype/joininggroup_byname.gperf: New file.
18190
18191         Tests for module 'unictype/joininggroup-name'.
18192         * modules/unictype/joininggroup-name-tests: New file.
18193         * tests/unictype/test-joininggroup_name.c: New file.
18194
18195         New module 'unictype/joininggroup-name'.
18196         * modules/unictype/joininggroup-name: New file.
18197         * lib/unictype/joininggroup_name.c: New file.
18198         * lib/unictype/joininggroup_name.h: New file.
18199
18200         New module 'unictype/joiningtype-all'.
18201         * modules/unictype/joiningtype-all: New file.
18202
18203         Tests for module 'unictype/joiningtype-of'.
18204         * modules/unictype/joiningtype-of-tests: New file.
18205         * tests/unictype/test-joiningtype_of.c: New file.
18206         * tests/unictype/test-joiningtype_of.h: New file, automatically
18207         generated by gen-uni-tables.
18208
18209         New module 'unictype/joiningtype-of'.
18210         * modules/unictype/joiningtype-of: New file.
18211         * lib/unictype/joiningtype_of.c: New file.
18212         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18213         gen-uni-tables.
18214
18215         Tests for module 'unictype/joiningtype-byname'.
18216         * modules/unictype/joiningtype-byname-tests: New file.
18217         * tests/unictype/test-joiningtype_byname.c: New file.
18218
18219         New module 'unictype/joiningtype-byname'.
18220         * modules/unictype/joiningtype-byname: New file.
18221         * lib/unictype/joiningtype_byname.c: New file.
18222
18223         Tests for module 'unictype/joiningtype-name'.
18224         * modules/unictype/joiningtype-name-tests: New file.
18225         * tests/unictype/test-joiningtype_name.c: New file.
18226
18227         New module 'unictype/joiningtype-name'.
18228         * modules/unictype/joiningtype-name: New file.
18229         * lib/unictype/joiningtype_name.c: New file.
18230
18231         unictype: Add support for Arabic shaping properties.
18232         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18233         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18234         declarations.
18235         (UC_JOINING_GROUP_*): New enumeration values.
18236         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18237         declarations.
18238         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18239         (unicode_joining_type): New variable.
18240         (UC_JOINING_GROUP_*): New enumeration values.
18241         (unicode_joining_group): New variable.
18242         (fill_arabicshaping, joining_type_as_c_identifier,
18243         output_joining_type_test, output_joining_type,
18244         joining_group_as_c_identifier, output_joining_group_test,
18245         output_joining_group): New functions.
18246         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18247         fill_arabicshaping and output_joining_type_test, output_joining_type,
18248         output_joining_group_test, output_joining_group.
18249         Reported by Simon Josefsson.
18250
18251 2011-03-21  Jim Meyering  <meyering@redhat.com>
18252
18253         strftime: fix a bug in yesterday's change
18254         * lib/strftime.c (add): Accommodate width's initial value of -1.
18255         Otherwise, nstrftime would copy uninitialized data into
18256         the result buffer.
18257
18258 2011-03-21  Jim Meyering  <meyering@redhat.com>
18259
18260         tests: add strftime-tests module
18261         * tests/test-strftime.c: New file.
18262         * modules/strftime-tests: New module.
18263
18264 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18265
18266         strftime: don't assume a byte count fits in 'int'
18267         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18268         found this problem by static analysis, using gcc -Wstrict-overflow
18269         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18270         on an integer overflow having undefined behavior, but it turns out
18271         that the argument is a size, which might not fit in 'int' anyway,
18272
18273 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18274
18275         stdio: don't require ignore_value around fwrite
18276
18277         This patch works around libc bug 11959
18278         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18279         Without this patch, applications must often write
18280         ignore_value (fwrite (...)) even though the ignore_value is
18281         not helpful here.  It's common to write many objects, using
18282         fwrite/printf/etc., and then use ferror to detect output error.
18283
18284         I considered making this patch optional, but decided against it,
18285         because libc is obviously being inconsistent here: there is no
18286         reason libc should insist that user code must inspect fwrite
18287         return's value without also insisting that it inspect printf's,
18288         putchar's, etc.  If user code wants to have a strict style where
18289         all these functions' values are checked (so that ferror need not
18290         be checked), we could add support for that style in a new gnulib
18291         module, but in the meantime it's better to be consistent and to
18292         support common usage.
18293
18294         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18295         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18296         that we are compiling in checking mode, and if not C++, and
18297         if not already wrapping fwrite for some other reason.
18298         (fwrite): #define to rpl_fwrite if the latter is defined.
18299
18300 2011-03-20  Bruno Haible  <bruno@clisp.org>
18301
18302         verror: Fix compilation error introduced on 2011-02-13.
18303         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18304         instead of __attribute__.
18305         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18306
18307 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18308             Bruno Haible  <bruno@clisp.org>
18309
18310         socklen: do not depend on sys_socket
18311         While trying to modify Emacs to use gnulib's socklen module,
18312         I discovered a circular dependency: socklen depends on sys_socket
18313         and vice versa.  Emacs can use socklen, but it does not need
18314         sys_socket because it has its own substitute for sys/socket.h.
18315         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18316         gl_TYPE_SOCKLEN_T.
18317         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18318         gl_PREREQ_SYS_H_SOCKET.
18319         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18320         gl_PREREQ_SYS_H_SOCKET.
18321         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18322         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18323         * modules/socklen (Depends-on): Do not depend on sys_socket.
18324         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18325
18326 2011-03-20  Jim Meyering  <meyering@redhat.com>
18327
18328         maint.mk: sort file names *after* new transformation
18329         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18330         prefix would have led to an unwarranted failure in GNU parted.
18331         Sort after that transformation.
18332
18333 2011-03-19  Jim Meyering  <meyering@redhat.com>
18334
18335         maint.mk: fix po-file syntax-check rule
18336         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18337         Patch by Bruno Haible.
18338
18339 2011-03-19  Bruno Haible  <bruno@clisp.org>
18340
18341         socklen: Update comment.
18342         * m4/socklen.m4: Update comment about platforms.
18343
18344 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18345             Bruno Haible  <bruno@clisp.org>
18346
18347         inet_ntop, inet_pton: Simplify.
18348         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18349         documented to provide socklen_t and we already depend on sys_socket.
18350         * modules/inet_pton (Depends-on): Likewise.
18351         * lib/arpa_inet.in.h: Adjust comment.
18352
18353 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18354             Bruno Haible  <bruno@clisp.org>
18355
18356         netdb: Simplify.
18357         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18358         documented to provide socklen_t and we already depend on sys_socket.
18359         * lib/netdb.in.h: Adjust comment.
18360
18361 2011-03-19  Bruno Haible  <bruno@clisp.org>
18362
18363         sys_socket, netdb: Document problem with socklen_t.
18364         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18365         platforms.
18366         * doc/posix-headers/netdb.texi: Likewise.
18367
18368 2011-03-18  Eric Blake  <eblake@redhat.com>
18369
18370         maint.mk: let po check work in VPATH build
18371         * top/maint.mk (po_file): Allow cfg.mk override.
18372         (sc_po_check): Allow VPATH use.
18373         Reported by Jiri Denemark.
18374
18375 2011-03-16  Jim Meyering  <meyering@redhat.com>
18376
18377         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18378         Before, you would have had to create one .x-sc_ file per rule in order
18379         to exempt offending files.  Now, you may instead use a Make variable --
18380         usually defined in cfg.mk -- whose name identifies the affected rule.
18381         * top/maint.mk (_sc_excl): Define.
18382         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18383         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18384
18385 2011-03-13  Bruno Haible  <bruno@clisp.org>
18386
18387         ignore-value tests: Avoid warnings.
18388         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18389         empty for gcc < 3.4.
18390
18391 2011-03-13  Bruno Haible  <bruno@clisp.org>
18392
18393         passfd: Fix link error on Solaris.
18394         * modules/passfd (Description): Correct.
18395         (Depends-on): Add socketlib.
18396         (Link): New section.
18397         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18398
18399 2011-03-13  Bruno Haible  <bruno@clisp.org>
18400
18401         passfd: Fix link error on AIX 5.2.
18402         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18403
18404 2011-03-13  Bruno Haible  <bruno@clisp.org>
18405
18406         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18407         * lib/sys_socket.in.h: Include <stddef.h>.
18408         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18409         CMSG_FIRSTHDR. Remove unused variable.
18410
18411 2011-03-13  Bruno Haible  <bruno@clisp.org>
18412
18413         passfd: Fix compilation error on OpenBSD.
18414         * lib/passfd.c: Include <sys/uio.h>.
18415
18416 2011-03-13  Bruno Haible  <bruno@clisp.org>
18417
18418         passfd test: Fix warnings.
18419         * tests/test-passfd.c: Include <sys/wait.h>.
18420         (main): Fix typo.
18421
18422 2011-03-13  Bruno Haible  <bruno@clisp.org>
18423
18424         passfd module, part 4, tweaks.
18425         * tests/test-passfd.c: Reorder includes.
18426         (main): Fix perror and printf calls.
18427
18428 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18429
18430         passfd module, part 4.
18431         * modules/passfd-tests: New file.
18432         * tests/test-passfd.c: New file.
18433
18434 2011-03-13  Jim Meyering  <meyering@redhat.com>
18435
18436         Makefile: rely on GNU make; derive syntax-check rule names
18437         Rather than requiring that each sc_ rule be listed as a dependent
18438         of "check", use features of GNU make to derive the list.
18439         * Makefile (syntax-check-rules): Define.
18440         (check): Depend on the new variable, not the hard-coded list.
18441
18442 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18443             Bruno Haible  <bruno@clisp.org>
18444
18445         passfd module, part 3.
18446         * lib/passfd.h (recvfd): Add a flags argument.
18447         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18448         (recvfd): Add a flags argument.
18449         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18450         exists.
18451         * modules/passfd (Depends-on): Add cloexec.
18452         Suggested by Eric Blake.
18453
18454 2011-03-13  Bruno Haible  <bruno@clisp.org>
18455
18456         passfd module, part 2, tweaks.
18457         * modules/passfd (Files): Reorder.
18458         (Depends-on): Remove errno.
18459         (Include): Remove <sys/socket.h>, <sys/un.h>.
18460         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18461         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18462         specification header. Include <sys/socket.h> always. Don't include
18463         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18464         (sendfd): Clarify that it sets errno when it fails.
18465         (recvfd): Fix specification.
18466
18467 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18468
18469         passfd module, part 2.
18470         * modules/passfd: New file.
18471         * lib/passfd.h: New file.
18472         * lib/passfd.c: New file.
18473
18474 2011-03-12  Bruno Haible  <bruno@clisp.org>
18475
18476         wcswidth, mbswidth: Avoid integer overflow.
18477         * lib/wcswidth.c: Include <limits.h>.
18478         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18479         * lib/mbswidth.c: Include <limits.h>.
18480         (mbsnwidth): Avoid 'int' overflow.
18481         Reported by Jim Meyering.
18482
18483 2011-03-12  Bruno Haible  <bruno@clisp.org>
18484
18485         futimens, utimensat: Avoid endless recursion on Solaris 10.
18486         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18487         Solaris.
18488         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18489         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18490
18491 2011-03-11  Jim Meyering  <meyering@redhat.com>
18492
18493         maint.mk: relax a regexp to accommodate other formatting styles
18494         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18495         between "ngettext" and the following "(".
18496
18497 2011-03-11  Pádraig Brady <P@draigBrady.com>
18498
18499         maint.mk: suppress a false positive warning
18500         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18501         diagnostics are marked with ngettext.
18502
18503 2011-03-10  Eric Blake  <eblake@redhat.com>
18504
18505         wchar: add explicit dependencies, for Tru64
18506         * modules/mbmemcasecoll (Depends-on): Add wchar.
18507         * modules/mbtowc (Depends-on): Likewise.
18508         * modules/vasnprintf (Depends-on): Likewise.
18509         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18510         * modules/wctomb (Depends-on): Likewise.
18511         Reported by Peter O'Gorman.
18512
18513 2011-03-08  Bruno Haible  <bruno@clisp.org>
18514
18515         passfd module, part 1, tweaks.
18516         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18517         Improve indentation. Improve AC_MSG_CHECKING messages.
18518         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18519         gl_SOCKET_FAMILIES.
18520
18521 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18522
18523         passfd module, part 1.
18524         * m4/afunix.m4: New file.
18525         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18526         sockets.
18527
18528 2011-03-08  Bruno Haible  <bruno@clisp.org>
18529
18530         regex-quote: New API.
18531         * lib/regex-quote.h: Include <stdbool.h>.
18532         (struct regex_quote_spec): New type.
18533         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18534         New declarations.
18535         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18536         'const struct regex_quote_spec *' argument.
18537         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18538         (pcre_special): New constant.
18539         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18540         New functions.
18541         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18542         'const struct regex_quote_spec *' argument.
18543         * modules/regex-quote (Depends-on): Add stdbool.
18544         * tests/test-regex-quote.c (check): Update for new API. Add test for
18545         anchored results.
18546         * NEWS: Mention the API change.
18547         Reported by Reuben Thomas and Eric Blake.
18548
18549 2011-03-06  Bruno Haible  <bruno@clisp.org>
18550
18551         regex-quote: Fix creation of POSIX extended regular expressions.
18552         * lib/regex-quote.c (ere_special): Add grouping and alternation
18553         operators.
18554
18555 2011-03-05  Bruno Haible  <bruno@clisp.org>
18556
18557         doc: Improve doc regarding autopoint vs. gnulib.
18558         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18559         disable autopoint while running autoreconf.
18560         Suggested by Ralf Wildenhues.
18561
18562 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18563
18564         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18565         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18566
18567 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18568
18569         parse-duration: remove xalloc.h dependency
18570         * lib/parse-duration.c (parse_period): handle NULL return from
18571         strdup instead of calling xstrdup().
18572         * modules/parse-duration: remove "xalloc" dependency
18573
18574 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18575
18576         bootstrap: honor m4_base when running aclocal
18577         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18578
18579 2011-03-02  Jim Meyering  <meyering@redhat.com>
18580
18581         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18582         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18583         on request from Matt Booth.
18584
18585 2011-03-01  Eric Blake  <eblake@redhat.com>
18586
18587         test-link: work on Hurd
18588         * tests/test-link.h (test_link): Hurd rejects linking directories
18589         with EISDIR instead of the POSIX-mandated EPERM.
18590
18591 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18592
18593         stdio: simplify by moving files to printf-posix, sigpipe
18594         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18595         since this symbol is needed only if printf is replaced.
18596         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18597         Require gl_ASM_SYMBOL_PREFIX.
18598         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18599         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18600         (Depends-on): Add 'raise'.
18601         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18602         * modules/stdio (Files): Remove lib/stdio-write.c,
18603         m4/asm-underscore.m4.
18604         (Depends-on): Remove 'raise'.
18605
18606         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18607         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18608         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18609         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18610
18611 2011-02-28  Bruno Haible  <bruno@clisp.org>
18612
18613         localcharset: Assume ANSI C behaviour of free().
18614         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18615         calling free().
18616         Suggested by Simon Josefsson <simon@josefsson.org>.
18617
18618 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18619             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18620             Bruno Haible  <bruno@clisp.org>  (tiny change)
18621
18622         On Cygwin, use /proc file system instead of win32 API.
18623         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18624         Win32 file names.
18625         (DllMain): Simplify by removing Cygwin specific code.
18626         (find_shared_library_fullname): Use Linux specific implementation also
18627         for Cygwin.
18628         (get_shared_library_fullname): Update accordingly.
18629         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18630         Win32 file names.
18631         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18632         Cygwin specific code.
18633
18634 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18635             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18636
18637         Fix OpenMP flag detection for various Fortran compilers.
18638         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18639         OpenMP-conditional compilation construct, to force compile
18640         failure with missing OpenMP flag.
18641         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18642
18643 2011-02-25  Eric Blake  <eblake@redhat.com>
18644
18645         strstr: expand test coverage
18646         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18647         compilation.
18648         * tests/test-memmem.c (main): Duplicate tests.
18649         * tests/test-strcasestr.c (main): Likewise.
18650         * tests/test-c-strcasestr.c (main): Likewise.
18651
18652 2011-02-25  Jim Meyering  <meyering@redhat.com>
18653
18654         maint.mk: detect missing-NL-at-EOF, too
18655         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18656         it also detects when a file lacks a newline at EOF.
18657         (require_exactly_one_NL_at_EOF_): Renamed from
18658         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18659         since people may well have .x-sc_... file names tied to the
18660         existing name.  Suggested by Eric Blake.
18661
18662 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18663
18664         dirname: move m4/dos.m4 functionality into lib/dosname.h
18665
18666         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18667         extracts symbols from it, puts them into config.h; but it's much
18668         easier to use the symbols directly.  filename.h already does this,
18669         but it disagrees with dos.m4 in some respects.  This patch
18670         introduces a different include file dosname.h that packages up
18671         dos.m4, and then later we can work on merging filename.h and
18672         dosname.h.  Applications that need only the easy-to-configure
18673         symbols should consider including dosname.h rather than dirname.h.
18674         * NEWS: Mention incompatible changes.
18675         * m4/dos.m4: Remove.
18676         * lib/dosname.h, modules/dosname: New files.
18677         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18678         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18679         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18680         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18681         Include dosname.h, not dirname.h.
18682         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18683         Include dosname.h, for definitions of symbols like ISSLASH
18684         that used to be in config.h.
18685         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18686         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18687         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18688         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18689         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18690         * modules/rmdir (Files): Likewise.
18691         * modules/stat (Files): Likewise.
18692         * modules/unlink (Files): Likewise.
18693         * modules/dirname-lgpl (Depends-on): Add dosname.
18694         * modules/lstat (Depends-on): Likewise.
18695         * modules/openat (Depends-on): Likewise.
18696         * modules/rmdir (Depends-on): Likewise.
18697         * modules/savewd (Depends-on): Likewise.
18698         * modules/stat (Depends-on): Likewise.
18699         * modules/unlink (Depends-on): Likewise.
18700         * modules/openat (Depends-on): Remove dirname-lgpl.
18701         * modules/savewd (Depends-on): Likewise.
18702         * tests/test-dirname.c: Do not use removed symbols like
18703         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18704         the remaining symbols, e.g., ISSLASH ('\\').
18705
18706 2011-02-25  Eric Blake  <eblake@redhat.com>
18707
18708         strstr: revert patches that introduced bug and pessimization
18709         * lib/str-two-way.h: Add another reference.
18710         (two_way_short_needle, two_way_long_needle): Revert changes from
18711         2011-02-24; they pessimize search speed.
18712         (critical_factorization): Partially revert changes from
18713         2010-06-22; they violate the requirement that the left half of the
18714         needle be smaller than the period of the needle.
18715
18716 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18717
18718         filenamecat: remove unnecessary dependency on dirname-lgpl
18719         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18720         is no direct dependency, just an indirect one via filenamecat-lgpl.
18721
18722         remove: remove unnecessary use of m4/dos.m4
18723         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18724         * modules/remove (FILES): Remove m4/dos.m4.
18725
18726         * lib/openat-proc.c: Don't include dirname.h; not needed.
18727
18728         backupfile: remove unnecessary use of m4/dos.m4
18729         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18730         of its symbols are used by the backupfile code.  backupfile.c does
18731         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18732         for the rare case of programs that want all their backup file
18733         names to live within 8+3 limits, and dos.m4 doesn't address that.
18734         * modules/backupfile (Files): Remove m4/dos.m4.
18735
18736 2011-02-24  Jim Meyering  <meyering@redhat.com>
18737
18738         strstr: fix a bug whereby strstr would mistakenly return NULL
18739         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18740         in period calculation.
18741         (two_way_long_needle): Likewise.
18742         The original problem was reported by Mike Stump in
18743         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18744         Ralf Wildenhues provided the short needle and haystack.
18745         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18746         Add a more involved test to trigger the bug in two_way_long_needle.
18747
18748 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18749
18750         gnulib-tool: remove use of bold display in help screen
18751         * gnulib-tool (func_usage): Do not use bold display anymore in the
18752         help screen.  That was just meant to be a temporary emphasis for a
18753         backward-incompatible change.
18754
18755 2011-02-23  Bruno Haible  <bruno@clisp.org>
18756
18757         Fix misindentation of preprocessor directives.
18758         * lib/argp-namefrob.h: Reindent preprocessor directives.
18759         * lib/getopt_int.h (struct _getopt_data): Likewise.
18760         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18761         * lib/vasnprintf.c (decode_long_double): Likewise.
18762         * tests/test-argmatch.c: Insert blank lines, for clarity.
18763         * tests/test-exclude.c: Likewise.
18764
18765 2011-02-22  Bruno Haible  <bruno@clisp.org>
18766
18767         ioctl: Fix for MacOS X in 64-bit mode.
18768         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18769         value.
18770         Suggested by Eric Blake.
18771         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18772
18773 2011-02-22  Jim Meyering  <meyering@redhat.com>
18774
18775         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18776         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18777         in lib/.
18778
18779 2011-02-22  Eric Blake  <eblake@redhat.com>
18780
18781         maint: avoid any CDPATH issue
18782         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18783
18784         maint: adjust cpp indentation for my modules, as well
18785         * Makefile (sc_cpp_indent_check): Add my name.
18786         * lib/fbufmode.c: Filter through cppi.
18787         * lib/fpurge.c: Likewise.
18788         * lib/freadable.c: Likewise.
18789         * lib/freading.c: Likewise.
18790         * lib/fwritable.c: Likewise.
18791         * lib/fwriting.c: Likewise.
18792         * lib/sigaction.c: Likewise.
18793
18794 2011-02-22  Jim Meyering  <meyering@redhat.com>
18795
18796         maint: adjust cpp indentation to reflect nesting depth
18797         I.e., in a block of code that begins with an unnested "#if",
18798         put one space between the "#" in column 1 and following token.
18799         For example,
18800         -#include <sys/vfs.h>
18801         +# include <sys/vfs.h>
18802         Do this only in .c files that are part of a module I maintain.
18803         * lib/linkat.c: Filter through cppi.
18804         * lib/nanosleep.c: Likewise.
18805         * lib/openat.c: Likewise.
18806         * lib/openat-die.c: Likewise.
18807         * lib/dup3.c: Likewise.
18808         * lib/fchownat.c: Likewise.
18809         * lib/flock.c: Likewise.
18810         * lib/fsync.c: Likewise.
18811         * lib/fts.c: Likewise.
18812         * lib/getpass.c: Likewise.
18813         * lib/gettimeofday.c: Likewise.
18814         * lib/userspec.c: Likewise.
18815         * Makefile (sc_cpp_indent_check): New rule, to check this.
18816
18817 2011-02-22  Bruno Haible  <bruno@clisp.org>
18818
18819         New module 'wctomb'.
18820         * lib/stdlib.in.h (wctomb): New declaration.
18821         * lib/wctomb.c: New file.
18822         * lib/wctomb-impl.h: New file.
18823         * m4/wctomb.m4: New file.
18824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18825         REPLACE_WCTOMB.
18826         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18827         REPLACE_WCTOMB.
18828         * modules/wctomb: New file.
18829         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18830         * doc/posix-functions/wctomb.texi: Mention the new module.
18831         * modules/wctob (Depends-on): Add wctomb.
18832
18833 2011-02-22  Bruno Haible  <bruno@clisp.org>
18834
18835         New module 'mbtowc'.
18836         * lib/stdlib.in.h (mbtowc): New declaration.
18837         * lib/mbtowc.c: New file.
18838         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18839         * m4/mbtowc.m4: New file.
18840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18841         REPLACE_MBTOWC.
18842         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18843         REPLACE_MBTOWC.
18844         * modules/mbtowc: New file.
18845         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18846         * doc/posix-functions/mbtowc.texi: Mention the new module.
18847         * modules/btowc (Depends-on): Add mbtowc.
18848
18849 2011-02-22  Bruno Haible  <bruno@clisp.org>
18850
18851         wcrtomb: Add more tests for native Windows platforms.
18852         * tests/test-wcrtomb-w32-1.sh: New file.
18853         * tests/test-wcrtomb-w32-2.sh: New file.
18854         * tests/test-wcrtomb-w32-3.sh: New file.
18855         * tests/test-wcrtomb-w32-4.sh: New file.
18856         * tests/test-wcrtomb-w32-5.sh: New file.
18857         * tests/test-wcrtomb-w32.c: New file.
18858         * modules/wcrtomb-tests (Files): Add them.
18859         (Makefile.am): Arrange to run these tests.
18860         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18861         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18862
18863 2011-02-20  Bruno Haible  <bruno@clisp.org>
18864
18865         wcrtomb: Enhance test.
18866         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18867
18868 2011-02-20  Bruno Haible  <bruno@clisp.org>
18869
18870         mbrtowc: Tiny optimization.
18871         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18872
18873 2011-02-20  Jim Meyering  <meyering@redhat.com>
18874
18875         test-exclude.c: remove unmatched #endif
18876         * tests/test-exclude.c: Remove stray #endif, left over from
18877         the change of a week ago.
18878
18879 2011-02-19  Jim Meyering  <meyering@redhat.com>
18880
18881         git-version-gen: skip "-dirty" check when appropriate
18882         * build-aux/git-version-gen: Don't run any git commands when the
18883         version string comes from .tarball-version.  Prior to this, we
18884         would run git update-index --refresh even from a just-unpacked
18885         tarball directory, and that could affect a .git/ directory in a
18886         parent of the build directory.  Reported by Mike Frysinger.
18887
18888 2011-02-19  Bruno Haible  <bruno@clisp.org>
18889
18890         unictype/property-byname: Reduce the size of the 'data' segment.
18891         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18892
18893 2011-02-19  Bruno Haible  <bruno@clisp.org>
18894
18895         unictype/scripts: Reduce the size of the 'data' segment.
18896         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18897         '%pic'.
18898         * lib/unictype/scripts_byname.gperf: Regenerated.
18899
18900 2011-02-19  Bruno Haible  <bruno@clisp.org>
18901
18902         stdint: Update documentation.
18903         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18904
18905 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18906
18907         stdint: omit redundant check for wchar.h
18908         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18909         always tests whether wchar.h exists, so remove the now-redundant test.
18910
18911 2011-02-18  Bruno Haible  <bruno@clisp.org>
18912
18913         stdint: Cut dependency to module 'wchar'.
18914         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18915         include the necessary prerequisites.
18916         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18917         * modules/stdint (Depends-on): Remove wchar.
18918         (Makefile.am): Substitute HAVE_WCHAR_H.
18919         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18920
18921 2011-02-18  Eric Blake  <eblake@redhat.com>
18922
18923         longlong: skip, rather than fail, on cross-compilation
18924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18925         when cross-compiling; regression from 2011-02-16.
18926
18927 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18928
18929         * NEWS: Mention 2011-02-08 change to stdlib.
18930
18931 2011-02-17  Bruno Haible  <bruno@clisp.org>
18932
18933         getloadavg: Add comments about platforms.
18934         * m4/getloadavg.m4: Add comment.
18935         * lib/getloadavg.c: Likewise.
18936
18937 2011-02-17  Bruno Haible  <bruno@clisp.org>
18938
18939         getloadavg: Fix link error on Solaris 2.6.
18940         * modules/getloadavg (Link): New section.
18941         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18942         linking test-getloadavg.
18943         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18944         getloadavg.
18945
18946 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18947
18948         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18949         It was 'int', but this doesn't match the IRIX 6.5 manual.
18950         Suggested by Bruno Haible in
18951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18952
18953 2011-02-17  Bruno Haible  <bruno@clisp.org>
18954
18955         havelib: Fix comments.
18956         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18957         change.
18958
18959 2011-02-17  Bruno Haible  <bruno@clisp.org>
18960
18961         havelib: Update config.rpath.
18962         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18963
18964 2011-02-17  Bruno Haible  <bruno@clisp.org>
18965
18966         getloadavg test: Add some plausibility checks.
18967         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18968         is improbable.
18969
18970 2011-02-16  Eric Blake  <eblake@redhat.com>
18971
18972         maintainer-makefile: make syntax-check a no-op from tarballs
18973         * top/maint.mk (no-vc-detected): New rule.
18974         (local-checks-available): Use it to avoid hanging if someone tries
18975         'make syntax-check' from a tarball.  Also append to any non-syntax
18976         checks already defined in cfg.mk.
18977
18978 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18979
18980         longlong: tune, particularly for common case of c99
18981
18982         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18983         or running anything if c99, or if unsigned long long int does not
18984         work.  In either case, we know the answer without further tests.
18985         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18986         it at most once, and use its results for both long long int and
18987         unsigned long long int.  This is more likely to be efficient in
18988         the common case where the program wants to check for both long
18989         long int and unsigned long long int.
18990         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18991         since the answer is already known.
18992
18993 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18994
18995         getloadavg: set errno
18996         * lib/getloadavg.c: Set errno when returning -1.  If no other
18997         error number looks appropriate, set it to ENOSYS if the getloadavg
18998         looks like it can't possibly ever work, ENOTSUP otherwise.
18999         Suggested by Bruno Haible in
19000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19001
19002         getloadavg: trim unused parts and speed up 'configure'
19003         * NEWS: Document this.
19004         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19005         always compiled if getloadavg is absent.
19006         Move test code to ...
19007         * tests/test-getloadavg.c: New file, containing previous
19008         contents of test from lib/getloadavg.c.  It also contains
19009         suggestions by Bruno Haible in
19010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19011         * modules/getloadavg-tests: New file.
19012         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19013         Do tests in the same order as they're needed for getloadavg.c.
19014         Omit setgid-related tests that generate symbols KMEM_GROUP,
19015         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19016         Do only the tests that are needed to see whether the system has
19017         getloadavg, moving the other tests into ...
19018         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19019         NLIST_NAME_UNION; nobody should be using it.  Do not define
19020         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19021         relevant, as the user of this module shouldn't care how getloadavg
19022         is implemented.
19023
19024         getloadavg: omit unused var
19025         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19026
19027 2011-02-15  Jim Meyering  <meyering@redhat.com>
19028
19029         doc: update users.txt
19030         * users.txt: Update iwhd's URL.
19031
19032 2011-02-13  Bruno Haible  <bruno@clisp.org>
19033
19034         Consistent macro naming for macros that use GCC __attribute__.
19035         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19036         _ATTRIBUTE_NONNULL_.
19037         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19038         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19039         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19040         ATTRIBUTE_DEPRECATED.
19041         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19042         ATTRIBUTE_NORETURN.
19043         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19044         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19045         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19046         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19047         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19048         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19049         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19050         ATTRIBUTE_SENTINEL.
19051         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19052         ATTRIBUTE_RETURN_CHECK.
19053         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19054         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19055         ATTRIBUTE_NORETURN.
19056         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19057         Reported by Paul Eggert.
19058
19059 2011-02-13  Bruno Haible  <bruno@clisp.org>
19060
19061         Don't interfere with a program's definition of __attribute__.
19062         * lib/argp.h (__attribute__): Remove definition.
19063         (_GL_ATTRIBUTE_FORMAT): New macro.
19064         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19065         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19066         (_GL_ATTRIBUTE_FORMAT): New macro.
19067         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19068         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19069         GCC 3 or newer.
19070         * lib/error.h (__attribute__): Remove definition.
19071         (_GL_ATTRIBUTE_FORMAT): New macro.
19072         (error, error_at_line): Use it.
19073         * lib/hash.h (__attribute__): Remove definition.
19074         (ATTRIBUTE_WUR): Update definition. Define always.
19075         * lib/openat.h (__attribute__): Remove definition.
19076         (ATTRIBUTE_NORETURN): Update definition. Define always.
19077         * lib/sigpipe-die.h (__attribute__): Remove definition.
19078         (ATTRIBUTE_NORETURN): Update definition. Define always.
19079         * lib/vasnprintf.h (__attribute__): Remove definition.
19080         (_GL_ATTRIBUTE_FORMAT): New macro.
19081         (asnprintf, vasnprintf): Use it.
19082         * lib/xalloc.h (__attribute__): Remove definition.
19083         (ATTRIBUTE_NORETURN): Update definition. Define always.
19084         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19085         * lib/xmemdup0.h (__attribute__): Remove definition.
19086         (ATTRIBUTE_NORETURN): Update definition. Define always.
19087         * lib/xprintf.h (__attribute__): Remove definition.
19088         (_GL_ATTRIBUTE_FORMAT): New macro.
19089         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19090         * lib/xstrtol.h (__attribute__): Remove definition.
19091         (ATTRIBUTE_NORETURN): Update definition. Define always.
19092         * lib/xvasprintf.h (__attribute__): Remove definition.
19093         (_GL_ATTRIBUTE_FORMAT): New macro.
19094         (xasprintf, xvasprintf): Use it.
19095         * tests/test-argmatch.c (__attribute__): Remove definition.
19096         (ATTRIBUTE_NORETURN): Update definition. Define always.
19097         * tests/test-exclude.c (__attribute__): Remove definition.
19098         (ATTRIBUTE_NORETURN): Update definition. Define always.
19099         Reported by Paul Eggert.
19100
19101 2011-02-13  Bruno Haible  <bruno@clisp.org>
19102
19103         mbrtowc: Add more tests for native Windows platforms.
19104         * tests/test-mbrtowc-w32-1.sh: New file.
19105         * tests/test-mbrtowc-w32-2.sh: New file.
19106         * tests/test-mbrtowc-w32-3.sh: New file.
19107         * tests/test-mbrtowc-w32-4.sh: New file.
19108         * tests/test-mbrtowc-w32-5.sh: New file.
19109         * tests/test-mbrtowc-w32.c: New file.
19110         * modules/mbrtowc-tests (Files): Add them.
19111         (Makefile.am): Arrange to run these tests.
19112         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19113         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19114
19115 2011-02-13  Bruno Haible  <bruno@clisp.org>
19116
19117         mbrtowc: Work around native Windows bug.
19118         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19119         guess when no suitable locale for testing was found.
19120         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19121
19122 2011-02-13  Bruno Haible  <bruno@clisp.org>
19123
19124         mbsinit: Work around mingw bug.
19125         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19126         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19127         Windows.
19128         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19129
19130 2011-02-13  Bruno Haible  <bruno@clisp.org>
19131
19132         mbsinit: Don't crash for a NULL argument.
19133         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19134         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19135
19136 2011-02-13  Bruno Haible  <bruno@clisp.org>
19137
19138         Don't interfere with a program's definition of __attribute__.
19139         * lib/stdio.in.h (__attribute__): Remove definition.
19140         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19141         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19142         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19143         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19144         * lib/string.in.h (__attribute__): Remove definition.
19145         Reported by Paul Eggert.
19146
19147 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19148
19149         stdlib: don't get in the way of non-GCC __attribute__
19150         See thread starting at
19151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19152         Revert previous stdlib change, installing the following instead:
19153         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19154         to get in the way of a non-GCC compiler that supports __attribute__.
19155         (_GL_ATTRIBUTE_RETURN): New macro.
19156         (_Exit): Use it instead of __attribute__.
19157
19158 2011-02-12  Bruno Haible  <bruno@clisp.org>
19159
19160         quotearg test: Avoid test failure on mingw.
19161         * tests/test-quotearg.sh: Convert the locale identifier from native
19162         Windows syntax to Unix syntax.
19163
19164 2011-02-12  Bruno Haible  <bruno@clisp.org>
19165
19166         setlocale: Prefer gnulib's override over libintl's override.
19167         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19168         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19169         GNULIB_defined_setlocale is set.
19170
19171 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19172
19173         stdlib: support non-GCC __attribute__
19174
19175         Fix a serious and tricky problem encountered when attempting to
19176         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19177         5.5, but it crashed due to memory corruption on Solaris 10 with
19178         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19179         bits that are otherwise zero.  This tagging is optional inside
19180         Emacs but is preferred and is used when __attribute__ ((__aligned
19181         (8))) works, as it does with both recent-enough GCC and with Sun C
19182         5.11.  However, Sun C 5.11 is not GCC and does not #define
19183         __GNUC__ and __GNUC_MINOR__.
19184
19185         When I added the getloadavg module to Emacs, it brought in
19186         stdlib.in.h, which contained this fragment:
19187
19188            #ifndef __attribute__
19189            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19190            #  define __attribute__(Spec)   /* empty */
19191            # endif
19192            #endif
19193
19194         When files that include <stdlib.h> were compiled with Sun C 5.11,
19195         the above code disabled __attribute__ ((__aligned (8))), which
19196         caused variables to not be properly aligned, which eventually led
19197         to the pointer corruption mentioned above.  (This was a bit hard
19198         to diagnose, unfortunately.)
19199
19200         Several "#define __attribute__(X) /* empty */" code snippets need
19201         to be eradicated from Gnulib to work with non-GCC compilers that
19202         support __attribute__.  The Autoconf way to do this is to test for
19203         each kind of attribute that we want support for, and selectively
19204         enable that in source code.
19205
19206         Fix this problem just for stdlib.h, by adding a test for the
19207         __noreturn__ attribute, and change stdlib.in.h to use that test
19208         when needed.  This technique can be easily generalized to the
19209         other *.in.h files and attributes, and a similar technique can be
19210         used for *.h and *.c files.  This patch is enough to solve the
19211         problem for Emacs + getloadavg, and I thought I'd publish it for
19212         feedback before undertaking further, similar fixes in other
19213         modules.
19214
19215         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19216         because it's not needed for stdlib.h.  It merely substitutes the
19217         value directly into stdlib.h.  We may well need to #define it, or
19218         similar symbols, for other modules, but it's nice to also have an
19219         option to not #define it for applications like Emacs that do not
19220         need it.
19221
19222         * lib/stdlib.in.h (__attribute__): Do not #define.
19223         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19224         be defined only if the _Exit module is also used.
19225         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19227         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19228         platforms.
19229         * modules/_Exit (Files): Add m4/attribute.m4.
19230         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19231         * m4/attribute.m4: New file.
19232
19233 2011-02-12  Bruno Haible  <bruno@clisp.org>
19234
19235         wcsrtombs: Work around bug on native Windows.
19236         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19237         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19238         instead of len.
19239         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19240
19241 2011-02-12  Bruno Haible  <bruno@clisp.org>
19242
19243         mbsrtowcs: Work around bug on native Windows.
19244         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19245         against mingw bug.
19246         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19247
19248 2011-02-12  Bruno Haible  <bruno@clisp.org>
19249
19250         Avoid setlocale bugs in tests.
19251         * modules/btowc (Dependencies): Add setlocale.
19252         * modules/c-strcase (Dependencies): Likewise.
19253         * modules/mbmemcasecmp (Dependencies): Likewise.
19254         * modules/mbmemcasecoll (Dependencies): Likewise.
19255         * modules/mbrtowc (Dependencies): Likewise.
19256         * modules/mbscasecmp (Dependencies): Likewise.
19257         * modules/mbscasestr (Dependencies): Likewise.
19258         * modules/mbschr (Dependencies): Likewise.
19259         * modules/mbscspn (Dependencies): Likewise.
19260         * modules/mbsinit (Dependencies): Likewise.
19261         * modules/mbsncasecmp (Dependencies): Likewise.
19262         * modules/mbsnrtowcs (Dependencies): Likewise.
19263         * modules/mbspbrk (Dependencies): Likewise.
19264         * modules/mbspcasecmp (Dependencies): Likewise.
19265         * modules/mbsrchr (Dependencies): Likewise.
19266         * modules/mbsrtowcs (Dependencies): Likewise.
19267         * modules/mbsspn (Dependencies): Likewise.
19268         * modules/mbsstr (Dependencies): Likewise.
19269         * modules/nl_langinfo (Dependencies): Likewise.
19270         * modules/quotearg (Dependencies): Likewise.
19271         * modules/unicase/locale-language (Dependencies): Likewise.
19272         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19273         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19274         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19275         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19276         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19277         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19278         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19279         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19280         * modules/vasnprintf-posix (Dependencies): Likewise.
19281         * modules/wcrtomb (Dependencies): Likewise.
19282         * modules/wcsnrtombs (Dependencies): Likewise.
19283         * modules/wcsrtombs (Dependencies): Likewise.
19284
19285 2011-02-12  Bruno Haible  <bruno@clisp.org>
19286
19287         setlocale: Workaround native Windows bug.
19288         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19289         succeeds but sets LC_CTYPE to "C", report a failure.
19290         * tests/test-setlocale2.sh: New file.
19291         * tests/test-setlocale2.c: New file.
19292         * modules/setlocale-tests (Files): Add the new files.
19293         (Makefile.am): Enable test-setlocale2.sh test.
19294         * doc/posix-functions/setlocale.texi: Mention workaround.
19295
19296 2011-02-11  Bruno Haible  <bruno@clisp.org>
19297
19298         Tests for module 'setlocale'.
19299         * modules/setlocale-tests: New file.
19300         * tests/test-setlocale1.sh: New file.
19301         * tests/test-setlocale1.c: New file.
19302
19303         New module 'setlocale'.
19304         * lib/locale.in.h (setlocale): New declaration.
19305         * lib/setlocale.c: New file, based on
19306         gettext/gettext-runtime/intl/setlocale.c.
19307         * m4/setlocale.m4: New file.
19308         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19309         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19310         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19311         REPLACE_SETLOCALE.
19312         * modules/setlocale: New file.
19313         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19314         * doc/posix-functions/setlocale.texi: Mention the new module.
19315
19316 2011-02-11  Bruno Haible  <bruno@clisp.org>
19317
19318         Prepare for locale dependent tests on mingw.
19319         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19320         because it has the wrong locale encoding.
19321         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19322         French_France.1252 instead of "fr".
19323         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19324         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19325         because it has the wrong locale encoding.
19326         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19327         native Windows, try Turkish_Turkey.65001.
19328         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19329         Chinese_China.54936.
19330
19331         Prepare for locale dependent tests on mingw.
19332         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19333         differently.
19334         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19335         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19336         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19337         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19338
19339 2011-02-11  Eric Blake  <eblake@redhat.com>
19340
19341         strptime: avoid compiler warnings
19342         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19343         compiler warnings about dead code.
19344         Reported by Daniel P. Berrange.
19345
19346 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19347
19348         doc: update users.txt
19349         * users.txt: Add rcs.
19350
19351 2011-02-10  John W. Eaton  <jwe@gnu.org>
19352
19353         doc: update users.txt
19354         * users.txt: Add octave.
19355
19356 2011-02-10  Jim Meyering  <meyering@redhat.com>
19357
19358         doc: update users.txt
19359         * users.txt: Add iwhd.
19360
19361 2011-02-09  Bruno Haible  <bruno@clisp.org>
19362
19363         gnulib-tool: Make copyright notice adjustment more robust.
19364         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19365         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19366         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19367         License".
19368         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19369
19370 2011-02-06  Bruno Haible  <bruno@clisp.org>
19371
19372         New module 'towctrans'.
19373         * modules/towctrans: New file.
19374         * lib/wctype.in.h (towctrans): New declaration.
19375         * lib/towctrans.c: New file.
19376         * lib/towctrans-impl.h: New file.
19377         * m4/towctrans.m4: New file.
19378         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19379         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19380         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19381         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19382         * doc/posix-functions/towctrans.texi: Mention the new module.
19383
19384 2011-02-06  Bruno Haible  <bruno@clisp.org>
19385
19386         New module 'wctrans'.
19387         * modules/wctrans: New file.
19388         * lib/wctype.in.h (wctrans): New declaration.
19389         * lib/wctrans.c: New file.
19390         * lib/wctrans-impl.h: New file.
19391         * m4/wctrans.m4: New file.
19392         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19393         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19394         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19395         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19396         * doc/posix-functions/wctrans.texi: Mention the new module.
19397
19398 2011-02-06  Bruno Haible  <bruno@clisp.org>
19399
19400         New module 'iswctype'.
19401         * modules/iswctype: New file.
19402         * lib/wctype.in.h (iswctype): New declaration.
19403         * lib/iswctype.c: New file.
19404         * lib/iswctype-impl.h: New file.
19405         * m4/iswctype.m4: New file.
19406         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19407         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19408         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19409         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19410         * doc/posix-functions/iswctype.texi: Mention the new module and the
19411         HP-UX 11.00 problem.
19412
19413 2011-02-06  Bruno Haible  <bruno@clisp.org>
19414
19415         New module 'wctype'.
19416         * modules/wctype: Change to represent the wctype() substitute.
19417         * lib/wctype.in.h (wctype): New declaration.
19418         * lib/wctype.c: New file.
19419         * lib/wctype-impl.h: New file.
19420         * m4/wctype.m4: New file.
19421         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19422         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19423         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19424         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19425         * doc/posix-functions/wctype.texi: Mention the new module and the
19426         HP-UX 11.00 problem.
19427
19428 2011-02-06  Bruno Haible  <bruno@clisp.org>
19429
19430         wctype-h: Ensure wctype_t and wctrans_t are defined.
19431         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19432         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19433         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19434         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19435         HAVE_WCTRANS_T.
19436         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19437
19438 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19439
19440         flock: fix license typo
19441
19442         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19443         omitted.
19444
19445 2011-02-08  Bruno Haible  <bruno@clisp.org>
19446
19447         Split large sed scripts, for HP-UX sed.
19448         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19449         to avoid HP-UX limit of 99 commands, in the near future.
19450         * modules/stdlib (Makefile.am): Likewise.
19451         * modules/unistd (Makefile.am): Likewise.
19452         * modules/wchar (Makefile.am): Likewise.
19453         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19454         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19455         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19456
19457 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19458             Bruno Haible  <bruno@clisp.org>
19459
19460         stdlib: improve random_r modularization
19461         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19462         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19463         you also need the random_r module to get this material right.
19464         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19465         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19466         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19467
19468 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19469
19470         stdlib: don't depend on stdint
19471         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19472         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19473         be independent of whether stdint.h is needed.
19474         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19475         here, instead of ...
19476         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19477         struct random_data should be using the random_r module, not just
19478         the stdlib module (which wouldn't make sense: what package needs
19479         just struct random_data without also needing random_r?).
19480         * modules/stdlib (Depends-on): Remove stdint.
19481
19482         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19483         See the thread rooted at
19484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19485         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19486         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19487         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19488         __VMS)); previously it was always included (via fcntl--.h).
19489         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19490         hand; this is good enough for load averages.  Also, do not use
19491         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19492         flags directly if available and don't bother otherwise.  (Packages
19493         that need the extra reliability should use the modules that define
19494         these flags on older platforms that lack them.)
19495         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19496         fcntl-safer.
19497
19498 2011-02-08  Jim Meyering  <meyering@redhat.com>
19499
19500         di-set.h, ino-map.h: add multiple-inclusion guard
19501         Technically, the guard is required only for ino-map.h, due to its
19502         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19503         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19504         * lib/ino-map.h: Likewise.
19505
19506 2011-02-06  Bruno Haible  <bruno@clisp.org>
19507
19508         iswblank: Ensure declaration on glibc systems.
19509         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19510         * modules/iswblank (Dependencies): Add 'extensions'.
19511         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19512
19513 2011-02-06  Bruno Haible  <bruno@clisp.org>
19514
19515         New module 'iswblank'.
19516         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19517         * modules/iswblank: New file.
19518         * modules/wctype-h (Files): Remove lib/iswblank.c.
19519         (Makefile.am): Substitute GNULIB_ISWBLANK.
19520         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19521         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19522         (gl_WCTYPE_H_DEFAULTS): New macro.
19523         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19524         * modules/iswblank-tests: New file.
19525         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19526         * tests/test-wctype-h.c (main): Remove iswblank tests.
19527         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19528         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19529         of 'wctype-h'.
19530         * NEWS: Mention the change.
19531         * modules/mbchar (Depends-on): Add iswblank.
19532
19533 2011-02-08  Bruno Haible  <bruno@clisp.org>
19534
19535         di-set tests: Refactor.
19536         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19537         unnecessary includes.
19538         (ASSERT): Remove macro.
19539         (main): Make C90 compliant by avoiding variable declaration after
19540         statement.
19541         * modules/di-set-tests (Files): Add tests/macros.h.
19542
19543 2011-02-08  Bruno Haible  <bruno@clisp.org>
19544
19545         ino-map tests: Refactor.
19546         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19547         unnecessary includes.
19548         (ASSERT): Remove macro.
19549         (main): Make C90 compliant by avoiding variable declaration after
19550         statement.
19551         * modules/ino-map-tests (Files): Add tests/macros.h.
19552
19553 2011-02-08  Jim Meyering  <meyering@redhat.com>
19554
19555         di-set: add "const" to a cast
19556         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19557         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19558
19559 2011-02-06  Bruno Haible  <bruno@clisp.org>
19560
19561         Rename module 'wctype' to 'wctype-h'.
19562         * modules/wctype-h: Renamed from modules/wctype.
19563         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19564         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19565         (Files, Depends-on, Makefile.am): Update.
19566         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19567         (Files, Makefile.am): Update.
19568         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19569         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19570         * doc/posix-headers/wctype.texi: Update.
19571         * doc/posix-functions/iswalnum.texi: Update.
19572         * doc/posix-functions/iswalpha.texi: Update.
19573         * doc/posix-functions/iswblank.texi: Update.
19574         * doc/posix-functions/iswcntrl.texi: Update.
19575         * doc/posix-functions/iswdigit.texi: Update.
19576         * doc/posix-functions/iswgraph.texi: Update.
19577         * doc/posix-functions/iswlower.texi: Update.
19578         * doc/posix-functions/iswprint.texi: Update.
19579         * doc/posix-functions/iswpunct.texi: Update.
19580         * doc/posix-functions/iswspace.texi: Update.
19581         * doc/posix-functions/iswupper.texi: Update.
19582         * doc/posix-functions/iswxdigit.texi: Update.
19583         * doc/posix-functions/towlower.texi: Update.
19584         * doc/posix-functions/towupper.texi: Update.
19585         * NEWS: Mention the change.
19586         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19587         * modules/mbchar (Dependencies): Likewise.
19588         * modules/mbswidth (Dependencies): Likewise.
19589         * modules/quotearg (Dependencies): Likewise.
19590         * modules/regex (Dependencies): Likewise.
19591         * modules/wcscasecmp (Dependencies): Likewise.
19592         * modules/wcsncasecmp (Dependencies): Likewise.
19593         * modules/wcwidth (Dependencies): Likewise.
19594
19595 2011-02-06  Bruno Haible  <bruno@clisp.org>
19596
19597         New module 'wcswidth'.
19598         * modules/wcswidth: New file.
19599         * lib/wchar.in.h (wcswidth): New declaration.
19600         * lib/wcswidth.c: New file.
19601         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19602         * m4/wcswidth.m4: New file.
19603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19605         REPLACE_WCSWIDTH.
19606         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19607         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19608         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19609         * doc/posix-functions/wcswidth.texi: Mention the new module.
19610
19611 2011-02-06  Bruno Haible  <bruno@clisp.org>
19612
19613         New module 'wcstok'.
19614         * modules/wcstok: New file.
19615         * lib/wchar.in.h (wcstok): New declaration.
19616         * lib/wcstok.c: New file.
19617         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19618         * m4/wcstok.m4: New file.
19619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19621         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19622         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19623         * doc/posix-functions/wcstok.texi: Mention the new module.
19624
19625 2011-02-06  Bruno Haible  <bruno@clisp.org>
19626
19627         New module 'wcsstr'.
19628         * modules/wcsstr: New file.
19629         * lib/wchar.in.h (wcsstr): New declaration.
19630         * lib/wcsstr.c: New file.
19631         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19632         * m4/wcsstr.m4: New file.
19633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19635         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19636         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19637         * doc/posix-functions/wcsstr.texi: Mention the new module.
19638
19639 2011-02-06  Bruno Haible  <bruno@clisp.org>
19640
19641         New module 'wcspbrk'.
19642         * modules/wcspbrk: New file.
19643         * lib/wchar.in.h (wcspbrk): New declaration.
19644         * lib/wcspbrk.c: New file.
19645         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19646         * m4/wcspbrk.m4: New file.
19647         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19648         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19649         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19650         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19651         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19652
19653 2011-02-06  Bruno Haible  <bruno@clisp.org>
19654
19655         New module 'wcsspn'.
19656         * modules/wcsspn: New file.
19657         * lib/wchar.in.h (wcsspn): New declaration.
19658         * lib/wcsspn.c: New file.
19659         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19660         * m4/wcsspn.m4: New file.
19661         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19662         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19663         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19664         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19665         * doc/posix-functions/wcsspn.texi: Mention the new module.
19666
19667 2011-02-06  Bruno Haible  <bruno@clisp.org>
19668
19669         New module 'wcscspn'.
19670         * modules/wcscspn: New file.
19671         * lib/wchar.in.h (wcscspn): New declaration.
19672         * lib/wcscspn.c: New file.
19673         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19674         * m4/wcscspn.m4: New file.
19675         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19676         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19677         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19678         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19679         * doc/posix-functions/wcscspn.texi: Mention the new module.
19680
19681 2011-02-06  Bruno Haible  <bruno@clisp.org>
19682
19683         New module 'wcsrchr'.
19684         * modules/wcsrchr: New file.
19685         * lib/wchar.in.h (wcsrchr): New declaration.
19686         * lib/wcsrchr.c: New file.
19687         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19688         * m4/wcsrchr.m4: New file.
19689         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19690         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19691         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19692         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19693         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19694
19695 2011-02-06  Bruno Haible  <bruno@clisp.org>
19696
19697         New module 'wcschr'.
19698         * modules/wcschr: New file.
19699         * lib/wchar.in.h (wcschr): New declaration.
19700         * lib/wcschr.c: New file.
19701         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19702         * m4/wcschr.m4: New file.
19703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19705         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19706         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19707         * doc/posix-functions/wcschr.texi: Mention the new module.
19708
19709 2011-02-06  Bruno Haible  <bruno@clisp.org>
19710
19711         New module 'wcsdup'.
19712         * modules/wcsdup: New file.
19713         * lib/wchar.in.h (wcsdup): New declaration.
19714         * lib/wcsdup.c: New file.
19715         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19716         * m4/wcsdup.m4: New file.
19717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19720         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19721         * doc/posix-functions/wcsdup.texi: Mention the new module.
19722
19723 2011-02-06  Bruno Haible  <bruno@clisp.org>
19724
19725         New module 'wcsxfrm'.
19726         * modules/wcsxfrm: New file.
19727         * lib/wchar.in.h (wcsxfrm): New declaration.
19728         * lib/wcsxfrm.c: New file.
19729         * lib/wcsxfrm-impl.h: New file.
19730         * m4/wcsxfrm.m4: New file.
19731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19733         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19734         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19735         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19736
19737 2011-02-06  Bruno Haible  <bruno@clisp.org>
19738
19739         New module 'wcscoll'.
19740         * modules/wcscoll: New file.
19741         * lib/wchar.in.h (wcscoll): New declaration.
19742         * lib/wcscoll.c: New file.
19743         * lib/wcscoll-impl.h: New file.
19744         * m4/wcscoll.m4: New file.
19745         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19746         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19747         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19748         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19749         * doc/posix-functions/wcscoll.texi: Mention the new module.
19750
19751 2011-02-06  Bruno Haible  <bruno@clisp.org>
19752
19753         New module 'wcsncasecmp'.
19754         * modules/wcsncasecmp: New file.
19755         * lib/wchar.in.h (wcsncasecmp): New declaration.
19756         * lib/wcsncasecmp.c: New file.
19757         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19758         * m4/wcsncasecmp.m4: New file.
19759         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19760         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19762         HAVE_WCSNCASECMP.
19763         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19764         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19765
19766 2011-02-06  Bruno Haible  <bruno@clisp.org>
19767
19768         New module 'wcscasecmp'.
19769         * modules/wcscasecmp: New file.
19770         * lib/wchar.in.h (wcscasecmp): New declaration.
19771         * lib/wcscasecmp.c: New file.
19772         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19773         * m4/wcscasecmp.m4: New file.
19774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19777         HAVE_WCSCASECMP.
19778         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19779         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19780
19781 2011-02-05  Bruno Haible  <bruno@clisp.org>
19782
19783         New module 'wcsncmp'.
19784         * modules/wcsncmp: New file.
19785         * lib/wchar.in.h (wcsncmp): New declaration.
19786         * lib/wcsncmp.c: New file.
19787         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19788         * m4/wcsncmp.m4: New file.
19789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19791         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19792         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19793         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19794
19795 2011-02-05  Bruno Haible  <bruno@clisp.org>
19796
19797         New module 'wcscmp'.
19798         * modules/wcscmp: New file.
19799         * lib/wchar.in.h (wcscmp): New declaration.
19800         * lib/wcscmp.c: New file.
19801         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19802         * m4/wcscmp.m4: New file.
19803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19805         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19806         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19807         * doc/posix-functions/wcscmp.texi: Mention the new module.
19808
19809 2011-02-05  Bruno Haible  <bruno@clisp.org>
19810
19811         New module 'wcsncat'.
19812         * modules/wcsncat: New file.
19813         * lib/wchar.in.h (wcsncat): New declaration.
19814         * lib/wcsncat.c: New file.
19815         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19816         * m4/wcsncat.m4: New file.
19817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19819         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19820         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19821         * doc/posix-functions/wcsncat.texi: Mention the new module.
19822
19823 2011-02-05  Bruno Haible  <bruno@clisp.org>
19824
19825         New module 'wcscat'.
19826         * modules/wcscat: New file.
19827         * lib/wchar.in.h (wcscat): New declaration.
19828         * lib/wcscat.c: New file.
19829         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19830         * m4/wcscat.m4: New file.
19831         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19832         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19833         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19834         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19835         * doc/posix-functions/wcscat.texi: Mention the new module.
19836
19837 2011-02-05  Bruno Haible  <bruno@clisp.org>
19838
19839         New module 'wcpncpy'.
19840         * modules/wcpncpy: New file.
19841         * lib/wchar.in.h (wcpncpy): New declaration.
19842         * lib/wcpncpy.c: New file.
19843         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19844         * m4/wcpncpy.m4: New file.
19845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19847         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19848         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19849         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19850
19851 2011-02-05  Bruno Haible  <bruno@clisp.org>
19852
19853         New module 'wcsncpy'.
19854         * modules/wcsncpy: New file.
19855         * lib/wchar.in.h (wcsncpy): New declaration.
19856         * lib/wcsncpy.c: New file.
19857         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19858         * m4/wcsncpy.m4: New file.
19859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19862         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19863         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19864
19865 2011-02-05  Bruno Haible  <bruno@clisp.org>
19866
19867         New module 'wcpcpy'.
19868         * modules/wcpcpy: New file.
19869         * lib/wchar.in.h (wcpcpy): New declaration.
19870         * lib/wcpcpy.c: New file.
19871         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19872         * m4/wcpcpy.m4: New file.
19873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19875         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19876         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19877         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19878
19879 2011-02-05  Bruno Haible  <bruno@clisp.org>
19880
19881         New module 'wcscpy'.
19882         * modules/wcscpy: New file.
19883         * lib/wchar.in.h (wcscpy): New declaration.
19884         * lib/wcscpy.c: New file.
19885         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19886         * m4/wcscpy.m4: New file.
19887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19890         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19891         * doc/posix-functions/wcscpy.texi: Mention the new module.
19892
19893 2011-02-05  Bruno Haible  <bruno@clisp.org>
19894
19895         New module 'wcsnlen'.
19896         * modules/wcsnlen: New file.
19897         * lib/wchar.in.h (wcsnlen): New declaration.
19898         * lib/wcsnlen.c: New file.
19899         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19900         * m4/wcsnlen.m4: New file.
19901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19904         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19905         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19906
19907 2011-02-05  Bruno Haible  <bruno@clisp.org>
19908
19909         New module 'wcslen'.
19910         * modules/wcslen: New file.
19911         * lib/wchar.in.h (wcslen): New declaration.
19912         * lib/wcslen.c: New file.
19913         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19914         * m4/wcslen.m4: New file.
19915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19918         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19919         * doc/posix-functions/wcslen.texi: Mention the new module.
19920
19921 2011-02-05  Bruno Haible  <bruno@clisp.org>
19922
19923         New module 'wmemset'.
19924         * modules/wmemset: New file.
19925         * lib/wchar.in.h (wmemset): New declaration.
19926         * lib/wmemset.c: New file.
19927         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19928         * m4/wmemset.m4: New file.
19929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19931         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19932         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19933         * doc/posix-functions/wmemset.texi: Mention the new module.
19934
19935 2011-02-05  Bruno Haible  <bruno@clisp.org>
19936
19937         New module 'wmemmove'.
19938         * modules/wmemmove: New file.
19939         * lib/wchar.in.h (wmemmove): New declaration.
19940         * lib/wmemmove.c: New file.
19941         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19942         * m4/wmemmove.m4: New file.
19943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19945         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19946         HAVE_WMEMMOVE.
19947         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19948         * doc/posix-functions/wmemmove.texi: Mention the new module.
19949
19950 2011-02-05  Bruno Haible  <bruno@clisp.org>
19951
19952         New module 'wmemcpy'.
19953         * modules/wmemcpy: New file.
19954         * lib/wchar.in.h (wmemcpy): New declaration.
19955         * lib/wmemcpy.c: New file.
19956         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19957         * m4/wmemcpy.m4: New file.
19958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19960         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19961         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19962         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19963
19964 2011-02-05  Bruno Haible  <bruno@clisp.org>
19965
19966         New module 'wmemcmp'.
19967         * modules/wmemcmp: New file.
19968         * lib/wchar.in.h (wmemcmp): New declaration.
19969         * lib/wmemcmp.c: New file.
19970         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19971         * m4/wmemcmp.m4: New file.
19972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19974         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19975         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19976         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19977
19978 2011-02-07  Jim Meyering  <meyering@redhat.com>
19979
19980         di-set, ino-map: new modules, from coreutils
19981         * lib/di-set.c: New file.
19982         * lib/di-set.h: Likewise.
19983         * lib/ino-map.c: Likewise.
19984         * lib/ino-map.h: Likewise.
19985         * modules/di-set: Likewise.
19986         * modules/di-set-tests: Likewise.
19987         * modules/ino-map: Likewise.
19988         * modules/ino-map-tests: Likewise.
19989         * tests/test-di-set.c: Likewise.
19990         * tests/test-ino-map.c: Likewise.
19991
19992 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19993
19994         getloadavg: merge minor changes from Emacs
19995
19996         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19997         (getloadavg): Use memset, not bzero.
19998
19999         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20000         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20001         clash (bug#86).
20002
20003 2010-11-14  Bruno Haible  <bruno@clisp.org>
20004
20005         Allow multiple gnulib generated replacements to coexist.
20006         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20007         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20008         * lib/langinfo.in.h (nl_item): Likewise.
20009         * lib/math.in.h (_NaN, NAN): Likewise.
20010         * lib/netdb.in.h (struct addrinfo): Likewise.
20011         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20012         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20013         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20014         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20015         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20016         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20017         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20018         pthread_mutexattr_init, pthread_mutexattr_settype,
20019         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20020         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20021         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20022         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20023         * lib/sched.in.h (struct sched_param): Likewise.
20024         * lib/se-selinux.in.h (security_class_t, security_context_t,
20025         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20026         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20027         lsetfilecon, fsetfilecon, security_check_context,
20028         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20029         Likewise.
20030         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20031         Likewise.
20032         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20033         _gl_function_taking_int_returning_void_t, union sigval,
20034         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20035         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20036         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20037         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20038         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20039         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20040         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20041         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20042         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20043         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20044         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20045         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20046         socklen_t, rpl_fd_isset): Likewise.
20047         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20048         * lib/sys_time.in.h (struct timeval): Likewise.
20049         * lib/sys_times.in.h (struct tms): Likewise.
20050         * lib/sys_utsname.in.h (struct utsname):
20051         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20052         * lib/unistd.in.h (getpagesize): Likewise.
20053         * lib/wchar.in.h (mbstate_t): Likewise.
20054         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20055         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20056         towlower, towupper): Likewise.
20057         Reported by Sam Steingold <sds@gnu.org>.
20058
20059 2011-02-05  Eric Blake  <eblake@redhat.com>
20060
20061         unsetenv: work around Haiku issues
20062         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20063         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20064
20065 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20066
20067         libposix: avoid calling error() within libposix
20068         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20069         is defined.
20070
20071 2011-02-05  Eric Blake  <eblake@redhat.com>
20072
20073         strerror_r-posix: port to cygwin
20074         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20075         implementation.
20076         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20077         * tests/test-strerror_r.c (main): Fix test.
20078         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20079         issue.
20080
20081 2011-02-05  Bruno Haible  <bruno@clisp.org>
20082
20083         New module 'wmemchr'.
20084         * modules/wmemchr: New file.
20085         * lib/wchar.in.h (wmemchr): New declaration.
20086         * lib/wmemchr.c: New file.
20087         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20088         * m4/wmemchr.m4: New file.
20089         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20090         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20091         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20092         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20093         * doc/posix-functions/wmemchr.texi: Mention the new module.
20094
20095 2011-02-04  Eric Blake  <eblake@redhat.com>
20096
20097         fdopendir: detect FreeBSD bug
20098         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20099         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20100
20101 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20102
20103         stdbool: do not define HAVE_STDBOOL_H
20104         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20105         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20106         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20107         imported from the latest Autoconf git.  It was motivated by Emacs,
20108         which uses gnulib but does not need HAVE_STDBOOL_H.
20109
20110 2011-02-04  Bruno Haible  <bruno@clisp.org>
20111
20112         wcsnrtombs: Prepare for new module wwcsnrtombs.
20113         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20114         * lib/wcsnrtombs.c: Include it.
20115         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20116
20117         wcsrtombs: Prepare for new module wwcsrtombs.
20118         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20119         * lib/wcsrtombs.c: Include it.
20120         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20121
20122         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20123         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20124         * lib/mbsnrtowcs.c: Include it.
20125         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20126
20127         mbsrtowcs: Prepare for new module mbsrtowwcs.
20128         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20129         * lib/mbsrtowcs.c: Include it.
20130         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20131
20132 2011-02-04  Bruno Haible  <bruno@clisp.org>
20133
20134         vasnprintf: Reduce use of malloc for small format strings.
20135         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20136         (arguments): Add room for the first 7 arguments.
20137         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20138         (char_directives, u8_directives, u16_directives, u32_directives): Add
20139         room for the first 7 directives.
20140         * lib/printf-parse.c: Include <string.h>.
20141         (PRINTF_PARSE): Change memory handling code so that it uses the first
20142         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20143         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20144         Reported by Pádraig Brady <P@draigbrady.com>.
20145
20146 2011-01-31  Eric Blake  <eblake@redhat.com>
20147
20148         dup2: work around Haiku bug
20149         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20150         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20151         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20152         * tests/test-dup2.c (main): Enhance test.
20153
20154 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20155
20156         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20157         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20158         declared by eglibc 2.11.2.
20159         * lib/stdio.in.h: Likewise.
20160
20161 2011-01-31  Eric Blake  <eblake@redhat.com>
20162
20163         ignore-value: add missing test dependency
20164         * tests/test-ignore-value.c: Revert previous change; stdio.h
20165         provides off_t.
20166         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20167
20168 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20169
20170         mktime: clarify long_int width checking
20171         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20172         the top level, to make it clearer that the assumption about
20173         long_int width is being checked.  See
20174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20175
20176 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20177
20178         ignore-value: Fix self-test.
20179         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20180
20181 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20182
20183         TYPE_MAXIMUM: avoid theoretically undefined behavior
20184         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20185         negative number, which the C Standard says has undefined behavior.
20186         In practice this is not a problem, but might as well do it by the book.
20187         Reported by Rich Felker and Eric Blake; see
20188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20189         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20190         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20191         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20192         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20193         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20194         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20195
20196         mktime: #undef mktime before #defining it
20197         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20198
20199         mktime: systematically normalize tm_isdst comparisons
20200         * lib/mktime.c (isdst_differ): New function.
20201         (__mktime_internal): Use it systematically for all isdst comparisons.
20202         This completes the fix for libc BZ #6723, and removes the need for
20203         normalizing tm_isdst.  See
20204         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20205         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20206
20207         mktime: fix some integer overflow issues and sidestep the rest
20208
20209         This was prompted by a bug report by Benjamin Lindner for MinGW
20210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20211         His bug is due to signed integer overflow (0 - INT_MIN), and I
20212         I scanned through mktime.c looking for other integer overflow
20213         problems, fixing all the bugs I found.
20214
20215         Although the C Standard says the resulting code is still not safe
20216         in the presence of integer overflow, in practice it should be good
20217         enough for all real-world two's-complement implementations, except
20218         for debugging environments that deliberately trap on integer
20219         overflow (e.g., gcc -ftrapv).
20220
20221         * lib/mktime.c (WRAPV): New macro.
20222         (SHR): Also check that long_int and time_t shift right in the
20223         usual way, before using the fast-but-unportable method.
20224         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20225         used.  The code already assumed two's complement, so there's
20226         no need to test for alternatives.  All uses removed.
20227         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20228         the C standard.  Problem reported by Rich Felker in
20229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20230         (twos_complement_arithmetic): Also check long_int and time_t.
20231         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20232         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20233         (__mktime_internal): Avoid integer overflow with unary subtraction
20234         in two instances where -1 - X is an adequate replacement for -X,
20235         since the calculations are approximate.
20236
20237 2011-01-29  Eric Blake  <eblake@redhat.com>
20238
20239         mktime: avoid infinite loop
20240         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20241         type; behavior is still undefined but portable to all known targets.
20242         Reported by Rich Felker.
20243
20244 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20245
20246         rename, unlink, same-inode: Relicense.
20247         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20248         * modules/unlink (License): Likewise.
20249         * modules/same-inode (License): Likewise.
20250
20251 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20252
20253         mktime: avoid problems on NetBSD 5 / i386
20254         * lib/mktime.c (long_int): New type.  This works around a problem
20255         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20256         but time_t is 64 bits, and where I expect the existing code is
20257         wrong in some cases.
20258         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20259         (ydhms_diff): Bring back the compile-time check for wide-enough
20260         year and yday.
20261
20262         mktime: fix misspelling in comment
20263         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20264         This merges all recent glibc changes of importance.
20265
20266 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20267
20268         move-if-change: cope with concurrent mv of identical file.
20269         * build-aux/move-if-change (CMPPROG): Accept environment
20270         variable as an override for `cmp'.
20271         (usage): Document CMPPROG.
20272         Adjust comparison to drop stdout.  Cope with failure of mv if
20273         the target file exists and is identical to the source, for
20274         parallel builds.
20275         Report from H.J. Lu against binutils in PR binutils/12283.
20276
20277 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20278
20279         * users.txt: Mention sharutils.
20280
20281 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20282
20283         * users.txt: Mention OATH Toolkit.
20284
20285 2011-01-27  Bruno Haible  <bruno@clisp.org>
20286
20287         Prepare for supporting FreeBSD 10.
20288         * build-aux/config.libpath: Remove handling of freebsd1*.
20289
20290 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20291
20292         Prepare for supporting FreeBSD 10.
20293         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20294         match FreeBSD 10.0.
20295
20296 2011-01-27  Bruno Haible  <bruno@clisp.org>
20297
20298         vma-iter, get-rusage-as: Add OpenBSD support.
20299         * modules/vma-iter (configure.ac): Test for mquery.
20300         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20301         * lib/vma-iter.c: Include <sys/mman.h>.
20302         (vma_iterate): Add an implementation based on mquery().
20303         * lib/resource-ext.h (get_rusage_as): Update comments.
20304         * lib/get-rusage-as.c: Likewise.
20305         * lib/get-rusage-data.c: Likewise.
20306
20307 2011-01-26  Karl Berry  <karl@gnu.org>
20308
20309         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20310         variables to make it easier to override the makeinfo program used.
20311
20312 2011-01-26  Eric Blake  <eblake@redhat.com>
20313
20314         fcntl: work around Haiku F_DUPFD bugs
20315         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20316         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20317         cloexec bit on duplication.
20318         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20319
20320 2011-01-26  Bruno Haible  <bruno@clisp.org>
20321
20322         Enable memory leak tests on AIX.
20323         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20324         * tests/test-fprintf-posix3.c (main): Likewise.
20325
20326 2011-01-26  Bruno Haible  <bruno@clisp.org>
20327
20328         Tests for module 'get-rusage-data'.
20329         * modules/get-rusage-data-tests: New file.
20330         * tests/test-get-rusage-data.c: New file.
20331
20332         New module 'get-rusage-data'.
20333         * lib/resource-ext.h (get_rusage_data): New declaration.
20334         * lib/get-rusage-data.c: New file.
20335         * modules/get-rusage-data: New file.
20336
20337 2011-01-25  Bruno Haible  <bruno@clisp.org>
20338
20339         get-rusage-as: Allow for easier testing.
20340         * lib/resource-ext.h (get_rusage_as): Add comment.
20341         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20342         (main): New function for interactive testing.
20343
20344 2011-01-25  Bruno Haible  <bruno@clisp.org>
20345
20346         vma-iter: Treat Haiku like BeOS.
20347         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20348         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20349
20350 2011-01-25  Eric Blake  <eblake@redhat.com>
20351
20352         c-stack: fix regression on cygwin when libsigsegv is present
20353         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20354
20355 2011-01-24  Bruno Haible  <bruno@clisp.org>
20356
20357         vma-iter: Avoid empty intervals.
20358         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20359         on an empty interval.
20360
20361 2011-01-24  Jim Meyering  <meyering@redhat.com>
20362
20363         u64: remove unnecessary #include
20364         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20365
20366 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20367
20368         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20369         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20370
20371 2011-01-23  Bruno Haible  <bruno@clisp.org>
20372
20373         New module 'vma-iter'.
20374         * lib/vma-iter.h: New file.
20375         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20376         * modules/vma-iter: New file.
20377         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20378         for get_rusage_as_via_iterator.
20379         (vma_iterate_callback): New function.
20380         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20381         * modules/get-rusage-as (Depends-on): Add vma-iter.
20382
20383 2011-01-23  Bruno Haible  <bruno@clisp.org>
20384
20385         uninorm: Tweak includes.
20386         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20387         Reported by Jim Meyering.
20388
20389 2011-01-23  Bruno Haible  <bruno@clisp.org>
20390
20391         get-rusage-as: Improve on NetBSD.
20392         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20393         /proc, like on FreeBSD.
20394
20395 2011-01-23  Jim Meyering  <meyering@redhat.com>
20396
20397         xreadlink.h: remove unnecessary #include
20398         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20399
20400         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20401         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20402
20403 2011-01-23  Bruno Haible  <bruno@clisp.org>
20404
20405         get-rusage-as: Fix bug.
20406         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20407         original limit when aborting the first loop.
20408
20409 2011-01-23  Bruno Haible  <bruno@clisp.org>
20410
20411         wctype: Ensure valid C syntax.
20412         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20413         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20414
20415 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20416
20417         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20419         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20420         as they are needed only for configure's test case.
20421         This removes two unnecessary symbols from config.h.
20422
20423         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20424         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20425         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20426         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20427         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20428         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20429         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20430         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20431         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20432         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20433         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20434         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20435         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20436         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20437         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20438         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20439         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20440         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20441
20442 2011-01-21  Eric Blake  <eblake@redhat.com>
20443
20444         maintainer-makefile: work with older git for submodule check
20445         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20446         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20447         Reported by Matthias Bolte.
20448
20449         bootstrap: minor portability fixes
20450         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20451         (usage): Omit leading capital and trailing . on help phrases, per
20452         GNU Coding Standards.
20453         (check_versions, top level): Prefix messages with script name.
20454
20455 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20456
20457         bootstrap: support --no-git option
20458         * build-aux/bootstrap: Add --no-git option, to be used when
20459         --gnulib-srcdir points to the exact desired checkout.
20460
20461 2011-01-21  Eric Blake  <eblake@redhat.com>
20462
20463         strerror_r-posix: work with glibc 2.13
20464         * lib/strerror_r.c (strerror_r): Fix return type.
20465
20466 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20467             Bruno Haible  <bruno@clisp.org>
20468
20469         uN_strstr: New unit tests.
20470         * modules/unistr/u8-strstr-tests: New file.
20471         * modules/unistr/u16-strstr-tests: New file.
20472         * modules/unistr/u32-strstr-tests: New file.
20473         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20474         * tests/unistr/test-u8-strstr.c: New file.
20475         * tests/unistr/test-u16-strstr.c: New file.
20476         * tests/unistr/test-u32-strstr.c: New file.
20477
20478 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20479             Bruno Haible  <bruno@clisp.org>
20480
20481         Make uN_strstr functions O(n) worst-case.
20482         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20483         16-bit and 32-bit unit cases, use the unibyte algorithm from
20484         lib/mbsstr.c.
20485         * lib/unistr/u8-strstr.c: Include <string.h>.
20486         (UNIT_IS_UINT8_T): New macro.
20487         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20488         (U_STRLEN, U_STRNLEN): New macros.
20489         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20490         (U_STRLEN, U_STRNLEN): New macros.
20491         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20492         (configure.ac): Update required libunistring version.
20493         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20494         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20495         malloca.
20496         (configure.ac): Update required libunistring version.
20497         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20498         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20499         malloca.
20500         (configure.ac): Update required libunistring version.
20501
20502 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20503             Bruno Haible  <bruno@clisp.org>
20504
20505         Prepare for faster uN_strstr functions.
20506         * lib/str-kmp.h: Support definable UNITs.
20507         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20508         needle_len argument.
20509         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20510         * lib/mbscasestr.c (mbscasestr): Likewise.
20511
20512 2011-01-21  Pádraig Brady <P@draigBrady.com>
20513
20514         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20515         * tests/test-malloca.c (main): Unset the environment variable
20516         to greatly speed up the test.
20517         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20518         * modules/malloca-tests: Depend on unsetenv.
20519
20520 2011-01-21  Pádraig Brady <P@draigBrady.com>
20521
20522         ignore-value: remove stdint dependency
20523         * lib/ignore-value.h: Remove <stdint.h>
20524         * modules/ignore-value: Remove stdint dependency.
20525
20526 2011-01-21  Jim Meyering  <meyering@redhat.com>
20527
20528         maint.mk: adjust variable name to be consistent with other gl_ vars
20529         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20530         to be lower case.
20531
20532 2011-01-20  Jim Meyering  <meyering@redhat.com>
20533
20534         maint.mk: make "check" depend on public-submodule-commit by default
20535         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20536
20537 2011-01-20  Bruno Haible  <bruno@clisp.org>
20538
20539         mbfile, mbiter: Complete change from 2008-12-21.
20540         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20541         * m4/mbiter.m4 (gl_MBITER): Likewise.
20542
20543 2011-01-20  Jim Meyering  <meyering@redhat.com>
20544
20545         init.sh: insert space between each function name and "()"
20546         * tests/init.sh: Make it a little easier to see that a function's
20547         name is "warn_", and not "warn" when looking at the first part of
20548         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20549
20550 2011-01-20  Jim Meyering  <meyering@redhat.com>
20551
20552         mountlist: clean up code formatting
20553         * lib/mountlist.c (read_file_system_list): Split a long line,
20554         correct bracing style, use NULL in place of "(struct statfs *)0",
20555         don't parenthesize return value, add spaces around "=" and after
20556         ";-in-for-stmt".
20557
20558 2011-01-14  Markus Duft <mduft@gentoo.org>
20559
20560         mountlist: add support for Interix
20561         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20562         Apply statvfs to all entries of /dev/fs.
20563         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20564         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20565
20566 2011-01-20  Jim Meyering  <meyering@redhat.com>
20567
20568         maint.mk: improve the public-submodule-commit rule
20569         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20570         to suppress printing of its commands... unless V=1.
20571         Add git submodule's --quiet option to suppress printing of e.g.,
20572         "Entering gnulib" output.
20573         "cd" into $(srcdir) before running git submodule.
20574
20575 2011-01-20  Bruno Haible  <bruno@clisp.org>
20576
20577         include_next: Fix bug introduced on 2011-01-18.
20578         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20579         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20580         ac_cv_header_... variable if the second argument is not 'check'.
20581         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20582         gl_NEXT_HEADERS_INTERNAL.
20583
20584 2011-01-20  Bruno Haible  <bruno@clisp.org>
20585
20586         Allow the user to avoid the GNULIB_TEST_* macros.
20587         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20588         Suggested by Paul Eggert.
20589
20590 2011-01-14  Jim Meyering  <meyering@redhat.com>
20591
20592         bootstrap: avoid failure when there is no .gitmodules file
20593         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20594         has been assigned to, even when its value is the empty string.
20595         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20596         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20597         Reported by John W. Eaton <jwe@gnu.org>.
20598
20599 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20600
20601         assume <ctype.h>, ..., <time.h> exist
20602         For years gnulib has been assuming the existence of the headers
20603         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20604         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20605         them, since they don't appear to be needed.
20606         * README (Portability guidelines): Document this.
20607         * lib/flock.c: Assume <fcntl.h> exists.
20608         * lib/regex_internal.h: Assume <locale.h> exists.
20609         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20610         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20611         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20612         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20613         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20614         * m4/regex.m4 (gl_REGEX): Likewise.
20615         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20616         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20617         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20618         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20619         * tests/test-argp.c: Likewise.
20620         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20621
20622         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20623         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20624         AA_APPLE_UNIVERSAL_BUILD.  See
20625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20626         * NEWS: Document this.
20627
20628 2011-01-19  Eric Blake  <eblake@redhat.com>
20629
20630         c-stack: assume stack overflow if SA_SIGINFO unsupported
20631         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20632         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20633         sigaction will work.
20634         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20635         behavior match Linux.
20636         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20637
20638         stdbool-tests: accomodate Haiku
20639         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20640
20641         binary-io: fix O_TEXT on Haiku
20642         * modules/binary-io (Depends-on): Add fcntl-h.
20643         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20644         than blindly undefining O_TEXT.
20645         Reported by Scott McCreary.
20646
20647 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20648
20649         include_next: do not check for standard headers like stddef.h
20650
20651         I found this problem when modifying Emacs to use gnulib.
20652         I noticed that it added HAVE_STDDEF_H to config.h, even though
20653         gnulib always assumes <stddef.h> exists as per README and this
20654         symbol is unnecessary.
20655         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20656         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20657         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20658         faster for headers like stddef.h that are known to exist.
20659         (gl_CHECK_NEXT_HEADERS): Use it.
20660         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20661         rather than gl_CHECK_NEXT_HEADERS.
20662         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20663         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20664
20665 2011-01-18  Eric Blake  <eblake@redhat.com>
20666
20667         ansi-c++-opt: skip C++ dependency style if C++ is unused
20668         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20669         tests when we know C++ compilation is not desired.
20670         Reported by Scott McCreary.
20671
20672 2011-01-18  Bruno Haible  <bruno@clisp.org>
20673
20674         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20675         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20676         (main): Perform test also when getrlimit and setrlimit don't exist or
20677         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20678         limiting the address space size using setrlimit, compare the address
20679         space size before and after the the test.
20680         * tests/test-dprintf-posix2.c: Likewise.
20681         * tests/test-fprintf-posix3.sh: Update skip messages.
20682         * tests/test-dprintf-posix2.sh: Likewise.
20683         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20684         * modules/dprintf-posix-tests (Depends-on): Likewise.
20685         Reported by Bruce Korb <bkorb@gnu.org> and
20686         Gary V. Vaughan <gary@gnu.org>.
20687
20688 2011-01-18  Bruno Haible  <bruno@clisp.org>
20689
20690         get-rusage-as: Improvement for Cygwin.
20691         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20692         areas that are merely reserved.
20693
20694 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20695
20696         strftime: remove dependencies on multibyte modules
20697
20698         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20699         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20700         only if __osf__ is defined, and I suspect OSF doesn't need these
20701         other modules.  If my guess is wrong, we'll need to come up with a
20702         variant of strftime that doesn't need the multibyte modules.
20703
20704         I discovered this problem when attempting modify Emacs to use the
20705         strftime module.  With the previous gnulib, this caused Emacs to
20706         need 31 new files, ranging from lib/config.charset to
20707         m4/wint_t.m4.  This was overkill and I expect would be offputting
20708         to the Emacs maintainers.  After this change, only 6 new files are
20709         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20710         stdbool.m4, and tm_gmtoff.m4.
20711
20712         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20713         Suggested by Bruno Haible in
20714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20715         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20716         and do not check for wchar.h.
20717         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20718         (Depends-on): Remove mbrlen, mbsinit, wchar.
20719
20720 2011-01-18  Bruno Haible  <bruno@clisp.org>
20721
20722         Tests for module 'get-rusage-as'.
20723         * modules/get-rusage-as-tests: New file.
20724         * tests/test-get-rusage-as.c: New file.
20725
20726         New module 'get-rusage-as'.
20727         * modules/get-rusage-as: New file.
20728         * lib/resource-ext.h: New file.
20729         * lib/get-rusage-as.c: New file.
20730
20731 2011-01-17  Eric Blake  <eblake@redhat.com>
20732
20733         sigaction: relax license from LGPLv3+ to LGPLv2+
20734         * modules/sigaction (License): Relax to LGPLv2+.
20735
20736 2011-01-14  Bruno Haible  <bruno@clisp.org>
20737
20738         filemode: Make function declarations usable in C++ mode.
20739         * lib/filemode.h: Enclose function declarations in extern "C" block.
20740         Reported by John W. Eaton <jwe@gnu.org>.
20741
20742 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20743
20744         save-cwd: no longer include "xgetcwd.h"
20745         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20746         This avoids a compilation failure in projects that use save-cwd
20747         without also using the xgetcwd module.
20748
20749 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20750
20751         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20752         This is so that a program like Emacs, which needs only dtoastr,
20753         does not have to bother with distributing and compiling ftoastr
20754         and ldtoastr.
20755         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20756         * modules/dtoastr, modules/ldtoastr: New files.
20757         * modules/ftoastr: Now works just for 'float'.
20758         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20759         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20760         dtoastr.c, ldtoastr.c.
20761
20762 2011-01-11  Jim Meyering  <meyering@redhat.com>
20763
20764         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20765         There is no need to work around the lack of the fchdir function,
20766         since gnulib can now provide a replacement when required.
20767         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20768         * modules/save-cwd (Depends-on): Add fchdir.
20769
20770 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20771
20772         openat, save-cwd: avoid xmalloc
20773
20774         This removes a direct (but undocumented) dependency of openat on
20775         xalloc, along with an indirect dependency via save-cwd.  It also
20776         removes a dependency of save-cwd on xgetcwd, and thereby
20777         indirectly on xalloc.  This change causes the openat substitute
20778         to fall back on save_cwd when memory is tight, and for save_cwd to
20779         fail instead of dying when memory is tight, but that's good enough.
20780         Problem and initial idea for fix reported by Bastien Roucaries in
20781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20782
20783         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20784         xalloc.h (for xmalloc).
20785         (openat_proc_name): Use malloc, not xmalloc.
20786         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20787         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20788
20789         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20790         This avoids heap allocation for file names whose lengths are in
20791         the range 512..1023, with the upper bound increasing to at most
20792         4031 depending on the platform's PATH_MAX.  (We do not want
20793         pathmax.h here as it might supply a non-constant PATH_MAX.)
20794         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20795         Perhaps they should be moved to malloca.h?
20796         (OPENAT_BUFFER_SIZE): Use them.
20797
20798 2011-01-10  Bruno Haible  <bruno@clisp.org>
20799
20800         doc: Update users.txt.
20801         * users.txt: Add recutils.
20802
20803 2011-01-09  Karl Berry  <karl@gnu.org>
20804
20805         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20806
20807         * doc/configmake.texi: New file.
20808         * doc/gnulib.texi: Include it.
20809         * modules/configmake: Move documentation from here.
20810
20811 2011-01-09  Bruno Haible  <bruno@clisp.org>
20812
20813         Update to Unicode 6.0.0.
20814         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20815         (get_lbp): Update for Unicode 6.0.0.
20816         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20817         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20818         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20819         U+11001, U+11038..U+11046. Remove U+06DE.
20820         (uc_width): Fix bounds of planes.
20821         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20822         lib/uniwidth/width.c.
20823         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20824         trailing whitespace removed.
20825         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20826         without comments, but with the original copyright notice.
20827         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20828         * lib/unicase/ignorable.h: Likewise.
20829         * lib/unicase/tocasefold.h: Likewise.
20830         * lib/unicase/tolower.h: Likewise.
20831         * lib/unicase/totitle.h: Likewise.
20832         * lib/unicase/toupper.h: Likewise.
20833         * lib/unictype/bidi_of.h: Likewise.
20834         * lib/unictype/blocks.h: Likewise.
20835         * lib/unictype/categ_C.h: Likewise.
20836         * lib/unictype/categ_Cn.h: Likewise.
20837         * lib/unictype/categ_L.h: Likewise.
20838         * lib/unictype/categ_Ll.h: Likewise.
20839         * lib/unictype/categ_Lm.h: Likewise.
20840         * lib/unictype/categ_Lo.h: Likewise.
20841         * lib/unictype/categ_Lu.h: Likewise.
20842         * lib/unictype/categ_M.h: Likewise.
20843         * lib/unictype/categ_Mc.h: Likewise.
20844         * lib/unictype/categ_Me.h: Likewise.
20845         * lib/unictype/categ_Mn.h: Likewise.
20846         * lib/unictype/categ_N.h: Likewise.
20847         * lib/unictype/categ_Nd.h: Likewise.
20848         * lib/unictype/categ_No.h: Likewise.
20849         * lib/unictype/categ_P.h: Likewise.
20850         * lib/unictype/categ_Po.h: Likewise.
20851         * lib/unictype/categ_S.h: Likewise.
20852         * lib/unictype/categ_Sc.h: Likewise.
20853         * lib/unictype/categ_Sk.h: Likewise.
20854         * lib/unictype/categ_Sm.h: Likewise.
20855         * lib/unictype/categ_So.h: Likewise.
20856         * lib/unictype/categ_of.h: Likewise.
20857         * lib/unictype/combining.h: Likewise.
20858         * lib/unictype/ctype_alnum.h: Likewise.
20859         * lib/unictype/ctype_alpha.h: Likewise.
20860         * lib/unictype/ctype_graph.h: Likewise.
20861         * lib/unictype/ctype_lower.h: Likewise.
20862         * lib/unictype/ctype_print.h: Likewise.
20863         * lib/unictype/ctype_punct.h: Likewise.
20864         * lib/unictype/ctype_upper.h: Likewise.
20865         * lib/unictype/decdigit.h: Likewise.
20866         * lib/unictype/digit.h: Likewise.
20867         * lib/unictype/numeric.h: Likewise.
20868         * lib/unictype/pr_alphabetic.h: Likewise.
20869         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20870         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20871         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20872         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20873         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20874         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20875         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20876         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20877         * lib/unictype/pr_case_ignorable.h: Likewise.
20878         * lib/unictype/pr_cased.h: Likewise.
20879         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20880         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20881         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20882         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20883         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20884         * lib/unictype/pr_combining.h: Likewise.
20885         * lib/unictype/pr_composite.h: Likewise.
20886         * lib/unictype/pr_currency_symbol.h: Likewise.
20887         * lib/unictype/pr_decimal_digit.h: Likewise.
20888         * lib/unictype/pr_deprecated.h: Likewise.
20889         * lib/unictype/pr_format_control.h: Likewise.
20890         * lib/unictype/pr_grapheme_base.h: Likewise.
20891         * lib/unictype/pr_grapheme_extend.h: Likewise.
20892         * lib/unictype/pr_grapheme_link.h: Likewise.
20893         * lib/unictype/pr_id_continue.h: Likewise.
20894         * lib/unictype/pr_id_start.h: Likewise.
20895         * lib/unictype/pr_ideographic.h: Likewise.
20896         * lib/unictype/pr_lowercase.h: Likewise.
20897         * lib/unictype/pr_math.h: Likewise.
20898         * lib/unictype/pr_numeric.h: Likewise.
20899         * lib/unictype/pr_other_alphabetic.h: Likewise.
20900         * lib/unictype/pr_other_id_continue.h: Likewise.
20901         * lib/unictype/pr_other_math.h: Likewise.
20902         * lib/unictype/pr_punctuation.h: Likewise.
20903         * lib/unictype/pr_sentence_terminal.h: Likewise.
20904         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20905         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20906         * lib/unictype/pr_unified_ideograph.h: Likewise.
20907         * lib/unictype/pr_uppercase.h: Likewise.
20908         * lib/unictype/pr_xid_continue.h: Likewise.
20909         * lib/unictype/pr_xid_start.h: Likewise.
20910         * lib/unictype/scripts.h: Likewise.
20911         * lib/unictype/scripts_byname.gperf: Likewise.
20912         * lib/unictype/sy_java_ident.h: Likewise.
20913         * lib/unigbrk/gbrkprop.h: Likewise.
20914         * lib/unilbrk/lbrkprop1.h: Likewise.
20915         * lib/unilbrk/lbrkprop2.h: Likewise.
20916         * lib/uninorm/decomposition-table2.h: Likewise.
20917         * lib/uniwbrk/wbrkprop.h: Likewise.
20918         * tests/unicase/test-cased.c: Likewise.
20919         * tests/unicase/test-ignorable.c: Likewise.
20920         * tests/unicase/test-uc_tolower.c: Likewise.
20921         * tests/unicase/test-uc_totitle.c: Likewise.
20922         * tests/unicase/test-uc_toupper.c: Likewise.
20923         * tests/unictype/test-categ_C.c: Likewise.
20924         * tests/unictype/test-categ_Cn.c: Likewise.
20925         * tests/unictype/test-categ_L.c: Likewise.
20926         * tests/unictype/test-categ_Ll.c: Likewise.
20927         * tests/unictype/test-categ_Lm.c: Likewise.
20928         * tests/unictype/test-categ_Lo.c: Likewise.
20929         * tests/unictype/test-categ_Lu.c: Likewise.
20930         * tests/unictype/test-categ_M.c: Likewise.
20931         * tests/unictype/test-categ_Mc.c: Likewise.
20932         * tests/unictype/test-categ_Me.c: Likewise.
20933         * tests/unictype/test-categ_Mn.c: Likewise.
20934         * tests/unictype/test-categ_N.c: Likewise.
20935         * tests/unictype/test-categ_Nd.c: Likewise.
20936         * tests/unictype/test-categ_No.c: Likewise.
20937         * tests/unictype/test-categ_P.c: Likewise.
20938         * tests/unictype/test-categ_Po.c: Likewise.
20939         * tests/unictype/test-categ_S.c: Likewise.
20940         * tests/unictype/test-categ_Sc.c: Likewise.
20941         * tests/unictype/test-categ_Sk.c: Likewise.
20942         * tests/unictype/test-categ_Sm.c: Likewise.
20943         * tests/unictype/test-categ_So.c: Likewise.
20944         * tests/unictype/test-ctype_alnum.c: Likewise.
20945         * tests/unictype/test-ctype_alpha.c: Likewise.
20946         * tests/unictype/test-ctype_graph.c: Likewise.
20947         * tests/unictype/test-ctype_lower.c: Likewise.
20948         * tests/unictype/test-ctype_print.c: Likewise.
20949         * tests/unictype/test-ctype_punct.c: Likewise.
20950         * tests/unictype/test-ctype_upper.c: Likewise.
20951         * tests/unictype/test-decdigit.h: Likewise.
20952         * tests/unictype/test-digit.h: Likewise.
20953         * tests/unictype/test-numeric.h: Likewise.
20954         * tests/unictype/test-pr_alphabetic.c: Likewise.
20955         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20956         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20957         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20958         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20959         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20960         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20961         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20962         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20963         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20964         * tests/unictype/test-pr_cased.c: Likewise.
20965         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20966         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20967         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20968         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20969         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20970         * tests/unictype/test-pr_combining.c: Likewise.
20971         * tests/unictype/test-pr_composite.c: Likewise.
20972         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20973         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20974         * tests/unictype/test-pr_deprecated.c: Likewise.
20975         * tests/unictype/test-pr_format_control.c: Likewise.
20976         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20977         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20978         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20979         * tests/unictype/test-pr_id_continue.c: Likewise.
20980         * tests/unictype/test-pr_id_start.c: Likewise.
20981         * tests/unictype/test-pr_ideographic.c: Likewise.
20982         * tests/unictype/test-pr_lowercase.c: Likewise.
20983         * tests/unictype/test-pr_math.c: Likewise.
20984         * tests/unictype/test-pr_numeric.c: Likewise.
20985         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20986         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20987         * tests/unictype/test-pr_other_math.c: Likewise.
20988         * tests/unictype/test-pr_punctuation.c: Likewise.
20989         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20990         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20991         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20992         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20993         * tests/unictype/test-pr_uppercase.c: Likewise.
20994         * tests/unictype/test-pr_xid_continue.c: Likewise.
20995         * tests/unictype/test-pr_xid_start.c: Likewise.
20996         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20997         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20998         changes.
20999         * lib/unictype/categ_Cc.h: Likewise.
21000         * lib/unictype/categ_Cf.h: Likewise.
21001         * lib/unictype/categ_Co.h: Likewise.
21002         * lib/unictype/categ_Cs.h: Likewise.
21003         * lib/unictype/categ_Lt.h: Likewise.
21004         * lib/unictype/categ_Nl.h: Likewise.
21005         * lib/unictype/categ_Pc.h: Likewise.
21006         * lib/unictype/categ_Pd.h: Likewise.
21007         * lib/unictype/categ_Pe.h: Likewise.
21008         * lib/unictype/categ_Pf.h: Likewise.
21009         * lib/unictype/categ_Pi.h: Likewise.
21010         * lib/unictype/categ_Ps.h: Likewise.
21011         * lib/unictype/categ_Z.h: Likewise.
21012         * lib/unictype/categ_Zl.h: Likewise.
21013         * lib/unictype/categ_Zp.h: Likewise.
21014         * lib/unictype/categ_Zs.h: Likewise.
21015         * lib/unictype/ctype_blank.h: Likewise.
21016         * lib/unictype/ctype_cntrl.h: Likewise.
21017         * lib/unictype/ctype_digit.h: Likewise.
21018         * lib/unictype/ctype_space.h: Likewise.
21019         * lib/unictype/ctype_xdigit.h: Likewise.
21020         * lib/unictype/mirror.h: Likewise.
21021         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21022         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21023         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21024         * lib/unictype/pr_bidi_control.h: Likewise.
21025         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21026         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21027         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21028         * lib/unictype/pr_bidi_pdf.h: Likewise.
21029         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21030         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21031         * lib/unictype/pr_dash.h: Likewise.
21032         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21033         * lib/unictype/pr_diacritic.h: Likewise.
21034         * lib/unictype/pr_extender.h: Likewise.
21035         * lib/unictype/pr_hex_digit.h: Likewise.
21036         * lib/unictype/pr_hyphen.h: Likewise.
21037         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21038         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21039         * lib/unictype/pr_ignorable_control.h: Likewise.
21040         * lib/unictype/pr_iso_control.h: Likewise.
21041         * lib/unictype/pr_join_control.h: Likewise.
21042         * lib/unictype/pr_left_of_pair.h: Likewise.
21043         * lib/unictype/pr_line_separator.h: Likewise.
21044         * lib/unictype/pr_logical_order_exception.h: Likewise.
21045         * lib/unictype/pr_non_break.h: Likewise.
21046         * lib/unictype/pr_not_a_character.h: Likewise.
21047         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21048         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21049         * lib/unictype/pr_other_id_start.h: Likewise.
21050         * lib/unictype/pr_other_lowercase.h: Likewise.
21051         * lib/unictype/pr_other_uppercase.h: Likewise.
21052         * lib/unictype/pr_paired_punctuation.h: Likewise.
21053         * lib/unictype/pr_paragraph_separator.h: Likewise.
21054         * lib/unictype/pr_pattern_syntax.h: Likewise.
21055         * lib/unictype/pr_pattern_white_space.h: Likewise.
21056         * lib/unictype/pr_private_use.h: Likewise.
21057         * lib/unictype/pr_quotation_mark.h: Likewise.
21058         * lib/unictype/pr_radical.h: Likewise.
21059         * lib/unictype/pr_soft_dotted.h: Likewise.
21060         * lib/unictype/pr_space.h: Likewise.
21061         * lib/unictype/pr_titlecase.h: Likewise.
21062         * lib/unictype/pr_variation_selector.h: Likewise.
21063         * lib/unictype/pr_white_space.h: Likewise.
21064         * lib/unictype/pr_zero_width.h: Likewise.
21065         * lib/unictype/sy_c_ident.h: Likewise.
21066         * lib/unictype/sy_c_whitespace.h: Likewise.
21067         * lib/unictype/sy_java_whitespace.h: Likewise.
21068         * lib/uninorm/composition-table.gperf: Likewise.
21069         * lib/uninorm/decomposition-table1.h: Likewise.
21070         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21071         LB8.
21072         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21073         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21074         * modules/unictype/*: Bump version number of expected libunistring
21075         version.
21076
21077 2011-01-09  Bruno Haible  <bruno@clisp.org>
21078
21079         Update to Unicode 5.2.0.
21080         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21081         trailing whitespace removed.
21082
21083 2011-01-09  Bruno Haible  <bruno@clisp.org>
21084
21085         New Unicode character properties, from Unicode 5.2.0.
21086         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21087         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21088         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21089         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21090         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21091         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21092         uc_is_property_cased, uc_is_property_case_ignorable,
21093         uc_is_property_changes_when_lowercased,
21094         uc_is_property_changes_when_uppercased,
21095         uc_is_property_changes_when_titlecased,
21096         uc_is_property_changes_when_casefolded,
21097         uc_is_property_changes_when_casemapped): New declarations.
21098         * lib/unictype/pr_byname.gperf: Add the new properties.
21099         * modules/unictype/property-byname (Depends-on): Depend on the new
21100         properties modules.
21101         * modules/unictype/property-all (Depends-on): Likewise.
21102         * MODULES.html.sh (Unicode string functions): Add
21103         unictype/property-case-ignorable, unictype/property-cased,
21104         unictype/property-changes-when-casefolded,
21105         unictype/property-changes-when-casemapped,
21106         unictype/property-changes-when-lowercased,
21107         unictype/property-changes-when-titlecased,
21108         unictype/property-changes-when-uppercased.
21109
21110         New module 'unictype/property-changes-when-casemapped'.
21111         * modules/unictype/property-changes-when-casemapped: New file.
21112         * lib/unictype/pr_changes_when_casemapped.c: New file.
21113         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21114         generated by gen-uni-tables.
21115         * modules/unictype/property-changes-when-casemapped-tests: New file.
21116         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21117         automatically generated by gen-uni-tables.
21118
21119         New module 'unictype/property-changes-when-casefolded'.
21120         * modules/unictype/property-changes-when-casefolded: New file.
21121         * lib/unictype/pr_changes_when_casefolded.c: New file.
21122         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21123         generated by gen-uni-tables.
21124         * modules/unictype/property-changes-when-casefolded-tests: New file.
21125         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21126         automatically generated by gen-uni-tables.
21127
21128         New module 'unictype/property-changes-when-titlecased'.
21129         * modules/unictype/property-changes-when-titlecased: New file.
21130         * lib/unictype/pr_changes_when_titlecased.c: New file.
21131         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21132         generated by gen-uni-tables.
21133         * modules/unictype/property-changes-when-titlecased-tests: New file.
21134         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21135         automatically generated by gen-uni-tables.
21136
21137         New module 'unictype/property-changes-when-uppercased'.
21138         * modules/unictype/property-changes-when-uppercased: New file.
21139         * lib/unictype/pr_changes_when_uppercased.c: New file.
21140         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21141         generated by gen-uni-tables.
21142         * modules/unictype/property-changes-when-uppercased-tests: New file.
21143         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21144         automatically generated by gen-uni-tables.
21145
21146         New module 'unictype/property-changes-when-lowercased'.
21147         * modules/unictype/property-changes-when-lowercased: New file.
21148         * lib/unictype/pr_changes_when_lowercased.c: New file.
21149         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21150         generated by gen-uni-tables.
21151         * modules/unictype/property-changes-when-lowercased-tests: New file.
21152         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21153         automatically generated by gen-uni-tables.
21154
21155         New module 'unictype/property-case-ignorable'.
21156         * modules/unictype/property-case-ignorable: New file.
21157         * lib/unictype/pr_case_ignorable.c: New file.
21158         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21159         by gen-uni-tables.
21160         * modules/unictype/property-case-ignorable-tests: New file.
21161         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21162         generated by gen-uni-tables.
21163
21164         New module 'unictype/property-cased'.
21165         * modules/unictype/property-cased: New file.
21166         * lib/unictype/pr_cased.c: New file.
21167         * lib/unictype/pr_cased.h: New file, automatically generated by
21168         gen-uni-tables.
21169         * modules/unictype/property-cased-tests: New file.
21170         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21171         gen-uni-tables.
21172
21173 2011-01-09  Bruno Haible  <bruno@clisp.org>
21174
21175         Update to Unicode 5.2.0.
21176         * lib/gen-uni-tables.c (output_predicate, output_category,
21177         output_combclass, output_bidi_category, output_decimal_digit_test,
21178         output_decimal_digit, output_digit_test, output_digit,
21179         output_numeric_test, output_numeric, output_mirror, output_scripts,
21180         output_scripts_byname, output_blocks, output_ident_category): Fix
21181         comment header.
21182         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21183         get_wbp.
21184         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21185         items.
21186         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21187         Changes_When_Lowercased, Changes_When_Uppercased,
21188         Changes_When_Titlecased, Changes_When_Casefolded,
21189         Changes_When_Casemapped.
21190         (is_property_alphabetic, is_property_default_ignorable_code_point):
21191         Update for Unicode 5.2.0.
21192         (is_property_cased, is_property_case_ignorable,
21193         is_property_changes_when_lowercased,
21194         is_property_changes_when_uppercased,
21195         is_property_changes_when_titlecased,
21196         is_property_changes_when_casefolded,
21197         is_property_changes_when_casemapped): New functions.
21198         (output_properties): Output also the properties cased, case_ignorable,
21199         changes_when_lowercased, changes_when_uppercased,
21200         changes_when_titlecased, changes_when_casefolded,
21201         changes_when_casemapped.
21202         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21203         Unicode TR#11 revision 17 -> 19.
21204         (LBP_CP): New enumeration value.
21205         (LBP_*): Adjust values accordingly.
21206         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21207         TR#14 revision 22 -> 24.
21208         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21209         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21210         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21211         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21212         is_WBP_MIDLETTER.
21213         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21214         the code1 and code2 of each composition rule.
21215         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21216         * lib/unicase/ignorable.h: Likewise.
21217         * lib/unicase/tocasefold.h: Likewise.
21218         * lib/unicase/tolower.h: Likewise.
21219         * lib/unicase/totitle.h: Likewise.
21220         * lib/unicase/toupper.h: Likewise.
21221         * lib/unictype/bidi_of.h: Likewise.
21222         * lib/unictype/blocks.h: Likewise.
21223         * lib/unictype/categ_C.h: Likewise.
21224         * lib/unictype/categ_Cf.h: Likewise.
21225         * lib/unictype/categ_Cn.h: Likewise.
21226         * lib/unictype/categ_L.h: Likewise.
21227         * lib/unictype/categ_Ll.h: Likewise.
21228         * lib/unictype/categ_Lm.h: Likewise.
21229         * lib/unictype/categ_Lo.h: Likewise.
21230         * lib/unictype/categ_Lu.h: Likewise.
21231         * lib/unictype/categ_M.h: Likewise.
21232         * lib/unictype/categ_Mc.h: Likewise.
21233         * lib/unictype/categ_Mn.h: Likewise.
21234         * lib/unictype/categ_N.h: Likewise.
21235         * lib/unictype/categ_Nd.h: Likewise.
21236         * lib/unictype/categ_Nl.h: Likewise.
21237         * lib/unictype/categ_No.h: Likewise.
21238         * lib/unictype/categ_P.h: Likewise.
21239         * lib/unictype/categ_Pd.h: Likewise.
21240         * lib/unictype/categ_Po.h: Likewise.
21241         * lib/unictype/categ_S.h: Likewise.
21242         * lib/unictype/categ_Sc.h: Likewise.
21243         * lib/unictype/categ_So.h: Likewise.
21244         * lib/unictype/categ_of.h: Likewise.
21245         * lib/unictype/combining.h: Likewise.
21246         * lib/unictype/ctype_alnum.h: Likewise.
21247         * lib/unictype/ctype_alpha.h: Likewise.
21248         * lib/unictype/ctype_graph.h: Likewise.
21249         * lib/unictype/ctype_lower.h: Likewise.
21250         * lib/unictype/ctype_print.h: Likewise.
21251         * lib/unictype/ctype_punct.h: Likewise.
21252         * lib/unictype/ctype_upper.h: Likewise.
21253         * lib/unictype/decdigit.h: Likewise.
21254         * lib/unictype/digit.h: Likewise.
21255         * lib/unictype/numeric.h: Likewise.
21256         * lib/unictype/pr_alphabetic.h: Likewise.
21257         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21258         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21259         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21260         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21261         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21262         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21263         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21264         * lib/unictype/pr_combining.h: Likewise.
21265         * lib/unictype/pr_composite.h: Likewise.
21266         * lib/unictype/pr_currency_symbol.h: Likewise.
21267         * lib/unictype/pr_dash.h: Likewise.
21268         * lib/unictype/pr_decimal_digit.h: Likewise.
21269         * lib/unictype/pr_deprecated.h: Likewise.
21270         * lib/unictype/pr_diacritic.h: Likewise.
21271         * lib/unictype/pr_extender.h: Likewise.
21272         * lib/unictype/pr_grapheme_base.h: Likewise.
21273         * lib/unictype/pr_grapheme_extend.h: Likewise.
21274         * lib/unictype/pr_grapheme_link.h: Likewise.
21275         * lib/unictype/pr_id_continue.h: Likewise.
21276         * lib/unictype/pr_id_start.h: Likewise.
21277         * lib/unictype/pr_ideographic.h: Likewise.
21278         * lib/unictype/pr_ignorable_control.h: Likewise.
21279         * lib/unictype/pr_logical_order_exception.h: Likewise.
21280         * lib/unictype/pr_lowercase.h: Likewise.
21281         * lib/unictype/pr_numeric.h: Likewise.
21282         * lib/unictype/pr_other_alphabetic.h: Likewise.
21283         * lib/unictype/pr_punctuation.h: Likewise.
21284         * lib/unictype/pr_sentence_terminal.h: Likewise.
21285         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21286         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21287         * lib/unictype/pr_unified_ideograph.h: Likewise.
21288         * lib/unictype/pr_uppercase.h: Likewise.
21289         * lib/unictype/pr_xid_continue.h: Likewise.
21290         * lib/unictype/pr_xid_start.h: Likewise.
21291         * lib/unictype/pr_zero_width.h: Likewise.
21292         * lib/unictype/scripts.h: Likewise.
21293         * lib/unictype/scripts_byname.gperf: Likewise.
21294         * lib/unictype/sy_java_ident.h: Likewise.
21295         * lib/unigbrk/gbrkprop.h: Likewise.
21296         * lib/unilbrk/lbrkprop1.h: Likewise.
21297         * lib/unilbrk/lbrkprop2.h: Likewise.
21298         * lib/unilbrk/lbrktables.h: Likewise.
21299         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21300         LBP_CP. Implement rule LB30.
21301         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21302         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21303         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21304         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21305         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21306         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21307         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21308         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21309         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21310         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21311         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21312         bits instead of 16 bits in the code1 and code2 of each composition
21313         rule.
21314         (uc_composition): Update for Unicode 5.2.0.
21315         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21316         * lib/uninorm/decomposition-table2.h: Likewise.
21317         * lib/uniwbrk/wbrkprop.h: Likewise.
21318         * tests/unicase/test-cased.c: Likewise.
21319         * tests/unicase/test-ignorable.c: Likewise.
21320         * tests/unicase/test-uc_tolower.c: Likewise.
21321         * tests/unicase/test-uc_totitle.c: Likewise.
21322         * tests/unicase/test-uc_toupper.c: Likewise.
21323         * tests/unictype/test-categ_C.c: Likewise.
21324         * tests/unictype/test-categ_Cf.c: Likewise.
21325         * tests/unictype/test-categ_Cn.c: Likewise.
21326         * tests/unictype/test-categ_L.c: Likewise.
21327         * tests/unictype/test-categ_Ll.c: Likewise.
21328         * tests/unictype/test-categ_Lm.c: Likewise.
21329         * tests/unictype/test-categ_Lo.c: Likewise.
21330         * tests/unictype/test-categ_Lu.c: Likewise.
21331         * tests/unictype/test-categ_M.c: Likewise.
21332         * tests/unictype/test-categ_Mc.c: Likewise.
21333         * tests/unictype/test-categ_Mn.c: Likewise.
21334         * tests/unictype/test-categ_N.c: Likewise.
21335         * tests/unictype/test-categ_Nd.c: Likewise.
21336         * tests/unictype/test-categ_Nl.c: Likewise.
21337         * tests/unictype/test-categ_No.c: Likewise.
21338         * tests/unictype/test-categ_P.c: Likewise.
21339         * tests/unictype/test-categ_Pd.c: Likewise.
21340         * tests/unictype/test-categ_Po.c: Likewise.
21341         * tests/unictype/test-categ_S.c: Likewise.
21342         * tests/unictype/test-categ_Sc.c: Likewise.
21343         * tests/unictype/test-categ_So.c: Likewise.
21344         * tests/unictype/test-ctype_alnum.c: Likewise.
21345         * tests/unictype/test-ctype_alpha.c: Likewise.
21346         * tests/unictype/test-ctype_graph.c: Likewise.
21347         * tests/unictype/test-ctype_lower.c: Likewise.
21348         * tests/unictype/test-ctype_print.c: Likewise.
21349         * tests/unictype/test-ctype_punct.c: Likewise.
21350         * tests/unictype/test-ctype_upper.c: Likewise.
21351         * tests/unictype/test-decdigit.h: Likewise.
21352         * tests/unictype/test-digit.h: Likewise.
21353         * tests/unictype/test-numeric.h: Likewise.
21354         * tests/unictype/test-pr_alphabetic.c: Likewise.
21355         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21356         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21357         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21358         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21359         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21360         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21361         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21362         * tests/unictype/test-pr_combining.c: Likewise.
21363         * tests/unictype/test-pr_composite.c: Likewise.
21364         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21365         * tests/unictype/test-pr_dash.c: Likewise.
21366         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21367         * tests/unictype/test-pr_deprecated.c: Likewise.
21368         * tests/unictype/test-pr_diacritic.c: Likewise.
21369         * tests/unictype/test-pr_extender.c: Likewise.
21370         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21371         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21372         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21373         * tests/unictype/test-pr_id_continue.c: Likewise.
21374         * tests/unictype/test-pr_id_start.c: Likewise.
21375         * tests/unictype/test-pr_ideographic.c: Likewise.
21376         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21377         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21378         * tests/unictype/test-pr_lowercase.c: Likewise.
21379         * tests/unictype/test-pr_numeric.c: Likewise.
21380         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21381         * tests/unictype/test-pr_punctuation.c: Likewise.
21382         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21383         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21384         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21385         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21386         * tests/unictype/test-pr_uppercase.c: Likewise.
21387         * tests/unictype/test-pr_xid_continue.c: Likewise.
21388         * tests/unictype/test-pr_xid_start.c: Likewise.
21389         * tests/unictype/test-pr_zero_width.c: Likewise.
21390         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21391         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21392         changed behaviour: line breaking is now disallowed between a letter
21393         or '=' and '('.
21394         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21395         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21396         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21397         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21398         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21399         lib/uniwidth/width.c.
21400         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21401         without comments, but with the original copyright notice.
21402         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21403         changes.
21404         * lib/unictype/categ_Cc.h: Likewise.
21405         * lib/unictype/categ_Co.h: Likewise.
21406         * lib/unictype/categ_Cs.h: Likewise.
21407         * lib/unictype/categ_Lt.h: Likewise.
21408         * lib/unictype/categ_Me.h: Likewise.
21409         * lib/unictype/categ_Pc.h: Likewise.
21410         * lib/unictype/categ_Pe.h: Likewise.
21411         * lib/unictype/categ_Pf.h: Likewise.
21412         * lib/unictype/categ_Pi.h: Likewise.
21413         * lib/unictype/categ_Ps.h: Likewise.
21414         * lib/unictype/categ_Sk.h: Likewise.
21415         * lib/unictype/categ_Sm.h: Likewise.
21416         * lib/unictype/categ_Z.h: Likewise.
21417         * lib/unictype/categ_Zl.h: Likewise.
21418         * lib/unictype/categ_Zp.h: Likewise.
21419         * lib/unictype/categ_Zs.h: Likewise.
21420         * lib/unictype/ctype_blank.h: Likewise.
21421         * lib/unictype/ctype_cntrl.h: Likewise.
21422         * lib/unictype/ctype_digit.h: Likewise.
21423         * lib/unictype/ctype_space.h: Likewise.
21424         * lib/unictype/ctype_xdigit.h: Likewise.
21425         * lib/unictype/mirror.h: Likewise.
21426         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21427         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21428         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21429         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21430         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21431         * lib/unictype/pr_bidi_control.h: Likewise.
21432         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21433         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21434         * lib/unictype/pr_bidi_pdf.h: Likewise.
21435         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21436         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21437         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21438         * lib/unictype/pr_format_control.h: Likewise.
21439         * lib/unictype/pr_hex_digit.h: Likewise.
21440         * lib/unictype/pr_hyphen.h: Likewise.
21441         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21442         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21443         * lib/unictype/pr_iso_control.h: Likewise.
21444         * lib/unictype/pr_join_control.h: Likewise.
21445         * lib/unictype/pr_left_of_pair.h: Likewise.
21446         * lib/unictype/pr_line_separator.h: Likewise.
21447         * lib/unictype/pr_math.h: Likewise.
21448         * lib/unictype/pr_non_break.h: Likewise.
21449         * lib/unictype/pr_not_a_character.h: Likewise.
21450         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21451         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21452         * lib/unictype/pr_other_id_continue.h: Likewise.
21453         * lib/unictype/pr_other_id_start.h: Likewise.
21454         * lib/unictype/pr_other_lowercase.h: Likewise.
21455         * lib/unictype/pr_other_math.h: Likewise.
21456         * lib/unictype/pr_other_uppercase.h: Likewise.
21457         * lib/unictype/pr_paired_punctuation.h: Likewise.
21458         * lib/unictype/pr_paragraph_separator.h: Likewise.
21459         * lib/unictype/pr_pattern_syntax.h: Likewise.
21460         * lib/unictype/pr_pattern_white_space.h: Likewise.
21461         * lib/unictype/pr_private_use.h: Likewise.
21462         * lib/unictype/pr_quotation_mark.h: Likewise.
21463         * lib/unictype/pr_radical.h: Likewise.
21464         * lib/unictype/pr_soft_dotted.h: Likewise.
21465         * lib/unictype/pr_space.h: Likewise.
21466         * lib/unictype/pr_titlecase.h: Likewise.
21467         * lib/unictype/pr_variation_selector.h: Likewise.
21468         * lib/unictype/pr_white_space.h: Likewise.
21469         * lib/unictype/sy_c_ident.h: Likewise.
21470         * lib/unictype/sy_c_whitespace.h: Likewise.
21471         * lib/unictype/sy_java_whitespace.h: Likewise.
21472         * modules/uni*/*: Bump version number of expected libunistring version.
21473         Reported by Simon Josefsson.
21474
21475 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21476
21477         useless-if-before-free: fix typo in --help and make the internal,
21478         automatic version date update process work once again.
21479         --help output contained a NUL character instead of the
21480         backslash-zero that was intended.  Also, the "must lie within
21481         the first 8 lines" line is on line 9, and hence not getting
21482         automatically updated.
21483         * build-aux/useless-if-before-free: Fix the former by adding a
21484         backslash, and the latter by condensing the three lines of what-it-does
21485         to a single line, leaving one line of slack for the future.
21486
21487 2011-01-09  Bruno Haible  <bruno@clisp.org>
21488
21489         uniwidth/width: Fix width of U+1D173..U+1D17A.
21490         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21491         symbolic_width, output_width_property_test): New functions.
21492         (main): Invoke output_nonspacing_property, output_width_property_test.
21493         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21494         U+1D173..U+1D17A.
21495         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21496         1.
21497         * modules/uniwidth/*: Bump version number of expected libunistring
21498         version.
21499         * modules/unilbrk/*: Likewise.
21500
21501 2011-01-08  Bruno Haible  <bruno@clisp.org>
21502
21503         uninorm tests: Preserve copyright of Unicode data file.
21504         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21505         Mention modifications.
21506
21507 2011-01-08  Bruno Haible  <bruno@clisp.org>
21508
21509         gen-uni-tables: Prepare for Unicode 5.2.0.
21510         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21511         (debug_output_lbp, output_lbp): Update.
21512
21513 2011-01-08  Bruno Haible  <bruno@clisp.org>
21514
21515         unilbrk: Clarify gen-uni-tables.c code.
21516         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21517         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21518         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21519
21520 2011-01-07  Bruno Haible  <bruno@clisp.org>
21521
21522         strtod: Restore errno when successfully parsing Infinity or NaN.
21523         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21524         restore the original errno.
21525
21526 2011-01-07  Bruno Haible  <bruno@clisp.org>
21527
21528         remove test: Avoid failure on HP-UX 11.
21529         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21530
21531 2011-01-07  Bruno Haible  <bruno@clisp.org>
21532
21533         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21534         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21535         error code.
21536
21537 2011-01-07  Pádraig Brady <P@draigBrady.com>
21538
21539         ignore-value: fixup comments, and add Eric Blake
21540         as an author since he rewrote the macros.
21541         * lib/ignore-value.h (ignore_value):  State that
21542         we now support aggregates.  Also specify exactly
21543         when the GCC warn_unused_result feature was added.
21544
21545 2011-01-06  Eric Blake  <eblake@redhat.com>
21546
21547         ignore-value: support aggregate types
21548         * lib/ignore-value.h (ignore_value): Provide separate gcc
21549         definition.
21550         * modules/ignore-value-tests: New test module.
21551         * tests/test-ignore-value.c: New test.
21552
21553         maint.mk: improve sc_prohibit_strcmp regex
21554         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21555         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21556         definition of STRNEQ.
21557
21558         signal: work around Haiku issue with SIGBUS
21559         * lib/siglist.h: Add comment.
21560         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21561         strsignal's favoring of SIGSEGV.
21562         * tests/test-signal.c (main): Avoid test failure.
21563         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21564         Reported by Scott McCreary.
21565
21566         maint.mk: add pre-release check to ensure submodule commits are public
21567         * top/maint.mk (public-submodule-commit): New rule.
21568         (submodule-checks): New variable.
21569         (alpha beta stable): Depend on the variable.
21570
21571 2011-01-05  Pádraig Brady <P@draigBrady.com>
21572         and Jim Meyering  <meyering@redhat.com>
21573
21574         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21575         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21576         (ATTRIBUTE_DEPRECATED): Define.
21577         (_ignore_case): New function.
21578         (ignore_value): New macro, to replace the old function.
21579         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21580         * modules/ignore-value (Depends-on): Add stdint.
21581
21582 2011-01-04  Eric Blake  <eblake@redhat.com>
21583
21584         doc: regenerate INSTALL
21585         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21586         @firstparagraphindent support, now that autoconf dropped it.
21587         (INSTALL_PRELUDE): Reinstate old macro.
21588         * doc/install.texi: Resync from autoconf.
21589         * doc/INSTALL: Reflect recent autoconf update.
21590         * doc/INSTALL.ISO: Likewise.
21591         * doc/INSTALL.UTF-8: Likewise.
21592         Reported by Karl Berry.
21593
21594 2011-01-04  Bruce Korb  <address@hidden>
21595
21596         git-version-gen: avoid a sub-shell
21597         * build-aux/git-version-gen: Redirect stderr in `...` via
21598         "exec 2>...", rather than via an added sub-shell.
21599
21600 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21601
21602         git-version-gen: use (...) rather than sh -c '...'
21603         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21604         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21605
21606 2011-01-03  Jim Meyering  <meyering@redhat.com>
21607
21608         git-version-gen: convert leading TABs to spaces
21609         * build-aux/git-version-gen: Expand leading TABs.
21610
21611         git-version-gen: handle failed "git rev-list"
21612         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21613         from git and proceeding as if it had succeeded but printed no SHA1
21614         checksums, suppress the diagnostic and handle the failure.
21615         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21616
21617         git-version-gen: include command name in one more diagnostic
21618         * build-aux/git-version-gen: When the required .tarball-version file
21619         was missing or unreadable, you might see the diagnostic from "cat",
21620         but no trace of the name of the invoking script.  Now, you still see
21621         the diagnostic from cat, but also get one from "git-version-gen: ".
21622         Inspired by a patch from Bruce Korb.
21623
21624         update-copyright: adjust test to match changed code
21625         * tests/test-update-copyright.sh: Change test's expected output
21626         to match new actual output.
21627
21628 2011-01-02  Bruno Haible  <bruno@clisp.org>
21629
21630         getlogin_r: Avoid test failure on HP-UX 11.
21631         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21632         ERANGE when the second argument is zero.
21633         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21634         portability problem.
21635
21636 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21637
21638         * build-aux/update-copyright: doc Simon's changes
21639
21640 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21641
21642         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21643         environment variable.
21644
21645 2011-01-02  Bruno Haible  <bruno@clisp.org>
21646
21647         unigbrk: Avoid gcc warnings.
21648         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21649         unused variable.
21650         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21651         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21652         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21653         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21654         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21655         Change type of first argument to 'const char *'.
21656         (main): Remove unused variable.
21657         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21658         type of first argument to 'const char *'.
21659         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21660         Likewise.
21661         (main): Change type of variable 's'.
21662         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21663         to 'int'.
21664
21665 2011-01-02  Bruno Haible  <bruno@clisp.org>
21666
21667         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21668         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21669         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21670         bug.
21671         * lib/pwrite.c: Undo 2010-12-31 patch.
21672         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21673
21674 2011-01-02  Bruno Haible  <bruno@clisp.org>
21675
21676         pread: Fix test whether it works.
21677         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21678
21679 2011-01-02  Bruno Haible  <bruno@clisp.org>
21680
21681         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21682         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21683         ends in "6". Don't require a specific month name. Try also the locale
21684         names found on HP-UX 11 and Solaris 7.
21685
21686 2011-01-02  Bruno Haible  <bruno@clisp.org>
21687
21688         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21689         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21690         C linkage.
21691         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21692
21693 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21694
21695         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21696         for consistency, since the "cluster" term is not used elsewhere.
21697         * lib/unigbrk.in.h: Update name.
21698         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21699         * lib/unigbrk/u16-grapheme-next.c: Update name.
21700         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21701         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21702         * lib/unigbrk/u32-grapheme-next.c: Update name.
21703         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21704         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21705         * lib/unigbrk/u8-grapheme-next.c: Update name.
21706         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21707         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21708         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21709         Suggested by Bruno Haible.
21710
21711 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21712
21713         Remove module 'u8-grapheme-len' as too redundant with
21714         'u8-grapheme-next'.
21715         * modules/unigbrk/u8-grapheme-len: Delete file.
21716         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21717         * lib/unigbrk.in.h: Remove prototype for deleted function.
21718         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21719         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21720
21721         Remove module 'u16-grapheme-len' as too redundant with
21722         'u16-grapheme-next'.
21723         * modules/unigbrk/u16-grapheme-len: Delete file.
21724         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21725         * lib/unigbrk.in.h: Remove prototype for deleted function.
21726         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21727         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21728
21729         Remove module 'u32-grapheme-len' as too redundant with
21730         'u32-grapheme-next'.
21731         * modules/unigbrk/u32-grapheme-len: Delete file.
21732         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21733         * lib/unigbrk.in.h: Remove prototype for deleted function.
21734         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21735         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21736
21737         Suggested by Bruno Haible.
21738
21739 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21740
21741         * unigbrk.in.h: Fix typo: "ben" => "been".
21742         Reported by Bruno Haible.
21743
21744 2011-01-01  Jim Meyering  <meyering@redhat.com>
21745
21746         maint: update almost all copyright ranges to include 2011
21747         Run the new "make update-copyright" rule.
21748
21749 2011-01-01  Jim Meyering  <meyering@redhat.com>
21750
21751         maint: update-copyright: exempt doc/INSTALL*
21752         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21753         since they are generated.  Suggested by Bruno Haible.
21754
21755 2011-01-01  Jim Meyering  <meyering@redhat.com>
21756
21757         maint: refine the update-copyright rule
21758         * Makefile (update-copyright): Also exclude any file that includes
21759         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21760         code that merely generates the comment.
21761
21762 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21763
21764         New module 'u8-grapheme-len'.
21765         * modules/unigbrk/u8-grapheme-len: New file.
21766         * modules/unigbrk/u8-grapheme-len-tests: New file.
21767         * lib/unigbrk.in.h: Add prototype for new function.
21768         * lib/unigbrk/u8-grapheme-len.c: New file.
21769         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21770
21771         New module 'u16-grapheme-len'.
21772         * modules/unigbrk/u16-grapheme-len: New file.
21773         * modules/unigbrk/u16-grapheme-len-tests: New file.
21774         * lib/unigbrk.in.h: Add prototype for new function.
21775         * lib/unigbrk/u16-grapheme-len.c: New file.
21776         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21777
21778         New module 'u32-grapheme-len'.
21779         * modules/unigbrk/u32-grapheme-len: New file.
21780         * modules/unigbrk/u32-grapheme-len-tests: New file.
21781         * lib/unigbrk.in.h: Add prototype for new function.
21782         * lib/unigbrk/u32-grapheme-len.c: New file.
21783         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21784
21785         New module 'u8-grapheme-next'.
21786         * modules/unigbrk/u8-grapheme-next: New file.
21787         * modules/unigbrk/u8-grapheme-next-tests: New file.
21788         * lib/unigbrk.in.h: Add prototype for new function.
21789         * lib/unigbrk/u8-grapheme-next.c: New file.
21790         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21791
21792         New module 'u16-grapheme-next'.
21793         * modules/unigbrk/u16-grapheme-next: New file.
21794         * modules/unigbrk/u16-grapheme-next-tests: New file.
21795         * lib/unigbrk.in.h: Add prototype for new function.
21796         * lib/unigbrk/u16-grapheme-next.c: New file.
21797         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21798
21799         New module 'u32-grapheme-next'.
21800         * modules/unigbrk/u32-grapheme-next: New file.
21801         * modules/unigbrk/u32-grapheme-next-tests: New file.
21802         * lib/unigbrk.in.h: Add prototype for new function.
21803         * lib/unigbrk/u32-grapheme-next.c: New file.
21804         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21805
21806         New module 'u8-grapheme-prev'.
21807         * modules/unigbrk/u8-grapheme-prev: New file.
21808         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21809         * lib/unigbrk.in.h: Add prototype for new function.
21810         * lib/unigbrk/u8-grapheme-prev.c: New file.
21811         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21812
21813         New module 'u16-grapheme-prev'.
21814         * modules/unigbrk/u16-grapheme-prev: New file.
21815         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21816         * lib/unigbrk.in.h: Add prototype for new function.
21817         * lib/unigbrk/u16-grapheme-prev.c: New file.
21818         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21819
21820         New module 'u32-grapheme-prev'.
21821         * modules/unigbrk/u32-grapheme-prev: New file.
21822         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21823         * lib/unigbrk.in.h: Add prototype for new function.
21824         * lib/unigbrk/u32-grapheme-prev.c: New file.
21825         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21826
21827         New module 'u8-grapheme-breaks'.
21828         * modules/unigbrk/u8-grapheme-breaks: New file.
21829         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21830         * lib/unigbrk.in.h: Add prototype for new function.
21831         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21832         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21833
21834         New module 'u16-grapheme-breaks'.
21835         * modules/unigbrk/u16-grapheme-breaks: New file.
21836         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21837         * lib/unigbrk.in.h: Add prototype for new function.
21838         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21839         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21840
21841         New module 'u32-grapheme-breaks'.
21842         * modules/unigbrk/u32-grapheme-breaks: New file.
21843         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21844         * lib/unigbrk.in.h: Add prototype for new function.
21845         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21846         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21847
21848         New module 'ulc-grapheme-breaks'.
21849         * modules/unigbrk/ulc-grapheme-breaks: New file.
21850         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21851         * m4/locale-ar.m4: New file.
21852         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21853         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21854         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21855
21856 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21857
21858         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21859         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21860         modified how this file was generated before I initially submitted
21861         the module, but failed to regenerate it.  This meant that several
21862         of the level2 entries were wrong.
21863         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21864         Remove the division-by-2 that is folded into the table now that
21865         gbrkprop.h has been regenerated properly.  Now -1 entries are
21866         handled correctly.
21867
21868         New module 'unigbrk/uc-gbrk-prop-tests'.
21869         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21870         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21871         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21872         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21873
21874 2011-01-01  Bruno Haible  <bruno@clisp.org>
21875
21876         Avoid use of hexadecimal escapes.
21877         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21878         instead of hexadecimal escapes.
21879
21880 2011-01-01  Jim Meyering  <meyering@redhat.com>
21881
21882         maint: new rule to update copyright year ranges
21883         * Makefile (update-copyright): New rule.
21884
21885         maint: indent with TABs in Makefile
21886         * Makefile: Expand leading sequences of spaces to TABs
21887
21888         version-etc: update the copyright year it reports
21889         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21890
21891 2010-12-31  Bruno Haible  <bruno@clisp.org>
21892
21893         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21894         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21895         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21896         zero.
21897
21898 2010-12-31  Bruno Haible  <bruno@clisp.org>
21899
21900         pwrite: Work around HP-UX 11.11 bug.
21901         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21902         works and set REPLACE_PWRITE if not.
21903         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21904         function.
21905         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21906
21907 2010-12-31  Bruno Haible  <bruno@clisp.org>
21908
21909         pread: Work around HP-UX 11 bugs.
21910         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21911         and set REPLACE_PREAD if not.
21912         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21913
21914 2010-12-31  Eric Blake  <eblake@redhat.com>
21915
21916         nl_langinfo: fix YESEXPR on Irix 6.5
21917         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21918         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21919         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21920         it.
21921
21922 2010-12-31  Bruno Haible  <bruno@clisp.org>
21923
21924         iconv: Document HP-UX 11 bug.
21925         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21926
21927 2010-12-31  Bruno Haible  <bruno@clisp.org>
21928
21929         ldexpl: Fix link error on HP-UX 11.
21930         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21931         LDEXPL_LIBM, using $ISNANL_LIBM.
21932
21933 2010-12-31  Eric Blake  <eblake@redhat.com>
21934
21935         ftello: avoid compilation failure with SunStudio c89
21936         * lib/ftello.c (ftello): Use lseek, not llseek.
21937
21938         tests: avoid failing coreutils tests on cygwin
21939         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21940         (create_exe_shims_): Return 0 when skipping.
21941
21942 2010-12-31  Bruno Haible  <bruno@clisp.org>
21943
21944         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21945         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21946
21947 2010-12-31  Bruno Haible  <bruno@clisp.org>
21948
21949         waitpid: Fix link error in C++ mode.
21950         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21951
21952 2010-12-31  Bruno Haible  <bruno@clisp.org>
21953
21954         isnan: Use GCC built-ins when possible.
21955         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21956         __builtin_isnan.
21957         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21958         (isnan): Define using GCC built-ins for GCC >= 4.0.
21959
21960 2010-12-31  Bruno Haible  <bruno@clisp.org>
21961
21962         isnand: Fix mistake.
21963         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21964         __builtin_isnand.
21965
21966 2010-12-31  Bruno Haible  <bruno@clisp.org>
21967
21968         open: Avoid C++ error on HP-UX 11.
21969         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21970
21971 2010-12-31  Bruno Haible  <bruno@clisp.org>
21972
21973         time_r: Add missing declarations on HP-UX 11.
21974         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21975         instead of HAVE_LOCALTIME_R.
21976         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21977         HAVE_LOCALTIME_R always.
21978         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21979         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21980         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21981         HAVE_LOCALTIME_R.
21982         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21983         * doc/posix-functions/localtime_r.texi: Likewise.
21984
21985 2010-12-29  Eric Blake  <eblake@redhat.com>
21986
21987         mountlist: tweak previous commit
21988         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21989         Reported by Paul Eggert.
21990
21991         mountlist: fix local drive detection on cygwin
21992         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21993         that works for cygwin.
21994
21995 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21996
21997         ftoastr, snprintf: ftoastr + snprintf module
21998         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21999         since the snprintf module now should be good enough here.
22000         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22001         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22002         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22003         GNULIB_SNPRINTF only for the test directory, and the latter
22004         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22005         seems to suffice by itself.
22006
22007 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22008
22009         alloca: one step towards thread-safety
22010         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22011         need for a static variable.  All callers changed.  This does not
22012         make the alloca replacement thread-safe, but it's one step.
22013
22014         tests: minor indenting change
22015         * tests/init.sh: Sync from coreutils housekeeping patch
22016         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22017         to keep lines within 80 columns.
22018
22019 2010-12-28  Jim Meyering  <meyering@redhat.com>
22020
22021         regex: don't infloop on persistent failing calloc
22022         * lib/regexec.c (build_trtable): Return failure indication upon
22023         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22024         In glibc, this was fixed for version 2.13:
22025         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22026
22027 2010-12-28  Bruno Haible  <bruno@clisp.org>
22028             Paul Eggert <eggert@cs.ucla.edu>
22029
22030         linkat: Make implementation robust against system behaviour variations.
22031         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22032         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22033         way, and to -2 if it needs a generic runtime test.
22034         * lib/linkat.c (solaris_optimized_link_immediate,
22035         solaris_optimized_link_follow): New functions.
22036         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22037         (check_same_link): Use it.
22038
22039 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22040
22041         New module 'unigbrk/base'.
22042         * modules/unigbrk/base: New file.
22043         * lib/unigbrk.in.h: New file.
22044
22045         New module 'unigbrk/uc-gbrk-prop'.
22046         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22047         * modules/unigbrk/uc-gbrk-prop: New file.
22048         * lib/unigbrk/gbrkprop.h: New file.
22049         * lib/unigbrk/uc-gbrk-prop.c: New file.
22050
22051         New module 'unigbrk/uc-is-grapheme-break'.
22052         * modules/unigbrk/uc-is-grapheme-break: New file.
22053         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22054         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22055         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22056         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22057         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22058
22059         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22060
22061 2010-12-27  Bruno Haible  <bruno@clisp.org>
22062
22063         linkat test: Avoid failure on Solaris 11 2010-11.
22064         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22065
22066 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22067
22068         utimens: work around glibc rounding bug on more platforms
22069         * lib/utimens.c (fdutimens): Work around rounding bug even if
22070         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22072
22073 2010-12-27  Bruno Haible  <bruno@clisp.org>
22074
22075         select tests: Improve comments.
22076         * tests/test-select.c (do_select): Add comments.
22077
22078 2010-12-27  Bruno Haible  <bruno@clisp.org>
22079
22080         select tests: Safer way of handling timeout.
22081         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22082         at every invocation.
22083
22084 2010-12-27  Bruno Haible  <bruno@clisp.org>
22085
22086         select tests: Use 'bool' where appropriate.
22087         * tests/test-select.c (connect_to_socket): Change argument type to
22088         'bool'.
22089
22090 2010-12-27  Bruno Haible  <bruno@clisp.org>
22091
22092         select tests: Use existing modules.
22093         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22094         (configure.ac): Don't test for unistd.h.
22095         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22096         declared in <unistd.h>.
22097
22098 2010-12-27  Bruno Haible  <bruno@clisp.org>
22099
22100         mbrtowc: Work around a Solaris 7 bug.
22101         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22102         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22103         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22104         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22105         MBRTOWC_NULL_ARG1_BUG.
22106         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22107         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22108         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22109         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22110
22111 2010-12-27  Jim Meyering  <meyering@redhat.com>
22112
22113         read-file.c: tweak syntax
22114         * lib/read-file.c (fread_file): Remove space after "*" in function
22115         definitions.
22116
22117 2010-12-27  Bruno Haible  <bruno@clisp.org>
22118
22119         times test: Avoid gcc warnings on OSF/1.
22120         * tests/test-times.c (main): Cast printf arguments from clock_t to
22121         'long int'.
22122
22123 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22124
22125         utimens: work around glibc rounding bug on older Linux kernels
22126         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22127         on Linux with a glibc whose utimes might not work, then work
22128         around a longstanding glibc bug involving rounding rather than
22129         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22130         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22131
22132 2010-12-26  Bruno Haible  <bruno@clisp.org>
22133
22134         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22135         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22136         _GL_CXXALIAS_SYS.
22137         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22138
22139 2010-12-26  Bruno Haible  <bruno@clisp.org>
22140
22141         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22142         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22143         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22144         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22145         looking for the declaration.
22146         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22147         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22148         problem.
22149         * doc/posix-functions/inet_pton.texi: Likewise.
22150
22151 2010-12-26  Bruno Haible  <bruno@clisp.org>
22152
22153         arpa_inet: Use the common idioms with C++ support.
22154         * lib/arpa_inet.in.h: Include c++defs.h.
22155         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22156         support.
22157         * modules/arpa_inet (Depends-on): Add c++defs.
22158         (Makefile.am): Substitute the contents of c++defs.h.
22159         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22160         * modules/arpa_inet-c++-tests: New file.
22161         * tests/test-arpa_inet-c++.cc: New file.
22162
22163 2010-12-25  Bruno Haible  <bruno@clisp.org>
22164
22165         Fix more C++ link errors on Solaris 8.
22166         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22167         $(LIB_EACCESS).
22168         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22169         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22170         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22171         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22172         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22173
22174 2010-12-25  Bruno Haible  <bruno@clisp.org>
22175
22176         printf-posix: Fix link error when a non-GCC compiler is used.
22177         * lib/stdio.in.h (printf): When not using GCC, override printf
22178         correctly.
22179         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22180
22181 2010-12-25  Bruno Haible  <bruno@clisp.org>
22182
22183         strerror_r-posix: Update doc.
22184         * doc/posix-functions/strerror_r.texi: Update doc about the return
22185         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22186
22187 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22188
22189         utimens: simplify the logic of the previous change
22190         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22191         This should not affect whether the test succeeds or fails.
22192
22193         utimens: configure better on hosts with NFS clock skew
22194         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22195         uses the clock of the local host.  It might use the clock of the
22196         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22197         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22198
22199 2010-12-25  Bruno Haible  <bruno@clisp.org>
22200
22201         ptsname test: Avoid failure on Solaris.
22202         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22203         open a pseudo-terminal; don't use BSD-style ptys.
22204         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22205
22206 2010-12-25  Bruno Haible  <bruno@clisp.org>
22207
22208         ptsname: Avoid ERANGE failure on some systems.
22209         * lib/ptsname.c (buffer): Increase size.
22210
22211 2010-12-25  Bruno Haible  <bruno@clisp.org>
22212
22213         rename, renameat: Avoid test failures at NFS mounted locations.
22214         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22215         so that subsequent mkdir calls succeed.
22216
22217 2010-12-25  Bruno Haible  <bruno@clisp.org>
22218
22219         iswblank: Fix C++ link error on Solaris 8.
22220         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22221         _GL_FUNCDECL_SYS.
22222
22223 2010-12-25  Bruno Haible  <bruno@clisp.org>
22224
22225         unistd: Fix C++ link error on Solaris 8.
22226         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22227
22228 2010-12-25  Bruno Haible  <bruno@clisp.org>
22229
22230         readlink doc: Mention an old glibc bug.
22231         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22232
22233 2010-12-25  Bruno Haible  <bruno@clisp.org>
22234
22235         fcntl-h: Fix for use of C++ on glibc systems.
22236         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22237         also on glibc systems in C++ mode.
22238         Reported by Gary V. Vaughan <gary@gnu.org>.
22239
22240 2010-12-25  Bruno Haible  <bruno@clisp.org>
22241
22242         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22243         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22244
22245 2010-12-25  Bruno Haible  <bruno@clisp.org>
22246
22247         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22248         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22249         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22250         test whether truncl works according to ISO C 99 with IEC 60559.
22251         * m4/truncl-ieee.m4: New file.
22252         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22253         m4/signbit.m4.
22254         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22255
22256 2010-12-25  Bruno Haible  <bruno@clisp.org>
22257
22258         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22259         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22260         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22261         test whether ceill works according to ISO C 99 with IEC 60559.
22262         * m4/ceill-ieee.m4: New file.
22263         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22264         m4/signbit.m4.
22265         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22266
22267 2010-12-25  Bruno Haible  <bruno@clisp.org>
22268
22269         Ensure all prerequisites of <wchar.h> are included.
22270         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22271         before <wchar.h>.
22272         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22273         gl_MBRLEN_NUL_RETVAL): Likewise.
22274         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22275         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22276         AC_FUNC_MBRTOWC): Likewise.
22277         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22278         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22279         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22280         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22281         Likewise.
22282         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22283         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22284         (gl_WCHAR_H): Improve comments.
22285         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22286
22287 2010-12-25  Bruno Haible  <bruno@clisp.org>
22288
22289         strtok_r: Fix C syntax error in autoconf macro.
22290         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22291         characters in test program.
22292
22293 2010-12-24  Bruno Haible  <bruno@clisp.org>
22294
22295         ceil, trunc, round: Fix gcc warnings.
22296         * lib/ceil.c (MIN): Undefine before redefining.
22297         * lib/trunc.c (MIN): Likewise.
22298         * lib/round.c (MIN): Likewise.
22299         Include <math.h> first.
22300
22301 2010-12-24  Bruno Haible  <bruno@clisp.org>
22302
22303         select tests: Avoid failures on OSF/1 5.1.
22304         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22305         failure of closing the last socket; it may fail with ECONNRESET.
22306
22307 2010-12-24  Eric Blake  <eblake@redhat.com>
22308
22309         stdint: avoid HP-UX 10.20 preprocessor bug
22310         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22311         than #if.
22312         * tests/test-floor2.c (main): Likewise.
22313         Reported by Peter O'Gorman.
22314
22315         pipe: make obsoletion transition easier
22316         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22317         * modules/pipe (Files): Include revived file.
22318         (Include): Drop reference, to mirror getdate's behavior.
22319
22320 2010-12-24  Bruno Haible  <bruno@clisp.org>
22321
22322         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22323         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22324         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22325         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22326
22327 2010-12-24  Bruno Haible  <bruno@clisp.org>
22328
22329         gethostname: Ensure declaration on NonStop Kernel.
22330         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22331         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22332
22333 2010-12-24  Bruno Haible  <bruno@clisp.org>
22334
22335         sys_select: Ensure all necessary types on NonStop Kernel.
22336         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22337         include <sys/time.h>.
22338         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22339         NonStop Kernel.
22340         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22341
22342 2010-12-24  Bruno Haible  <bruno@clisp.org>
22343
22344         sys_select: Remove unneeded include.
22345         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22346         have <sys/select.h>.
22347
22348 2010-12-24  Bruno Haible  <bruno@clisp.org>
22349
22350         gethostname: Provide a fallback for HOST_NAME_MAX.
22351         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22352         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22353         instead.
22354         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22355
22356 2010-12-24  Bruno Haible  <bruno@clisp.org>
22357
22358         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22359         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22360         (SA_RESTART): Likewise.
22361         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22362
22363 2010-12-24  Bruno Haible  <bruno@clisp.org>
22364
22365         signal: Define NSIG.
22366         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22367         * tests/test-signal.c (nsig): New variable.
22368         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22369
22370 2010-12-24  Bruno Haible  <bruno@clisp.org>
22371
22372         rename, renameat: Avoid test failures on OSF/1 5.1.
22373         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22374         alternative error codes.
22375         * tests/test-renameat.c (main): Likewise.
22376
22377 2010-12-24  Bruno Haible  <bruno@clisp.org>
22378
22379         *printf: Detect large precisions bug on Solaris 10/SPARC.
22380         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22381         by Paul Eggert.
22382         * tests/test-snprintf-posix.h (test_function): Add this test code here
22383         too.
22384         * tests/test-sprintf-posix.h (test_function): Likewise.
22385         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22386         * tests/test-vasprintf-posix.c (test_function): Likewise.
22387         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22388         around by gnulib.
22389         * doc/posix-functions/printf.texi: Likewise.
22390         * doc/posix-functions/snprintf.texi: Likewise.
22391         * doc/posix-functions/sprintf.texi: Likewise.
22392         * doc/posix-functions/vfprintf.texi: Likewise.
22393         * doc/posix-functions/vprintf.texi: Likewise.
22394         * doc/posix-functions/vsnprintf.texi: Likewise.
22395         * doc/posix-functions/vsprintf.texi: Likewise.
22396         * doc/posix-functions/dprintf.texi: Undo last commit.
22397         * doc/posix-functions/vdprintf.texi: Likewise.
22398
22399 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22400
22401         tests: port test-fdutimensat.c to Solaris 8
22402         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22403         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22404         On Solaris 8, it fails with errno == ENOSYS, because there is no
22405         futimens (so it can't use the fd), and there is no lutimens (so it
22406         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22407
22408         vsnprintf: make more consistent with snprintf; doc fixes
22409
22410         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22411         the byte count return problem was promoted from the snprintf-posix
22412         to the snprintf module.
22413         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22414         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22415         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22416         * tests/test-snprintf.c (main): Check the byte count returned.
22417         * tests/test-vsnprintf.c (main): Likewise.
22418
22419 2010-12-23  Eric Blake  <eblake@redhat.com>
22420
22421         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22422         * modules/sigpipe (License): Relax license.
22423
22424 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22425
22426         doc: document Solaris printf bug with large float precisions
22427         * doc/posix-functions/dprintf.texi (dprintf):
22428         * doc/posix-functions/fprintf.texi (fprintf):
22429         * doc/posix-functions/printf.texi (printf):
22430         * doc/posix-functions/snprintf.texi (snprintf):
22431         * doc/posix-functions/sprintf.texi (sprintf):
22432         * doc/posix-functions/vdprintf.texi (vdprintf):
22433         * doc/posix-functions/vfprintf.texi (vfprintf):
22434         * doc/posix-functions/vprintf.texi (vprintf):
22435         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22436         * doc/posix-functions/vsprintf.texi (vsprintf):
22437         Mention that these functions mishandle large floating point
22438         precisions on Solaris 10.  The same bug is also present in Solaris
22439         8, and I assume earlier.  This causes "cd gnulib-tests; make
22440         check" to fail on Solaris 8 (and I assume, later) when building
22441         the latest coreutils, in test-vasprintf-posix's call to
22442         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22443         the wide flavors (e.g., wprintf) so this patch just updates the
22444         documentation for the narrow ones.
22445
22446         test-posixtm.c: add two tests
22447         * tests/test-posixtm.c: Add two tests, to highlight the
22448         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22449         around this bug; this is merely to document it.
22450
22451 2010-12-22  Bruno Haible  <bruno@clisp.org>
22452
22453         getlogin_r: Work around portability problem on OSF/1.
22454         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22455         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22456         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22457         test for a truncated result.
22458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22459         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22460         * modules/getlogin_r (Depends-on): Add memchr.
22461         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22462
22463 2010-12-22  Bruno Haible  <bruno@clisp.org>
22464
22465         ptsname: Avoid test failure on OSF/1 5.1.
22466         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22467         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22468         (same_slave): New function.
22469         (main): Use it to compare ptsname's result with the expected file name.
22470
22471 2010-12-22  Bruno Haible  <bruno@clisp.org>
22472
22473         Port extended stdio modules to HP NonStop Kernel.
22474         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22475         macros.
22476         * lib/fbufmode.c: Update comments.
22477         * lib/fflush.c: Likewise.
22478         * lib/fpurge.c: Likewise.
22479         * lib/freadable.c: Likewise.
22480         * lib/freadahead.c: Likewise.
22481         * lib/freading.c: Likewise.
22482         * lib/freadptr.c: Likewise.
22483         * lib/freadseek.c: Likewise.
22484         * lib/fseeko.c: Likewise.
22485         * lib/fseterr.c: Likewise.
22486         * lib/fwritable.c: Likewise.
22487         * lib/fwriting.c: Likewise.
22488         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22489
22490 2010-12-22  Bruno Haible  <bruno@clisp.org>
22491
22492         ttyname_r: Work around bug on OSF/1 5.1.
22493         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22494         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22495         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22496         present.
22497         * lib/ttyname_r.c (ttyname_r): Update comments.
22498
22499 2010-12-22  Bruno Haible  <bruno@clisp.org>
22500
22501         round: Implement result sign according to IEEE 754.
22502         * lib/round.c (MIN, MINUS_ZERO): New macros.
22503         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22504         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22505         * tests/test-round-ieee.c (main): Likewise.
22506         * tests/test-roundl-ieee.c (main): Likewise.
22507
22508         trunc: Implement result sign according to IEEE 754.
22509         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22510         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22511         * tests/test-trunc2.c: Include minus-zero.h.
22512         (MINUS_ZERO): New macro.
22513         (trunc_reference): Keep in sync with lib/trunc.c.
22514         * tests/test-truncf2.c: Include minus-zero.h.
22515         (MINUS_ZERO): New macro.
22516         (truncf_reference): Keep in sync with lib/trunc.c.
22517         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22518         * tests/test-trunc-ieee.c (main): Likewise.
22519         * tests/test-truncl-ieee.c (main): Likewise.
22520
22521         ceil: Implement result sign according to IEEE 754.
22522         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22523         (FUNC): Return -0.0 for -1 < x < 0.
22524         * tests/test-ceil2.c: Include minus-zero.h.
22525         (MINUS_ZERO): New macro.
22526         (ceil_reference): Keep in sync with lib/ceil.c.
22527         * tests/test-ceilf2.c: Include minus-zero.h.
22528         (MINUS_ZERO): New macro.
22529         (ceilf_reference): Keep in sync with lib/ceil.c.
22530         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22531         * tests/test-ceil-ieee.c (main): Likewise.
22532         * tests/test-ceill-ieee.c (main): Likewise.
22533
22534         floor: Implement result sign according to IEEE 754.
22535         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22536         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22537         * tests/test-floorf2.c (floorf_reference): Likewise.
22538         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22539         * tests/test-floor-ieee.c (main): Likewise.
22540         * tests/test-floorl-ieee.c (main): Likewise.
22541
22542 2010-12-22  Bruno Haible  <bruno@clisp.org>
22543
22544         getaddrinfo: Update doc.
22545         * doc/posix-functions/gai_strerror.texi: Return type is also different
22546         on AIX and HP-UX.
22547
22548 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22549
22550         getaddrinfo, inet_ntop: Update doc for Solaris.
22551         * doc/posix-functions/gai_strerror.texi: Return type is also an
22552         issue on Solaris 9 and earlier.
22553         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22554         on Solaris 10 and earlier.
22555
22556 2010-12-21  Bruno Haible  <bruno@clisp.org>
22557
22558         New module 'roundl-ieee'.
22559         * modules/roundl-ieee: New file.
22560         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22561         test whether roundl works according to ISO C 99 with IEC 60559.
22562         * m4/roundl-ieee.m4: New file.
22563         * modules/roundl-ieee-tests: New file.
22564         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22565         * tests/test-roundl.c (main): Remove signbit tests.
22566         * modules/roundl-tests (Depends-on): Remove signbit.
22567         * doc/posix-functions/roundl.texi: Mention the new module.
22568
22569 2010-12-21  Bruno Haible  <bruno@clisp.org>
22570
22571         New module 'truncl-ieee'.
22572         * modules/truncl-ieee: New file.
22573         * modules/truncl-ieee-tests: New file.
22574         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22575         * tests/test-truncl.c (main): Remove signbit tests.
22576         * modules/truncl-tests (Depends-on): Remove signbit.
22577         * doc/posix-functions/truncl.texi: Mention the new module.
22578
22579 2010-12-21  Bruno Haible  <bruno@clisp.org>
22580
22581         New module 'ceill-ieee'.
22582         * modules/ceill-ieee: New file.
22583         * modules/ceill-ieee-tests: New file.
22584         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22585         * tests/test-ceill.c (main): Remove signbit tests.
22586         * modules/ceill-tests (Depends-on): Remove signbit.
22587         * doc/posix-functions/ceill.texi: Mention the new module.
22588
22589 2010-12-21  Bruno Haible  <bruno@clisp.org>
22590
22591         New module 'floorl-ieee'.
22592         * modules/floorl-ieee: New file.
22593         * modules/floorl-ieee-tests: New file.
22594         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22595         * tests/test-floorl.c (main): Remove signbit tests.
22596         * modules/floorl-tests (Depends-on): Remove signbit.
22597         * doc/posix-functions/floorl.texi: Mention the new module.
22598
22599 2010-12-21  Bruno Haible  <bruno@clisp.org>
22600
22601         New module 'round-ieee'.
22602         * modules/round-ieee: New file.
22603         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22604         whether round works according to ISO C 99 with IEC 60559.
22605         * m4/round-ieee.m4: New file.
22606         * modules/round-ieee-tests: New file.
22607         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22608         * tests/test-round1.c (main): Remove signbit tests.
22609         * modules/round-tests (Depends-on): Remove 'signbit'.
22610         * doc/posix-functions/round.texi: Mention the new module.
22611
22612 2010-12-21  Bruno Haible  <bruno@clisp.org>
22613
22614         New module 'trunc-ieee'.
22615         * modules/trunc-ieee: New file.
22616         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22617         whether trunc works according to ISO C 99 with IEC 60559.
22618         * m4/trunc-ieee.m4: New file.
22619         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22621         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22622         * modules/trunc-ieee-tests: New file.
22623         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22624         * tests/test-trunc1.c (main): Remove signbit tests.
22625         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22626         * doc/posix-functions/trunc.texi: Mention the new module.
22627
22628 2010-12-21  Bruno Haible  <bruno@clisp.org>
22629
22630         New module 'ceil-ieee'.
22631         * modules/ceil-ieee: New file.
22632         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22633         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22634         ISO C 99 with IEC 60559.
22635         * m4/ceil-ieee.m4: New file.
22636         * modules/ceil (Files): Add lib/ceil.c.
22637         (Depends-on): Add 'float'.
22638         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22639         * lib/math.in.h (ceil): New declaration.
22640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22641         REPLACE_CEIL.
22642         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22643         * modules/ceil-ieee-tests: New file.
22644         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22645         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22646         * doc/posix-functions/ceil.texi: Mention the new module.
22647
22648 2010-12-21  Bruno Haible  <bruno@clisp.org>
22649
22650         New module 'floor-ieee'.
22651         * modules/floor-ieee: New file.
22652         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22653         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22654         ISO C 99 with IEC 60559.
22655         * m4/floor-ieee.m4: New file.
22656         * modules/floor (Files): Add lib/floor.c.
22657         (Depends-on): Add 'float'.
22658         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22659         * lib/math.in.h (floor): New declaration.
22660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22661         REPLACE_FLOOR.
22662         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22663         * modules/floor-ieee-tests: New file.
22664         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22665         * tests/test-math-c++.cc: Check the signature of 'floor'.
22666         * doc/posix-functions/floor.texi: Mention the new module.
22667
22668 2010-12-21  Bruno Haible  <bruno@clisp.org>
22669
22670         New module 'roundf-ieee'.
22671         * modules/roundf-ieee: New file.
22672         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22673         test whether roundf works according to ISO C 99 with IEC 60559.
22674         * m4/roundf-ieee.m4: New file.
22675         * modules/roundf-ieee-tests: New file.
22676         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22677         * tests/test-roundf1.c (main): Remove signbit tests.
22678         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22679         * doc/posix-functions/roundf.texi: Mention the new module.
22680
22681 2010-12-21  Bruno Haible  <bruno@clisp.org>
22682
22683         New module 'truncf-ieee'.
22684         * modules/truncf-ieee: New file.
22685         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22686         test whether truncf works according to ISO C 99 with IEC 60559.
22687         * m4/truncf-ieee.m4: New file.
22688         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22690         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22691         * modules/truncf-ieee-tests: New file.
22692         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22693         * tests/test-truncf1.c (main): Remove signbit tests.
22694         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22695         * doc/posix-functions/truncf.texi: Mention the new module.
22696
22697 2010-12-21  Bruno Haible  <bruno@clisp.org>
22698
22699         New module 'ceilf-ieee'.
22700         * modules/ceilf-ieee: New file.
22701         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22702         test whether ceilf works according to ISO C 99 with IEC 60559.
22703         * m4/ceilf-ieee.m4: New file.
22704         * modules/ceilf-ieee-tests: New file.
22705         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22706         * tests/test-ceilf1.c (main): Remove signbit tests.
22707         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22708         * doc/posix-functions/ceilf.texi: Mention the new module.
22709
22710 2010-12-21  Bruno Haible  <bruno@clisp.org>
22711
22712         New module 'floorf-ieee'.
22713         * modules/floorf-ieee: New file.
22714         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22715         test whether floorf works according to ISO C 99 with IEC 60559.
22716         * m4/floorf-ieee.m4: New file.
22717         * modules/floorf-ieee-tests: New file.
22718         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22719         * tests/test-floorf1.c (main): Remove signbit tests.
22720         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22721         * doc/posix-functions/floorf.texi: Mention the new module.
22722
22723 2010-12-21  Bruno Haible  <bruno@clisp.org>
22724
22725         Support for minus zero in autoconf macros.
22726         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22727         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22728         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22729         * tests/minus-zero.h: Update comments.
22730
22731 2010-12-21  Bruno Haible  <bruno@clisp.org>
22732
22733         Tests for module 'ceil'.
22734         * modules/ceil-tests: New file.
22735         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22736         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22737
22738 2010-12-21  Bruno Haible  <bruno@clisp.org>
22739
22740         Tests for module 'floor'.
22741         * modules/floor-tests: New file.
22742         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22743         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22744
22745 2010-12-21  Bruno Haible  <bruno@clisp.org>
22746
22747         math: Fix indentation.
22748         * lib/math.in.h (floorf): Fix indentation.
22749
22750 2010-12-21  Bruno Haible  <bruno@clisp.org>
22751
22752         Fix cross-compilation guesses on Solaris.
22753         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22754         not match "solaris2.10".
22755         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22756         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22757         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22758
22759 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22760
22761         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22762         This fixes a problem observed with the latest coreutils snapshot
22763         that caused a test to fail on Solaris 8.  src/csplit.c's call
22764         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22765         earlier, instead of returning the number of bytes that would have
22766         been generated; this causes csplit to incorrectly report memory
22767         exhaustion.
22768         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22769         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22770         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22771         comments to match.
22772         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22773         Fix typo in matching older versions of Solaris: "solaris2.10"
22774         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22775         only for guessing while cross-compiling.
22776         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22777
22778 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22779
22780         ftoastr: fix comment again
22781         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22782         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22783         Also, simplify example a bit by using flags = 0.
22784
22785 2010-12-20  Bruno Haible  <bruno@clisp.org>
22786
22787         round*, trunc*: Update documentation regarding glibc.
22788         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22789         * doc/posix-functions/round.texi: Likewise.
22790         * doc/posix-functions/roundl.texi: Likewise.
22791         * doc/posix-functions/truncf.texi: Likewise.
22792         * doc/posix-functions/trunc.texi: Likewise.
22793         * doc/posix-functions/truncl.texi: Likewise.
22794
22795 2010-12-20  Bruno Haible  <bruno@clisp.org>
22796
22797         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22798         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22799         * doc/posix-functions/round.texi: Likewise.
22800         * doc/posix-functions/roundl.texi: Likewise.
22801
22802 2010-12-20  Bruno Haible  <bruno@clisp.org>
22803
22804         ttyname_r: Add missing declaration on HP-UX 11.
22805         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22806         HAVE_TTYNAME_R.
22807         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22808         declared. Set HAVE_TTYNAME_R always.
22809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22810         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22811         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22812         HAVE_TTYNAME_R.
22813         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22814
22815 2010-12-20  Bruno Haible  <bruno@clisp.org>
22816
22817         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22818         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22819         * doc/posix-functions/getlogin_r.texi: Likewise.
22820         * tests/test-getlogin.c: Include <errno.h>.
22821         (main): Avoid test failure on HP-UX 11.11.
22822         * tests/test-getlogin_r.c (main): Likewise.
22823
22824 2010-12-20  Bruno Haible  <bruno@clisp.org>
22825
22826         getlogin_r: Add missing declaration on HP-UX 11.
22827         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22828         declared also when it exists as a function.
22829         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22830
22831 2010-12-20  Bruno Haible  <bruno@clisp.org>
22832
22833         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22834         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22835         through wcrtomb.
22836
22837 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22838
22839         ftoastr: fix comment
22840         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22841         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22842
22843 2010-12-19  Bruno Haible  <bruno@clisp.org>
22844
22845         isnan: Ensure it is a macro.
22846         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22847         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22848         Solaris.
22849
22850 2010-12-19  Bruno Haible  <bruno@clisp.org>
22851
22852         ldexpl test: Fix link error on OSF/1 5.1.
22853         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22854
22855 2010-12-19  Bruno Haible  <bruno@clisp.org>
22856
22857         wctype: Make it work in C++ mode on OSF/1 5.1.
22858         * lib/wctype.in.h (iswblank): Declare but not define here.
22859         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22860         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22861         * modules/wctype (Files): Add lib/iswblank.c.
22862
22863 2010-12-19  Bruno Haible  <bruno@clisp.org>
22864
22865         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22866         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22867         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22868
22869 2010-12-19  Bruno Haible  <bruno@clisp.org>
22870
22871         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22872         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22873         _POSIX_PII_SOCKET.
22874         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22875         * doc/posix-functions/recvfrom.texi: Likewise.
22876         * doc/posix-functions/send.texi: Likewise.
22877         * doc/posix-functions/sendto.texi: Likewise.
22878
22879 2010-12-19  Bruno Haible  <bruno@clisp.org>
22880
22881         tcgetsid: Add missing declaration on OSF/1 5.1.
22882         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22883         HAVE_TCGETSID.
22884         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22885         Don't set HAVE_TCGETSID.
22886         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22887         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22888         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22889         HAVE_TCGETSID.
22890         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22891
22892 2010-12-19  Bruno Haible  <bruno@clisp.org>
22893
22894         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22895         * lib/stdio.in.h: During the include_next statement, let recursive
22896         includes of this file include only the system header file.
22897
22898 2010-12-19  Bruno Haible  <bruno@clisp.org>
22899
22900         iconv_open: Fix regression from 2010-12-04.
22901         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22902         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22903
22904 2010-12-19  Bruno Haible  <bruno@clisp.org>
22905
22906         stdbool test: Avoid a gcc warning.
22907         * tests/test-stdbool.c (main): Fail if e1 is false.
22908         Reported by Jim Meyering.
22909
22910 2010-12-19  Jim Meyering  <meyering@redhat.com>
22911
22912         setenv: restore to working order
22913         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22914         mistakenly removed.
22915         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22916         HAVE_SETENV.
22917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22918         HAVE_SETENV.
22919
22920 2010-12-19  Bruno Haible  <bruno@clisp.org>
22921
22922         Document some different function declarations on OSF/1 5.1.
22923         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22924         * doc/posix-functions/inet_ntop.texi: Likewise.
22925         * doc/posix-functions/gethostname.texi: Likewise.
22926         * lib/unistd.in.h (gethostname): Update comment.
22927
22928 2010-12-19  Bruno Haible  <bruno@clisp.org>
22929
22930         doc: Mention vasprintf-posix module.
22931         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22932         the 'vasprintf-posix' module.
22933         * doc/glibc-functions/vasprintf.texi: Likewise.
22934
22935 2010-12-19  Bruno Haible  <bruno@clisp.org>
22936
22937         unsetenv: Add missing declaration on OSF/1 5.1.
22938         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22939         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22940         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22942         not HAVE_UNSETENV.
22943         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22944         HAVE_UNSETENV.
22945         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22946
22947 2010-12-19  Bruno Haible  <bruno@clisp.org>
22948
22949         setenv: Add missing declaration on OSF/1 5.1.
22950         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22951         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22952         declared. Don't set HAVE_SETENV.
22953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22954         not HAVE_SETENV.
22955         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22956         HAVE_SETENV.
22957         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22958
22959 2010-12-19  Bruno Haible  <bruno@clisp.org>
22960
22961         nl_langinfo tests: Avoid gcc warning.
22962         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22963
22964 2010-12-19  Bruno Haible  <bruno@clisp.org>
22965
22966         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22967         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22968         _GL_CXXALIAS_SYS.
22969
22970 2010-12-19  Bruno Haible  <bruno@clisp.org>
22971
22972         stdbool: Relax test.
22973         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22974         address to 'bool' work in static initializer, for compilers other than
22975         GCC.
22976
22977 2010-12-19  Bruno Haible  <bruno@clisp.org>
22978
22979         ftello: Add missing declaration on OSF/1 5.1.
22980         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22981         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22983         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22984         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22985
22986 2010-12-19  Bruno Haible  <bruno@clisp.org>
22987
22988         fseeko: Add missing declaration on OSF/1 5.1.
22989         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22992         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22993         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22994
22995 2010-12-19  Bruno Haible  <bruno@clisp.org>
22996
22997         fchdir: Add missing declaration on OSF/1 5.1.
22998         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23001         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23002         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23003
23004 2010-12-19  Bruno Haible  <bruno@clisp.org>
23005
23006         relocatable-prog-wrapper: Separate from relocatable-prog.
23007         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23008         uninstall-relocwrapper rule here.
23009         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23010         Reported by Ian Beckwith <ianb@erislabs.net>.
23011
23012 2010-12-19  Bruno Haible  <bruno@clisp.org>
23013
23014         unistr/u8-mbsnlen: Add missing dependency.
23015         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23016         Reported by Ian Beckwith <ianb@erislabs.net>.
23017
23018 2010-12-19  Bruno Haible  <bruno@clisp.org>
23019
23020         iconv: Make it possible again to use this module without 'iconv-h'.
23021         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23022         if it is not defined.
23023         Reported by Ian Beckwith <ianb@erislabs.net>.
23024
23025 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23026
23027         acl: port to Solaris 8 when copying from tmpfs to ufs
23028         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23029         error number.  Problem observed on Solaris 8 with latest
23030         coreutils, with "mv A B", where A is on a tmpfs file system and B
23031         is on a ufs file system.  This caused coreutils' mv/part-symlink
23032         test to fail.
23033
23034         tests: set fail=0 at start
23035         * tests/init.sh (setup_): Move fail=0 initialization here ...
23036         (mktempd_): ... from here, so that tests can rely on fail being
23037         set to 0 initially.  This fixes a problem in coreutils; see:
23038         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23039
23040 2010-12-18  Bruno Haible  <bruno@clisp.org>
23041
23042         memmem-simple: Stylistic changes.
23043         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23044         Fix preprocessor directive indentation.
23045
23046 2010-12-15  Pádraig Brady <P@draigBrady.com>
23047
23048         memmem, memmem-simple: reorganize and expand empty needle check
23049         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23050         functional checks to memmem-simple so that one has a fully functional
23051         memmem by using just this module.
23052         Restrict the performance only check to the memmem module.
23053         Also expand the empty needle check to ensure the correct
23054         pointer is returned, not just a non NULL pointer.
23055         * doc/glibc-functions/memmem.texi: Rearrange the portability
23056         documentation to correlate with the rearranged checks.
23057         Clarify exactly how the memmem and memmem-simple modules
23058         relate to each other.
23059
23060 2010-12-15  Pádraig Brady <P@draigBrady.com>
23061             Bruno Haible  <bruno@clisp.org>
23062
23063         Improve cross-compilation guesses for uClibc.
23064         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23065         that uClibc does not have the glibc bug.
23066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23067         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23068
23069 2010-12-14  Eric Blake  <eblake@redhat.com>
23070
23071         configmake: provide fallbacks for oldest supported autotools
23072         * m4/configmake.m4: New file.
23073         * modules/configmake (Files): Ship it.
23074         (configure.ac): Use it to guarantee fallbacks.
23075
23076 2010-12-13  Pádraig Brady <P@draigBrady.com>
23077
23078         read-file: Improve handling of large files
23079         * lib/read-file.c (fread_file): Minimize realloc()s
23080         for regular files, and better manage sizes around SIZE_MAX.
23081
23082 2010-12-13  Eric Blake  <eblake@redhat.com>
23083
23084         cloexec, fcntl: relax license
23085         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23086         consent from all contributors.
23087         * modules/fcntl (License): Likewise.
23088
23089 2010-12-10  Bruno Haible  <bruno@clisp.org>
23090
23091         Tests for module 'pipe-posix'.
23092         * modules/pipe-posix-tests: New file.
23093         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23094
23095 2010-12-10  Bruno Haible  <bruno@clisp.org>
23096
23097         pipe-posix: Make it work in C++ mode.
23098         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23099         (pipe): Use common idiom, not a macro definition.
23100         * lib/pipe.c: New file.
23101         * m4/pipe.m4: New file.
23102         * modules/pipe-posix (Description): Enhance.
23103         (Files): Add lib/pipe.c, m4/pipe.m4.
23104         (configure.ac): Invoke gl_FUNC_PIPE.
23105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23106         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23107         * tests/test-unistd-c++.cc: Check the signature of pipe.
23108
23109 2010-12-10  Bruno Haible  <bruno@clisp.org>
23110
23111         Rename module 'pipe' to 'spawn-pipe'.
23112         * modules/spawn-pipe: New file, renamed from modules/pipe.
23113         (Files, configure.ac, Makefile.am): Update.
23114         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23115         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23116         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23117         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23118         "spawn-pipe.h" instead of "pipe.h".
23119         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23120         to gl_SPAWN_PIPE.
23121         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23122         (Files, Makefile.am): Update.
23123         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23124         Update.
23125         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23126         Include "spawn-pipe.h" instead of "pipe.h".
23127         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23128         * lib/javacomp.c: Likewise.
23129         * lib/javaversion.c: Likewise.
23130         * lib/pipe-filter-gi.c: Likewise.
23131         * lib/pipe-filter-ii.c: Likewise.
23132         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23133         * modules/javacomp (Depends-on): Likewise.
23134         * modules/javaversion (Depends-on): Likewise.
23135         * modules/pipe-filter-gi (Depends-on): Likewise.
23136         * modules/pipe-filter-ii (Depends-on): Likewise.
23137         * MODULES.html.sh (Executing programs): Update.
23138         * NEWS: Mention the change.
23139
23140 2010-12-10  Eric Blake  <eblake@redhat.com>
23141
23142         pipe-posix: new module
23143         * modules/pipe-posix: New file.
23144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23145         (gl_UNISTD_H): Check for declaration.
23146         * modules/unistd (Makefile.am): Substitute it.
23147         * lib/unistd.in.h (pipe): Provide it for mingw.
23148         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23149         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23150
23151 2010-12-07  Bruno Haible  <bruno@clisp.org>
23152
23153         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23154         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23155         u8_strcmp_gnu.
23156         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23157
23158 2010-12-06  Bruno Haible  <bruno@clisp.org>
23159
23160         Update internal documentation.
23161         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23162
23163 2010-12-04  Bruno Haible  <bruno@clisp.org>
23164
23165         Put more information about failed tests into the test return codes.
23166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23167         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23168         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23169         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23170         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23171         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23172         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23173         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23174         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23176         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23177         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23178         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23179         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23180         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23181         returns a bit mask.
23182         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23183         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23184         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23185         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23186         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23187         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23188         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23190         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23191         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23192         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23193         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23194         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23195         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23196         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23197         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23198         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23199         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23200         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23201         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23203         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23204         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23205         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23206         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23207         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23208         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23209         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23210         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23211         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23212         gl_PRINTF_PRECISION): Likewise.
23213         * m4/regex.m4 (gl_REGEX): Likewise.
23214         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23215         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23216         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23217         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23218         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23220         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23221         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23222         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23223         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23224         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23225         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23226         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23227         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23228         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23229         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23230         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23231         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23233         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23234         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23235         enumerated value.
23236         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23237
23238 2010-12-04  Bruno Haible  <bruno@clisp.org>
23239
23240         Update for Solaris 11 2010-11.
23241         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23242         Express, released in November 2010.
23243
23244 2010-12-04  Bruno Haible  <bruno@clisp.org>
23245
23246         nproc: Relax license.
23247         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23248         and Paul Eggert.
23249         Requested by Ludovic Courtès <ludo@gnu.org>.
23250
23251 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23252
23253         utimecmp: fine-grained src to nearby coarse-grained dest
23254
23255         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23256         and the source is on a file system with higher-resolution time
23257         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23258         not work, and the time stamps are close together, the algorithm to
23259         determine the exact resolution from the read-back mtime was buggy:
23260         it had a "!=" where it should have had an "==".  This bug has been
23261         in the code ever since it was introduced to gnulib.
23262         Problem reported by Dan Jacobson in
23263         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23264
23265 2010-11-30  Bruno Haible  <bruno@clisp.org>
23266
23267         strerror_r-posix: Fix autoconf test.
23268         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23269
23270 2010-11-28  Bruno Haible  <bruno@clisp.org>
23271             Paul Eggert  <eggert@cs.ucla.edu>
23272
23273         Tests for module 'getdomainname'.
23274         * modules/getdomainname-tests: New file.
23275         * tests/test-getdomainname.c: New file, based on
23276         tests/test-gethostname.c.
23277
23278 2010-11-28  Bruno Haible  <bruno@clisp.org>
23279             Paul Eggert  <eggert@cs.ucla.edu>
23280
23281         getdomainname: Use the system function when possible.
23282         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23283         (getdomainname): Replace if needed. Provide the declaration if it is
23284         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23285         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23286         (getdomainname): When the system has getdomainname, call the system
23287         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23288         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23289         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23290         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23291         the function if its second argument is of type 'int' or if it is found
23292         in libnsl.
23293         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23294         <sys/systeminfo.h> and sysinfo().
23295         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23297         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23298         HAVE_GETDOMAINNAME.
23299         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23300         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23301         * doc/glibc-functions/getdomainname.texi: Document the problems with
23302         the getdomainname declaration.
23303
23304 2010-11-28  Bruno Haible  <bruno@clisp.org>
23305
23306         sys_socket: Ensure ss_family field on AIX.
23307         * lib/sys_socket.in.h (ss_family): New macro definition.
23308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23309         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23310         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23311         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23312         * modules/sys_socket (Makefile.am): Substitute
23313         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23314         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23315
23316 2010-11-27  Bruno Haible  <bruno@clisp.org>
23317
23318         readline: Improve configure output.
23319         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23320         "checking for readline..." result understandable.
23321
23322 2010-11-27  Bruno Haible  <bruno@clisp.org>
23323
23324         *printf-posix: Detect a bug on Solaris 10/x86.
23325         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23326         for floating-point output.
23327         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23328         directive.
23329         * tests/test-snprintf-posix.h (test_function): Likewise.
23330         * tests/test-sprintf-posix.h (test_function): Likewise.
23331         * tests/test-vasprintf-posix.c (test_function): Likewise.
23332         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23333         * doc/posix-functions/printf.texi: Likewise.
23334         * doc/posix-functions/snprintf.texi: Likewise.
23335         * doc/posix-functions/sprintf.texi: Likewise.
23336         * doc/posix-functions/vfprintf.texi: Likewise.
23337         * doc/posix-functions/vprintf.texi: Likewise.
23338         * doc/posix-functions/vsnprintf.texi: Likewise.
23339         * doc/posix-functions/vsprintf.texi: Likewise.
23340         * doc/glibc-functions/obstack_printf.texi: Likewise.
23341         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23342
23343 2010-11-27  Bruno Haible  <bruno@clisp.org>
23344
23345         Fix link error when module libunistring-optional is in use.
23346         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23347         * modules/striconveha-tests (Makefile.am): Likewise.
23348
23349 2010-11-27  Bruno Haible  <bruno@clisp.org>
23350
23351         regex: Mention link dependencies.
23352         * modules/regex (Link): New section.
23353         * modules/rpmatch (Link): Likewise.
23354         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23355
23356 2010-11-27  Bruno Haible  <bruno@clisp.org>
23357
23358         ftoastr: Fix compilation error on Solaris.
23359         * lib/ftoastr.c: Include <config.h>.
23360
23361 2010-11-27  Bruno Haible  <bruno@clisp.org>
23362
23363         getloadavg: Update documentation.
23364         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23365
23366 2010-11-27  Bruno Haible  <bruno@clisp.org>
23367
23368         sys_socket: Fix test whether the functions are declared.
23369         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23370         not <sys/select.h>.
23371
23372 2010-11-27  Bruno Haible  <bruno@clisp.org>
23373
23374         getpass: Make sure to get system declaration on some platforms.
23375         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23376         gl_USE_SYSTEM_EXTENSIONS.
23377         * modules/getpass (Depends-on): Add extensions.
23378
23379 2010-11-26  Bruno Haible  <bruno@clisp.org>
23380
23381         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23382         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23383         'iconv' module is present.
23384         (ICONV_CONST): New macro.
23385         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23386         ICONV_CONST.
23387         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23388         set ICONV_CONST.
23389         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23390         here.
23391         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23392         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23393         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23394         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23395         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23396         present.
23397
23398 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23399
23400         ftoastr: comment fix
23401         * lib/ftoastr.c: "little" -> "little or no" in comment
23402
23403 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23404
23405         stdint: port to GCC 4.3 + OSX + Octave
23406         On this platform, stdint.h is buggy and defines int64_t to long
23407         long int.  The replacement defined it to long int, causing
23408         problems with C++ style name mangling.  Instead, trust the system
23409         definition if INT64_MAX is defined, and likewise for the unsigned
23410         variant.   Problem reported by Jarno Rajahalme in
23411         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23412         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23413         and don't mess with int64_t and INT64_MAX in this case.
23414         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23415
23416 2010-11-24  Bruno Haible  <bruno@clisp.org>
23417
23418         doc: Corrections regarding MacOS X 10.4 and 10.5.
23419         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23420         MacOS X.
23421         Reported by Simon Josefsson.
23422
23423 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23424
23425         Uninstall ".bin" files installed by relocwrapper.
23426         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23427         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23428         unless it is already there.
23429
23430 2010-11-21  Bruno Haible  <bruno@clisp.org>
23431
23432         Update for NetBSD 5.0.
23433         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23434         NetBSD; the test fails on NetBSD 5.0.
23435         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23436         about NetBSD.
23437
23438 2010-11-21  Bruno Haible  <bruno@clisp.org>
23439
23440         Update for HP-UX 11.23 and HP-UX 11.31.
23441         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23442         HP-UX.
23443
23444 2010-11-21  Bruno Haible  <bruno@clisp.org>
23445
23446         Update for MacOS X 10.5.
23447         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23448         MacOS X; the test fails on MacOS X 10.5.8.
23449         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23450         about MacOS X.
23451
23452 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23453
23454         bootstrap: add bootstrap_sync option.
23455         See discussion at
23456         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23457         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23458         * build-aux/bootstrap: Accept --bootstrap-sync to update
23459         bootstrap if it is not identical to the local gnulib's
23460         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23461         enable this by default.  Accept --no-bootstrap-sync to disable
23462         it.
23463
23464 2010-11-20  Bruno Haible  <bruno@clisp.org>
23465
23466         Ensure that <features.h> is included before __GLIBC__ is tested.
23467         * lib/printf-parse.h: Include <features.h>.
23468         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23469         Reported by Mike Frysinger <vapier@gentoo.org>.
23470
23471         Ensure that <features.h> is included before __GLIBC__ is tested.
23472         * lib/wchar.in.h: Include <features.h>.
23473         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23474         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23475         Reported by Mike Frysinger <vapier@gentoo.org>.
23476
23477         Ensure that <features.h> is included before __GLIBC__ is tested.
23478         * lib/arpa_inet.in.h: Include <features.h>.
23479         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23480         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23481         Reported by Mike Frysinger <vapier@gentoo.org>.
23482
23483         Ensure that <features.h> is included before __GLIBC__ is tested.
23484         * build-aux/link-warning.h: Include <features.h>.
23485         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23486         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23487         Reported by Mike Frysinger <vapier@gentoo.org>.
23488
23489         Ensure that <features.h> is included before __GLIBC__ is tested.
23490         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23491         Reported by Mike Frysinger <vapier@gentoo.org>.
23492
23493 2010-11-20  Bruno Haible  <bruno@clisp.org>
23494
23495         memmem: Fix autoconf test.
23496         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23497
23498 2010-11-20  Bruno Haible  <bruno@clisp.org>
23499
23500         Port to uClibc.
23501         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23502         * lib/fcntl.in.h: Likewise.
23503         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23504         * lib/mbrtowc.c (mbrtowc): Likewise.
23505         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23506         * lib/strerror_r.c: Likewise.
23507         * lib/unistr/u8-strnlen.c: Likewise.
23508         * lib/vasnprintf.c (decimal_point_char): Likewise.
23509         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23510         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23511         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23512         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23513         * tests/test-sigaction.c (handler, main): Likewise.
23514         * lib/freading.h: Treat uClibc like a non-glibc platform.
23515         * lib/freading.c: Likewise.
23516         * lib/gettext.h: Likewise.
23517         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23518         Likewise.
23519         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23520         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23521         * lib/propername.c (proper_name_utf8): Likewise.
23522         * lib/spawn.in.h: Likewise.
23523         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23524         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23525         mem_cd_iconveh_internal): Likewise.
23526         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23527         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23528         strstr, strcasestr): Likewise.
23529         * lib/unicodeio.c (unicode_to_mb): Likewise.
23530         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23531         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23532         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23533         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23534         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23535         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23536         * lib/unistr/u8-stpncpy.c: Likewise.
23537         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23538         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23540         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23541         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23542         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23543         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23544         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23545         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23546         Likewise.
23547         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23548         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23549         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23550         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23551         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23552         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23553         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23554         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23555         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23556         * tests/test-striconveha.c (main): Likewise.
23557         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23558         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23559         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23560         * doc/posix-functions/getline.texi: Likewise.
23561         Reported by Mike Frysinger <vapier@gentoo.org>.
23562
23563 2010-11-20  Bruno Haible  <bruno@clisp.org>
23564
23565         nproc: Fix condition.
23566         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23567         HAVE_PTHREAD_AFFINITY_NP.
23568
23569 2010-11-20  Bruno Haible  <bruno@clisp.org>
23570
23571         Fix a comment.
23572         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23573
23574 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23575
23576         ftoastr: don't assume snprintf
23577         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23578         Implement a subset of snprintf here, by using sprintf safely.
23579         * modules/ftoastr (Depends-on): Remove snprintf.
23580
23581 2010-11-19  Jim Meyering  <meyering@redhat.com>
23582
23583         test-rename.h: fix compilation failure
23584         * tests/test-rename.h (test_rename): Add omitted "}".
23585
23586 2010-11-17  Jim Meyering  <meyering@redhat.com>
23587
23588         maint.mk: add a URL discussing the no-@acronym policy
23589         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23590
23591 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23592
23593         ftoastr: depend on snprintf, improve comments
23594         * lib/ftoastr.c: Also mention Loitsch's draft.
23595         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23596         needed in the current implementation, but it might simplify
23597         speeding up the code later.
23598         * modules/ftoastr: Depend on snprintf; this improves portability.
23599         Suggested by Bruno Haible in the same email.
23600
23601         ftoastr: port to hosts lacking strtof and strtold
23602         Problem reported by Bruno Haible in
23603         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23604         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23605         environment and strtold (and presumably strtof) are not available.
23606         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23607         (configure.ac): Require gl_C99_STRTOLD.
23608
23609 2010-11-18  Bruno Haible  <bruno@clisp.org>
23610
23611         c-strtold: Avoid link error on AIX 7.
23612         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23613         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23614         (gl_C_STRTOLD): Test whether strtold_l exists.
23615         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23616
23617 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23618
23619         intprops: new macro INT_BITS_STRLEN_BOUND
23620         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23621         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23622         not exposed.  Also, it uses a slightly tighter bound than before;
23623         though this makes no practical difference, we might as well be as
23624         tight as we easily can.
23625
23626         ftoastr: new module, for lossless conversion of floats to short strings
23627         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23628         * modules/ftoastr: New files.
23629
23630 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23631
23632         bootstrap: port to Solaris sed
23633         * build-aux/bootstrap (get_version): Port to Solaris sed.
23634         See Ralf Wildenhues's note in
23635         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23636
23637 2010-11-14  Jim Meyering  <meyering@redhat.com>
23638
23639         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23640         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23641         and move definition closer to sole use.
23642
23643 2010-11-13  Jim Meyering  <meyering@redhat.com>
23644
23645         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23646         Now we require at least autoconf-2.59, which means the work-around
23647         is no longer needed.
23648         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23649         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23650         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23651         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23652         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23653
23654 2010-11-13  Bruno Haible  <bruno@clisp.org>
23655
23656         rename, renameat: Avoid test failures at NFS mounted locations.
23657         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23658         functions.
23659         (test_rename): Use assert_nonexistent.
23660         * tests/test-rename.c: Include <dirent.h>.
23661         * tests/test-renameat.c: Likewise.
23662         Reported by Gary V. Vaughan <gary@gnu.org>.
23663
23664         rename, renameat: Document Linux bug with NFS
23665         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23666         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23667         * doc/posix-functions/renameat.texi: Likewise.
23668         Suggested by Eric Blake.
23669
23670 2010-11-13  Bruno Haible  <bruno@clisp.org>
23671
23672         rename test: Add comments.
23673         * tests/test-rename.h (test_rename): Add structure and comments.
23674
23675 2010-11-13  Eric Blake  <eblake@redhat.com>
23676
23677         maintainer-makefile: cover a few more files
23678         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23679         scripts generated within C files, for libvirt.
23680
23681 2010-11-13  Bruno Haible  <bruno@clisp.org>
23682
23683         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23684         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23685         character, return the number of bytes that belong together, not always
23686         1.
23687         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23688         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23689         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23690         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23691         number of bytes of an invalid character.
23692         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23693         (main): Invoke it.
23694         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23695         results.
23696         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23697         malformed byte sequences.
23698         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23699         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23700         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23701         Reported by Ben Pfaff and Paolo Bonzini.
23702
23703 2010-11-13  Bruno Haible  <bruno@clisp.org>
23704
23705         openat: Work around glibc bug with fchownat() and empty file names.
23706         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23707         (gl_FUNC_FCHOWNAT): Invoke it.
23708         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23709         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23710         Reported by Gary V. Vaughan <gary@gnu.org>.
23711
23712 2010-11-13  Bruno Haible  <bruno@clisp.org>
23713
23714         openat: Ensure autoconf macro ordering.
23715         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23716         gl_USE_SYSTEM_EXTENSIONS.
23717         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23718
23719 2010-11-13  Bruno Haible  <bruno@clisp.org>
23720
23721         Update comments.
23722         * lib/unistr/u8-check.c: Update file name in comments.
23723         * lib/unistr/u8-mblen.c: Likewise.
23724         * lib/unistr/u8-prev.c: Likewise.
23725         * lib/unistr/u8-strmblen.c: Likewise.
23726         * lib/unistr/u8-strmbtouc.c: Likewise.
23727
23728 2010-11-13  Jim Meyering  <meyering@redhat.com>
23729
23730         tests: avoid test failure on Solaris 10 due to lack of PATH export
23731         * tests/test-update-copyright.sh: Don't forget to export PATH.
23732
23733         init.sh: ensure that IFS is defined, just in case...
23734         * tests/init.sh (setup_): Ensure that IFS is defined,
23735         so that saving and restoring it works as expected.  This
23736         appears to be useful at least for an old version of dash
23737         from a long time ago (RH 6).  See here for details:
23738         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23739
23740         maint.mk: tighten "test a == b" check
23741         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23742         test to files that contain something like #!/bin/sh.
23743         Without this, coreutils would get two false positives in
23744         the comments of C source files.
23745
23746 2010-11-12  Eric Blake  <eblake@redhat.com>
23747
23748         bootstrap: fix typo in previous attempt
23749         * build-aux/bootstrap (buildreq): Correct the grouping.
23750         Reported by Paul Eggert.
23751
23752         maintainer-makefile: prohibit test x == x
23753         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23754         Based on a report by Matthias Bolte.
23755
23756         bootstrap: allow FreeBSD gzip
23757         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23758         which has no '.' and goes to stderr.
23759         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23760         Reported by Matthias Bolte.
23761
23762         maintainer-makefile: check for i18n setup
23763         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23764         will likely work.
23765
23766 2010-11-12  Bruno Haible  <bruno@clisp.org>
23767
23768         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23769         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23770         * lib/nanosleep.c (nanosleep): Likewise.
23771
23772 2010-11-11  Bruno Haible  <bruno@clisp.org>
23773
23774         fcntl-h: Fix for use of C++ on glibc systems.
23775         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23776         also on glibc systems in C++ mode.
23777         Reported by Gary V. Vaughan <gary@gnu.org>.
23778
23779 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23780
23781         mknod: avoid false failure with dash
23782         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23783
23784 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23785
23786         unlink: Fix "is it should" typo in diagnostic.
23787         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23788         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23789
23790 2010-11-11  Bruno Haible  <bruno@clisp.org>
23791
23792         Tests for module 'strerror_r-posix'.
23793         * modules/strerror_r-posix-tests: New file.
23794         * tests/test-strerror_r.c: New file.
23795         * tests/test-string-c++.cc: Check the signature of strerror_r.
23796
23797         New module 'strerror_r-posix'.
23798         * lib/string.in.h (strerror_r): New declaration.
23799         * lib/strerror_r.c: New file.
23800         * m4/strerror_r.m4: New file.
23801         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23802         of strerror_r.
23803         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23804         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23805         * modules/strerror_r-posix: New file.
23806         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23807         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23808         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23809         portability problems.
23810
23811 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23812
23813         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23814         line is also considered for output. Quoted function name in shell
23815         command, so temporary files for functions like MyClass::operator()
23816         are removed correctly without errors.
23817
23818 2010-11-09  Bruno Haible  <bruno@clisp.org>
23819
23820         * doc/posix-functions/strerror.texi: List more failing platforms.
23821
23822         * doc/posix-functions/strerror.texi: Add a comment.
23823
23824 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23825
23826         fdopendir: fix bug on MacOS X when low on file descriptors
23827
23828         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23829         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23830         All callers changed.
23831         (fdopendir): Invoke save_cwd at the top level, not after using
23832         multiple dup() calls to use up file descriptors.  Then retry
23833         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23834         less than the maximum number of open file descriptors, because
23835         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23836         on Mac OS X 10.6.4 for tar 1.24
23837         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23838         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23839         and for tar 1.25
23840         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23841
23842 2010-11-07  Bruno Haible  <bruno@clisp.org>
23843
23844         vasnprintf: Support I flag on glibc systems.
23845         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23846         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23847         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23848         snprintf function.
23849         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23850         glibc systems.
23851         * tests/test-vasnprintf-posix3.c: New file.
23852         * modules/vasnprintf-posix-tests (Files): Add it.
23853         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23854
23855 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23856
23857         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23858         * MODULES.html.sh: For compiler warnings, use name
23859         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23860
23861 2010-11-05  Eric Blake  <eblake@redhat.com>
23862
23863         ceil, floor: avoid spurious failure with icc
23864         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23865         [denormals-as-zero] when optimizing without -mieee-fp option.
23866         * tests/test-floorf2.c (floorf_reference): Likewise.
23867         * tests/test-ceilf1.c (dummy): New function.
23868         (main): Use it to outsmart icc's optimization.
23869         * tests/test-floorf1.c (dummy, main): Likewise.
23870
23871         tests: require working signbit
23872         * modules/ceilf-tests (Depends-on): Add signbit.
23873         * modules/ceill-tests (Depends-on): Likewise.
23874         * modules/floorf-tests (Depends-on): Likewise.
23875         * modules/floorl-tests (Depends-on): Likewise.
23876         * modules/round-tests (Depends-on): Likewise.
23877         * modules/roundf-tests (Depends-on): Likewise.
23878         * modules/roundl-tests (Depends-on): Likewise.
23879         * modules/trunc-tests (Depends-on): Likewise.
23880         * modules/truncf-tests (Depends-on): Likewise.
23881         * modules/truncl-tests (Depends-on): Likewise.
23882
23883         strtod: work around icc bug
23884         * lib/strtod.c (minus_zero): Define to working value.
23885         (strtod): Use it to avoid icc bug.
23886
23887         copysign: enhance tests
23888         * modules/copysign-tests (Files): Add minus-zero.h.
23889         * tests/test-copysign.c (main): Also test zeros.
23890
23891 2010-11-04  Eric Blake  <eblake@redhat.com>
23892
23893         ceil, floor, round, trunc: enhance tests of -0
23894         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23895         * tests/test-ceill.c (main): Likewise.
23896         * tests/test-floorf1.c (main): Likewise.
23897         * tests/test-floorl.c (main): Likewise.
23898         * tests/test-round1.c (main): Likewise.
23899         * tests/test-roundf1.c (main): Likewise.
23900         * tests/test-roundl.c (main): Likewise.
23901         * tests/test-trunc1.c (main): Likewise.
23902         * tests/test-truncf1.c (main): Likewise.
23903         * tests/test-truncl.c (main): Likewise.
23904
23905 2010-11-04  Eric Blake  <eblake@redhat.com>
23906
23907         frexp, tests: work around ICC bug with -zero
23908         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23909         works with more compilers.
23910         * tests/minus-zero.h: New file.
23911         * modules/ceilf-tests (Files): Include it.
23912         * modules/ceill-tests (Files): Likewise.
23913         * modules/floorf-tests (Files): Likewise.
23914         * modules/floorl-tests (Files): Likewise.
23915         * modules/frexp-nolibm-tests (Files): Likewise.
23916         * modules/frexp-tests (Files): Likewise.
23917         * modules/frexpl-nolibm-tests (Files): Likewise.
23918         * modules/frexpl-tests (Files): Likewise.
23919         * modules/isnan-tests (Files): Likewise.
23920         * modules/isnand-nolibm-tests (Files): Likewise.
23921         * modules/isnand-tests (Files): Likewise.
23922         * modules/isnanf-nolibm-tests (Files): Likewise.
23923         * modules/isnanf-tests (Files): Likewise.
23924         * modules/isnanl-nolibm-tests (Files): Likewise.
23925         * modules/isnanl-tests (Files): Likewise.
23926         * modules/round-tests (Files): Likewise.
23927         * modules/roundf-tests (Files): Likewise.
23928         * modules/roundl-tests (Files): Likewise.
23929         * modules/ldexpl-tests (Files): Likewise.
23930         * modules/signbit-tests (Files): Likewise.
23931         * modules/snprintf-posix-tests (Files): Likewise.
23932         * modules/sprintf-posix-tests (Files): Likewise.
23933         * modules/strtod-tests (Files): Likewise.
23934         * modules/trunc-tests (Files): Likewise.
23935         * modules/truncf-tests (Files): Likewise.
23936         * modules/truncl-tests (Files): Likewise.
23937         * modules/vsnprintf-posix-tests (Files): Likewise.
23938         * modules/vsprintf-posix-tests (Files): Likewise.
23939         * modules/vasnprintf-posix-tests (Files): Likewise.
23940         * modules/vasprintf-posix-tests (Files): Likewise.
23941         * tests/test-ceilf1.c (main): Use it.
23942         * tests/test-ceill.c (main): Likewise.
23943         * tests/test-floorf1.c (main): Likewise.
23944         * tests/test-floorl.c (main): Likewise.
23945         * tests/test-frexp.c (main): Likewise.
23946         * tests/test-frexpl.c (main): Likewise.
23947         * tests/test-isnan.c (main): Likewise.
23948         * tests/test-isnand.h (main): Likewise.
23949         * tests/test-isnanf.h (main): Likewise.
23950         * tests/test-isnanl.h (main): Likewise.
23951         * tests/test-ldexpl.c (main): Likewise.
23952         * tests/test-round.c (main): Likewise.
23953         * tests/test-roundf.c (main): Likewise.
23954         * tests/test-roundl.c (main): Likewise.
23955         * tests/test-signbit.c (test_signbitf, test_signbitd)
23956         (test_signbitl): Likewise.
23957         * tests/test-snprintf-posix.h (test_function): Likewise.
23958         * tests/test-sprintf-posix.h (test_function): Likewise.
23959         * tests/test-strtod.c (main): Likewise.
23960         * tests/test-trunc1.c (main): Likewise.
23961         * tests/test-truncf1.c (main): Likewise.
23962         * tests/test-truncl.c (main): Likewise.
23963
23964         isnanl: work around icc bug
23965         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23966
23967 2010-11-03  Eric Blake  <eblake@redhat.com>
23968
23969         tests: fix compiler warnings
23970         * tests/test-getopt.h (test_getopt): Fix condition.
23971         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23972         * tests/test-pipe2.c (main): Likewise.
23973         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23974
23975         utimens: fix broken m4 test
23976         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23977
23978 2010-10-28  Bruno Haible  <bruno@clisp.org>
23979
23980         posix_spawn*, getdtablesize: Relax license.
23981         * modules/posix_spawn (License): Change to LGPLv2+.
23982         * modules/posix_spawnp (License): Likewise.
23983         * modules/posix_spawn-internal (License): Likewise.
23984         * modules/posix_spawnattr_init (License): Likewise.
23985         * modules/posix_spawnattr_getflags (License): Likewise.
23986         * modules/posix_spawnattr_setflags (License): Likewise.
23987         * modules/posix_spawnattr_getpgroup (License): Likewise.
23988         * modules/posix_spawnattr_setpgroup (License): Likewise.
23989         * modules/posix_spawnattr_getschedparam (License): Likewise.
23990         * modules/posix_spawnattr_setschedparam (License): Likewise.
23991         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23992         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23993         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23994         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23995         * modules/posix_spawnattr_getsigmask (License): Likewise.
23996         * modules/posix_spawnattr_setsigmask (License): Likewise.
23997         * modules/posix_spawnattr_destroy (License): Likewise.
23998         * modules/posix_spawn_file_actions_init (License): Likewise.
23999         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24000         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24001         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24002         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24003         * modules/getdtablesize (License): Likewise.
24004         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24005
24006 2010-10-26  Bruno Haible  <bruno@clisp.org>
24007
24008         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24009         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24010         Cygwin and mingw.
24011         Suggested by Eric Blake.
24012
24013 2010-10-26  Bruno Haible  <bruno@clisp.org>
24014
24015         stdio: Work around compilation error due to renameat() on Solaris 10.
24016         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24017         * lib/renameat.c: Don't include <unistd.h> here.
24018         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24019         Reported by Paul Eggert and Eric Blake.
24020
24021 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24022
24023         renameat: port to Solaris 10, which declares renameat in unistd.h
24024
24025         * lib/renameat.c: Include unistd.h before stdio.h, because
24026         Solaris 10 declares renameat in unistd.h.  Problem encountered
24027         when building GNU tar 1.24 on Solaris 10.
24028
24029 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24030
24031         fdopendir: fix C89 compilation
24032         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24033         compilers.
24034
24035 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24036
24037         inttostr: simplify by removing unnecessary redundancy
24038         * lib/anytostr.c: Don't include verify.h.
24039         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24040         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24041         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24042         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24043         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24044         Likewise.
24045         * modules/inttostr (Depends-on): Remove 'verify'.
24046
24047 2010-10-23  Bruno Haible  <bruno@clisp.org>
24048
24049         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24050         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24051         Reported by Eric Blake.
24052
24053 2010-10-23  Bruno Haible  <bruno@clisp.org>
24054
24055         Tests: Fix LOCALE_JA on MirBSD 10.
24056         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24057         to an UTF-8 locale.
24058         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24059         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24060         Reported by Eric Blake.
24061
24062 2010-10-21  Bruno Haible  <bruno@clisp.org>
24063
24064         nl_langinfo test: Avoid test failure on NetBSD 5.
24065         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24066         Reported by Eric Blake.
24067
24068 2010-10-21  Eric Blake  <eblake@redhat.com>
24069
24070         c-stack: work around libsigsegv 2.8 bug
24071         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24072         overflow on at least PowerPC64.
24073
24074 2010-10-17  Bruno Haible  <bruno@clisp.org>
24075
24076         userspec: Drop redundant file.
24077         * modules/userspec (Files): Remove lib/inttostr.h.
24078
24079 2010-10-17  Bruno Haible  <bruno@clisp.org>
24080
24081         nl_langinfo tests: Silence some warnings.
24082         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24083         Reported by Jim Meyering.
24084
24085 2010-10-17  Bruno Haible  <bruno@clisp.org>
24086
24087         Make use of GCC's attribute __alloc_size__.
24088         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24089         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24090         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24091         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24092         __alloc_size__.
24093         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24094         Suggested by Jim Meyering.
24095
24096 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24097
24098         bootstrap: anchor .gitignore entries.
24099         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24100         with...
24101         (insert_vc_ignore): ... this new function, which prepends `/' to
24102         all .gitignore entries before passing them to
24103         insert_sorted_if_absent.
24104
24105 2010-10-16  Bruno Haible  <bruno@clisp.org>
24106
24107         nextafter: Fix configure check.
24108         * modules/nextafter (configure.ac): Correct expected prototype.
24109
24110 2010-10-16  Bruno Haible  <bruno@clisp.org>
24111
24112         termios: Update documentation.
24113         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24114
24115 2010-10-16  Bruno Haible  <bruno@clisp.org>
24116
24117         tests: Make them compile with TinyCC.
24118         * tests/test-strstr.c (main): Remove parentheses around array
24119         initializer.
24120
24121 2010-10-15  Eric Blake  <eblake@redhat.com>
24122
24123         ignore-value: make header idempotent
24124         * lib/ignore-value.h: Add double-inclusion guards.
24125         Reported by Stefan Berger.
24126
24127 2010-10-15  Jim Meyering  <meyering@redhat.com>
24128
24129         GNUmakefile: handle "stable" target, not "major"
24130         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24131         lists in maint.mk and announce-gen.  Without this, "make stable"
24132         would fail to ensure that $(VERSION) is up to date.
24133
24134 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24135
24136         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24137         & co.
24138
24139 2010-10-14  Bruno Haible  <bruno@clisp.org>
24140
24141         vasnprintf: Don't set errno to 0.
24142         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24143         block that sets it to 0.
24144         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24145
24146 2010-10-14  Bruno Haible  <bruno@clisp.org>
24147
24148         socketlib: Fix.
24149         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24150         gl_PREREQ_SYS_H_WINSOCK2.
24151         Reported by Ian Beckwith <ianb@erislabs.net>.
24152
24153 2010-10-13  Jim Meyering  <meyering@redhat.com>
24154
24155         test-select-stdin.c: avoid warn_unused_result warnings
24156         * tests/test-select-stdin.c: Include "macros.h".
24157         ASSERT that read and fflush succeed.
24158
24159 2010-10-13  Jim Meyering  <meyering@redhat.com>
24160
24161         git-version-gen: do require git-VC'd files in cwd
24162         * build-aux/git-version-gen: Reject a git version string
24163         if there are no commits associated with the current directory.
24164         This avoids an unlikely false-positive (unrelated dir whose parent
24165         repository also contains a tag matching v*), as pointed out
24166         by Giuseppe Scrivano in
24167         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24168
24169 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24170
24171         argv-iter: omit nonconforming declaration
24172         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24173         enum arg_iter_err declaration, which doesn't conform to C99.
24174         Solaris 10 cc warns about this.
24175
24176 2010-10-13  Eric Blake  <eblake@redhat.com>
24177
24178         termios: fix compilation on mingw
24179         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24180         (gl_TERMIOS_H): Adjust it on mingw.
24181         * modules/termios (Makefile.am): Substitute new key.
24182         * lib/termios.in.h (includes): Make include_next conditional.
24183         * doc/posix-headers/termios.texi (termios.h): Update
24184         documentation.
24185         Reported by Daniel P. Berrange.
24186
24187 2010-10-13  Jim Meyering  <meyering@redhat.com>
24188
24189         git-version-gen: don't require that .git/ be in the current dir
24190         * build-aux/git-version-gen: Adjust this script so that it works
24191         when run from any working directory beneath the top-level .git/-
24192         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24193         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24194
24195         test-select: avoid warn_unused_result warnings
24196         * tests/test-select.c: Include "macros.h".
24197         ASSERT that each call to read, write, and pipe succeeds.
24198         While not technically required, also check each "close".
24199         * modules/select-tests (Files): Add tests/macros.h.
24200
24201         test-symlinkat: remove declaration of unused local
24202         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24203
24204         test-inttostr: avoid shadowing warnings
24205         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24206         and use malloc rather than the stack for the same reason as
24207         mentioned in the comment justifying the other allocation.
24208
24209 2010-10-11  Bruno Haible  <bruno@clisp.org>
24210
24211         stdlib: Allow multiple gnulib generated replacements to coexist.
24212         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24213         Reported by Sam Steingold <sds@gnu.org>.
24214
24215 2010-10-11  Jim Meyering  <meyering@redhat.com>
24216
24217         fix a documentation typo
24218         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24219
24220 2010-10-11  Eric Blake  <eblake@redhat.com>
24221
24222         futimens: work around Solaris 11 bug
24223         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24224         * tests/test-futimens.h (test_futimens): Enhance, rather than
24225         weaken test.
24226         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24227
24228 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24229
24230         Indentation.
24231         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24232         higher-level operators more to the left.
24233
24234 2010-10-11  Jim Meyering  <meyering@redhat.com>
24235
24236         test-futimens: avoid unwarranted test failure on Solaris 5.11
24237         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24238         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24239         because it tries to dereference the NULL name argument.
24240
24241 2010-10-11  Bruno Haible  <bruno@clisp.org>
24242
24243         Indentation.
24244         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24245         indentation.
24246
24247 2010-10-11  Jim Meyering  <meyering@redhat.com>
24248
24249         spawn.in.h: make indentation consistent with parentheses
24250         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24251         Make indentation consistent with parentheses.
24252
24253 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24254
24255         Fix mismatched parens in previous commit
24256         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24257         parens.
24258
24259 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24260
24261         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24262
24263         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24264         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24265         * lib/malloca.c: Include "verify.h".
24266         (verify1): Remove, replacing with a verify call.
24267         * lib/relocwrapper.c (verify1): Likewise.
24268         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24269         Likewise.
24270         * modules/malloca (Depends-on): Add 'verify'.
24271         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24272         * modules/vasnprintf (Depends-on): Add 'verify'.
24273         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24274         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24275         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24276         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24277         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24278         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24279         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24280
24281         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24282
24283         Formerly the style was sometimes 2*X - 1, because the C standard
24284         was wrongly thought to disallow ?: in integral constant expressions.
24285         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24286         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24287         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24288         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24289         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24290         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24291         verify that time_t cannot be floating.
24292
24293 2010-10-08  Eric Blake  <eblake@redhat.com>
24294
24295         time: enforce recent POSIX ruling that time_t is integral
24296         * lib/time.in.h (__time_t_must_be_integral): Detect any
24297         problematic systems, allowing the rest of gnulib to assume POSIX.
24298
24299 2010-10-08  Jim Meyering  <meyering@redhat.com>
24300
24301         fdopendir: fix a bug on systems lacking openat and /proc support
24302         OpenBSD 4.7 is one such system.  The most noticeable effect was
24303         failure of any application making nontrivial use of fts: rm, du,
24304         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24305           ./rm: traversal failed: `a': Bad file descriptor
24306         Debugging that, you see that even though FD 6 was closed just
24307         prior to the opendir call in fd_clone_opendir, its resulting
24308         dir->dd_fd was 8, rather than the expected value of 6:
24309
24310         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24311         93                close (fd);
24312         (gdb) n
24313         94                dir = fd_clone_opendir (dupfd);
24314         (gdb) n
24315         95                saved_errno = errno;
24316         (gdb) p dir->dd_fd
24317         $11 = 8
24318
24319         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24320         The problem is that on OpenBSD, fd_clone_opendir has to resort
24321         to using the old-style save/restore CWD mechanism, due to its
24322         lack of openat/proc support, and *that* would steal the FD (6)
24323         that opendir was supposed to use.
24324
24325         The fix is to squirrel away the desired FD so that save_cwd uses a
24326         different one, and then free the dest FD right before calling opendir.
24327         That guarantees opendir will use the required file descriptor.
24328
24329         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24330
24331 2010-10-08  Bruno Haible  <bruno@clisp.org>
24332
24333         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24334         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24335
24336 2010-10-08  Bruno Haible  <bruno@clisp.org>
24337
24338         nanosleep: Make replacement POSIX compliant.
24339         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24340         is out of range.
24341         Reported by Jim Meyering.
24342
24343 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24344
24345         bootstrap: add hook for altering gnulib.mk, for Bison
24346         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24347         the Bison bootstrapping process can rewrite file names and variables
24348         in this file before later parts of 'bootstrap' use the file.
24349         Bison wants to include lib/gnulib.mk from the top-level makefile,
24350         so it needs the file names in this file to be relative to the top
24351         level, not relative to lib; plus it needs variable names to be
24352         rewritten.
24353         (slurp): Use the new function.
24354
24355         bootstrap: reformat for readability
24356         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24357
24358 2010-10-08  Eric Blake  <eblake@redhat.com>
24359
24360         docs: update cygwin progress
24361         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24362         1.7.7.
24363         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24364         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24365         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24366         * doc/posix-functions/carg.texi (carg): Likewise.
24367         * doc/posix-functions/cargf.texi (cargf): Likewise.
24368         * doc/posix-functions/casin.texi (casin): Likewise.
24369         * doc/posix-functions/casinf.texi (casinf): Likewise.
24370         * doc/posix-functions/casinh.texi (casinh): Likewise.
24371         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24372         * doc/posix-functions/catan.texi (catan): Likewise.
24373         * doc/posix-functions/catanf.texi (catanf): Likewise.
24374         * doc/posix-functions/catanh.texi (catanh): Likewise.
24375         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24376         * doc/posix-functions/ccos.texi (ccos): Likewise.
24377         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24378         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24379         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24380         * doc/posix-functions/cexp.texi (cexp): Likewise.
24381         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24382         * doc/posix-functions/cimag.texi (cimag): Likewise.
24383         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24384         * doc/posix-functions/clog.texi (clog): Likewise.
24385         * doc/posix-functions/clogf.texi (clogf): Likewise.
24386         * doc/posix-functions/conj.texi (conj): Likewise.
24387         * doc/posix-functions/conjf.texi (conjf): Likewise.
24388         * doc/posix-functions/cpow.texi (cpow): Likewise.
24389         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24390         * doc/posix-functions/cproj.texi (cproj): Likewise.
24391         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24392         * doc/posix-functions/creal.texi (creal): Likewise.
24393         * doc/posix-functions/crealf.texi (crealf): Likewise.
24394         * doc/posix-functions/csin.texi (csin): Likewise.
24395         * doc/posix-functions/csinf.texi (csinf): Likewise.
24396         * doc/posix-functions/csinh.texi (csinh): Likewise.
24397         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24398         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24399         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24400         * doc/posix-functions/ctan.texi (ctan): Likewise.
24401         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24402         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24403         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24404         * doc/posix-headers/complex.texi (complex.h): Likewise.
24405
24406 2010-10-07  Jim Meyering  <meyering@redhat.com>
24407
24408         parse-datetime: avoid compilation failure on OpenBSD 4.7
24409         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24410         This works around a compilation failure on OpenBSD 4.7:
24411         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24412
24413 2010-10-07  Eric Blake  <eblake@redhat.com>
24414
24415         docs: update cygwin progress
24416         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24417         1.7.6.
24418         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24419         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24420         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24421         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24422         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24423         Likewise.
24424         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24425         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24426         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24427         Likewise.
24428         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24429         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24430         Likewise.
24431         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24432         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24433         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24434         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24435         Likewise.
24436         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24437         Likewise.
24438         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24439
24440         docs: update parse-datetime history
24441         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24442         documentation of this function's history and alternatives.
24443
24444         cygwin: use more robust version check
24445         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24446         exclude an eventual cygwin 1.9.1.
24447         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24449         (gl_FUNC_STRCASESTR): Likewise.
24450         Reported by Bruno Haible.
24451
24452 2010-10-06  Bruno Haible  <bruno@clisp.org>
24453
24454         string, sys_select: Avoid #including large headers unless necessary.
24455         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24456         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24457         OSF/1, BeOS, Haiku.
24458         Reported by Jim Meyering.
24459
24460 2010-10-05  Eric Blake  <eblake@redhat.com>
24461
24462         memmem, strstr, strcasestr: fix bug with long periodic needle
24463         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24464         periodic needle having false positive.
24465         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24466         and cygwin 1.7.7.
24467         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24468         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24469         (gl_FUNC_STRCASESTR): Likewise.
24470         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24471         * tests/test-memmem.c (main): Expose the bug.
24472         * tests/test-strcasestr.c (main): Likewise.
24473         * tests/test-strstr.c (main): Likewise.
24474         * tests/test-c-strcasestr.c (main): Likewise.
24475         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24476         * doc/posix-functions/strstr.texi (strstr): Likewise.
24477         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24478         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24479
24480 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24481
24482         parse-datetime: do some more renaming
24483         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24484         parse_datetime, not get_date.  Mention the renaming.
24485         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24486         in comments.
24487         * m4/bison.m4: Likewise.
24488
24489 2010-10-05  Eric Blake  <eblake@redhat.com>
24490
24491         parse-datetime: better name than get_date
24492         * NEWS: Reword the deprecation notice.
24493         * modules/get_date: Rename to modules/parse-datetime.
24494         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24495         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24496         * lib/get_date.y: Rename to lib/parse-datetime.y.
24497         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24498         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24499         * doc/getdate.texi: Provide fallback wrapper.
24500         * lib/getdate.h: Move guts, and wrap...
24501         * lib/parse-datetime.h: ...new file.
24502         * lib/parse-datetime.y (get_date): Rename...
24503         (parse_datetime): ...to this.
24504         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24505         (gl_PARSE_DATETIME): ...to this.
24506         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24507         documentation.
24508         * modules/getdate (Files): Provide fallback docs and header.
24509         (Notice, Depends-on): Update references.
24510         * tests/test-parse-datetime.c: Likewise.
24511         * DEPENDENCIES: Likewise.
24512         * MODULES.html.sh (Date and time <time.h>): Likewise.
24513         * doc/parse-datetime.texi (Date input formats)
24514         (Authors of parse_datetime): Likewise.
24515         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24516         (Include): Likewise.
24517         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24518         * gnulib-tool: Likewise.
24519         * m4/bison.m4 (gl_BISON): Likewise.
24520         Suggested by Bruno Haible.
24521
24522 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24523
24524         more ports to Solaris tr, which needs [] around ranges
24525         * gnulib-tool: Solaris tr needs [] around ranges.
24526         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24527         * tests/test-pipe-filter-gi1.c (main): Likewise.
24528         * tests/test-pipe-filter-ii1.c (main): Likewise.
24529
24530 2010-10-05  Eric Blake  <eblake@redhat.com>
24531
24532         bootstrap: fix Solaris regression
24533         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24534         around ranges.
24535         Reported by Pádraig Brady.
24536
24537         bootstrap: work with pkg-config
24538         * build-aux/bootstrap (check_versions): Also transliterate - in
24539         prerequisite name.
24540         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24541         prerequisites that were already found, to avoid confusion.
24542         Reported by Justin Clift.
24543
24544         faccessat: remove unused wrappers
24545         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24546         presence of these wrappers dragged in -lgen on Solaris.
24547         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24548
24549 2010-10-05  Jim Meyering  <meyering@redhat.com>
24550
24551         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24552         * Makefile (sc_pragma_columns): New syntax-check rule.
24553
24554 2010-10-04  Bruno Haible  <bruno@clisp.org>
24555
24556         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24557         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24558         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24559         Reported by Bruce Korb and Eric Blake.
24560
24561 2010-10-04  Bruno Haible  <bruno@clisp.org>
24562
24563         threadlib: Make option --with-libpth-prefix work.
24564         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24565         use $LIBPTH, not just -lpth.
24566
24567 2010-10-04  Bruno Haible  <bruno@clisp.org>
24568
24569         Avoid line length limitation from HP NonStop system header files.
24570         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24571         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24572         * lib/ctype.in.h: Likewise.
24573         * lib/dirent.in.h: Likewise.
24574         * lib/errno.in.h: Likewise.
24575         * lib/fcntl.in.h: Likewise.
24576         * lib/float.in.h: Likewise.
24577         * lib/getopt.in.h: Likewise.
24578         * lib/iconv.in.h: Likewise.
24579         * lib/inttypes.in.h: Likewise.
24580         * lib/langinfo.in.h: Likewise.
24581         * lib/locale.in.h: Likewise.
24582         * lib/math.in.h: Likewise.
24583         * lib/netdb.in.h: Likewise.
24584         * lib/netinet_in.in.h: Likewise.
24585         * lib/poll.in.h: Likewise.
24586         * lib/pthread.in.h: Likewise.
24587         * lib/pty.in.h: Likewise.
24588         * lib/sched.in.h: Likewise.
24589         * lib/se-selinux.in.h: Likewise.
24590         * lib/search.in.h: Likewise.
24591         * lib/signal.in.h: Likewise.
24592         * lib/spawn.in.h: Likewise.
24593         * lib/stdarg.in.h: Likewise.
24594         * lib/stddef.in.h: Likewise.
24595         * lib/stdint.in.h: Likewise.
24596         * lib/stdio.in.h: Likewise.
24597         * lib/stdlib.in.h: Likewise.
24598         * lib/string.in.h: Likewise.
24599         * lib/strings.in.h: Likewise.
24600         * lib/sys_file.in.h: Likewise.
24601         * lib/sys_ioctl.in.h: Likewise.
24602         * lib/sys_select.in.h: Likewise.
24603         * lib/sys_socket.in.h: Likewise.
24604         * lib/sys_stat.in.h: Likewise.
24605         * lib/sys_time.in.h: Likewise.
24606         * lib/sys_times.in.h: Likewise.
24607         * lib/sys_utsname.in.h: Likewise.
24608         * lib/sys_wait.in.h: Likewise.
24609         * lib/sysexits.in.h: Likewise.
24610         * lib/termios.in.h: Likewise.
24611         * lib/time.in.h: Likewise.
24612         * lib/unistd.in.h: Likewise.
24613         * lib/wchar.in.h: Likewise.
24614         * lib/wctype.in.h: Likewise.
24615         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24616         * modules/ctype (Makefile.am): Likewise.
24617         * modules/dirent (Makefile.am): Likewise.
24618         * modules/errno (Makefile.am): Likewise.
24619         * modules/fcntl-h (Makefile.am): Likewise.
24620         * modules/float (Makefile.am): Likewise.
24621         * modules/getopt-posix (Makefile.am): Likewise.
24622         * modules/iconv-h (Makefile.am): Likewise.
24623         * modules/inttypes (Makefile.am): Likewise.
24624         * modules/langinfo (Makefile.am): Likewise.
24625         * modules/locale (Makefile.am): Likewise.
24626         * modules/math (Makefile.am): Likewise.
24627         * modules/netdb (Makefile.am): Likewise.
24628         * modules/netinet_in (Makefile.am): Likewise.
24629         * modules/poll-h (Makefile.am): Likewise.
24630         * modules/pthread (Makefile.am): Likewise.
24631         * modules/pty (Makefile.am): Likewise.
24632         * modules/sched (Makefile.am): Likewise.
24633         * modules/search (Makefile.am): Likewise.
24634         * modules/selinux-h (Makefile.am): Likewise.
24635         * modules/signal (Makefile.am): Likewise.
24636         * modules/spawn (Makefile.am): Likewise.
24637         * modules/stdarg (Makefile.am): Likewise.
24638         * modules/stddef (Makefile.am): Likewise.
24639         * modules/stdint (Makefile.am): Likewise.
24640         * modules/stdio (Makefile.am): Likewise.
24641         * modules/stdlib (Makefile.am): Likewise.
24642         * modules/string (Makefile.am): Likewise.
24643         * modules/strings (Makefile.am): Likewise.
24644         * modules/sys_file (Makefile.am): Likewise.
24645         * modules/sys_ioctl (Makefile.am): Likewise.
24646         * modules/sys_select (Makefile.am): Likewise.
24647         * modules/sys_socket (Makefile.am): Likewise.
24648         * modules/sys_stat (Makefile.am): Likewise.
24649         * modules/sys_time (Makefile.am): Likewise.
24650         * modules/sys_times (Makefile.am): Likewise.
24651         * modules/sys_utsname (Makefile.am): Likewise.
24652         * modules/sys_wait (Makefile.am): Likewise.
24653         * modules/sysexits (Makefile.am): Likewise.
24654         * modules/termios (Makefile.am): Likewise.
24655         * modules/time (Makefile.am): Likewise.
24656         * modules/unistd (Makefile.am): Likewise.
24657         * modules/wchar (Makefile.am): Likewise.
24658         * modules/wctype (Makefile.am): Likewise.
24659
24660 2010-10-04  Bruno Haible  <bruno@clisp.org>
24661
24662         read-file tests: Avoid a test failure on NonStop Kernel.
24663         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24664         a regular file.
24665         Reported by Joachim Schmitz <schmitz@hp.com>.
24666
24667 2010-10-03  Bruno Haible  <bruno@clisp.org>
24668
24669         gnulib-tool: Fixes for --create-testdir with --libtool.
24670         * gnulib-tool (func_get_automake_snippet): Don't augment
24671         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24672         an executable.
24673         (func_create_testdir): Handle module 'alloca' like func_import.
24674         Reported by Bruce Korb <bruce.korb@gmail.com>.
24675
24676 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24677
24678         Avoid some lines longer than 80 characters.
24679         * lib/stdint.in.h: Break long comment lines.
24680         * lib/math.in.h: Likewise.
24681         (_GL_NUM_UINT_WORDS): New macro, for readability.
24682         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24683         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24684         * lib/stdlib.in.h: Likewise.
24685         * lib/spawn.in.h: Likewise.
24686         * lib/sys_socket.in.h: Update an URL.
24687         * lib/sys_stat.in.h: Break long line.
24688
24689 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24690
24691         Improve pmccabe2html.
24692         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24693         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24694         when the sources change. Remove the line in the HTML about "Used
24695         ranges" (which implied that there might be other unused ranges),
24696         rename "Resume" to "Summary" (easier to understand for more users).
24697         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24698         styles, and some unnecessary blank lines.
24699
24700 2010-10-03  Bruno Haible  <bruno@clisp.org>
24701             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24702
24703         acl: Add support for ACLs on NonStop Kernel.
24704         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24705         Check whether the function aclsort() exists.
24706         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24707         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24708         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24709         (acl_nontrivial [HAVE_ACLSORT]: New function.
24710         (file_has_acl): Implement for NonStop Kernel.
24711         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24712         (qset_acl): Implement for NonStop Kernel.
24713         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24714         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24715         (main): Implement for NonStop Kernel.
24716         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24717         Kernel. Handle this flavor.
24718         * tests/test-set-mode-acl.sh: Likewise.
24719         * tests/test-copy-acl.sh: Likewise.
24720         * tests/test-copy-file.sh: Likewise.
24721
24722 2010-10-03  Bruno Haible  <bruno@clisp.org>
24723
24724         Info about ACLs on NonStop Kernel.
24725         * doc/acl-resources.txt: Add info about NonStop Kernel.
24726         References by Joachim Schmitz <schmitz@hp.com>.
24727
24728 2010-10-02  Bruno Haible  <bruno@clisp.org>
24729
24730         Define missing EDQUOT on NonStop Kernel.
24731         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24732         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24733         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24734         missing.
24735         * doc/posix-headers/errno.texi: Mention the NSK bug.
24736         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24737         Reported by Joachim Schmitz <schmitz@hp.com>.
24738
24739 2010-10-02  Bruno Haible  <bruno@clisp.org>
24740
24741         Update doc for POSIX:2008.
24742         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24743         Update URL of POSIX specification.
24744
24745 2010-10-02  Bruno Haible  <bruno@clisp.org>
24746
24747         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24748         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24749         from gnulib, not from Automake.
24750
24751 2010-10-02  Bruno Haible  <bruno@clisp.org>
24752
24753         New module 'system-posix'.
24754         * modules/system-posix: New file.
24755         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24756         module is present.
24757         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24758         GNULIB_SYSTEM_POSIX.
24759         * modules/stdlib (Depends-on): Remove sys_wait.
24760         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24761         * doc/posix-functions/system.texi: Mention the new module.
24762         * doc/posix-headers/stdlib.texi: Likewise.
24763         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24764         define test_sys_wait_macros to a no-op.
24765         Reported by Sam Steingold <sds@gnu.org>.
24766
24767 2010-09-30  Bruno Haible  <bruno@clisp.org>
24768
24769         More renaming from 'getdate' to 'get_date'.
24770         * doc/get_date.texi: Renamed from doc/getdate.texi.
24771         * modules/get_date (Files): Update.
24772         * MODULES.html.sh (Date and time <time.h>): Update.
24773         * DEPENDENCIES: Update.
24774         * gnulib-tool: Update comment.
24775         * m4/bison.m4 (gl_BISON): Likewise.
24776         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24777
24778 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24779
24780         bootstrap: support ACLOCAL_FLAGS during aclocal
24781         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24782         can add additional -I dir for third-party .m4 files.
24783
24784 2010-09-30  Eric Blake  <eblake@redhat.com>
24785
24786         bootstrap: use glibtoolize on MacOS
24787         * build-aux/bootstrap (check_versions): Convert libtool into
24788         libtoolize.
24789         (tool search): Move libtool check earlier, and look for
24790         glibtoolize for MacOS.
24791         (gnulib_tool_options): Auto-add --libtool when appropriate.
24792         Reported by Justin Clift.
24793
24794         poll: fix typo that broke test on MacOS
24795         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24796         Reported by Justin Clift.
24797
24798         getdate: rename to get_date
24799         Note: getdate.h is not renamed, to minimize client impact.
24800         * modules/getdate: Mark obsolete.  Move old contents...
24801         * modules/get_date: ...to new module name.
24802         * modules/getdate-tests: Move...
24803         * modules/get_date-tests: ...here.
24804         * m4/getdate.m4: Move...
24805         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24806         * lib/getdate.y: Move...
24807         * lib/get_date.y: ...here.
24808         * tests/test-getdate.c: Move...
24809         * tests/test-get_date.c: ...here.
24810         * doc/posix-functions/getdate.texi (getdate): Update name.
24811         * NEWS: Mention the change.
24812
24813 2010-09-29  Bruno Haible  <bruno@clisp.org>
24814
24815         Separate the module 'waitpid' from the module 'sys_wait'.
24816         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24817         present.
24818         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24819         gl_MODULE_INDICATOR_FOR_TESTS.
24820         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24821         * modules/sys_wait (Depends-on): Remove waitpid.
24822         (Makefile.am): Substitute GNULIB_WAITPID.
24823         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24824         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24825         signature only if the 'waitpid' module is present.
24826         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24827         * NEWS: Mention the change.
24828         * modules/grantpt (Depends-on): Add waitpid.
24829         * modules/wait-process (Depends-on): Likewise.
24830
24831 2010-09-29  Bruno Haible  <bruno@clisp.org>
24832
24833         More tests for module 'sys_wait'.
24834         * modules/sys_wait-c++-tests: New file.
24835         * tests/test-sys_wait-c++.cc: New file.
24836         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24837         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24838
24839 2010-09-29  Bruno Haible  <bruno@clisp.org>
24840
24841         New module 'waitpid'.
24842         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24843         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24844         Don't include <process.h>.
24845         (waitpid): Declare only, using modern idiom.
24846         * m4/waitpid.m4: New file.
24847         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24848         * modules/waitpid: New file.
24849         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24850         (Makefile.am): Update.
24851         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24852
24853 2010-09-28  Bruno Haible  <bruno@clisp.org>
24854
24855         poll: Assume ANSI C.
24856         * lib/poll.c (poll): Use an ANSI C declaration.
24857
24858 2010-09-28  Bruno Haible  <bruno@clisp.org>
24859
24860         poll-h: Create poll.h on all platforms.
24861         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24862         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24863         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24864         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24865         (gl_REPLACE_POLL_H): Don't set POLL_H.
24866         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24867         * modules/poll-h (Depends-on): Add include_next.
24868         (Makefile.am): Create poll.h unconditionally. Substitute also
24869         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24870
24871 2010-09-28  Bruno Haible  <bruno@clisp.org>
24872
24873         Tests for module 'poll-h'.
24874         * modules/poll-h-c++-tests: New file.
24875         * tests/test-poll-h-c++.cc: New file.
24876
24877         Tests for module 'poll-h'.
24878         * modules/poll-h-tests: New file.
24879         * tests/test-poll-h.c: New file.
24880
24881 2010-09-28  Bruno Haible  <bruno@clisp.org>
24882
24883         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24884         * modules/poll-h (Depends-on): Add 'extensions'.
24885
24886 2010-09-28  Bruno Haible  <bruno@clisp.org>
24887
24888         New module 'poll-h'.
24889         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24890         (poll): Use modern idiom.
24891         * modules/poll-h: New file.
24892         * modules/poll (Files): Remove lib/poll.in.h.
24893         (Depends-on): Add poll-h.
24894         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24895         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24896         * m4/poll_h.m4: New file.
24897         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24898         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24899         and invoke gl_REPLACE_POLL_H.
24900         * lib/poll.c: Use common idiom.
24901         * tests/test-poll.c: Likewise.
24902         * doc/posix-headers/poll.texi: Mention the poll-h module.
24903         Suggested by Eric Blake.
24904
24905 2010-09-26  Bruno Haible  <bruno@clisp.org>
24906
24907         sys_wait: Implement WSTOPSIG.
24908         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24909         Reported by Simon Josefsson.
24910
24911 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24912
24913         stdlib, sys_wait: Avoid compilation error on mingw.
24914         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24915
24916 2010-09-26  Bruno Haible  <bruno@clisp.org>
24917
24918         stdlib tests: Avoid code duplication.
24919         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24920         * modules/sys_wait-tests (Files): Likewise.
24921         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24922         * tests/test-stdlib.c: Include test-sys_wait.h.
24923         (main): Invoke test_sys_wait_macros.
24924         * tests/test-sys_wait.c: Include test-sys_wait.h.
24925         (main): Invoke test_sys_wait_macros.
24926
24927 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24928
24929         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24930         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24931         sure Windows sockets are working before calling getaddrinfo.
24932         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24933         * doc/gnulib.texi (Windows sockets): Fix typo.
24934
24935 2010-09-25  Bruno Haible  <bruno@clisp.org>
24936
24937         Tests for module 'regex-quote'.
24938         * modules/regex-quote-tests: New file.
24939         * tests/test-regex-quote.c: New file.
24940
24941         New module 'regex-quote'.
24942         * lib/regex-quote.h: New file.
24943         * lib/regex-quote.c: New file.
24944         * modules/regex-quote: New file.
24945         Suggested by Reuben Thomas <rrt@sc3d.org>.
24946
24947 2010-09-24  Bruno Haible  <bruno@clisp.org>
24948
24949         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24950         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24951
24952 2010-09-23  Bruno Haible  <bruno@clisp.org>
24953
24954         setenv: Relax license.
24955         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24956         Blake.
24957         Requested by Eric Blake.
24958
24959 2010-09-22  Bruno Haible  <bruno@clisp.org>
24960
24961         termios: Relax license.
24962         * modules/termios (License): Change to LGPLv2+.
24963         Requested by Eric Blake.
24964
24965 2010-09-22  Bruno Haible  <bruno@clisp.org>
24966
24967         threadlib: Allow the package to change the default to 'no'.
24968         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24969         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24970         Reported by Paul Eggert.
24971
24972 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24973             Bruno Haible  <bruno@clisp.org>
24974
24975         Fix endless loop in mbmemcasecoll.
24976         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24977         byte.
24978         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24979
24980 2010-09-22  Bruno Haible  <bruno@clisp.org>
24981
24982         Tests for module 'memcoll'.
24983         * modules/memcoll-tests: New file.
24984         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24985
24986         memcoll, xmemcoll: Clarify size vs. length.
24987         * modules/memcoll.c (memcoll0): Clarify specification.
24988         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24989         passed to collate_error.
24990
24991 2010-09-22  Bruno Haible  <bruno@clisp.org>
24992
24993         Tests for module 'memcasecmp'.
24994         * modules/memcasecmp-tests: New file.
24995         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24996
24997 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24998
24999         * lib/pthread.in.h: Add split double-inclusion guard, and include
25000         system <pthread.h> if there is one.  Use @@-style as in other
25001         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25002         pthread.h doesn't.
25003         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25004         (pthread_mutexattr_settype, pthread_mutex_trylock):
25005         New static inline functions, if there's no system <pthread.h>.
25006         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25007         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25008         Approximate with mutexes if the system lacks spinlocks, as in
25009         MacOS.
25010         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25011         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25012         @@-style.  Check for spinlocks separately.
25013         (gl_PTHREAD_DEFAULTS): New macro.
25014         * modules/pthread: Redo to use a more typical style for in.h files.
25015
25016 2010-09-21  Eric Blake  <eblake@redhat.com>
25017
25018         net_if: enhance tests
25019         * tests/test-net_if.c (main): Move signature checks earlier.
25020         Print failures to stderr.
25021         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25022         Document the bug that we do not yet fix.
25023
25024 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25025
25026         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25027         about gnulib, not GSS.
25028
25029 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25030
25031         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25032         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25033         for Emacs.
25034         * build-aux/pmccabe2html: Make Makefile.am example code more
25035         cut-and-paste friendly.
25036
25037 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25038
25039         * tests/test-net_if.c: New file.
25040         * modules/net_if-tests: New file.
25041
25042 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25043
25044         pthread: add pthread_spin_destroy
25045         * lib/pthread.in.h (pthread_spin_destroy): New function.
25046
25047 2010-09-19  Bruno Haible  <bruno@clisp.org>
25048
25049         gnulib-tool: Fix --help output.
25050         * gnulib-tool (func_usage): Fix help message.
25051         Reported by Reuben Thomas <rrt@sc3d.org>.
25052
25053 2010-09-18  Jim Meyering  <meyering@redhat.com>
25054
25055         maint.mk: avoid unexpanded \n in two diagnostics
25056         * top/maint.mk (sc_prohibit_always_true_header_tests):
25057         Don't use a literal \n in a halt=... assignment.  It would not be
25058         expanded, and the two \n bytes would appear in the diagnostic output
25059         rather than the desired newline.  Use halt=$$(printf ... instead.
25060         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25061
25062 2010-09-18  Bruno Haible  <bruno@clisp.org>
25063
25064         netinet_in: Doc tweak.
25065         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25066         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25067
25068 2010-09-18  Jim Meyering  <meyering@redhat.com>
25069
25070         init.sh: correct an outdated comment
25071         * tests/init.sh (create_exe_shims_):  s/function/alias/
25072
25073         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25074         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25075         a file named "*.exe" is removed between the glob expansion and the
25076         processing of that oddly named file.
25077
25078 2010-09-17  Eric Blake  <eblake@redhat.com>
25079
25080         mirbsd: add some more support
25081         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25082         in BSD family.
25083         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25084         devices as OpenBSD.
25085         * m4/host-os.m4 (mirbsd): Add MirBSD.
25086
25087         tests: fix unportable assumption on sys/wait.h
25088         * tests/test-sys_wait.c (main): Relax test.
25089         * tests/test-stdlib.c (main): Likewise.
25090
25091         init.sh: accomodate directory with no .exes
25092         * tests/init.sh: Accomodate directory containing only scripts.
25093
25094         tests: avoid compiler warning
25095         * tests/test-stdlib.c (main): Use the variable.
25096
25097         fdutimens, fdutimensat: update signature, again
25098         * lib/utimens.h (gl_futimens): Delete, and move signature...
25099         (fdutimens): ...here.
25100         (fdutimensat): Rearrange signature.
25101         (lutimensat): Rename variable for clarity.
25102         * lib/fdutimensat.c (fdutimensat): Update signature.
25103         * lib/utimens.c (fdutimens): Likewise.
25104         (gl_futimens): Delete.
25105         (utimens, lutimens): Update callers.
25106         * lib/futimens.c (futimens): Likewise.
25107         * tests/test-fdutimensat.c: Likewise.
25108         * tests/test-utimens.c: Likewise.
25109         * tests/test-futimens.h: Update comment.
25110         * NEWS: Mention this.
25111         Suggested by Paul Eggert.
25112
25113 2010-09-17  Bruno Haible  <bruno@clisp.org>
25114
25115         Take over the maintenance of some older macros from Autoconf.
25116         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25117         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25118         GNU Autoconf.
25119         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25120         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25121
25122 2010-09-17  Eric Blake  <eblake@redhat.com>
25123
25124         fdutimensat: drop atflag validation
25125         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25126         with valid fd, to close a race scenario where futimens is
25127         unsupported and FILE was replaced by a symlink.
25128         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25129         accordingly.
25130         Suggested by Paul Eggert.
25131
25132 2010-09-16  Bruno Haible  <bruno@clisp.org>
25133
25134         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25135         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25136
25137 2010-09-16  Bruno Haible  <bruno@clisp.org>
25138
25139         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25140         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25141         login_tty exists.
25142         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25143
25144 2010-09-16  Bruno Haible  <bruno@clisp.org>
25145
25146         login_tty: Make the replacement code work on BSD systems.
25147         * lib/login_tty.c: Include <sys/ioctl.h>.
25148         (login_tty): Use ioctl TIOCSCTTY when available.
25149         * modules/login_tty (Depends-on): Add sys_ioctl.
25150         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25151
25152 2010-09-16  Bruno Haible  <bruno@clisp.org>
25153
25154         login_tty: Stricter unit test.
25155         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25156         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25157         and tcgetsid() after login_tty.
25158         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25159
25160 2010-09-16  Bruno Haible  <bruno@clisp.org>
25161
25162         New module 'tcgetsid'.
25163         * lib/tcgetsid.c: New file.
25164         * m4/tcgetsid.m4: New file.
25165         * modules/tcgetsid: New file.
25166         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25167         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25168         GNULIB_TCGETSID, HAVE_TCGETSID.
25169         * lib/termios.in.h: Include <sys/types.h>.
25170         (tcgetsid): New declaration.
25171         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25172         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25173         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25174         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25175
25176 2010-09-16  Bruno Haible  <bruno@clisp.org>
25177
25178         Tests for module 'termios'.
25179         * modules/termios-c++-tests: New file.
25180         * modules/termios-tests: New file.
25181         * tests/test-termios-c++.cc: New file.
25182         * tests/test-termios.c: New file.
25183
25184         New module 'termios'.
25185         * modules/termios: New file.
25186         * lib/termios.in.h: New file.
25187         * m4/termios_h.m4: New file.
25188         * doc/posix-headers/termios.texi: Mention the new module.
25189
25190 2010-09-16  Eric Blake  <eblake@redhat.com>
25191
25192         fdutimensat: add an atflag parameter
25193         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25194         * lib/utimens.h (fdutimensat): Update prototype.
25195         * tests/test-fdutimensat.c: Adjust test to match.
25196         * NEWS: Document the change.
25197         Suggested by Paul Eggert.
25198
25199 2010-09-16  Bruno Haible  <bruno@clisp.org>
25200
25201         Fix typos in comments.
25202         * lib/striconveh.h: Fix typo in comment.
25203         * lib/login_tty.c (login_tty): Likewise.
25204
25205 2010-09-15  Bruno Haible  <bruno@clisp.org>
25206
25207         stdlib: clarify MirBSD WEXITSTATUS bug
25208         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25209         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25210
25211 2010-09-15  Eric Blake  <eblake@redhat.com>
25212
25213         stdlib: work around MirBSD WEXITSTATUS bug
25214         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25215         * modules/stdlib (Depends-on): Add sys_wait.
25216         * tests/test-sys_wait.c (main): Enhance test.
25217         * tests/test-stdlib.c (main): Likewise.
25218         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25219
25220         docs: mention MacOS issue with WEXITSTATUS(constant)
25221         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25222         issue.
25223         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25224
25225         strnlen: add tests
25226         * modules/strnlen-tests: New file.
25227         * tests/test-strnlen.c: Likewise.
25228
25229 2010-09-14  Bruno Haible  <bruno@clisp.org>
25230
25231         unistr/base: Avoid link errors when module 'libunistring' is also used.
25232         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25233         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25234         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25235         Declare also when HAVE_LIBUNISTRING is set.
25236         Reported by Pádraig Brady <P@draigbrady.com>.
25237
25238 2010-09-14  Eric Blake  <eblake@redhat.com>
25239
25240         test-rawmemchr: make more robust
25241         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25242         (Depends-on, configure.ac): Add needed prerequisites to use it.
25243         * modules/memchr-tests (Files, Depends-on, configure.ac):
25244         Likewise, to avoid implicit reliance on memchr module prereqs.
25245         * tests/test-memchr.c (main): Ensure proper masking.
25246         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25247         reads.
25248
25249         memchr: detect glibc Alpha bug
25250         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25251         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25252         Alpha.
25253         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25254         * tests/test-memchr.c (main): Enhance test.
25255         Reported by Nelson H. F. Beebe.
25256
25257 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25258
25259         fts, getcwd, glob: audit for dirfd returning -1
25260         * lib/fts.c (opendir): Remove #define; no longer used.
25261         (opendirat): New arg PDIR_FD.  All callers changed.
25262         (fts_build, _opendir2): Use new opendirat to avoid the need for
25263         dirfd, or for checking whether dirfd returns a negative value.
25264         Don't use opendir; always use openat followed by fdopendir.
25265         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25266         it.
25267         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25268         returns -1 here.
25269         * modules/fts (Depends-on): Remove dirfd.
25270         * modules/getcwd (Depends-on): Likewise.
25271
25272 2010-09-13  Eric Blake  <eblake@redhat.com>
25273
25274         float: fix broken MirBSD header
25275         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25276         * doc/posix-headers/float.texi (float.h): Document it.
25277
25278 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25279
25280         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25281         * lib/fts.c (opendirat): New arg extra_flags.
25282         (__opendir2): Use it to avoid following symlinks when opening
25283         a directory, if symlinks are not supposed to be followed.  See
25284         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25285
25286         fdopendir: preserve argument fd before returning
25287         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25288         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25289         (fdopendir): Use them, arranging for FD to be open to the same
25290         directory that it was when it started.  (It might be temporarily
25291         closed while fdopendir is running, so this not thread- or
25292         signal-safe.)  Be careful to do the right thing even when file
25293         descriptors are scarce and dup fails with errno == EMFILE.  See
25294         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25295
25296 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25297
25298         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25299         * NEWS: Document change.
25300         * m4/regex.m4: Disable test for regoff_t size.
25301
25302 2010-09-13  Jim Meyering  <meyering@redhat.com>
25303
25304         fts: don't operate on an invalid file descriptor after failed dup
25305         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25306         negative file descriptor.
25307
25308 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25309
25310         savedir: add streamsavedir, deprecate fdsavedir
25311         * NEWS: Mention deprecation of fdsavedir.
25312         * lib/savedir.c (streamsavedir): New extern function, whose name
25313         ends in "savedir" to be consistent with the others.  This differs
25314         from savedirstream in that it doesn't close its argument.  The
25315         next version of GNU tar will use this instead of fdsavedir, to
25316         avoid some race conditions and conserve file descriptors.
25317         (savedirstream): Reimplement as a wrapper around streamsavedir.
25318         (fdsavedir): Add a comment deprecating this function.  As far as
25319         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25320         * lib/savedir.h (streamsavedir): New decl.
25321         (fdsavedir): Add a comment deprecating this.
25322
25323 2010-09-10  Bruno Haible  <bruno@clisp.org>
25324
25325         langinfo: Fix last commit.
25326         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25327         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25328         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25329
25330 2010-09-10  Bruno Haible  <bruno@clisp.org>
25331
25332         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25333         * lib/progreloc.c (O_EXEC): Define fallback.
25334
25335 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25336
25337         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25338         * NEWS: Document recent changes to fcntl-h.
25339         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25340         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25341         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25342         Similarly for O_SEARCH; this last was already true, but not documented.
25343         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25344         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25345         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25346         Likewise.
25347         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25348         is zero, not whether it is defined.
25349         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25350         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25351         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25352
25353 2010-09-10  Bruno Haible  <bruno@clisp.org>
25354
25355         langinfo, nl_langinfo: Fix for IRIX 5.3.
25356         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25357         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25358         HAVE_LANGINFO_YESEXPR.
25359         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25360         HAVE_LANGINFO_YESEXPR.
25361         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25362         HAVE_LANGINFO_T_FMT_AMPM is 0.
25363         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25364         HAVE_LANGINFO_YESEXPR is 0.
25365         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25366         NOEXPR.
25367         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25368         * doc/posix-functions/nl_langinfo.texi: Likewise.
25369         Reported by Eric Blake.
25370
25371 2010-09-10  Bruno Haible  <bruno@clisp.org>
25372
25373         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25374         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25375         on FreeBSD 8.0 and OpenBSD 4.6.
25376         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25377         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25378         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25379         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25380         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25381         ac_includes_default.
25382         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25383
25384 2010-09-09  Eric Blake  <eblake@redhat.com>
25385
25386         strsignal: work around NetBSD bug
25387         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25388         * lib/string.in.h (includes): Likewise.
25389         * doc/posix-functions/strsignal.texi (strsignal): Document the
25390         bug.
25391         Reported by Nelson H. F. Beebe.
25392
25393         gnulib-tool: work with NetBSD /bin/sh
25394         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25395         (func_get_description, func_get_comment, func_get_status)
25396         (func_get_notice, func_get_applicability, func_get_filelist)
25397         (func_get_dependencies, func_get_autoconf_early_snippet)
25398         (func_get_autoconf_snippet, func_get_automake_snippet)
25399         (func_get_include_directive, func_get_link_directive)
25400         (func_get_license, func_get_maintainer, func_import): Avoid
25401         shell syntax errors from parsing syntax extensions.
25402
25403 2010-09-09  Bruno Haible  <bruno@clisp.org>
25404
25405         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25406         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25407         a reliable way to determine whether the 'alias' command works.
25408
25409 2010-09-08  Jim Meyering  <meyering@redhat.com>
25410
25411         init.sh: penalize a set-x-impaired shell; don't disqualify it
25412         * tests/init.sh: Too many shells corrupt application stderr when
25413         you set -x, so we can't afford to disqualify them, since at least
25414         on Irix-6.5, that would disqualify all bourne shells.
25415         Instead, use a two-pass approach.
25416         On the first pass, try to find a shell that meets the stricter
25417         condition that set -x does not corrupt stderr.
25418         If no shell meets the stricter condition, retest each candidate
25419         shell, but without that extra condition.  Finally, when
25420         VERBOSE=yes is requested and set -x might cause trouble, simply
25421         issue a warning and refrain from enabling debug output.
25422
25423 2010-09-08  Eric Blake  <eblake@redhat.com>
25424
25425         unsetenv: fix OpenBSD bug
25426         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25427         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25428         documentation.
25429         Reported by Jim Meyering.
25430
25431         strtod: work around IRIX 6.5 bug
25432         * lib/strtod.c (strtod): Reparse number on shorter string if
25433         exponent parse was invalid.
25434         * tests/test-strtod.c (main): Add check for "0x1p 2".
25435         Reported by Tom G. Christensen.
25436
25437         getopt: optimize previous patch
25438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25439         empty variable.  Speed up awk script.
25440         Reported by Paolo Bonzini.
25441
25442 2010-09-08  Jim Meyering  <meyering@redhat.com>
25443
25444         test.sh: disqualify shells for which set -x corrupts stderr
25445         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25446         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25447         appear in stderr output.  For example, this command:
25448             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25449         prints "P=1" on those two systems:
25450
25451 2010-09-08  Bruno Haible  <bruno@clisp.org>
25452
25453         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25454         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25455         commands, because some shells ignore redirections when there is an
25456         error in the command lookup.
25457         Reported by Eric Blake.
25458
25459 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25460
25461         * lib/regex.h: Fix a mention of `regex_compile' (should be
25462         `re_compile_pattern').
25463         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25464         (re_set_registers): Correct name of parameter in comment.
25465
25466         * doc/regex.texi: Add documentation for missing syntax flags.
25467         Remove commented-out documentation of defunct syntax option
25468         RE_NO_EMPTY_ALTS.
25469         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25470         Add documentation of re_set_registers.
25471         Document trick to re-use a pattern buffer by setting fastmap manually.
25472         Update documentation of struct re_pattern_buffer per public members.
25473         Uncomment documentation of equivalence class operators and
25474         collating symbol operators, since they are now implemented,
25475         Explain leftmost-longest matching in relation to alternatives.
25476         Tidy documentation of substring matching.
25477         Remove POSIX documentation, which is done better in
25478         glibc, and refer the reader there. Keep BSD API documentation, as
25479         that is not readily available elsewhere.
25480
25481 2010-09-07  Eric Blake  <eblake@redhat.com>
25482
25483         getopt: handle POSIXLY_CORRECT set but not exported
25484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25485         export state of POSIXLY_CORRECT, due to bash set -o posix.
25486         Reported by Dustin J. Mitchell.
25487
25488 2010-09-05  Bruno Haible  <bruno@clisp.org>
25489
25490         gnulib-tool: Highlight the changed options.
25491         * gnulib-tool (func_usage): Display the --import, --add-import,
25492         --remove-import explanations in bold font.
25493
25494 2010-09-06  Karl Berry  <karl@gnu.org>
25495
25496         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25497
25498 2010-09-05  Bruno Haible  <bruno@clisp.org>
25499
25500         uniwidth/width: Update comment.
25501         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25502         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25503
25504 2010-09-05  Bruno Haible  <bruno@clisp.org>
25505
25506         isinf, isnan: Relax license.
25507         * modules/isinf (License): Change from GPL to LGPL, with consent from
25508         Ben Pfaff.
25509         * modules/isnan (License): Likewise.
25510         Requested by Ludovic Courtès.
25511
25512 2010-09-04  Bruno Haible  <bruno@clisp.org>
25513
25514         gnulib-tool: Help migration from --import to --add-import or --update.
25515         * gnulib-tool: Emit a verbose error message when --import is used
25516         without any module name.
25517
25518 2010-09-04  Bruno Haible  <bruno@clisp.org>
25519
25520         Update doc about gnulib-tool.
25521         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25522         'gnulib-tool --update' in more detail.
25523         Reported by Eric Blake.
25524
25525 2010-09-04  Bruno Haible  <bruno@clisp.org>
25526
25527         gnulib-tool: Change --import. New options --add/remove-import.
25528         * gnulib-tool: New options --add-import, --remove-import.
25529         (func_usage): Document them.
25530         (have_associative): Define always.
25531         (func_import): In import mode, don't merge the specified settings with
25532         the cached settings. Implement remove-import mode.
25533         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25534         Explain when to use them versus --import.
25535         (Simple update): Use --add-import instead of --import.
25536         * NEWS: Mention the change.
25537
25538 2010-09-04  Bruno Haible  <bruno@clisp.org>
25539
25540         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25541         separate gnulib.mk.
25542
25543 2010-09-04  Bruno Haible  <bruno@clisp.org>
25544
25545         gnulib-tool: Don't talk about CVS any more.
25546         * gnulib-tool (func_usage, func_import): Write "version control"
25547         instead of CVS.
25548
25549 2010-09-04  Jim Meyering  <meyering@redhat.com>
25550
25551         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25552         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25553         false positives (whose names may be ill-chosen) when searching
25554         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25555         would cause a false-positive.
25556
25557         avoid coreutils "make distcheck" failure
25558         Coreutils tests with an absolute build directory name that contains
25559         a space.  Not quoting this directory name caused a failure.
25560         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25561         * tests/test-vc-list-files-cvs.sh: Likewise.
25562
25563 2010-09-04  Bruno Haible  <bruno@clisp.org>
25564
25565         gnulib-tool: Avoid error when run in a package without Makefile.am.
25566         * gnulib-tool: When collecting the m4dirs in a package that does not
25567         have a Makefile.am, eliminate those directories that contain no
25568         gnulib-cache.m4. Fix expression that counts these directories.
25569
25570 2010-09-04  Bruno Haible  <bruno@clisp.org>
25571
25572         update-copyright test: Improve output when perl is missing or too old.
25573         * tests/test-update-copyright.sh: Move test of Perl version down after
25574         the test whether Perl exists. Provide an explanation relating Perl's
25575         error message to Automake's SKIP: message.
25576
25577 2010-09-04  Bruno Haible  <bruno@clisp.org>
25578
25579         Don't augment PATH in TESTS_ENVIRONMENT.
25580         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25581         set abs_aux_dir instead of augmenting PATH.
25582         * modules/vc-list-files-tests (Makefile.am): Likewise.
25583         * tests/test-update-copyright.sh: Augment PATH here.
25584         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25585         path_prepend_.
25586         * tests/test-vc-list-files-git.sh: Likewise.
25587
25588 2010-09-04  Jim Meyering  <meyering@redhat.com>
25589
25590         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25591         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25592
25593 2010-09-04  Bruno Haible  <bruno@clisp.org>
25594
25595         strdup: Fix compilation error in C++ mode.
25596         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25597         the macro.
25598
25599 2010-09-04  Bruno Haible  <bruno@clisp.org>
25600
25601         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25602         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25603         macro into a function.
25604         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25605
25606 2010-09-04  Bruno Haible  <bruno@clisp.org>
25607
25608         Set PATH_SEPARATOR the same way autoconf does.
25609         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25610         the value of PATH_SEPARATOR the same way autoconf-generated configure
25611         scripts do.
25612         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25613         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25614
25615 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25616
25617         Set PATH_SEPARATOR the same way autoconf does.
25618         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25619         the same way autoconf-generated configure scripts do.
25620         * posix-modules: Likewise.
25621
25622 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25623
25624         hash: fix safe_hasher const typo
25625         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25626         const; otherwise, there is a type error later.
25627
25628 2010-09-02  Jim Meyering  <meyering@redhat.com>
25629
25630         test-update-copyright.sh: require perl 5.8.0
25631         * tests/test-update-copyright.sh: Require 5.8.0,
25632         which Tom G. Christensen has confirmed is adequate,
25633         while 5.6.1 is not.
25634
25635 2010-09-02  Eric Blake  <eblake@redhat.com>
25636
25637         tests: init.sh improvements for re-exec'ing with zsh
25638         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25639         -vx through shell re-exec.
25640         Reported by Tom G. Christensen.
25641
25642         wctype: fix typo in previous commit
25643         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25644         Reported by Ludovic Courtès.
25645
25646 2010-09-02  Jim Meyering  <meyering@redhat.com>
25647
25648         test-update-copyright.sh: skip test if Perl is too old
25649         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25650         Reported by Tom G. Christensen.
25651
25652 2010-09-02  Bruno Haible  <bruno@clisp.org>
25653
25654         wctype: Avoid compilation error on IRIX 6.5.30.
25655         * lib/wctype.in.h (iswblank): Declare with a replacement if
25656         REPLACE_ISWBLANK is set.
25657         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25658         declared. Set REPLACE_ISWBLANK.
25659         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25660         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25661         * doc/posix-headers/wctype.texi: Likewise.
25662         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25663
25664 2010-09-01  Bruno Haible  <bruno@clisp.org>
25665
25666         New module 'socketlib'.
25667         * modules/socketlib: New file.
25668         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25669         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25670         * modules/sockets (Depends-on): Add socketlib.
25671         Suggested by Sam Steingold <sds@gnu.org>.
25672
25673 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25674
25675         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25676
25677         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25678         when one needs search access to a directory but not read access.
25679         On systems where it is available, it works in some cases where
25680         O_RDONLY does not, namely on directories that are searchable but
25681         not readable, and which need only to be searchable.  If O_SEARCH
25682         is not available, fall back to the traditional method of using
25683         O_RDONLY.
25684
25685         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25686         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25687         when opening a directory that needs only to be searchable.
25688         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25689         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25690         * lib/openat-proc.c (openat_proc_name): Likewise.
25691         * lib/openat.c (openat_needs_fchdir): Likewise.
25692         * lib/save-cwd.c (save_cwd): Likewise.
25693         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25694
25695 2010-08-28  Bruno Haible  <bruno@clisp.org>
25696
25697         New module 'host-cpu-c-abi'.
25698         * modules/host-cpu-c-abi: New file.
25699         * m4/host-cpu-c-abi.m4: New file, based on part of
25700         clisp/src/m4/general.m4.
25701         Requested by Sam Steingold <sds@gnu.org>.
25702
25703 2010-08-31  Eric Blake  <eblake@redhat.com>
25704         and Jim Meyering  <meyering@redhat.com>
25705
25706         hash: factor, and guard against misbehaving hasher function
25707         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25708         of table->hasher's return value.  Also protect against a hash value
25709         so large that adding it to table->bucket results in a NULL pointer.
25710         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25711         Use it in place of open-coded check-and-abort.
25712
25713 2010-08-30  Bruno Haible  <bruno@clisp.org>
25714
25715         hash: silence spurious clang warning
25716         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25717         Reported by Eric Blake.
25718
25719 2010-08-30  Eric Blake  <eblake@redhat.com>
25720
25721         strstr, memmem, strcasestr: avoid leaked shell message
25722         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25723         FreeBSD.
25724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25725         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25726
25727         tests: silence clang warning
25728         * tests/test-malloca.c (do_allocation): Avoid dead store.
25729
25730 2010-08-29  Bruno Haible  <bruno@clisp.org>
25731
25732         gettext: Fix recent mistake.
25733         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25734
25735 2010-08-29  Bruno Haible  <bruno@clisp.org>
25736
25737         selinux-h: Offer a --without-selinux option.
25738         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25739         --without-selinux was specified, skip all tests and define
25740         HAVE_SELINUX_SELINUX_H to 0.
25741         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25742         set LIB_SELINUX to empty.
25743         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25744         gl_LIBSELINUX. If --without-selinux was specified, replace
25745         selinux/context.h.
25746         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25747
25748 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25749             Bruno Haible  <bruno@clisp.org>
25750
25751         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25752         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25753         of HAVE_REALLOC.
25754         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25755         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25756         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25757         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25758
25759 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25760             Bruno Haible  <bruno@clisp.org>
25761
25762         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25763         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25764         HAVE_CALLOC.
25765         * lib/xmalloc.c: Update accordingly.
25766         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25767         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25768         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25769
25770 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25771             Bruno Haible  <bruno@clisp.org>
25772
25773         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25774         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25775         HAVE_MALLOC.
25776         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25777         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25778         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25779
25780 2010-08-29  Bruno Haible  <bruno@clisp.org>
25781
25782         Update modules list.
25783         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25784         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25785         (String handling <string.h>): Add astrxfrm.
25786         (File system functions): Add readlinkat.
25787
25788 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25789
25790         Tests for module 'realloc-gnu'.
25791         * modules/realloc-gnu-tests: New file.
25792         * tests/test-realloc-gnu.c: New file.
25793
25794         Tests for module 'calloc-gnu'.
25795         * modules/calloc-gnu-tests: New file.
25796         * tests/test-calloc-gnu.c: New file.
25797
25798         Tests for module 'malloc-gnu'.
25799         * modules/malloc-gnu-tests: New file.
25800         * tests/test-malloc-gnu.c: New file.
25801
25802 2010-08-28  Bruno Haible  <bruno@clisp.org>
25803
25804         Rename module 'realloc' -> 'realloc-gnu'.
25805         * modules/realloc-gnu: New file, copied from modules/realloc.
25806         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25807         obsolete.
25808         * modules/mgetgroups (Depends-on): Update.
25809         * doc/posix-functions/realloc.texi: Update.
25810         * NEWS: Mention the change.
25811
25812         Rename module 'calloc' -> 'calloc-gnu'.
25813         * modules/calloc-gnu: New file, copied from modules/calloc.
25814         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25815         obsolete.
25816         * doc/posix-functions/calloc.texi: Update.
25817         * NEWS: Mention the change.
25818
25819         Rename module 'malloc' -> 'malloc-gnu'.
25820         * modules/malloc-gnu: New file, copied from modules/malloc.
25821         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25822         obsolete.
25823         * modules/argp (Depends-on): Update.
25824         * modules/regex (Depends-on): Update.
25825         * doc/posix-functions/malloc.texi: Update.
25826         * NEWS: Mention the change.
25827
25828 2010-08-28  Eric Blake  <eblake@redhat.com>
25829
25830         pread, pwrite: add missing dependency
25831         * modules/pread (Depends-on): Add extensions.
25832         * modules/pwrite (Depends-on): Likewise.
25833
25834 2010-08-28  Bruno Haible  <bruno@clisp.org>
25835
25836         unistr/u*-strchr: Fix tests dependencies.
25837         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25838         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25839         Reported by Ian Beckwith <ianb@erislabs.net>.
25840
25841 2010-08-28  Bruno Haible  <bruno@clisp.org>
25842
25843         read-file: Don't occupy too much unused memory.
25844         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25845
25846 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25847             Eric Blake  <eblake@redhat.com>
25848             Bruno Haible  <bruno@clisp.org>
25849
25850         read-file: Avoid memory reallocations with regular files.
25851         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25852         (fread_file): With regular files, use the remaining length as the
25853         initial buffer size.  Check against overflow.
25854         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25855         sys_stat.
25856
25857 2010-08-28  Bruno Haible  <bruno@clisp.org>
25858
25859         ftello: Relax license.
25860         * modules/ftello (License): Relax to LGPLv2+.
25861         Reported by Eric Blake.
25862
25863 2010-08-28  Bruno Haible  <bruno@clisp.org>
25864
25865         Avoid relocwrapper link errors due to gnulib replacement functions.
25866         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25867         function.
25868         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25869
25870 2010-08-28  Bruno Haible  <bruno@clisp.org>
25871
25872         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25873         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25874         defined.
25875         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25876         Suggested by Eric Blake.
25877
25878 2010-08-28  Bruno Haible  <bruno@clisp.org>
25879
25880         sys_socket, netdb: Ensure socklen_t gets defined.
25881         * modules/sys_socket (Depends-on): Add socklen.
25882         * modules/netdb (Depends-on): Likewise.
25883         * modules/getaddrinfo (Depends-on): Remove socklen.
25884         * modules/getsockopt (Depends-on): Likewise.
25885         * modules/setsockopt (Depends-on): Likewise.
25886         * tests/test-sys_socket.c: Check that socklen_t is defined.
25887         * tests/test-netdb.c: Likewise.
25888         * m4/socklen.m4: Update comments.
25889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25890
25891 2010-08-27  Eric Blake  <eblake@redhat.com>
25892
25893         login_tty: add missing dependency
25894         * modules/login_tty (Depends-on): Add pty.
25895
25896 2010-08-26  Eric Blake  <eblake@redhat.com>
25897
25898         lib-symbol-versions: fix m4 quoting
25899         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25900         format for AC_LINK_IFELSE.
25901
25902         glob: fix compile test
25903         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25904
25905         btowc: fix missing file
25906         * modules/btowc (Files): Also ship locale-fr.m4.
25907
25908         lseek: fix link test
25909         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25910         AC_LINK_IFELSE.
25911
25912         include_next: silence autoconf 2.68 warning
25913         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25914         AC_COMPILE_IFELSE as special.
25915         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25916         autoconf < 2.68.
25917
25918         acl: fix compilation test
25919         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25920         AC_COMPILE_IFELSE.
25921
25922 2010-08-26  Bruno Haible  <bruno@clisp.org>
25923
25924         Modernize AC_TRY_RUN invocations.
25925         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25926         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25927         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25928         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25929         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25930         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25931         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25932         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25933         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25934         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25935         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25936         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25937         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25938         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25939         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25940         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25941         gl_MBRLEN_NUL_RETVAL): Likewise.
25942         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25943         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25944         Likewise.
25945         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25946         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25947         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25948         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25949         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25950         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25951         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25952         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25953         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25954         Likewise.
25955         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25956         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25957         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25958         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25959         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25960         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25961         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25962         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25963         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25965
25966 2010-08-26  Bruno Haible  <bruno@clisp.org>
25967
25968         Modernize AC_TRY_LINK invocations.
25969         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25970         AC_TRY_LINK.
25971         * m4/argp.m4 (gl_ARGP): Likewise.
25972         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25973         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25974         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25975         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25976         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25977         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25978         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25979         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25980         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25981         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25982         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25983         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25984         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25985         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25986         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25987         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25988         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25989         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25990         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25991         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25992         Likewise.
25993         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25994         Likewise.
25995         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25996         Likewise.
25997         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25998         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25999         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26000         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26001         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26002         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26003         * m4/servent.m4 (gl_SERVENT): Likewise.
26004         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26005         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26006         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26007         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26008         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26009         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26010         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26011         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26012         * modules/tsearch-tests (configure.ac): Likewise.
26013
26014 2010-08-26  Bruno Haible  <bruno@clisp.org>
26015
26016         Modernize AC_TRY_COMPILE invocations.
26017         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26018         AC_TRY_COMPILE.
26019         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26020         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26021         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26022         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26023         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26024         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26025         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26026         * m4/lock.m4 (gl_LOCK): Likewise.
26027         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26028         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26029         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26030         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26031         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26032         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26033         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26034         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26035         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26036         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26037         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26038         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26039         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26040         extraneous semicolon.
26041
26042 2010-08-26  Jim Meyering  <meyering@redhat.com>
26043
26044         stat-time: relax license LGPL
26045         * modules/stat-time (License): Change from GPL to LGPL,
26046         with consent from all contributors, for use in libguile.
26047         Requested by Ludovic Courtès.
26048
26049 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26050
26051         poll: return immediately on POLLHUP.
26052         * lib/poll.c (poll): Always set timeout before wait_timeout is
26053         computed.
26054
26055 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26056
26057         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26058         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26059         rmdir ("dir/.//"), unlinkat.
26060
26061 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26062
26063         stdbool: avoid spurious failure with modern xlc
26064         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26065
26066 2010-08-24  Bruno Haible  <bruno@clisp.org>
26067
26068         getloadavg: simplify code
26069         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26070         gl_have_func. Update comments.
26071
26072 2010-08-24  Eric Blake  <eblake@redhat.com>
26073
26074         getloadavg: don't define SVR4 on cygwin
26075         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26076         only define SVR4 when -lkvm is required.
26077         Reported by Yaakov Selkowitz.
26078
26079 2010-08-24  Bruno Haible  <bruno@clisp.org>
26080
26081         priv-set: fix comment
26082         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26083
26084 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26085
26086         priv-set: fix comments
26087         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26088         to match code, as suggested by David Bartley in:
26089         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26090
26091 2010-08-23  Eric Blake  <eblake@redhat.com>
26092
26093         stdbool: avoid rejecting clang
26094         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26095         * tests/test-stdbool.c: Enable more tests if using the system
26096         <stdbool.h> instead of the gnulib replacement.
26097         (main): Move xlc bug test to a runtime test for all compilers.
26098         Reported by Anders Kaseorg.
26099
26100         argz: fix shell quoting issue
26101         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26102         Reported by Charles Wilson.
26103
26104 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26105             Erik Faye-Lund <kusmabite@gmail.com>
26106
26107         poll, select: handle ERROR_BROKEN_PIPE.
26108         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26109         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26110         * lib/select.c (win32_compute_revents): Do not mark a pipe
26111         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26112
26113 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26114
26115         fts: allow compilation with C++
26116         * lib/fts_.h: Specify extern "C" linkage with C++.
26117
26118 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26119
26120         Fix gnulib-tool sed script de-commentation for AIX sed.
26121         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26122         sed.
26123
26124 2010-08-17  Eric Blake  <eblake@redhat.com>
26125
26126         test-stddef: test for (some) offsetof bugs
26127         * tests/test-stddef.c: Enhance test to ensure correct type of
26128         offsetof.
26129         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26130         that we are not fixing at this time.
26131
26132 2010-08-15  Bruno Haible  <bruno@clisp.org>
26133
26134         stpncpy: Allow stpncpy to be defined as a macro.
26135         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26136         if it's already correctly declared.
26137         * lib/string.in.h (stpncpy): Undefine before redefining.
26138         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26139
26140 2010-08-14  Bruno Haible  <bruno@clisp.org>
26141
26142         Rename module 'memxfrm' to 'amemxfrm'.
26143         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26144         (amemxfrm): Renamed from memxfrm.
26145         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26146         (amemxfrm): Renamed from memxfrm.
26147         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26148         * NEWS: Mention the change.
26149         * MODULES.html.sh (String handling <string.h>): Update.
26150         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26151         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26152         * lib/unicase/u16-casexfrm.c: Likewise.
26153         * lib/unicase/u32-casexfrm.c: Likewise.
26154         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26155         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26156         * lib/uninorm/u16-normxfrm.c: Likewise.
26157         * lib/uninorm/u32-normxfrm.c: Likewise.
26158         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26159         memxfrm.
26160         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26161         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26162         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26163         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26164         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26165         Suggested by Paul Eggert.
26166
26167 2010-08-14  Bruno Haible  <bruno@clisp.org>
26168
26169         Tests for module 'astrxfrm'.
26170         * modules/astrxfrm-tests: New file.
26171         * tests/test-astrxfrm.c: New file.
26172
26173         New module 'astrxfrm'.
26174         * lib/astrxfrm.h: New file.
26175         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26176         * modules/astrxfrm: New file.
26177
26178 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26179
26180         regex: Tweak doc.
26181         * doc/regex.texi (Overview): Don't mention regex.c.
26182         (GNU Regular Expression Compiling): Likewise.
26183         (Match-end-of-line Operator): Mention 'not_eol'.
26184
26185 2010-08-14  Brian Gough  <bjg@gnu.org>
26186             Bruno Haible  <bruno@clisp.org>
26187
26188         git-merge-changelog: add doc relating to use with bzr and hg.
26189         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26190
26191 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26192
26193         pthread: fix pthread.h creation for srcdir != builddir
26194         * modules/pthread (Makefile.am): Fix the rule to work also in a
26195         non-srcdir build.
26196
26197 2010-08-13  Karl Berry  <karl@gnu.org>
26198
26199         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26200         * doc/posix-*/*: force line break before @url of POSIX
26201         specifications.
26202         Suggested by Werner Lemberg.
26203
26204 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26205
26206         strtod: fix const diagnostic
26207         * lib/strtod.c (strtod): Don't assign const char * to char *,
26208         as this elicits a warning from GCC when warnings are enabled.
26209
26210 2010-08-10  Pádraig Brady <P@draigbrady.com>
26211         and Eric Blake  <eblake@redhat.com>
26212
26213         copy-acl: ignore ENOTSUP on HP-UX
26214         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26215         so that it is available for HP-UX.
26216         * lib/copy-acl.c (qcopy_acl): Use it.
26217         Reported by Patrick M. Callahan.
26218
26219 2010-08-10  Eric Blake  <eblake@redhat.com>
26220
26221         open, chown: relax license
26222         * modules/open (License): Change to LGPLv2+, with consent by all
26223         authors, for use in augeas.
26224         * modules/chown (License): Likewise.
26225         * modules/lchown (Likewise): Likewise.
26226         Requested by Adam Stokes.
26227
26228 2010-08-09  Karl Berry  <karl@gnu.org>
26229
26230         * build-aux/ar-lib: new file, import from Automake.
26231         * config/srclist.txt: autocheck for updates.
26232
26233 2010-08-09  Eric Blake  <eblake@redhat.com>
26234
26235         readlinkat: adjust client modules
26236         * modules/areadlinkat (Depends-on): Use readlinkat, not
26237         symlinkat.
26238         * modules/areadlinkat-with-size (Depends-on): Likewise.
26239
26240         mknod: be more vocal about danger of running tests as root
26241         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26242         root, since that is just asking for problems.
26243         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26244
26245         readlinkat: split into its own module
26246         * modules/symlinkat: Split readlinkat...
26247         * modules/readlinkat: ...into separate module.
26248         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26249         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26250         * lib/symlinkat.c (readlinkat): Move...
26251         * lib/readlinkat.c: ...into new file.
26252         * modules/symlinkat-tests: Split readlinkat test...
26253         * modules/readlinkat-tests: ...into separate module.
26254         * tests/test-symlinkat.c: Split...
26255         * tests/test-readlinkat.c: ...into new file.
26256         * NEWS: Document the split.
26257         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26258         * lib/unistd.in.h (readlinkat): Likewise.
26259         Suggested by Bruno Haible.
26260
26261 2010-08-08  Bruno Haible  <bruno@clisp.org>
26262
26263         memxfrm: Speed up.
26264         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26265         that usually only one call to strxfrm is necessary for each string
26266         part.
26267         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26268
26269 2010-08-07  Karl Berry  <karl@gnu.org>
26270
26271         * doc/posix-headers/limits.texi,
26272         * doc/posix-functions/malloc.texi,
26273         * doc/posix-functions/strsignal.texi: missing @item.
26274         * doc/ld-version-script.texi: spurious leading i.
26275         * doc/regex.texi (Interval Operators): no commas inside @var.
26276
26277 2010-08-01  Bruno Haible  <bruno@clisp.org>
26278
26279         Integrate the regex documentation.
26280         * doc/gnulib.texi: Define 'cn' index.
26281         (Regular expressions): New a chapter that includes regex.texi and
26282         regexprops-generic.texi.
26283         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26284         syntax.
26285
26286         Whitespace cleanup.
26287         * doc/regex.texi: Remove trailing spaces.
26288
26289         Add regex documentation.
26290         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26291         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26292         Written by Kathy A. Hargreaves and Karl Berry.
26293
26294 2010-08-01  Bruno Haible  <bruno@clisp.org>
26295
26296         link: Update documentation.
26297         * doc/posix-functions/link.texi: Update regarding Solaris.
26298
26299 2010-07-31  Bruno Haible  <bruno@clisp.org>
26300
26301         Update modules list.
26302         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26303         (String handling <string.h>): Add memcmp2, memxfrm.
26304         (Container data structures): Add xlist, xsublist, xoset.
26305         (Core language properties): Add alignof, unused-parameter.
26306         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26307         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26308         (Unibyte characters <ctype.h>): New section.
26309         (String handling <string.h>): New section.
26310         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26311         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26312         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26313         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26314         tan, tanh, tanl, y0, y1, yn.
26315         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26316         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26317         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26318         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26319         unlockpt, vdprintf, vdprintf-posix.
26320         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26321         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26322         xconcat-filename.
26323         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26324         getdtablesize, pipe2, pipe2-safer.
26325         (Security): New section.
26326         (Networking functions): Add accept4.
26327         (Signal handling): Add sigpipe.
26328         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26329         mbmemcasecoll.
26330         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26331         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26332         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26333         pipe-filter-ii.
26334         (Misc): Add argp-version-etc, login_tty, parse-duration.
26335
26336 2010-07-31  Bruno Haible  <bruno@clisp.org>
26337
26338         Improve doc in MODULES.html.
26339         * modules/linkat (Description): Add the word "function".
26340         * modules/mkfifo (Description): Likewise.
26341         * modules/mknod (Description): Likewise.
26342         * modules/remove (Description): Likewise.
26343         * modules/renameat (Description): Likewise.
26344         * modules/stat (Description): Likewise.
26345         * modules/symlink (Description): Likewise.
26346         * modules/unlink (Description): Likewise.
26347
26348 2010-07-31  Bruno Haible  <bruno@clisp.org>
26349
26350         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26351         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26352         option --enable/disable-c++ instead of --enable/disable-cxx.
26353         * NEWS: Mention the change.
26354
26355 2010-07-31  Bruno Haible  <bruno@clisp.org>
26356
26357         readlink, areadlink: Relax test a bit.
26358         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26359         alternative to ENOTDIR.
26360         * tests/test-areadlink.h (test_areadlink): Likewise.
26361         Reported by Rainer Tammer.
26362
26363 2010-07-31  Bruno Haible  <bruno@clisp.org>
26364
26365         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26366         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26367         character, perform the search using U_STRCHR.
26368         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26369         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26370         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26371         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26372         Suggested by Paolo Bonzini.
26373
26374 2010-07-31  Bruno Haible  <bruno@clisp.org>
26375
26376         unistr/u*-strstr: Fix dependencies.
26377         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26378         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26379         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26380
26381 2010-07-31  Bruno Haible  <bruno@clisp.org>
26382
26383         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26384         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26385         the beginning of the loop.
26386         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26387         cases in 'switch' statement.
26388
26389         unistr/u8-strchr: Fix several bugs.
26390         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26391         the string. When not found, return NULL, not a pointer near the end.
26392
26393         More tests for unistr/u8-strchr.
26394         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26395         that the function does not read past the first occurrence of the byte
26396         being searched.
26397         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26398         * tests/unistr/test-u16-strchr.c (main): New function.
26399         * tests/unistr/test-u32-strchr.c (main): New function.
26400
26401 2010-07-31  Bruno Haible  <bruno@clisp.org>
26402
26403         posix-modules: Ignore backup files of documentation files.
26404         * posix-modules: grep only through files named *.texi.
26405
26406 2010-07-31  Bruno Haible  <bruno@clisp.org>
26407
26408         symlinkat: Fix documentation.
26409         * doc/posix-functions/readlinkat.texi: Fix module name.
26410
26411 2010-07-31  Bruno Haible  <bruno@clisp.org>
26412
26413         fchownat: Replace also when chown has the trailing slash bug.
26414         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26415         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26416         introduced on 2010-04-10.
26417         Reported by Rainer Tammer.
26418
26419 2010-07-31  Bruno Haible  <bruno@clisp.org>
26420
26421         linkat: Work around AIX 7.1 bug.
26422         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26423         whether linkat handles trailing slash correctly. If not, replace linkat
26424         and define LINKAT_TRAILING_SLASH_BUG.
26425         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26426         check whether (fd1,file1) points to a directory if file1 or file2 ends
26427         in a slash. Code taken from lib/link.c.
26428         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26429         Reported by Rainer Tammer.
26430
26431 2010-07-31  Bruno Haible  <bruno@clisp.org>
26432
26433         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26434         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26435         This disables an xlc optimization that was causing wrong test results.
26436         Reported by Rainer Tammer.
26437
26438 2010-07-31  Bruno Haible  <bruno@clisp.org>
26439
26440         iconv: Work around AIX 6.1..7.1 bug.
26441         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26442         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26443         cross-compiling, guess no on all versions of AIX.
26444         Reported by Rainer Tammer.
26445
26446 2010-07-31  Bruno Haible  <bruno@clisp.org>
26447
26448         readlink: Relax test a bit.
26449         * tests/test-readlink.h (test_readlink): Allow different errno value
26450         when readlink is called with a file name that ends in / and refers to
26451         a file.
26452         Suggested by Eric Blake.
26453         Reported by Rainer Tammer.
26454
26455 2010-07-31  Bruno Haible  <bruno@clisp.org>
26456
26457         copysign: Does not require -lm on glibc systems.
26458         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26459         gl_COMMON_DOUBLE_MATHFUNC.
26460         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26461
26462 2010-07-31  Bruno Haible  <bruno@clisp.org>
26463
26464         duplocale: Work around AIX 7.1 bug.
26465         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26466         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26467         * lib/duplocale.c (rpl_duplocale): Update comment.
26468         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26469         Reported by Rainer Tammer.
26470
26471 2010-07-30  Bruno Haible  <bruno@clisp.org>
26472
26473         dirfd: Avoid link error on AIX 7.1.
26474         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26475         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26476         exist, set REPLACE_DIRFD.
26477         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26478         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26479         * doc/posix-functions/dirfd.texi: Update.
26480         Reported by Rainer Tammer.
26481
26482 2010-07-30  Eric Blake  <eblake@redhat.com>
26483
26484         strtod: next round of AIX fixes
26485         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26486         exponent.
26487         * tests/test-strtod.c (main): Enhance tests.
26488         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26489         Reported by Rainer Tammer.
26490
26491         futimens: fix configure check
26492         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26493         Reported by Bruno Haible.
26494
26495 2010-07-30  Bruno Haible  <bruno@clisp.org>
26496
26497         getline: Update regarding AIX.
26498         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26499         Reported by Rainer Tammer.
26500
26501 2010-07-30  Bruno Haible  <bruno@clisp.org>
26502
26503         wcwidth: Drop replacement on AIX 7.
26504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26505         AIX 7.
26506         Reported by Rainer Tammer.
26507
26508 2010-07-30  Bruno Haible  <bruno@clisp.org>
26509
26510         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26511         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26512         a 'char *'.
26513         Reported by Rainer Tammer.
26514
26515 2010-07-30  Bruno Haible  <bruno@clisp.org>
26516
26517         unlink: Update regarding AIX.
26518         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26519         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26520         Reported by Rainer Tammer.
26521
26522 2010-07-30  Bruno Haible  <bruno@clisp.org>
26523
26524         symlink: Update regarding AIX.
26525         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26526         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26527         Reported by Rainer Tammer.
26528
26529 2010-07-30  Bruno Haible  <bruno@clisp.org>
26530
26531         strndup: Update regarding AIX.
26532         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26533         AIX 7.
26534         Reported by Rainer Tammer.
26535
26536 2010-07-30  Bruno Haible  <bruno@clisp.org>
26537
26538         stat: Update regarding AIX.
26539         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26540         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26541         Reported by Rainer Tammer.
26542
26543 2010-07-30  Bruno Haible  <bruno@clisp.org>
26544
26545         truncl: Fix autoconf test.
26546         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26547         whether truncl works.
26548         Reported by Rainer Tammer.
26549
26550 2010-07-30  Bruno Haible  <bruno@clisp.org>
26551
26552         round: Update regarding AIX.
26553         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26554         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26555         Reported by Rainer Tammer.
26556
26557 2010-07-30  Bruno Haible  <bruno@clisp.org>
26558
26559         rename: Update regarding AIX.
26560         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26561         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26562         Reported by Rainer Tammer.
26563
26564 2010-07-30  Bruno Haible  <bruno@clisp.org>
26565
26566         printf.m4: Update regarding AIX.
26567         * m4/printf.m4: Update comments regarding AIX.
26568         Reported by Rainer Tammer.
26569
26570 2010-07-30  Bruno Haible  <bruno@clisp.org>
26571
26572         iconv: Update regarding AIX.
26573         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26574         AIX 7.
26575         Reported by Rainer Tammer.
26576
26577 2010-07-30  Bruno Haible  <bruno@clisp.org>
26578
26579         getopt: Update regarding AIX.
26580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26581         no on AIX.
26582         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26583         Reported by Rainer Tammer.
26584
26585 2010-07-30  Bruno Haible  <bruno@clisp.org>
26586
26587         ldexpl; Update regarding AIX.
26588         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26589         on AIX 7.
26590         Reported by Rainer Tammer.
26591
26592 2010-07-30  Bruno Haible  <bruno@clisp.org>
26593
26594         frexpl: Update regarding AIX.
26595         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26596         on AIX 7.
26597         Reported by Rainer Tammer.
26598
26599 2010-07-30  Bruno Haible  <bruno@clisp.org>
26600
26601         open, fopen: Update regarding AIX.
26602         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26603         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26604         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26605         * doc/posix-functions/fopen.texi: Likewise.
26606         Reported by Rainer Tammer.
26607
26608 2010-07-30  Bruno Haible  <bruno@clisp.org>
26609
26610         chown: Update doc regarding AIX.
26611         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26612         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26613         Reported by Rainer Tammer.
26614
26615 2010-07-30  Eric Blake  <eblake@redhat.com>
26616
26617         strtod: fix bug in replacement function on AIX
26618         * lib/strtod.c (strtod): Special case broken "0x" parse in
26619         underlying strtod.
26620         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26621         * doc/posix-functions/strtod.texi (strtod): Likewise.
26622         Reported by Rainer Tammer.
26623
26624 2010-07-30  Bruno Haible  <bruno@clisp.org>
26625
26626         mbrlen: Fix cross-compilation guess for AIX.
26627         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26628         guess. Leftover from 2008-12-22.
26629
26630 2010-07-30  Bruno Haible  <bruno@clisp.org>
26631
26632         mbrtowc: Fix cross-compilation guess for AIX.
26633         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26634         guess. Leftover from 2008-12-21.
26635
26636 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26637
26638         init.sh: work around trap limitation of some shells
26639         * tests/init.sh (setup_): Move exit trap outside of shell function.
26640
26641 2010-07-29  Eric Blake  <eblake@redhat.com>
26642
26643         strtod: aid debugging
26644         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26645         understanding why strtod is rejected.
26646
26647 2010-07-28  Bruno Haible  <bruno@clisp.org>
26648
26649         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26650         * lib/unistr/u8-chr.c: Include <string.h>.
26651         * tests/unistr/test-u8-chr.c: Likewise.
26652         * tests/unistr/test-u16-chr.c: Likewise.
26653         * tests/unistr/test-u32-chr.c: Likewise.
26654         * tests/unistr/test-u8-strchr.c: Likewise.
26655         * tests/unistr/test-u16-strchr.c: Likewise.
26656         * tests/unistr/test-u32-strchr.c: Likewise.
26657         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26658         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26659         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26660         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26661
26662 2010-07-28  Bruno Haible  <bruno@clisp.org>
26663
26664         Use spaces for indentation, not tabs.
26665         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26666
26667 2010-07-27  Bruno Haible  <bruno@clisp.org>
26668
26669         mbspcasecmp: Fix function specification.
26670         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26671         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26672         Reported by Eric Blake <eblake@redhat.com>.
26673
26674 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26675
26676         timespec: use cast and not conditional, as truncation isn't possible
26677         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26678         instead of a conditional.  Comment about the situation in more detail.
26679         This undoes most of the 2009-10-29 patch.
26680
26681 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26682
26683         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26684         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26685         * lib/unistr/u8-strchr.c: Likewise.
26686         * modules/unistr/u8-chr: Depend on memchr.
26687
26688         unistr/u*-strchr: add tests
26689         * modules/unistr/u8-strchr-tests: New file.
26690         * modules/unistr/u16-strchr-tests: New file.
26691         * modules/unistr/u32-strchr-tests: New file.
26692         * tests/unistr/test-strchr.h: New file.
26693         * tests/unistr/test-u8-strchr.c: New file.
26694         * tests/unistr/test-u16-strchr.c: New file.
26695         * tests/unistr/test-u32-strchr.c: New file.
26696
26697         unistr/u*-chr: test multibyte sequences more
26698         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26699         test vector.
26700         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26701         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26702         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26703
26704         unistr/u*-chr: test multibyte sequences
26705         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26706
26707         unistr/u*-chr: prepare for multibyte tests
26708         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26709         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26710         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26711         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26712         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26713         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26714
26715 2010-07-18  Bruno Haible  <bruno@clisp.org>
26716
26717         unistr/u8-strchr: Optimize non-ASCII argument case.
26718         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26719         because the first byte often matches anyway.
26720         Reported by Pádraig Brady <P@draigbrady.com>.
26721
26722 2010-07-15  Karl Berry  <karl@gnu.org>
26723
26724         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26725
26726 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26727
26728         getcwd: on Solaris, work better if ancestors are inaccessible
26729         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26730         buffer and size, try again with a large buffer.  This works better
26731         on Solaris, since its getcwd succeeds even if the path to the root
26732         is inaccessible, and this is helpful in common cases such as .zfs
26733         hidden directories.  Problem reported by J Chapman Flack in
26734         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26735         Use system getcwd if it's declared, not merely if it's partly
26736         working; use the partly-working test only to avoid needless effort
26737         if the system getcwd fails.
26738         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26739         comment that was already obsolete and is now even more obsolete.
26740         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26741         now might call strdup.
26742
26743 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26744
26745         pthread: Add enough so that coreutils/src/sort.c compiles.
26746         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26747         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26748         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26749         Include <sys/types.h>, in case it defines pthread_t.
26750         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26751         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26752         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26753         (pthread_rwlockattr_t, pthread_spinlock_t):
26754         New typedefs, if HAVE_PTHREAD_T is not defined.
26755         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26756         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26757         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26758         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26759         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26760         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26761         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26762         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26763         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26764         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26765         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26766         New macros.
26767         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26768         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26769         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26770         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26771         (pthread_spin_unlock): New dummy functions.
26772         (pthread_create): Return EAGAIN; don't set errno.
26773         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26774         require AC_C_INLINE.
26775         * modules/pthread (Depends-on): Add sched, time.
26776         (pthread.h): Use AM_V_GEN.
26777
26778 2010-07-13  Bruno Haible  <bruno@clisp.org>
26779
26780         striconveh: Don't malloc memory if the result buffer is sufficient.
26781         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26782         buffer if its size is sufficient.
26783         Reported by Ludovic Courtès <ludo@gnu.org>.
26784
26785 2010-07-13  Bruno Haible  <bruno@clisp.org>
26786
26787         strtod: Add safety check.
26788         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26789
26790 2010-07-12  Bruno Haible  <bruno@clisp.org>
26791
26792         Unify tests that set gl_cv_func_ldexpl_no_libm.
26793         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26794         gl_FUNC_LDEXPL.
26795         (gl_FUNC_LDEXPL): Invoke it.
26796         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26797
26798 2010-07-12  Bruno Haible  <bruno@clisp.org>
26799
26800         Unify tests that set gl_cv_func_ldexp_no_libm.
26801         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26802         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26803         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26804         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26805         * modules/strtod (Files): Add m4/ldexp.m4.
26806
26807 2010-07-12  Bruno Haible  <bruno@clisp.org>
26808
26809         Unify tests that set gl_cv_func_frexpl_no_libm.
26810         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26811         gl_FUNC_FREXPL_NO_LIBM.
26812         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26813         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26814
26815 2010-07-12  Bruno Haible  <bruno@clisp.org>
26816
26817         Unify tests that set gl_cv_func_frexp_no_libm.
26818         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26819         gl_FUNC_FREXP_NO_LIBM.
26820         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26821         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26822
26823 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26824
26825         memcoll: clarify sizes versus lengths, document better, and tweak perf
26826         * lib/memcoll.c (strcoll_loop, memcoll0):
26827         Improve quality of descriptive comments.  Name variables
26828         consistently as to whether they are lengths (which do not include
26829         terminating null) versus sizes (which do).
26830         * lib/xmemcoll.c (xmemcoll0): Likewise.
26831         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26832         returned when s1size == 0; this is easier to compile and saves
26833         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26834
26835 2010-07-12  Bruno Haible  <bruno@clisp.org>
26836
26837         Tests for module '_Exit'.
26838         * modules/_Exit-tests: New file.
26839         * tests/test-_Exit.sh: New file.
26840         * tests/test-_Exit.c: New file.
26841
26842         New module '_Exit'.
26843         * lib/stdlib.in.h (__attribute__): New macro.
26844         (_Exit): New declaration.
26845         * lib/_Exit.c: New file.
26846         * m4/_Exit.m4: New file.
26847         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26848         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26849         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26850         * modules/_Exit: New file.
26851         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26852         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26853
26854 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26855
26856         strtod: make it more-accurate typically, and don't require libm
26857         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26858         Include limits.h.  Don't include string.h.
26859         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26860         (locale_isspace): New function, so that no casts are needed to
26861         check whether *s is a space.
26862         (ldexp): Provide an unused dummy if not available.
26863         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26864         (strtod): Use them.  This implementation prefers to use the
26865         underlying strtod if available, falling back on our own code
26866         only to fix known bugs.  This is more likely to produce an
26867         accurate result.  Also, it avoids the use of libm functions.
26868         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26869         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26870         was absent, but it caused a test failure with coreutils.
26871         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26872         with libm.
26873         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26874         * modules/strtod-tests (Makefile.am): Likewise.
26875
26876 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26877             Bruno Haible  <bruno@clisp.org>
26878
26879         unistr/u8-strchr: Optimize ASCII argument case.
26880         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26881
26882 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26883
26884         (x)memcoll: minor tweaks
26885         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26886         is after the type that it qualifies.
26887         (memcoll0): Likewise.
26888         * lib/memcoll.h (memcoll0): Likewise.
26889         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26890         * lib/xmemcoll.h (xmemcoll0): Likewise.
26891         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26892         differs from memcoll in that the NUL byte is part of the argument.
26893         Omit the abort-checks, as performance is a real issue here.  Plus,
26894         the checks were wrong anyway (an off-by-one error).  Omit local
26895         variable 'diff', as it's a bit clearer that way.
26896         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26897         no longer needed.
26898
26899 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26900
26901         (x)memcoll: speedup when input is known to be NUL delimited
26902         * lib/memcoll.c: Include stdlib.
26903         (memcoll0): New function.
26904         (strcoll_loop): New function, refactored for use in both memcoll
26905         and memcoll0.
26906         * lib/memcoll.h (memcoll0): Add prototype.
26907         * lib/xmemcoll.c (xmemcoll0): New function.
26908         (collate_error): New function, refactored for use in both xmemcoll
26909         and xmemcoll0.
26910         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26911         * m4/memcoll.m4: add inline invocation.
26912
26913 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26914
26915         * build-aux/bootstrap: Remove any local translations
26916         from the translation project synchronization directory,
26917         so that local only translations are not distributed.
26918
26919 2010-07-04  Bruno Haible  <bruno@clisp.org>
26920
26921         fsusage: Clarify which code applies to which platforms.
26922         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26923         platform.
26924         * lib/fsusage.c (get_fs_usage): Likewise.
26925
26926 2010-07-04  Bruno Haible  <bruno@clisp.org>
26927
26928         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26929         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26930         Reported by Martin Lambers <marlam@marlam.de>.
26931
26932 2010-07-04  Jim Meyering  <meyering@redhat.com>
26933
26934         hash: once again explicitly disallow insertion of NULL
26935         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26936         inserting a NULL pointer cannot work with these functions.
26937         Add a comment with details.
26938         This reverts part of the 2010-07-01 commit, 5bef1a35
26939         "hash: extend module to deal with non-pointer keys".
26940
26941 2010-07-01  Bruno Haible  <bruno@clisp.org>
26942
26943         stdbool: Update doc.
26944         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26945         Info from Christian Weisgerber <naddy@mips.inka.de>.
26946
26947 2010-07-01  Jim Meyering  <meyering@redhat.com>
26948
26949         hash: extend module to deal with non-pointer keys
26950         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26951         but that allows insertion of non-pointer entries.
26952         Do not disallow an ENTRY value of NULL.
26953         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26954         * lib/hash.h (hash_insert0): Declare.
26955
26956 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26957
26958         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26959         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26960         not present (i.e. with autoconf 2.59 and when using gettextize, not
26961         gnulib), require AC_GNU_SOURCE instead.
26962
26963 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26964
26965         idpriv-drop: Fix tests.
26966         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26967         not to the test-idpriv-droptemp program.
26968
26969 2010-06-29  Bruno Haible  <bruno@clisp.org>
26970
26971         string: Fix syntax error with g++ 2.96.
26972         * lib/string.in.h (__pure__): Remove definition.
26973         (_GL_ATTRIBUTE_PURE): New macro.
26974         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26975         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26976         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26977
26978 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26979
26980         unitypes: Fix bug introduced on 2010-05-18.
26981         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26982
26983 2010-06-22  Eric Blake  <eblake@redhat.com>
26984
26985         memmem: slight optimization
26986         * lib/str-two-way.h (critical_factorization): Update comments.
26987         Reduce work during factorization phase.
26988         Reported by Carlos Bueno <carlos@bueno.org>.
26989
26990 2010-06-21  Bruno Haible  <bruno@clisp.org>
26991
26992         Fix HAVE_CALLOC_POSIX misnomer.
26993         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26994         !HAVE_CALLOC_POSIX.
26995         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26996         HAVE_CALLOC_POSIX.
26997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26998         instead of HAVE_CALLOC_POSIX.
26999         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27000         HAVE_CALLOC_POSIX.
27001
27002         Use modern idiom for calloc() replacement.
27003         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27004         AC_FUNC_CALLOC.
27005         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27006         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27007         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27008         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27009         (gl_REPLACE_CALLOC): New macro.
27010
27011 2010-06-21  Bruno Haible  <bruno@clisp.org>
27012
27013         Fix HAVE_REALLOC_POSIX misnomer.
27014         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27015         !HAVE_REALLOC_POSIX.
27016         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27017         HAVE_REALLOC_POSIX.
27018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27019         instead of HAVE_REALLOC_POSIX.
27020         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27021         HAVE_REALLOC_POSIX.
27022
27023         Use modern idiom for realloc() replacement.
27024         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27025         AC_FUNC_REALLOC.
27026         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27027         Autoconf's AC_FUNC_REALLOC.
27028         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27029         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27030         (gl_REPLACE_REALLOC): New macro.
27031         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27032
27033 2010-06-21  Bruno Haible  <bruno@clisp.org>
27034
27035         Fix HAVE_MALLOC_POSIX misnomer.
27036         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27037         !HAVE_MALLOC_POSIX.
27038         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27039         HAVE_MALLOC_POSIX.
27040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27041         instead of HAVE_MALLOC_POSIX.
27042         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27043         HAVE_MALLOC_POSIX.
27044
27045         Use modern idiom for malloc() replacement.
27046         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27047         AC_FUNC_MALLOC.
27048         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27049         Autoconf's AC_FUNC_MALLOC.
27050         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27051         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27052         (gl_REPLACE_MALLOC): New macro.
27053         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27054
27055 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27056
27057         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27058         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27059         This macro takes 3 arguments, not 4.
27060
27061 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27062
27063         ipv6: fix detection under mingw
27064         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27065         in6_addr.
27066
27067 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27068
27069         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27070         that strtod() works when cross-compiling to a glibc version known
27071         to work.
27072
27073 2010-06-15  Bruno Haible  <bruno@clisp.org>
27074
27075         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27076
27077 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27078
27079         select: Correct timeout.
27080         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27081
27082 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27083
27084         git-version-gen: init shell var to avoid env var influence
27085         * build-aux/git-version-gen (v): Init shell var to empty.
27086
27087 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27088
27089         priv-set: Don't assume that priv.h exists merely because getppriv does.
27090         See Jan Andersen's bug report about AIX 5L in
27091         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27092         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27093         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27094         * lib/priv-set.h: Likewise.
27095         * tests/test-priv-set.c: Likewise.
27096
27097 2010-06-13  Bruno Haible  <bruno@clisp.org>
27098
27099         relocatable: Make it easier to test whether to install wrappers.
27100         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27101         RELOCATABLE_VIA_WRAPPER.
27102
27103 2010-06-13  Bruno Haible  <bruno@clisp.org>
27104
27105         gnulib-tool: Display specified modules and dependencies differently.
27106         * gnulib-tool (func_show_module_list): New function.
27107         (func_import, func_create_testdir): Invoke it.
27108         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27109
27110 2010-06-13  Bruno Haible  <bruno@clisp.org>
27111
27112         gnulib-tool: Align code of func_import and func_create_testdir.
27113         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27114         specified_modules.
27115
27116 2010-06-12  Jim Meyering  <meyering@redhat.com>
27117
27118         test-inttostr: avoid spurious failure on Solaris 9
27119         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27120         to accept "%ju".  Reported by Bruno Haible.
27121
27122 2010-06-11  Jim Meyering  <meyering@redhat.com>
27123
27124         test-sys_socket: mark variables as used more readably
27125         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27126         as "used" explicitly via (void) statement casts.  This is more
27127         readable than using them in an artificial return expression.
27128         Suggestion from Bruno Haible.
27129
27130 2010-06-11  Bruno Haible  <bruno@clisp.org>
27131
27132         Avoid some more warnings from "gcc -Wwrite-strings".
27133         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27134         to 'const char *'.
27135         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27136         * tests/test-c-strcasestr.c (main): Likewise.
27137         * tests/test-mbscasestr1.c (main): Likewise.
27138         * tests/test-mbscasestr2.c (main): Likewise.
27139         * tests/test-memmem.c (main): Likewise.
27140         * tests/test-strstr.c (main): Likewise.
27141         * tests/test-strcasestr.c (main): Likewise.
27142
27143 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27144
27145         init.sh: change framework_failure_ to fail with status 99, not 1
27146         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27147         automake's parallel-tests rule that this is an unexpected failure,
27148         even if the test is listed in XFAIL_TESTS.
27149
27150 2010-06-11  Jim Meyering  <meyering@redhat.com>
27151
27152         test-inttostr: avoid warnings about 4-6KB literal strings
27153         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27154         Include "macros.h", for its definition of ASSERT.
27155         (CK): s/assert/ASSERT/
27156         * modules/inttostr-tests (Files): Add macros.h.
27157
27158         init.sh: don't use $ME_ or skip_ before they are defined
27159         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27160         their first uses.  Also hoist their companions: warn_, fail_,
27161         framework_failure_, $stderr_fileno.  Prompted by a patch from
27162         Stefano Lattarini.
27163
27164         test-sys_socket: avoid set-but-not-used warnings from gcc
27165         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27166         avoid warning about set-but-not-used variables.
27167
27168         test-xvasprintf: avoid 'const' discard warnings
27169         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27170         "const" when assigning from literal strings.
27171         (test_xasprintf): Add "void" in function argument list to placate
27172         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27173
27174         tests: avoid compilation warnings in argmatch and exclude tests...
27175         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27176         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27177         Since it always exits, declare with the "noreturn" attribute.
27178         * tests/test-argmatch.c: Likewise.
27179
27180         tests: avoid 'const' discard warnings in mbsstr tests
27181         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27182         * tests/test-mbsstr2.c (main): Likewise.
27183
27184         test-verify: avoid warning from gcc's -Wmissing-declarations
27185         * tests/test-verify.c (function): Declare to be static.
27186
27187         test-inttostr.c: include <string.h> for use of strcmp
27188         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27189
27190         test-linkat: avoid failed assertion on "other" architectures
27191         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27192         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27193         sparc: https://bugs.launchpad.net/bugs/591968
27194
27195 2010-06-11  Jim Meyering  <meyering@redhat.com>
27196
27197         printf.m4: avoid autoconf's "Expanded Before Required" warning
27198         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27199         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27200         autoconf warning.
27201
27202 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27203
27204         Replacement header templates are now named with ".in", not "_".
27205         * doc/gnulib-intro.texi: Correct.
27206
27207 2010-06-10  Jim Meyering  <meyering@redhat.com>
27208
27209         inttostr-tests: depend on snprintf, not snprintf-posix
27210         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27211         snprintf-posix, to avoid this aclocal failure:
27212           missing file gnulib-tests/vasnprintf.c
27213           configure.ac:45: error: expected source file, required through \
27214           AC_LIBSOURCES, not found
27215
27216 2010-06-10  Jim Meyering  <meyering@redhat.com>
27217
27218         inttostr: add a new function, inttostr, and tests
27219         The namesake function was not available.  The existence of the
27220         template file, inttostr.c makes its addition nontrivial.
27221         * lib/anytostr.c: Rename from inttostr.c.
27222         (anytostr): Rename from inttostr.
27223         * lib/inttostr.c: New file.
27224         * modules/inttostr (Files): Add anytostr.c.
27225         (Makefile.am): Set lib_SOURCES instead of ...
27226         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27227         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27228         * lib/offtostr.c: Likewise.
27229         * lib/uinttostr.c: Likewise.
27230         * lib/umaxtostr.c: Likewise.
27231         * modules/inttostr-tests: New file.
27232         * tests/test-inttostr.c: New file.  Test these functions.
27233
27234 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27235             Bruno Haible  <bruno@clisp.org>
27236
27237         Add "Extending Gnulib" chapter to manual.
27238         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27239         chapter.
27240         (Extending Gnulib): New chapter.
27241         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27242         chapter.
27243
27244 2010-06-09  Bruno Haible  <bruno@clisp.org>
27245
27246         Avoid relocwrapper link errors due to gnulib replacement functions.
27247         * lib/areadlink.c: Use the system's malloc, realloc functions.
27248         (areadlink): Set errno to ENOMEM explicitly.
27249         * modules/areadlink (Depends-on): Remove malloc-posix.
27250         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27251
27252 2010-06-09  Bruno Haible  <bruno@clisp.org>
27253
27254         Avoid relocwrapper link errors due to gnulib replacement functions.
27255         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27256         * lib/malloca.c: Likewise.
27257         * lib/relocatable.c: Likewise.
27258         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27259         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27260         * lib/setenv.c: Use the system's malloc, realloc functions.
27261         * lib/strerror.c: Use the system's sprintf function.
27262         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27263
27264 2010-06-04  Bruno Haible  <bruno@clisp.org>
27265
27266         Prefer documented low-level autoconf macro names.
27267         * m4/lib-link.m4: Use m4_translit instead of translit.
27268         * m4/environ.m4: Likewise.
27269         * m4/mathfunc.m4: Likewise.
27270         * m4/onceonly.m4: Likewise.
27271         * m4/stdint.m4: Likewise.
27272         Suggested by Eric Blake.
27273
27274 2010-06-04  Martin Lambers  <marlam@marlam.de>
27275             Bruno Haible  <bruno@clisp.org>
27276
27277         havelib: Allow library names with '+' characters.
27278         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27279         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27280
27281 2010-06-09  Bruno Haible  <bruno@clisp.org>
27282
27283         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27284         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27285         realloc failed.
27286
27287 2010-06-08  Peter Simons  <simons@cryp.to>
27288
27289         maint.mk: make the news-check rule more configurable
27290         * top/maint.mk (news-check-lines-spec): New variable.
27291         (news-check): Use "sed -n 1,10p" in place of "head".
27292
27293 2010-06-07  Jim Meyering  <meyering@redhat.com>
27294
27295         do-release-commit-and-tag: fix typo in --help
27296         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27297
27298         regex: avoid new dead-code warning with gcc-4.6.0
27299         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27300         if-block containing a while-loop.  It's been unused for at least
27301         5 years.
27302
27303 2010-06-05  Bruno Haible  <bruno@clisp.org>
27304
27305         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27306         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27307
27308 2010-06-04  Bruno Haible  <bruno@clisp.org>
27309
27310         Update to GNU gettext 0.18.1.
27311         * modules/gettext (configure.ac): Require gettext infrastructure from
27312         version 0.18.1.
27313
27314 2010-06-03  Bruno Haible  <bruno@clisp.org>
27315
27316         Don't use AC_LIBOBJ with file names in subdirectories.
27317         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27318         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27319         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27320         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27321         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27322         gl_LIBUNISTRING_LIBSOURCE.
27323         (Makefile.am): Augment lib_SOURCES here, conditionally.
27324         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27325
27326 2010-06-03  Bruno Haible  <bruno@clisp.org>
27327
27328         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27329         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27330         expansion does not end with a newline.
27331         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27332         unnecessary newline.
27333
27334 2010-06-03  Bruno Haible  <bruno@clisp.org>
27335
27336         Reduce dependencies.
27337         * tests/test-quotearg.h: New file, extracted from
27338         tests/test-quotearg.c.
27339         * tests/test-quotearg-simple.c: New file, extracted from
27340         tests/test-quotearg.c.
27341         * tests/test-quotearg.c: Don't include <ctype.h>.
27342         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27343         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27344         use_quote_double_quotes, use_quotearg_colon): Moved to
27345         tests/test-quotearg.h.
27346         (results_g, flag_results, custom_quotes, custom_results): Moved
27347         to tests/test-quotearg-simple.c.
27348         (main): Moved the part that does not depend on gettext to
27349         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27350         performed.
27351         * modules/quotearg-simple: New file.
27352         * modules/quotearg-simple-tests: New file.
27353         * modules/quotearg (Depends-on): Add quotearg-simple.
27354         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27355         (Files): Add tests/test-quotearg.h.
27356         Reported by Paolo Bonzini.
27357
27358 2010-06-03  Bruno Haible  <bruno@clisp.org>
27359
27360         Reduce dependencies.
27361         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27362
27363 2010-06-03  Bruno Haible  <bruno@clisp.org>
27364
27365         time: Undefine more broken macros.
27366         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27367         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27368         Reported by Eric Blake.
27369
27370 2010-06-03  Bruno Haible  <bruno@clisp.org>
27371
27372         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27373         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27374         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27375         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27376         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27377         Reported by Ludovic Courtès <ludo@gnu.org>.
27378
27379 2010-06-02  Eric Blake  <eblake@redhat.com>
27380
27381         time: work with mingw + pthreads-win32 library
27382         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27383         if timespec is defined only in pthread.h.
27384         * modules/time (Makefile.am): Substitute it.
27385         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27386         <pthread.h>, when needed.
27387         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27388         from the library.
27389
27390 2010-05-31  Bruno Haible  <bruno@clisp.org>
27391
27392         Avoid expanding two macros in the wrong order.
27393         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27394         gl_LIBUNISTRING if it is defined.
27395         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27396         autoconf >= 2.64.
27397         Reported by Ludovic Courtès <ludo@gnu.org>.
27398
27399 2010-05-27  Jim Meyering  <meyering@redhat.com>
27400
27401         maint.mk: also prohibit "#undef" of always-defined symbols
27402         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27403         Allow more than one space before the symbol name.
27404         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27405         the regexp uses alternation.
27406
27407 2010-05-26  Eric Blake  <eblake@redhat.com>
27408
27409         maint.mk: avoid echo -e
27410         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27411         Convert all uses of echo -* to printf.
27412         Reported by Matthias Bolte.
27413
27414 2010-05-25  Bruno Haible  <bruno@clisp.org>
27415
27416         Update to GNU gettext 0.18, part 2.
27417         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27418         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27419
27420 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27421
27422         Add missing include in test-pwrite.c.
27423         * tests/test-pwrite.c: Include string.h, for strcmp.
27424
27425 2010-05-24  Bruno Haible  <bruno@clisp.org>
27426
27427         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27428
27429 2010-05-24  Bruno Haible  <bruno@clisp.org>
27430
27431         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27432         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27433         iconveh_error argument.
27434         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27435         U_STRCONV_TO_LOCALE.
27436         * lib/unistr/u16-strcoll.c: Likewise.
27437         * lib/unistr/u32-strcoll.c: Likewise.
27438         * modules/unistr/u8-strcoll (Depends-on): Add
27439         uniconv/u8-strconv-to-enc, localcharset. Remove
27440         uniconv/u8-strconv-to-locale.
27441         (configure.ac): Bump version number.
27442         * modules/unistr/u16-strcoll (Depends-on): Add
27443         uniconv/u16-strconv-to-enc, localcharset. Remove
27444         uniconv/u16-strconv-to-locale.
27445         (configure.ac): Bump version number.
27446         * modules/unistr/u32-strcoll (Depends-on): Add
27447         uniconv/u32-strconv-to-enc, localcharset. Remove
27448         uniconv/u32-strconv-to-locale.
27449         (configure.ac): Bump version number.
27450
27451 2010-05-24  Bruno Haible  <bruno@clisp.org>
27452
27453         Avoid a test failure on NetBSD 5.0.
27454         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27455         an iconv() bug.
27456
27457 2010-05-24  Bruno Haible  <bruno@clisp.org>
27458
27459         Adjust #include directive style.
27460         * modules/regex (Includes): Recommend to write <regex.h>.
27461
27462 2010-05-24  Bruno Haible  <bruno@clisp.org>
27463
27464         regex: Don't require alloca.
27465         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27466         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27467         only inside if (0).
27468
27469 2010-05-23  Jim Meyering  <meyering@redhat.com>
27470
27471         test-renameat.c: include <sys/stat.h>
27472         * tests/test-renameat.c: Include <sys/stat.h>; required for
27473         definition of S_IS* macros.
27474
27475 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27476
27477         Update maintainer documentation for 'relocatable-prog' module.
27478         * doc/relocatable-maint.texi: Update.
27479         Comments by Bruno Haible.
27480
27481 2010-05-23  Bruno Haible  <bruno@clisp.org>
27482
27483         git-merge-changelog: Enable --split-merged-entry by default.
27484         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27485         (usage): Don't mention this option any more.
27486         Reported by Ralf Wildenhues.
27487
27488 2010-05-23  Jim Meyering  <meyering@redhat.com>
27489
27490         test-pwrite: do not leave behind a test file named "out"
27491         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27492         The trivial-looking use of init.sh is really necessary.
27493         It ensures that the temporary file, "out", is created in
27494         a temporary directory, and removed upon termination.
27495         * tests/test-pwrite.sh: Re-add file.
27496         * modules/pwrite-tests: Reference it.
27497
27498 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27499
27500         Fix output redirection buglet in init.sh.
27501         * tests/init.sh: Fix redirection of stderr.
27502
27503 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27504
27505         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27506
27507 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27508
27509         * modules/valgrind-tests: New file.
27510         * m4/valgrind-tests.m4: New file.
27511         * doc/valgrind-tests.texi: New file.
27512         * doc/gnulib.texi (Running self-tests under valgrind): New
27513         section.
27514
27515 2010-05-19  Bruno Haible  <bruno@clisp.org>
27516
27517         Clean up dead code in recent commit.
27518         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27519         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27520         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27521         Suggested by Paolo Bonzini.
27522
27523 2010-05-19  Bruno Haible  <bruno@clisp.org>
27524
27525         Avoid valgrind error reports from libunistring.
27526         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27527         * modules/libunistring (Files): Add it.
27528         * modules/libunistring-optional (Files): Likewise.
27529
27530 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27531             Bruno Haible  <bruno@clisp.org>
27532
27533         New module 'libunistring-optional'.
27534         * modules/libunistring-optional: New file.
27535         * m4/libunistring-base.m4: New file.
27536         * m4/libunistring-optional.m4: New file.
27537         * lib/unicase.in.h: Renamed from lib/unicase.h.
27538         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27539         * lib/unictype.in.h: Renamed from lib/unictype.h.
27540         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27541         * lib/uniname.in.h: Renamed from lib/uniname.h.
27542         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27543         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27544         * lib/unistr.in.h: Renamed from lib/unistr.h.
27545         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27546         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27547         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27548         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27549         gl_LIBUNISTRING. If the library was found, determine the installed
27550         version and set LIBUNISTRING_VERSION.
27551         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27552         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27553         handle a configuration option --with-included-libunistring.
27554         * modules/libunistring (Files): Add m4/absolute-header.m4.
27555         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27556         Add m4/libunistring-base.m4.
27557         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27558         (Makefile.am): Build unicase.h from unicase.in.h.
27559         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27560         Add m4/libunistring-base.m4.
27561         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27562         (Makefile.am): Build uniconv.h from uniconv.in.h.
27563         * modules/unictype/base (Files): Use unictype.in.h instead of
27564         unictype.h. Add m4/libunistring-base.m4.
27565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27566         (Makefile.am): Build unictype.h from unictype.in.h.
27567         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27568         Add m4/libunistring-base.m4.
27569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27570         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27571         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27572         Add m4/libunistring-base.m4.
27573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27574         (Makefile.am): Build uniname.h from uniname.in.h.
27575         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27576         Add m4/libunistring-base.m4.
27577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27578         (Makefile.am): Build uninorm.h from uninorm.in.h.
27579         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27580         unistdio.h. Add m4/libunistring-base.m4.
27581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27582         (Makefile.am): Build unistdio.h from unistdio.in.h.
27583         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27584         Add m4/libunistring-base.m4.
27585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27586         (Makefile.am): Build unistr.h from unistr.in.h.
27587         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27588         Add m4/libunistring-base.m4.
27589         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27590         (Makefile.am): Build unitypes.h from unitypes.in.h.
27591         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27592         Add m4/libunistring-base.m4.
27593         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27594         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27595         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27596         uniwidth.h. Add m4/libunistring-base.m4.
27597         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27598         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27599         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27600         instead of augmenting lib_SOURCES.
27601         * modules/unicase/empty-suffix-context: Likewise.
27602         * modules/unicase/locale-language: Likewise.
27603         * modules/unicase/tolower: Likewise.
27604         * modules/unicase/totitle: Likewise.
27605         * modules/unicase/toupper: Likewise.
27606         * modules/unicase/u8-casecmp: Likewise.
27607         * modules/unicase/u8-casecoll: Likewise.
27608         * modules/unicase/u8-casefold: Likewise.
27609         * modules/unicase/u8-casexfrm: Likewise.
27610         * modules/unicase/u8-ct-casefold: Likewise.
27611         * modules/unicase/u8-ct-tolower: Likewise.
27612         * modules/unicase/u8-ct-totitle: Likewise.
27613         * modules/unicase/u8-ct-toupper: Likewise.
27614         * modules/unicase/u8-is-cased: Likewise.
27615         * modules/unicase/u8-is-casefolded: Likewise.
27616         * modules/unicase/u8-is-lowercase: Likewise.
27617         * modules/unicase/u8-is-titlecase: Likewise.
27618         * modules/unicase/u8-is-uppercase: Likewise.
27619         * modules/unicase/u8-prefix-context: Likewise.
27620         * modules/unicase/u8-suffix-context: Likewise.
27621         * modules/unicase/u8-tolower: Likewise.
27622         * modules/unicase/u8-totitle: Likewise.
27623         * modules/unicase/u8-toupper: Likewise.
27624         * modules/unicase/u16-casecmp: Likewise.
27625         * modules/unicase/u16-casecoll: Likewise.
27626         * modules/unicase/u16-casefold: Likewise.
27627         * modules/unicase/u16-casexfrm: Likewise.
27628         * modules/unicase/u16-ct-casefold: Likewise.
27629         * modules/unicase/u16-ct-tolower: Likewise.
27630         * modules/unicase/u16-ct-totitle: Likewise.
27631         * modules/unicase/u16-ct-toupper: Likewise.
27632         * modules/unicase/u16-is-cased: Likewise.
27633         * modules/unicase/u16-is-casefolded: Likewise.
27634         * modules/unicase/u16-is-lowercase: Likewise.
27635         * modules/unicase/u16-is-titlecase: Likewise.
27636         * modules/unicase/u16-is-uppercase: Likewise.
27637         * modules/unicase/u16-prefix-context: Likewise.
27638         * modules/unicase/u16-suffix-context: Likewise.
27639         * modules/unicase/u16-tolower: Likewise.
27640         * modules/unicase/u16-totitle: Likewise.
27641         * modules/unicase/u16-toupper: Likewise.
27642         * modules/unicase/u32-casecmp: Likewise.
27643         * modules/unicase/u32-casecoll: Likewise.
27644         * modules/unicase/u32-casefold: Likewise.
27645         * modules/unicase/u32-casexfrm: Likewise.
27646         * modules/unicase/u32-ct-casefold: Likewise.
27647         * modules/unicase/u32-ct-tolower: Likewise.
27648         * modules/unicase/u32-ct-totitle: Likewise.
27649         * modules/unicase/u32-ct-toupper: Likewise.
27650         * modules/unicase/u32-is-cased: Likewise.
27651         * modules/unicase/u32-is-casefolded: Likewise.
27652         * modules/unicase/u32-is-lowercase: Likewise.
27653         * modules/unicase/u32-is-titlecase: Likewise.
27654         * modules/unicase/u32-is-uppercase: Likewise.
27655         * modules/unicase/u32-prefix-context: Likewise.
27656         * modules/unicase/u32-suffix-context: Likewise.
27657         * modules/unicase/u32-tolower: Likewise.
27658         * modules/unicase/u32-totitle: Likewise.
27659         * modules/unicase/u32-toupper: Likewise.
27660         * modules/unicase/ulc-casecmp: Likewise.
27661         * modules/unicase/ulc-casecoll: Likewise.
27662         * modules/unicase/ulc-casexfrm: Likewise.
27663         * modules/uniconv/u8-conv-from-enc: Likewise.
27664         * modules/uniconv/u8-conv-to-enc: Likewise.
27665         * modules/uniconv/u8-strconv-from-enc: Likewise.
27666         * modules/uniconv/u8-strconv-from-locale: Likewise.
27667         * modules/uniconv/u8-strconv-to-enc: Likewise.
27668         * modules/uniconv/u8-strconv-to-locale: Likewise.
27669         * modules/uniconv/u16-conv-from-enc: Likewise.
27670         * modules/uniconv/u16-conv-to-enc: Likewise.
27671         * modules/uniconv/u16-strconv-from-enc: Likewise.
27672         * modules/uniconv/u16-strconv-from-locale: Likewise.
27673         * modules/uniconv/u16-strconv-to-enc: Likewise.
27674         * modules/uniconv/u16-strconv-to-locale: Likewise.
27675         * modules/uniconv/u32-conv-from-enc: Likewise.
27676         * modules/uniconv/u32-conv-to-enc: Likewise.
27677         * modules/uniconv/u32-strconv-from-enc: Likewise.
27678         * modules/uniconv/u32-strconv-from-locale: Likewise.
27679         * modules/uniconv/u32-strconv-to-enc: Likewise.
27680         * modules/uniconv/u32-strconv-to-locale: Likewise.
27681         * modules/unictype/bidicategory-byname: Likewise.
27682         * modules/unictype/bidicategory-name: Likewise.
27683         * modules/unictype/bidicategory-of: Likewise.
27684         * modules/unictype/bidicategory-test: Likewise.
27685         * modules/unictype/block-list: Likewise.
27686         * modules/unictype/block-test: Likewise.
27687         * modules/unictype/category-C: Likewise.
27688         * modules/unictype/category-Cc: Likewise.
27689         * modules/unictype/category-Cf: Likewise.
27690         * modules/unictype/category-Cn: Likewise.
27691         * modules/unictype/category-Co: Likewise.
27692         * modules/unictype/category-Cs: Likewise.
27693         * modules/unictype/category-L: Likewise.
27694         * modules/unictype/category-Ll: Likewise.
27695         * modules/unictype/category-Lm: Likewise.
27696         * modules/unictype/category-Lo: Likewise.
27697         * modules/unictype/category-Lt: Likewise.
27698         * modules/unictype/category-Lu: Likewise.
27699         * modules/unictype/category-M: Likewise.
27700         * modules/unictype/category-Mc: Likewise.
27701         * modules/unictype/category-Me: Likewise.
27702         * modules/unictype/category-Mn: Likewise.
27703         * modules/unictype/category-N: Likewise.
27704         * modules/unictype/category-Nd: Likewise.
27705         * modules/unictype/category-Nl: Likewise.
27706         * modules/unictype/category-No: Likewise.
27707         * modules/unictype/category-P: Likewise.
27708         * modules/unictype/category-Pc: Likewise.
27709         * modules/unictype/category-Pd: Likewise.
27710         * modules/unictype/category-Pe: Likewise.
27711         * modules/unictype/category-Pf: Likewise.
27712         * modules/unictype/category-Pi: Likewise.
27713         * modules/unictype/category-Po: Likewise.
27714         * modules/unictype/category-Ps: Likewise.
27715         * modules/unictype/category-S: Likewise.
27716         * modules/unictype/category-Sc: Likewise.
27717         * modules/unictype/category-Sk: Likewise.
27718         * modules/unictype/category-Sm: Likewise.
27719         * modules/unictype/category-So: Likewise.
27720         * modules/unictype/category-Z: Likewise.
27721         * modules/unictype/category-Zl: Likewise.
27722         * modules/unictype/category-Zp: Likewise.
27723         * modules/unictype/category-Zs: Likewise.
27724         * modules/unictype/category-and: Likewise.
27725         * modules/unictype/category-and-not: Likewise.
27726         * modules/unictype/category-byname: Likewise.
27727         * modules/unictype/category-name: Likewise.
27728         * modules/unictype/category-none: Likewise.
27729         * modules/unictype/category-of: Likewise.
27730         * modules/unictype/category-or: Likewise.
27731         * modules/unictype/category-test: Likewise.
27732         * modules/unictype/combining-class: Likewise.
27733         * modules/unictype/ctype-alnum: Likewise.
27734         * modules/unictype/ctype-alpha: Likewise.
27735         * modules/unictype/ctype-blank: Likewise.
27736         * modules/unictype/ctype-cntrl: Likewise.
27737         * modules/unictype/ctype-digit: Likewise.
27738         * modules/unictype/ctype-graph: Likewise.
27739         * modules/unictype/ctype-lower: Likewise.
27740         * modules/unictype/ctype-print: Likewise.
27741         * modules/unictype/ctype-punct: Likewise.
27742         * modules/unictype/ctype-space: Likewise.
27743         * modules/unictype/ctype-upper: Likewise.
27744         * modules/unictype/ctype-xdigit: Likewise.
27745         * modules/unictype/decimal-digit: Likewise.
27746         * modules/unictype/digit: Likewise.
27747         * modules/unictype/mirror: Likewise.
27748         * modules/unictype/numeric: Likewise.
27749         * modules/unictype/property-alphabetic: Likewise.
27750         * modules/unictype/property-ascii-hex-digit: Likewise.
27751         * modules/unictype/property-bidi-arabic-digit: Likewise.
27752         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27753         * modules/unictype/property-bidi-block-separator: Likewise.
27754         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27755         * modules/unictype/property-bidi-common-separator: Likewise.
27756         * modules/unictype/property-bidi-control: Likewise.
27757         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27758         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27759         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27760         * modules/unictype/property-bidi-european-digit: Likewise.
27761         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27762         * modules/unictype/property-bidi-left-to-right: Likewise.
27763         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27764         * modules/unictype/property-bidi-other-neutral: Likewise.
27765         * modules/unictype/property-bidi-pdf: Likewise.
27766         * modules/unictype/property-bidi-segment-separator: Likewise.
27767         * modules/unictype/property-bidi-whitespace: Likewise.
27768         * modules/unictype/property-byname: Likewise.
27769         * modules/unictype/property-combining: Likewise.
27770         * modules/unictype/property-composite: Likewise.
27771         * modules/unictype/property-currency-symbol: Likewise.
27772         * modules/unictype/property-dash: Likewise.
27773         * modules/unictype/property-decimal-digit: Likewise.
27774         * modules/unictype/property-default-ignorable-code-point: Likewise.
27775         * modules/unictype/property-deprecated: Likewise.
27776         * modules/unictype/property-diacritic: Likewise.
27777         * modules/unictype/property-extender: Likewise.
27778         * modules/unictype/property-format-control: Likewise.
27779         * modules/unictype/property-grapheme-base: Likewise.
27780         * modules/unictype/property-grapheme-extend: Likewise.
27781         * modules/unictype/property-grapheme-link: Likewise.
27782         * modules/unictype/property-hex-digit: Likewise.
27783         * modules/unictype/property-hyphen: Likewise.
27784         * modules/unictype/property-id-continue: Likewise.
27785         * modules/unictype/property-id-start: Likewise.
27786         * modules/unictype/property-ideographic: Likewise.
27787         * modules/unictype/property-ids-binary-operator: Likewise.
27788         * modules/unictype/property-ids-trinary-operator: Likewise.
27789         * modules/unictype/property-ignorable-control: Likewise.
27790         * modules/unictype/property-iso-control: Likewise.
27791         * modules/unictype/property-join-control: Likewise.
27792         * modules/unictype/property-left-of-pair: Likewise.
27793         * modules/unictype/property-line-separator: Likewise.
27794         * modules/unictype/property-logical-order-exception: Likewise.
27795         * modules/unictype/property-lowercase: Likewise.
27796         * modules/unictype/property-math: Likewise.
27797         * modules/unictype/property-non-break: Likewise.
27798         * modules/unictype/property-not-a-character: Likewise.
27799         * modules/unictype/property-numeric: Likewise.
27800         * modules/unictype/property-other-alphabetic: Likewise.
27801         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27802         * modules/unictype/property-other-grapheme-extend: Likewise.
27803         * modules/unictype/property-other-id-continue: Likewise.
27804         * modules/unictype/property-other-id-start: Likewise.
27805         * modules/unictype/property-other-lowercase: Likewise.
27806         * modules/unictype/property-other-math: Likewise.
27807         * modules/unictype/property-other-uppercase: Likewise.
27808         * modules/unictype/property-paired-punctuation: Likewise.
27809         * modules/unictype/property-paragraph-separator: Likewise.
27810         * modules/unictype/property-pattern-syntax: Likewise.
27811         * modules/unictype/property-pattern-white-space: Likewise.
27812         * modules/unictype/property-private-use: Likewise.
27813         * modules/unictype/property-punctuation: Likewise.
27814         * modules/unictype/property-quotation-mark: Likewise.
27815         * modules/unictype/property-radical: Likewise.
27816         * modules/unictype/property-sentence-terminal: Likewise.
27817         * modules/unictype/property-soft-dotted: Likewise.
27818         * modules/unictype/property-space: Likewise.
27819         * modules/unictype/property-terminal-punctuation: Likewise.
27820         * modules/unictype/property-test: Likewise.
27821         * modules/unictype/property-titlecase: Likewise.
27822         * modules/unictype/property-unassigned-code-value: Likewise.
27823         * modules/unictype/property-unified-ideograph: Likewise.
27824         * modules/unictype/property-uppercase: Likewise.
27825         * modules/unictype/property-variation-selector: Likewise.
27826         * modules/unictype/property-white-space: Likewise.
27827         * modules/unictype/property-xid-continue: Likewise.
27828         * modules/unictype/property-xid-start: Likewise.
27829         * modules/unictype/property-zero-width: Likewise.
27830         * modules/unictype/scripts: Likewise.
27831         * modules/unictype/syntax-c-ident: Likewise.
27832         * modules/unictype/syntax-c-whitespace: Likewise.
27833         * modules/unictype/syntax-java-ident: Likewise.
27834         * modules/unictype/syntax-java-whitespace: Likewise.
27835         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27836         * modules/unilbrk/u8-width-linebreaks: Likewise.
27837         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27838         * modules/unilbrk/u16-width-linebreaks: Likewise.
27839         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27840         * modules/unilbrk/u32-width-linebreaks: Likewise.
27841         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27842         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27843         * modules/uniname/uniname: Likewise.
27844         * modules/uninorm/canonical-decomposition: Likewise.
27845         * modules/uninorm/composition: Likewise.
27846         * modules/uninorm/decomposing-form: Likewise.
27847         * modules/uninorm/decomposition: Likewise.
27848         * modules/uninorm/filter: Likewise.
27849         * modules/uninorm/nfc: Likewise.
27850         * modules/uninorm/nfd: Likewise.
27851         * modules/uninorm/nfkc: Likewise.
27852         * modules/uninorm/nfkd: Likewise.
27853         * modules/uninorm/u8-normalize: Likewise.
27854         * modules/uninorm/u8-normcmp: Likewise.
27855         * modules/uninorm/u8-normcoll: Likewise.
27856         * modules/uninorm/u8-normxfrm: Likewise.
27857         * modules/uninorm/u16-normalize: Likewise.
27858         * modules/uninorm/u16-normcmp: Likewise.
27859         * modules/uninorm/u16-normcoll: Likewise.
27860         * modules/uninorm/u16-normxfrm: Likewise.
27861         * modules/uninorm/u32-normalize: Likewise.
27862         * modules/uninorm/u32-normcmp: Likewise.
27863         * modules/uninorm/u32-normcoll: Likewise.
27864         * modules/uninorm/u32-normxfrm: Likewise.
27865         * modules/unistdio/u8-asnprintf: Likewise.
27866         * modules/unistdio/u8-asprintf: Likewise.
27867         * modules/unistdio/u8-snprintf: Likewise.
27868         * modules/unistdio/u8-sprintf: Likewise.
27869         * modules/unistdio/u8-u8-asnprintf: Likewise.
27870         * modules/unistdio/u8-u8-asprintf: Likewise.
27871         * modules/unistdio/u8-u8-snprintf: Likewise.
27872         * modules/unistdio/u8-u8-sprintf: Likewise.
27873         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27874         * modules/unistdio/u8-u8-vasprintf: Likewise.
27875         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27876         * modules/unistdio/u8-u8-vsprintf: Likewise.
27877         * modules/unistdio/u8-vasnprintf: Likewise.
27878         * modules/unistdio/u8-vasprintf: Likewise.
27879         * modules/unistdio/u8-vsnprintf: Likewise.
27880         * modules/unistdio/u8-vsprintf: Likewise.
27881         * modules/unistdio/u16-asnprintf: Likewise.
27882         * modules/unistdio/u16-asprintf: Likewise.
27883         * modules/unistdio/u16-snprintf: Likewise.
27884         * modules/unistdio/u16-sprintf: Likewise.
27885         * modules/unistdio/u16-u16-asnprintf: Likewise.
27886         * modules/unistdio/u16-u16-asprintf: Likewise.
27887         * modules/unistdio/u16-u16-snprintf: Likewise.
27888         * modules/unistdio/u16-u16-sprintf: Likewise.
27889         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27890         * modules/unistdio/u16-u16-vasprintf: Likewise.
27891         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27892         * modules/unistdio/u16-u16-vsprintf: Likewise.
27893         * modules/unistdio/u16-vasnprintf: Likewise.
27894         * modules/unistdio/u16-vasprintf: Likewise.
27895         * modules/unistdio/u16-vsnprintf: Likewise.
27896         * modules/unistdio/u16-vsprintf: Likewise.
27897         * modules/unistdio/u32-asnprintf: Likewise.
27898         * modules/unistdio/u32-asprintf: Likewise.
27899         * modules/unistdio/u32-snprintf: Likewise.
27900         * modules/unistdio/u32-sprintf: Likewise.
27901         * modules/unistdio/u32-u32-asnprintf: Likewise.
27902         * modules/unistdio/u32-u32-asprintf: Likewise.
27903         * modules/unistdio/u32-u32-snprintf: Likewise.
27904         * modules/unistdio/u32-u32-sprintf: Likewise.
27905         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27906         * modules/unistdio/u32-u32-vasprintf: Likewise.
27907         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27908         * modules/unistdio/u32-u32-vsprintf: Likewise.
27909         * modules/unistdio/u32-vasnprintf: Likewise.
27910         * modules/unistdio/u32-vasprintf: Likewise.
27911         * modules/unistdio/u32-vsnprintf: Likewise.
27912         * modules/unistdio/u32-vsprintf: Likewise.
27913         * modules/unistdio/ulc-asnprintf: Likewise.
27914         * modules/unistdio/ulc-asprintf: Likewise.
27915         * modules/unistdio/ulc-fprintf: Likewise.
27916         * modules/unistdio/ulc-snprintf: Likewise.
27917         * modules/unistdio/ulc-sprintf: Likewise.
27918         * modules/unistdio/ulc-vasnprintf: Likewise.
27919         * modules/unistdio/ulc-vasprintf: Likewise.
27920         * modules/unistdio/ulc-vfprintf: Likewise.
27921         * modules/unistdio/ulc-vsnprintf: Likewise.
27922         * modules/unistdio/ulc-vsprintf: Likewise.
27923         * modules/unistr/u8-check: Likewise.
27924         * modules/unistr/u8-chr: Likewise.
27925         * modules/unistr/u8-cmp: Likewise.
27926         * modules/unistr/u8-cmp2: Likewise.
27927         * modules/unistr/u8-cpy: Likewise.
27928         * modules/unistr/u8-cpy-alloc: Likewise.
27929         * modules/unistr/u8-endswith: Likewise.
27930         * modules/unistr/u8-mblen: Likewise.
27931         * modules/unistr/u8-mbsnlen: Likewise.
27932         * modules/unistr/u8-mbtouc: Likewise.
27933         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27934         * modules/unistr/u8-mbtoucr: Likewise.
27935         * modules/unistr/u8-move: Likewise.
27936         * modules/unistr/u8-next: Likewise.
27937         * modules/unistr/u8-prev: Likewise.
27938         * modules/unistr/u8-set: Likewise.
27939         * modules/unistr/u8-startswith: Likewise.
27940         * modules/unistr/u8-stpcpy: Likewise.
27941         * modules/unistr/u8-stpncpy: Likewise.
27942         * modules/unistr/u8-strcat: Likewise.
27943         * modules/unistr/u8-strchr: Likewise.
27944         * modules/unistr/u8-strcmp: Likewise.
27945         * modules/unistr/u8-strcoll: Likewise.
27946         * modules/unistr/u8-strcpy: Likewise.
27947         * modules/unistr/u8-strcspn: Likewise.
27948         * modules/unistr/u8-strdup: Likewise.
27949         * modules/unistr/u8-strlen: Likewise.
27950         * modules/unistr/u8-strmblen: Likewise.
27951         * modules/unistr/u8-strmbtouc: Likewise.
27952         * modules/unistr/u8-strncat: Likewise.
27953         * modules/unistr/u8-strncmp: Likewise.
27954         * modules/unistr/u8-strncpy: Likewise.
27955         * modules/unistr/u8-strnlen: Likewise.
27956         * modules/unistr/u8-strpbrk: Likewise.
27957         * modules/unistr/u8-strrchr: Likewise.
27958         * modules/unistr/u8-strspn: Likewise.
27959         * modules/unistr/u8-strstr: Likewise.
27960         * modules/unistr/u8-strtok: Likewise.
27961         * modules/unistr/u8-to-u16: Likewise.
27962         * modules/unistr/u8-to-u32: Likewise.
27963         * modules/unistr/u8-uctomb: Likewise.
27964         * modules/unistr/u16-check: Likewise.
27965         * modules/unistr/u16-chr: Likewise.
27966         * modules/unistr/u16-cmp: Likewise.
27967         * modules/unistr/u16-cmp2: Likewise.
27968         * modules/unistr/u16-cpy: Likewise.
27969         * modules/unistr/u16-cpy-alloc: Likewise.
27970         * modules/unistr/u16-endswith: Likewise.
27971         * modules/unistr/u16-mblen: Likewise.
27972         * modules/unistr/u16-mbsnlen: Likewise.
27973         * modules/unistr/u16-mbtouc: Likewise.
27974         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27975         * modules/unistr/u16-mbtoucr: Likewise.
27976         * modules/unistr/u16-move: Likewise.
27977         * modules/unistr/u16-next: Likewise.
27978         * modules/unistr/u16-prev: Likewise.
27979         * modules/unistr/u16-set: Likewise.
27980         * modules/unistr/u16-startswith: Likewise.
27981         * modules/unistr/u16-stpcpy: Likewise.
27982         * modules/unistr/u16-stpncpy: Likewise.
27983         * modules/unistr/u16-strcat: Likewise.
27984         * modules/unistr/u16-strchr: Likewise.
27985         * modules/unistr/u16-strcmp: Likewise.
27986         * modules/unistr/u16-strcoll: Likewise.
27987         * modules/unistr/u16-strcpy: Likewise.
27988         * modules/unistr/u16-strcspn: Likewise.
27989         * modules/unistr/u16-strdup: Likewise.
27990         * modules/unistr/u16-strlen: Likewise.
27991         * modules/unistr/u16-strmblen: Likewise.
27992         * modules/unistr/u16-strmbtouc: Likewise.
27993         * modules/unistr/u16-strncat: Likewise.
27994         * modules/unistr/u16-strncmp: Likewise.
27995         * modules/unistr/u16-strncpy: Likewise.
27996         * modules/unistr/u16-strnlen: Likewise.
27997         * modules/unistr/u16-strpbrk: Likewise.
27998         * modules/unistr/u16-strrchr: Likewise.
27999         * modules/unistr/u16-strspn: Likewise.
28000         * modules/unistr/u16-strstr: Likewise.
28001         * modules/unistr/u16-strtok: Likewise.
28002         * modules/unistr/u16-to-u32: Likewise.
28003         * modules/unistr/u16-to-u8: Likewise.
28004         * modules/unistr/u16-uctomb: Likewise.
28005         * modules/unistr/u32-check: Likewise.
28006         * modules/unistr/u32-chr: Likewise.
28007         * modules/unistr/u32-cmp: Likewise.
28008         * modules/unistr/u32-cmp2: Likewise.
28009         * modules/unistr/u32-cpy: Likewise.
28010         * modules/unistr/u32-cpy-alloc: Likewise.
28011         * modules/unistr/u32-endswith: Likewise.
28012         * modules/unistr/u32-mblen: Likewise.
28013         * modules/unistr/u32-mbsnlen: Likewise.
28014         * modules/unistr/u32-mbtouc: Likewise.
28015         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28016         * modules/unistr/u32-mbtoucr: Likewise.
28017         * modules/unistr/u32-move: Likewise.
28018         * modules/unistr/u32-next: Likewise.
28019         * modules/unistr/u32-prev: Likewise.
28020         * modules/unistr/u32-set: Likewise.
28021         * modules/unistr/u32-startswith: Likewise.
28022         * modules/unistr/u32-stpcpy: Likewise.
28023         * modules/unistr/u32-stpncpy: Likewise.
28024         * modules/unistr/u32-strcat: Likewise.
28025         * modules/unistr/u32-strchr: Likewise.
28026         * modules/unistr/u32-strcmp: Likewise.
28027         * modules/unistr/u32-strcoll: Likewise.
28028         * modules/unistr/u32-strcpy: Likewise.
28029         * modules/unistr/u32-strcspn: Likewise.
28030         * modules/unistr/u32-strdup: Likewise.
28031         * modules/unistr/u32-strlen: Likewise.
28032         * modules/unistr/u32-strmblen: Likewise.
28033         * modules/unistr/u32-strmbtouc: Likewise.
28034         * modules/unistr/u32-strncat: Likewise.
28035         * modules/unistr/u32-strncmp: Likewise.
28036         * modules/unistr/u32-strncpy: Likewise.
28037         * modules/unistr/u32-strnlen: Likewise.
28038         * modules/unistr/u32-strpbrk: Likewise.
28039         * modules/unistr/u32-strrchr: Likewise.
28040         * modules/unistr/u32-strspn: Likewise.
28041         * modules/unistr/u32-strstr: Likewise.
28042         * modules/unistr/u32-strtok: Likewise.
28043         * modules/unistr/u32-to-u16: Likewise.
28044         * modules/unistr/u32-to-u8: Likewise.
28045         * modules/unistr/u32-uctomb: Likewise.
28046         * modules/uniwbrk/u8-wordbreaks: Likewise.
28047         * modules/uniwbrk/u16-wordbreaks: Likewise.
28048         * modules/uniwbrk/u32-wordbreaks: Likewise.
28049         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28050         * modules/uniwbrk/wordbreak-property: Likewise.
28051         * modules/uniwidth/u8-strwidth: Likewise.
28052         * modules/uniwidth/u8-width: Likewise.
28053         * modules/uniwidth/u16-strwidth: Likewise.
28054         * modules/uniwidth/u16-width: Likewise.
28055         * modules/uniwidth/u32-strwidth: Likewise.
28056         * modules/uniwidth/u32-width: Likewise.
28057         * modules/uniwidth/width: Likewise.
28058         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28059         with $(LIBUNISTRING).
28060         * modules/unicase/ignorable-tests: Likewise.
28061         * modules/unicase/locale-language-tests: Likewise.
28062         * modules/unicase/tolower-tests: Likewise.
28063         * modules/unicase/totitle-tests: Likewise.
28064         * modules/unicase/toupper-tests: Likewise.
28065         * modules/unicase/u8-casecmp-tests: Likewise.
28066         * modules/unicase/u8-casecoll-tests: Likewise.
28067         * modules/unicase/u8-casefold-tests: Likewise.
28068         * modules/unicase/u8-is-cased-tests: Likewise.
28069         * modules/unicase/u8-is-casefolded-tests: Likewise.
28070         * modules/unicase/u8-is-lowercase-tests: Likewise.
28071         * modules/unicase/u8-is-titlecase-tests: Likewise.
28072         * modules/unicase/u8-is-uppercase-tests: Likewise.
28073         * modules/unicase/u8-tolower-tests: Likewise.
28074         * modules/unicase/u8-totitle-tests: Likewise.
28075         * modules/unicase/u8-toupper-tests: Likewise.
28076         * modules/unicase/u16-casecmp-tests: Likewise.
28077         * modules/unicase/u16-casecoll-tests: Likewise.
28078         * modules/unicase/u16-casefold-tests: Likewise.
28079         * modules/unicase/u16-is-cased-tests: Likewise.
28080         * modules/unicase/u16-is-casefolded-tests: Likewise.
28081         * modules/unicase/u16-is-lowercase-tests: Likewise.
28082         * modules/unicase/u16-is-titlecase-tests: Likewise.
28083         * modules/unicase/u16-is-uppercase-tests: Likewise.
28084         * modules/unicase/u16-tolower-tests: Likewise.
28085         * modules/unicase/u16-totitle-tests: Likewise.
28086         * modules/unicase/u16-toupper-tests: Likewise.
28087         * modules/unicase/u32-casecmp-tests: Likewise.
28088         * modules/unicase/u32-casecoll-tests: Likewise.
28089         * modules/unicase/u32-casefold-tests: Likewise.
28090         * modules/unicase/u32-is-cased-tests: Likewise.
28091         * modules/unicase/u32-is-casefolded-tests: Likewise.
28092         * modules/unicase/u32-is-lowercase-tests: Likewise.
28093         * modules/unicase/u32-is-titlecase-tests: Likewise.
28094         * modules/unicase/u32-is-uppercase-tests: Likewise.
28095         * modules/unicase/u32-tolower-tests: Likewise.
28096         * modules/unicase/u32-totitle-tests: Likewise.
28097         * modules/unicase/u32-toupper-tests: Likewise.
28098         * modules/unicase/ulc-casecmp-tests: Likewise.
28099         * modules/unicase/ulc-casecoll-tests: Likewise.
28100         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28101         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28102         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28103         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28104         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28105         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28106         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28107         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28108         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28109         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28110         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28111         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28112         * modules/unictype/bidicategory-byname-tests: Likewise.
28113         * modules/unictype/bidicategory-name-tests: Likewise.
28114         * modules/unictype/bidicategory-of-tests: Likewise.
28115         * modules/unictype/bidicategory-test-tests: Likewise.
28116         * modules/unictype/block-list-tests: Likewise.
28117         * modules/unictype/block-of-tests: Likewise.
28118         * modules/unictype/block-test-tests: Likewise.
28119         * modules/unictype/category-C-tests: Likewise.
28120         * modules/unictype/category-Cc-tests: Likewise.
28121         * modules/unictype/category-Cf-tests: Likewise.
28122         * modules/unictype/category-Cn-tests: Likewise.
28123         * modules/unictype/category-Co-tests: Likewise.
28124         * modules/unictype/category-Cs-tests: Likewise.
28125         * modules/unictype/category-L-tests: Likewise.
28126         * modules/unictype/category-Ll-tests: Likewise.
28127         * modules/unictype/category-Lm-tests: Likewise.
28128         * modules/unictype/category-Lo-tests: Likewise.
28129         * modules/unictype/category-Lt-tests: Likewise.
28130         * modules/unictype/category-Lu-tests: Likewise.
28131         * modules/unictype/category-M-tests: Likewise.
28132         * modules/unictype/category-Mc-tests: Likewise.
28133         * modules/unictype/category-Me-tests: Likewise.
28134         * modules/unictype/category-Mn-tests: Likewise.
28135         * modules/unictype/category-N-tests: Likewise.
28136         * modules/unictype/category-Nd-tests: Likewise.
28137         * modules/unictype/category-Nl-tests: Likewise.
28138         * modules/unictype/category-No-tests: Likewise.
28139         * modules/unictype/category-P-tests: Likewise.
28140         * modules/unictype/category-Pc-tests: Likewise.
28141         * modules/unictype/category-Pd-tests: Likewise.
28142         * modules/unictype/category-Pe-tests: Likewise.
28143         * modules/unictype/category-Pf-tests: Likewise.
28144         * modules/unictype/category-Pi-tests: Likewise.
28145         * modules/unictype/category-Po-tests: Likewise.
28146         * modules/unictype/category-Ps-tests: Likewise.
28147         * modules/unictype/category-S-tests: Likewise.
28148         * modules/unictype/category-Sc-tests: Likewise.
28149         * modules/unictype/category-Sk-tests: Likewise.
28150         * modules/unictype/category-Sm-tests: Likewise.
28151         * modules/unictype/category-So-tests: Likewise.
28152         * modules/unictype/category-Z-tests: Likewise.
28153         * modules/unictype/category-Zl-tests: Likewise.
28154         * modules/unictype/category-Zp-tests: Likewise.
28155         * modules/unictype/category-Zs-tests: Likewise.
28156         * modules/unictype/category-and-not-tests: Likewise.
28157         * modules/unictype/category-and-tests: Likewise.
28158         * modules/unictype/category-byname-tests: Likewise.
28159         * modules/unictype/category-name-tests: Likewise.
28160         * modules/unictype/category-none-tests: Likewise.
28161         * modules/unictype/category-of-tests: Likewise.
28162         * modules/unictype/category-or-tests: Likewise.
28163         * modules/unictype/category-test-withtable-tests: Likewise.
28164         * modules/unictype/combining-class-tests: Likewise.
28165         * modules/unictype/ctype-alnum-tests: Likewise.
28166         * modules/unictype/ctype-alpha-tests: Likewise.
28167         * modules/unictype/ctype-blank-tests: Likewise.
28168         * modules/unictype/ctype-cntrl-tests: Likewise.
28169         * modules/unictype/ctype-digit-tests: Likewise.
28170         * modules/unictype/ctype-graph-tests: Likewise.
28171         * modules/unictype/ctype-lower-tests: Likewise.
28172         * modules/unictype/ctype-print-tests: Likewise.
28173         * modules/unictype/ctype-punct-tests: Likewise.
28174         * modules/unictype/ctype-space-tests: Likewise.
28175         * modules/unictype/ctype-upper-tests: Likewise.
28176         * modules/unictype/ctype-xdigit-tests: Likewise.
28177         * modules/unictype/decimal-digit-tests: Likewise.
28178         * modules/unictype/digit-tests: Likewise.
28179         * modules/unictype/mirror-tests: Likewise.
28180         * modules/unictype/numeric-tests: Likewise.
28181         * modules/unictype/property-alphabetic-tests: Likewise.
28182         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28183         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28184         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28185         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28186         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28187         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28188         * modules/unictype/property-bidi-control-tests: Likewise.
28189         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28190         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28191         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28192         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28193         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28194         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28195         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28196         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28197         * modules/unictype/property-bidi-pdf-tests: Likewise.
28198         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28199         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28200         * modules/unictype/property-byname-tests: Likewise.
28201         * modules/unictype/property-combining-tests: Likewise.
28202         * modules/unictype/property-composite-tests: Likewise.
28203         * modules/unictype/property-currency-symbol-tests: Likewise.
28204         * modules/unictype/property-dash-tests: Likewise.
28205         * modules/unictype/property-decimal-digit-tests: Likewise.
28206         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28207         * modules/unictype/property-deprecated-tests: Likewise.
28208         * modules/unictype/property-diacritic-tests: Likewise.
28209         * modules/unictype/property-extender-tests: Likewise.
28210         * modules/unictype/property-format-control-tests: Likewise.
28211         * modules/unictype/property-grapheme-base-tests: Likewise.
28212         * modules/unictype/property-grapheme-extend-tests: Likewise.
28213         * modules/unictype/property-grapheme-link-tests: Likewise.
28214         * modules/unictype/property-hex-digit-tests: Likewise.
28215         * modules/unictype/property-hyphen-tests: Likewise.
28216         * modules/unictype/property-id-continue-tests: Likewise.
28217         * modules/unictype/property-id-start-tests: Likewise.
28218         * modules/unictype/property-ideographic-tests: Likewise.
28219         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28220         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28221         * modules/unictype/property-ignorable-control-tests: Likewise.
28222         * modules/unictype/property-iso-control-tests: Likewise.
28223         * modules/unictype/property-join-control-tests: Likewise.
28224         * modules/unictype/property-left-of-pair-tests: Likewise.
28225         * modules/unictype/property-line-separator-tests: Likewise.
28226         * modules/unictype/property-logical-order-exception-tests: Likewise.
28227         * modules/unictype/property-lowercase-tests: Likewise.
28228         * modules/unictype/property-math-tests: Likewise.
28229         * modules/unictype/property-non-break-tests: Likewise.
28230         * modules/unictype/property-not-a-character-tests: Likewise.
28231         * modules/unictype/property-numeric-tests: Likewise.
28232         * modules/unictype/property-other-alphabetic-tests: Likewise.
28233         * modules/unictype/property-other-default-ignorable-code-point-tests:
28234         Likewise.
28235         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28236         * modules/unictype/property-other-id-continue-tests: Likewise.
28237         * modules/unictype/property-other-id-start-tests: Likewise.
28238         * modules/unictype/property-other-lowercase-tests: Likewise.
28239         * modules/unictype/property-other-math-tests: Likewise.
28240         * modules/unictype/property-other-uppercase-tests: Likewise.
28241         * modules/unictype/property-paired-punctuation-tests: Likewise.
28242         * modules/unictype/property-paragraph-separator-tests: Likewise.
28243         * modules/unictype/property-pattern-syntax-tests: Likewise.
28244         * modules/unictype/property-pattern-white-space-tests: Likewise.
28245         * modules/unictype/property-private-use-tests: Likewise.
28246         * modules/unictype/property-punctuation-tests: Likewise.
28247         * modules/unictype/property-quotation-mark-tests: Likewise.
28248         * modules/unictype/property-radical-tests: Likewise.
28249         * modules/unictype/property-sentence-terminal-tests: Likewise.
28250         * modules/unictype/property-soft-dotted-tests: Likewise.
28251         * modules/unictype/property-space-tests: Likewise.
28252         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28253         * modules/unictype/property-test-tests: Likewise.
28254         * modules/unictype/property-titlecase-tests: Likewise.
28255         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28256         * modules/unictype/property-unified-ideograph-tests: Likewise.
28257         * modules/unictype/property-uppercase-tests: Likewise.
28258         * modules/unictype/property-variation-selector-tests: Likewise.
28259         * modules/unictype/property-white-space-tests: Likewise.
28260         * modules/unictype/property-xid-continue-tests: Likewise.
28261         * modules/unictype/property-xid-start-tests: Likewise.
28262         * modules/unictype/property-zero-width-tests: Likewise.
28263         * modules/unictype/scripts-tests: Likewise.
28264         * modules/unictype/syntax-c-ident-tests: Likewise.
28265         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28266         * modules/unictype/syntax-java-ident-tests: Likewise.
28267         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28268         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28269         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28270         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28271         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28272         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28273         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28274         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28275         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28276         * modules/uniname/uniname-tests: Likewise.
28277         * modules/uninorm/canonical-decomposition-tests: Likewise.
28278         * modules/uninorm/compat-decomposition-tests: Likewise.
28279         * modules/uninorm/composition-tests: Likewise.
28280         * modules/uninorm/decomposing-form-tests: Likewise.
28281         * modules/uninorm/decomposition-tests: Likewise.
28282         * modules/uninorm/filter-tests: Likewise.
28283         * modules/uninorm/nfc-tests: Likewise.
28284         * modules/uninorm/nfd-tests: Likewise.
28285         * modules/uninorm/nfkc-tests: Likewise.
28286         * modules/uninorm/nfkd-tests: Likewise.
28287         * modules/uninorm/u8-normcmp-tests: Likewise.
28288         * modules/uninorm/u8-normcoll-tests: Likewise.
28289         * modules/uninorm/u16-normcmp-tests: Likewise.
28290         * modules/uninorm/u16-normcoll-tests: Likewise.
28291         * modules/uninorm/u32-normcmp-tests: Likewise.
28292         * modules/uninorm/u32-normcoll-tests: Likewise.
28293         * modules/unistdio/u8-asnprintf-tests: Likewise.
28294         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28295         * modules/unistdio/u8-vasprintf-tests: Likewise.
28296         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28297         * modules/unistdio/u8-vsprintf-tests: Likewise.
28298         * modules/unistdio/u16-asnprintf-tests: Likewise.
28299         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28300         * modules/unistdio/u16-vasprintf-tests: Likewise.
28301         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28302         * modules/unistdio/u16-vsprintf-tests: Likewise.
28303         * modules/unistdio/u32-asnprintf-tests: Likewise.
28304         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28305         * modules/unistdio/u32-vasprintf-tests: Likewise.
28306         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28307         * modules/unistdio/u32-vsprintf-tests: Likewise.
28308         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28309         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28310         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28311         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28312         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28313         * modules/unistr/u8-check-tests: Likewise.
28314         * modules/unistr/u8-chr-tests: Likewise.
28315         * modules/unistr/u8-cmp-tests: Likewise.
28316         * modules/unistr/u8-cmp2-tests: Likewise.
28317         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28318         * modules/unistr/u8-cpy-tests: Likewise.
28319         * modules/unistr/u8-mblen-tests: Likewise.
28320         * modules/unistr/u8-mbsnlen-tests: Likewise.
28321         * modules/unistr/u8-mbtouc-tests: Likewise.
28322         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28323         * modules/unistr/u8-mbtoucr-tests: Likewise.
28324         * modules/unistr/u8-move-tests: Likewise.
28325         * modules/unistr/u8-next-tests: Likewise.
28326         * modules/unistr/u8-prev-tests: Likewise.
28327         * modules/unistr/u8-set-tests: Likewise.
28328         * modules/unistr/u8-stpcpy-tests: Likewise.
28329         * modules/unistr/u8-stpncpy-tests: Likewise.
28330         * modules/unistr/u8-strcat-tests: Likewise.
28331         * modules/unistr/u8-strcmp-tests: Likewise.
28332         * modules/unistr/u8-strcoll-tests: Likewise.
28333         * modules/unistr/u8-strcpy-tests: Likewise.
28334         * modules/unistr/u8-strdup-tests: Likewise.
28335         * modules/unistr/u8-strlen-tests: Likewise.
28336         * modules/unistr/u8-strmblen-tests: Likewise.
28337         * modules/unistr/u8-strmbtouc-tests: Likewise.
28338         * modules/unistr/u8-strncat-tests: Likewise.
28339         * modules/unistr/u8-strncmp-tests: Likewise.
28340         * modules/unistr/u8-strncpy-tests: Likewise.
28341         * modules/unistr/u8-strnlen-tests: Likewise.
28342         * modules/unistr/u8-to-u16-tests: Likewise.
28343         * modules/unistr/u8-to-u32-tests: Likewise.
28344         * modules/unistr/u8-uctomb-tests: Likewise.
28345         * modules/unistr/u16-check-tests: Likewise.
28346         * modules/unistr/u16-chr-tests: Likewise.
28347         * modules/unistr/u16-cmp-tests: Likewise.
28348         * modules/unistr/u16-cmp2-tests: Likewise.
28349         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28350         * modules/unistr/u16-cpy-tests: Likewise.
28351         * modules/unistr/u16-mblen-tests: Likewise.
28352         * modules/unistr/u16-mbsnlen-tests: Likewise.
28353         * modules/unistr/u16-mbtouc-tests: Likewise.
28354         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28355         * modules/unistr/u16-mbtoucr-tests: Likewise.
28356         * modules/unistr/u16-move-tests: Likewise.
28357         * modules/unistr/u16-next-tests: Likewise.
28358         * modules/unistr/u16-prev-tests: Likewise.
28359         * modules/unistr/u16-set-tests: Likewise.
28360         * modules/unistr/u16-stpcpy-tests: Likewise.
28361         * modules/unistr/u16-stpncpy-tests: Likewise.
28362         * modules/unistr/u16-strcat-tests: Likewise.
28363         * modules/unistr/u16-strcmp-tests: Likewise.
28364         * modules/unistr/u16-strcoll-tests: Likewise.
28365         * modules/unistr/u16-strcpy-tests: Likewise.
28366         * modules/unistr/u16-strdup-tests: Likewise.
28367         * modules/unistr/u16-strlen-tests: Likewise.
28368         * modules/unistr/u16-strmblen-tests: Likewise.
28369         * modules/unistr/u16-strmbtouc-tests: Likewise.
28370         * modules/unistr/u16-strncat-tests: Likewise.
28371         * modules/unistr/u16-strncmp-tests: Likewise.
28372         * modules/unistr/u16-strncpy-tests: Likewise.
28373         * modules/unistr/u16-strnlen-tests: Likewise.
28374         * modules/unistr/u16-to-u32-tests: Likewise.
28375         * modules/unistr/u16-to-u8-tests: Likewise.
28376         * modules/unistr/u16-uctomb-tests: Likewise.
28377         * modules/unistr/u32-check-tests: Likewise.
28378         * modules/unistr/u32-chr-tests: Likewise.
28379         * modules/unistr/u32-cmp-tests: Likewise.
28380         * modules/unistr/u32-cmp2-tests: Likewise.
28381         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28382         * modules/unistr/u32-cpy-tests: Likewise.
28383         * modules/unistr/u32-mblen-tests: Likewise.
28384         * modules/unistr/u32-mbsnlen-tests: Likewise.
28385         * modules/unistr/u32-mbtouc-tests: Likewise.
28386         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28387         * modules/unistr/u32-mbtoucr-tests: Likewise.
28388         * modules/unistr/u32-move-tests: Likewise.
28389         * modules/unistr/u32-next-tests: Likewise.
28390         * modules/unistr/u32-prev-tests: Likewise.
28391         * modules/unistr/u32-set-tests: Likewise.
28392         * modules/unistr/u32-stpcpy-tests: Likewise.
28393         * modules/unistr/u32-stpncpy-tests: Likewise.
28394         * modules/unistr/u32-strcat-tests: Likewise.
28395         * modules/unistr/u32-strcmp-tests: Likewise.
28396         * modules/unistr/u32-strcoll-tests: Likewise.
28397         * modules/unistr/u32-strcpy-tests: Likewise.
28398         * modules/unistr/u32-strdup-tests: Likewise.
28399         * modules/unistr/u32-strlen-tests: Likewise.
28400         * modules/unistr/u32-strmblen-tests: Likewise.
28401         * modules/unistr/u32-strmbtouc-tests: Likewise.
28402         * modules/unistr/u32-strncat-tests: Likewise.
28403         * modules/unistr/u32-strncmp-tests: Likewise.
28404         * modules/unistr/u32-strncpy-tests: Likewise.
28405         * modules/unistr/u32-strnlen-tests: Likewise.
28406         * modules/unistr/u32-to-u16-tests: Likewise.
28407         * modules/unistr/u32-to-u8-tests: Likewise.
28408         * modules/unistr/u32-uctomb-tests: Likewise.
28409         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28410         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28411         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28412         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28413         * modules/uniwidth/u8-strwidth-tests: Likewise.
28414         * modules/uniwidth/u8-width-tests: Likewise.
28415         * modules/uniwidth/u16-strwidth-tests: Likewise.
28416         * modules/uniwidth/u16-width-tests: Likewise.
28417         * modules/uniwidth/u32-strwidth-tests: Likewise.
28418         * modules/uniwidth/u32-width-tests: Likewise.
28419         * modules/uniwidth/width-tests: Likewise.
28420
28421 2010-05-18  Richard Jones  <rjones@redhat.com>
28422
28423         doc: users.txt: list hivex
28424         * users.txt: Add hivex.
28425
28426 2010-05-18  Richard Jones  <rjones@redhat.com>
28427
28428         doc: users.txt: list febootstrap
28429         * users.txt: Add febootstrap.
28430
28431 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28432
28433         bootstrap: fix an error when gnulib is not used as a git submodule
28434         * build-aux/bootstrap (gnulib_path): If its length is zero then
28435         assign "gnulib" to it.
28436         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28437
28438 2010-05-16  Bruno Haible  <bruno@clisp.org>
28439
28440         Avoid autoconf warnings about AM_ICONV.
28441         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28442         2.64.
28443
28444 2010-05-16  Bruno Haible  <bruno@clisp.org>
28445
28446         absolute-header: Make the macro usable in more situations.
28447         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28448         from gl_ABSOLUTE_HEADER.
28449         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28450
28451 2010-05-16  James Youngman  <jay@gnu.org>
28452
28453         doc: update users.txt
28454         * users.txt: Add CSSC.
28455
28456 2010-05-16  Jim Meyering  <meyering@redhat.com>
28457
28458         init.sh: fix an error in the previous change; add more comments
28459         * tests/init.sh: Compare exit code in loop against 9, not 2.
28460         Patch by Bruno Haible.
28461         Make the two tests more similar by adding an empty "then" clause.
28462         Add comments.
28463
28464         init.sh: avoid unnecessary shell re-exec
28465         * tests/init.sh: Improve the re-exec-required check to first test the
28466         current shell.  If it passes the test, do not search for a shell that
28467         does pass, and do not re-exec.  This test is particularly contorted to
28468         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28469         of $(...) evokes a syntax error and causes immediate shell exit with
28470         status 2.  Bruno Haible reported that the re-exec made it impossible
28471         to single-step through any init.sh-using script.
28472
28473 2010-05-16  Bruno Haible  <bruno@clisp.org>
28474
28475         Fix collision between gnulib's and libintl's printf replacements.
28476         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28477         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28478         (printf): When using GNU C, map the __printf__ function to rpl_printf
28479         via __asm__. When not using GNU C, define rpl_printf instead of
28480         __printf__.
28481         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28482         commit.
28483         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28484         commit.
28485         * m4/asm-underscore.m4: New file.
28486         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28487         * modules/stdio (Files): Add m4/asm-underscore.m4.
28488         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28489         Reported by Ben Pfaff.
28490
28491 2010-05-16  Bruno Haible  <bruno@clisp.org>
28492
28493         verify: Avoid skipping the test on openSUSE 11.0.
28494         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28495
28496 2010-05-13  Bruno Haible  <bruno@clisp.org>
28497
28498         Avoid useless warnings from G++.
28499         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28500         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28501         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28502
28503 2010-05-11  Jim Meyering  <meyering@redhat.com>
28504
28505         maint.mk: tweak preceding change
28506         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28507         regexps tighter by anchoring at EOL, and make the new group "shy"
28508         for slightly decreased overhead.
28509
28510 2010-05-11  Eric Blake  <eblake@redhat.com>
28511
28512         maint.mk: gnulib doesn't guarantee NSIG
28513         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28514
28515 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28516
28517         test-pwrite.c: Remove unused variable declaration.
28518         * tests/test-pwrite.c (main): Remove read_buf declaration.
28519
28520         Remove useless test-pwrite.sh file.
28521         * tests/test-pwrite.sh: Delete file.
28522         * modules/pwrite-tests: Remove references.
28523         Reported by Bruno Haible.
28524
28525 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28526
28527         init.sh: fix a typo
28528         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28529
28530 2010-05-10  Jim Meyering  <meyering@redhat.com>
28531
28532         maint.mk: avoid using a temporary file in the always-defined-macros check
28533         * top/maint.mk (.re-defmac): Remove rule.
28534         (gl_trap_): Remove definition.
28535         (sc_prohibit_always-defined_macros): Rewrite not to create and
28536         depend on a temporary file.  Instead, depend on GNU grep's ability
28537         to read a list of regular expressions from stdin when given "-f -".
28538
28539 2010-05-09  Bruno Haible  <bruno@clisp.org>
28540
28541         Update to GNU gettext 0.18, part 1.
28542         * m4/gettext.m4: Update to GNU gettext 0.18.
28543         * m4/intl.m4: Likewise.
28544         * m4/po.m4: Likewise.
28545         * modules/gettext (Files): Add m4/fcntl-o.m4.
28546         (configure.ac): Require gettext infrastructure from version 0.18.
28547
28548 2010-05-09  Jim Meyering  <meyering@redhat.com>
28549
28550         init.sh: enable MALLOC_PERTURB_
28551         * tests/init.sh: Enable glibc's malloc-perturbing option.
28552
28553         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28554         With my recent change in init.sh from the two-line form:
28555             -#   : ${srcdir=.}
28556             -#   . "$srcdir/init.sh"; path_prepend_ .
28557             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28558         I noticed that using the one-line form would cause this test
28559         to fail with a false-positive, or to stop working altogether,
28560         depending on whether help-version changed or all the tests did.
28561         * top/maint.mk (_hv_regex): Remove this definition.
28562         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28563         (_hv_regex_strong): Use a stronger regex to check for conformance.
28564         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28565         Give a separate diagnostic for lack of conforming use.
28566
28567         maint.mk: prohibit definition of symbols defined by gnulib
28568         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28569         definition of symbols defined by gnulib.
28570
28571 2010-05-09  Bruno Haible  <bruno@clisp.org>
28572
28573         acl: Avoid test failure on Cygwin-hosted mingw.
28574         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28575
28576 2010-05-09  Bruno Haible  <bruno@clisp.org>
28577
28578         error: Use system's fcntl function.
28579         * lib/error.c (fcntl): Undefine.
28580
28581 2010-05-09  Jim Meyering  <meyering@redhat.com>
28582
28583         verify: adjust formatting to be more consistent
28584         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28585         argument-list '('s, and after one comma.
28586
28587 2010-05-09  Bruno Haible  <bruno@clisp.org>
28588
28589         error: More reliable output on mingw.
28590         * lib/error.c: Include <windows.h>.
28591         (is_open): New function.
28592         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28593         defined.
28594
28595 2010-05-09  Bruno Haible  <bruno@clisp.org>
28596
28597         vasnprintf: Fix syntax errors in libintl build on mingw.
28598         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28599         pad_ourselves and prec_ourselves after use.
28600
28601 2010-05-08  Bruno Haible  <bruno@clisp.org>
28602
28603         * lib/config.charset: Update comments for Cygwin 1.7.
28604         * lib/localcharset.c: Likewise.
28605
28606 2010-05-07  Jim Meyering  <meyering@redhat.com>
28607
28608         init.sh: improve comments
28609         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28610         . "${srcdir=.}/init.sh"; path_prepend_ .
28611         Add a note about path_prepend_ and the alternative of using
28612         TESTS_ENVIRONMENT.
28613
28614 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28615
28616         exclude: Unescape hashed patterns in wildcard mode.
28617         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28618         to the hash list.
28619         * tests/test-exclude8.sh: New test case.
28620         * modules/exclude-tests: Add new test.
28621
28622 2010-05-05  Eric Blake  <eblake@redhat.com>
28623
28624         verify: automate tests
28625         * modules/verify-tests: New module.
28626         * tests/test-verify.sh: New file.
28627         * tests/test-verify.c: Guard each negative test with a unique id.
28628         Also avoid warning about unused left hand of comma expressions.
28629
28630 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28631
28632         Further improvements to verify.h, suggested by Eric Blake.
28633         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28634         the GL_* versions, to avoid collision with OpenGL.
28635         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28636         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28637         than testing merely whether it's defined.
28638
28639         Modify verify.h to pacify gcc -Wredundant_decls.
28640         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28641         These use the prefix "GL_" since they're likely to be useful elsewhere.
28642         We may need to break them out into a different .h file.
28643         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28644         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28645         of verify_function__.
28646
28647 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28648
28649         Tests for module pwrite.
28650         * modules/pwrite-tests: New file.
28651         * tests/test-pwrite.sh: New file.
28652         * tests/test-pwrite.c: New file.
28653
28654         New module pwrite.
28655         * lib/unistd.in.h (pwrite): New declaration.
28656         * lib/pwrite.c: New file, from glibc with modifications.
28657         * m4/pwrite.m4: New file.
28658         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28659         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28660         REPLACE_PWRITE.
28661         * modules/pwrite: New file.
28662         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28663         REPLACE_PWRITE.
28664         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28665         * doc/posix-functions/pwrite.texi: Mention the new module.
28666
28667 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28668
28669         pread: Update documentation.
28670         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28671
28672 2010-05-04  Eric Blake  <eblake@redhat.com>
28673
28674         docs: update cygwin progress
28675         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28676         this bug.
28677         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28678         Added in cygwin 1.7.2.
28679         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28680         Likewise.
28681         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28682         Likewise.
28683         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28684         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28685         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28686         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28687         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28688         Mention nproc module.
28689         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28690         bug in cygwin 1.7.5 addition.
28691         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28692         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28693         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28694         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28695         1.7.5.
28696         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28697         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28698         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28699         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28700         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28701         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28702         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28703         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28704         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28705         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28706         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28707         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28708         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28709         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28710         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28711         Likewise.
28712         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28713         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28714         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28715         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28716         Likewise.
28717         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28718         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28719         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28720         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28721         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28722         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28723         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28724         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28725         Likewise.
28726         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28727         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28728         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28729         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28730         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28731         Likewise.
28732         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28733         Likewise.
28734         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28735         Likewise.
28736         * doc/glibc-functions/xdrrec_endofrecord.texi
28737         (xdrrec_endofrecord): Likewise.
28738         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28739         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28740         Likewise.
28741         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28742         Likewise.
28743
28744 2010-05-04  Jim Meyering  <meyering@redhat.com>
28745
28746         gendocs.sh: make its "-s FILE" option more useful
28747         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28748         $PACKAGE to reflect the probably-different basename of "FILE".
28749
28750 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28751
28752         bootstrap: don't ignore download_po_files failure
28753         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28754         failure.
28755
28756 2010-05-03  Jim Meyering  <meyering@redhat.com>
28757
28758         maint.mk: allow to pass options to gendocs.sh
28759         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28760         (gendocs_options_): New overridable variable.
28761
28762         gnu-web-doc-update: don't ignore configure or build failure
28763         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28764
28765         announce-gen: backslash-escape '@'s in --help output
28766         * build-aux/announce-gen: Fix syntax errors.
28767
28768         maint.mk, announce-gen: allow project-specific announcement mail headers
28769         * top/maint.mk (translation_project_): Define default.
28770         (announcement_Cc_, announcement_mail_headers_): Likewise.
28771         (announcement): Invoke announce-gen with new --mail-headers option.
28772         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28773
28774         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28775         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28776         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28777         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28778         line in the "err2" output file when running "make check" in verbose
28779         mode (i.e., with set -x enabled).
28780
28781 2010-05-03  Bruno Haible  <bruno@clisp.org>
28782
28783         wctob: Fix for weird platforms.
28784         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28785         argument value.
28786
28787 2010-05-03  Jim Meyering  <meyering@redhat.com>
28788
28789         maint.mk: prohibit unwarranted use of <strings.h>
28790         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28791         strings.h in a file that does not also use strcasecmp, strncasecmp,
28792         ffs or ffsll.
28793
28794         maint.mk: remove obsolete comments
28795         * top/maint.mk: Remove stale, commented-out rules.
28796
28797 2010-05-02  Bruno Haible  <bruno@clisp.org>
28798
28799         wcwidth: Declare also when it's aliased.
28800         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28801         macro.
28802
28803 2010-05-02  Bruno Haible  <bruno@clisp.org>
28804
28805         Fix regression from 2010-04-25.
28806         * gnulib-tool (func_modules_transitive_closure): Check the status of
28807         all modules, not only of the tests that are of the form foo-tests where
28808         foo is a module.
28809
28810 2010-05-02  Bruno Haible  <bruno@clisp.org>
28811
28812         wctob: Work around nasty Cygwin 1.7.2 bug.
28813         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28814         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28815
28816 2010-05-01  Bruno Haible  <bruno@clisp.org>
28817
28818         fpurge: Sharper test.
28819         * tests/test-fpurge.c (main): Add one more ftell check.
28820         * modules/fpurge-tests (Depends-on): Add ftell.
28821         Suggested by Eric Blake.
28822
28823 2010-05-01  Bruno Haible  <bruno@clisp.org>
28824
28825         ftello: Another test.
28826         * tests/test-ftello3.c: New file.
28827         * modules/ftello-tests (Files): Add it.
28828         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28829         MOSTLYCLEANFILES.
28830
28831         ftell: Another test.
28832         * tests/test-ftell3.c: New file.
28833         * modules/ftell-tests (Files): Add it.
28834         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28835         MOSTLYCLEANFILES.
28836
28837 2010-05-01  Bruno Haible  <bruno@clisp.org>
28838
28839         ftell, ftello: Work around Solaris bug.
28840         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28841         * lib/ftello.c: Include stdio-impl.h.
28842         (ftello): On Solaris, when _IOWRT is set, compute the result without
28843         looking at _IOREAD.
28844         * modules/ftello (Files): Add lib/stdio-impl.h.
28845         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28846         * doc/posix-functions/ftello.texi: Likewise.
28847         Reported by Eric Blake.
28848
28849 2010-05-01  Bruno Haible  <bruno@clisp.org>
28850
28851         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28852         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28853         the _IOWRT flag is also set.
28854
28855 2010-05-01  Bruno Haible  <bruno@clisp.org>
28856
28857         Fix doc about a HP-UX stdio bug.
28858         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28859         * doc/posix-functions/ftello.texi: Likewise.
28860
28861 2010-05-01  Bruno Haible  <bruno@clisp.org>
28862
28863         lseek test: Fix failure on Solaris.
28864         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28865         output.
28866
28867 2010-04-30  Jim Meyering  <meyering@redhat.com>
28868
28869         bootstrap: don't ignore failure to generate po*/Makevars
28870         * build-aux/bootstrap (with_gettext): Don't ignore failure
28871         to create po/Makevars or runtime-po/Makevars.
28872
28873 2010-04-29  Eric Blake  <eblake@redhat.com>
28874
28875         headers: relax license to LGPLv2+
28876         * modules/fcntl-h (License): Relax license.
28877         * modules/getopt-posix (License): Likewise.
28878         * modules/locale (License): Likewise.
28879         * modules/math (License): Likewise.
28880         * modules/pty (License): Likewise.
28881         * modules/sched (License): Likewise.
28882         * modules/search (License): Likewise.
28883         * modules/spawn (License): Likewise.
28884         * modules/stdarg (License): Likewise.
28885         * modules/sysexits (License): Likewise.
28886
28887 2010-04-29  Jim Meyering  <meyering@redhat.com>
28888
28889         inttypes: relax license to LGPLv2+
28890         * modules/inttypes (License): Relax license.
28891
28892 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28893
28894         * top/maint.mk (indent): Run twice to produce idempotent results.
28895
28896 2010-04-28  Bruno Haible  <bruno@clisp.org>
28897
28898         getdate: Generate getdate.c in the source directory.
28899         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28900         MOSTLYCLEANFILES.
28901         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28902
28903 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28904
28905         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28906         is not declared as a const *; avoid warnings in that case.
28907
28908 2010-04-28  Eric Blake  <eblake@redhat.com>
28909
28910         canonicalize-lgpl: avoid compiler warning
28911         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28912         declaration' / 'extraneous semicolon' warning with some compilers.
28913         Reported by Andreas Gruenbacher.
28914
28915 2010-04-28  Jim Meyering  <meyering@redhat.com>
28916
28917         init.sh: ensure a more reliable exit status when exiting via trap
28918         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28919         Inspired by patches from Dmitry V. Levin.
28920         Also trap on signal 3 (SIGQUIT).
28921
28922 2010-04-27  Bruno Haible  <bruno@clisp.org>
28923
28924         Update doc about utimes().
28925         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28926         'utimens' module.
28927         Reported by Andreas Gruenbacher <agruen@suse.de>.
28928
28929 2010-04-27  Eric Blake  <eblake@redhat.com>
28930
28931         full-read, full-write: relax license
28932         * modules/full-read (License): Drop to LGPLv2+.
28933         * modules/full-write (License): Likewise.
28934         * modules/safe-read (License): Likewise.
28935         * modules/safe-write (License): Likewise.
28936
28937         pthread: mention library for linking
28938         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28939
28940 2010-04-27  Jim Meyering  <meyering@redhat.com>
28941
28942         maint.mk: fix a bug introduced in last change
28943         * top/maint.mk (gl_assured_headers_): Now that all names are on
28944         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28945         is not anchored to end of word, it should be adequate.
28946
28947         maint.mk: avoid side-effect in latest syntax-check
28948         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28949         to run commands via $(shell...), and hence to incur cost only when
28950         the new rule is actually run.
28951
28952         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28953         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28954         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28955         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28956         (gl_assured_headers_, az_, AZ_): Define.
28957         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28958
28959 2010-04-26  Jim Meyering  <jim@meyering.net>
28960             Bruno Haible  <bruno@clisp.org>
28961
28962         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28963         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28964         Prompted by an exchange with Gilles Espinasse.
28965
28966 2010-04-26  Jim Meyering  <meyering@redhat.com>
28967
28968         git-version-gen: aesthetic tweak
28969         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28970         so that the command remains on a single line.
28971
28972 2010-04-26  Eric Blake  <eblake@redhat.com>
28973
28974         git-version-gen: allow use on EBCDIC hosts
28975         * build-aux/git-version-gen (dirty): Use literal rather than tying
28976         ourselves to ascii.
28977         Reported by Steve Goetze.
28978
28979 2010-04-25  Bruno Haible  <bruno@clisp.org>
28980
28981         netdb: Add support for GNULIB_POSIXCHECK.
28982         * lib/netdb.in.h: Include warn-on-use.h.
28983         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28984         functions are used when GNULIB_POSIXCHECK is defined and the
28985         getaddrinfo module is not in use.
28986         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28987         freeaddrinfo, gai_strerror, getnameinfo are declared.
28988         * modules/netdb (Depends-on): Add warn-on-use.
28989         (Makefile.am): Include warn-on-use.h in netdb.h.
28990
28991 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28992
28993         build: avoid "make check" failure without .git/ directory
28994         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28995         there is no .git/ directory.
28996
28997 2010-04-25  Bruno Haible  <bruno@clisp.org>
28998
28999         ptsname: Fix misuse of ttyname_r.
29000         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29001         of errno.
29002
29003 2010-04-25  Bruno Haible  <bruno@clisp.org>
29004
29005         ttyname_r: Make it work on Solaris 10.
29006         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29007         if the system function has the POSIX declaration. Test whether the
29008         function fails if the buffer is less than 128 bytes large.
29009         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29010         system's ttyname_r function. Provide a reasonably large buffer.
29011         * modules/ttyname_r (Depends-on): Add extensions.
29012         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29013
29014 2010-04-25  Bruno Haible  <bruno@clisp.org>
29015
29016         Use the 'extensions' module for some more functions on Solaris.
29017         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29018         module.
29019         * doc/posix-functions/ctime_r.texi: Likewise.
29020         * doc/posix-functions/getgrgid_r.texi: Likewise.
29021         * doc/posix-functions/getgrnam_r.texi: Likewise.
29022         * doc/posix-functions/getpwnam_r.texi: Likewise.
29023         * doc/posix-functions/getpwuid_r.texi: Likewise.
29024         * doc/posix-functions/readdir_r.texi: Likewise.
29025         * doc/posix-functions/sigwait.texi: Likewise.
29026         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29027         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29028
29029 2010-04-25  Bruno Haible  <bruno@clisp.org>
29030
29031         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29032         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29033         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29034         * lib/ttyname_r.c: Include <limits.h>.
29035         (ttyname_r): Define using the system's ttyname_r function, if it exists
29036         and not on Solaris.
29037         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29038         set.
29039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29040         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29041         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29042         Reported by Simon Josefsson.
29043
29044 2010-04-25  Bruno Haible  <bruno@clisp.org>
29045
29046         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29047         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29048         * doc/posix-functions/ctime_r.texi: Likewise.
29049         * doc/posix-functions/getgrgid_r.texi: Likewise.
29050         * doc/posix-functions/getgrnam_r.texi: Likewise.
29051         * doc/posix-functions/getlogin_r.texi: Likewise.
29052         * doc/posix-functions/getpwnam_r.texi: Likewise.
29053         * doc/posix-functions/getpwuid_r.texi: Likewise.
29054         * doc/posix-functions/readdir_r.texi: Likewise.
29055         * doc/posix-functions/sigwait.texi: Likewise.
29056         * doc/posix-functions/ttyname_r.texi: Likewise.
29057         Reported by Simon Josefsson.
29058
29059 2010-04-25  Bruno Haible  <bruno@clisp.org>
29060
29061         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29062         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29063         also to --create-testdir.
29064         (func_acceptable): Don't consider the status of *-tests modules here.
29065         (func_modules_transitive_closure): Consider it here, before including a
29066         test module.
29067         (func_import, func_create_testdir): Set inc_all_direct_tests,
29068         inc_all_indirect_tests.
29069         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29070         --create-testdir and --create-megatestdir.
29071
29072 2010-04-25  Bruno Haible  <bruno@clisp.org>
29073
29074         gnulib-tool: Add --without-*-tests options.
29075         * gnulib-tool (func_usage): Document the --without-*-tests options.
29076         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29077         excl_unportable_tests): New variables.
29078         Fail if they are specified with --import or --update.
29079         (func_acceptable): Respect the excl_*_tests variables.
29080         (func_import): Set the excl_*_tests variables to empty.
29081
29082 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29083             Bruno Haible  <bruno@clisp.org>
29084
29085         Work around a MacOS X 10.4 bug with openpty.
29086         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29087         * tests/test-openpty.c (main): Close the master side explicitly.
29088
29089 2010-04-25  Bruno Haible  <bruno@clisp.org>
29090
29091         strnlen: Fix a C++ test error on MacOS X and Solaris.
29092         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29093         the function is not declared.
29094         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29095         Simon Josefsson.
29096
29097 2010-04-24  Bruno Haible  <bruno@clisp.org>
29098
29099         Avoid a gcc warning.
29100         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29101         of correct type for %08lx directive.
29102         Reported by Eric Blake.
29103
29104 2010-04-24  Bruno Haible  <bruno@clisp.org>
29105
29106         vasnprintf: Correct errno value in case of out-of-memory.
29107         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29108         or sprintf. Use the errno value from SNPRINTF or sprintf.
29109         Reported by Ian Beckwith <ianb@erislabs.net>.
29110
29111 2010-04-24  Bruno Haible  <bruno@clisp.org>
29112
29113         ansi-c++-opt: Find correct compiler when cross-compiling.
29114         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29115         AC_CHECK_PROGS.
29116         Reported by Simon Josefsson.
29117
29118 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29119
29120         vc-list-files: Add support for subversion
29121         * build-aux/vc-list-files: Use "svn list" to generate the list of
29122         files controlled by subversion.
29123
29124 2010-04-23  Jim Meyering  <meyering@redhat.com>
29125
29126         vc-list-files tests: convert to use init.sh
29127         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29128         path_prepend_.
29129         Use Exit, not exit.
29130         Use skip_ rather than open coding it.
29131         Remove trap set-up and compare definitions.
29132         * tests/test-vc-list-files-git.sh: Likewise.
29133         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29134
29135 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29136
29137         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29138         backup files.
29139
29140 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29141
29142         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29143
29144 2010-04-20  Eric Blake  <eblake@redhat.com>
29145
29146         tests: be robust to ignored SIGPIPE
29147         * tests/test-select-in.sh: Consume all output.
29148         * tests/test-lseek.sh: Check correct exit status, while avoiding
29149         EPIPE.
29150
29151 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29152             Bruno Haible  <bruno@clisp.org>
29153
29154         visibility: Don't use -fvisibility if it leads to a warning.
29155         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29156         yes, don't pretend that visibility works if it leads to a warning.
29157         Reported by Mike Gran <spk121@yahoo.com>.
29158
29159 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29160
29161         * build-aux/bootstrap: Use "git -h" for testing for supported options
29162         instead of "git --help".  The short-form option only shows a summary,
29163         and doesn't layout the full man page.  Grep for the full option name
29164         in the summary, too.
29165
29166 2010-04-19  Bruno Haible  <bruno@clisp.org>
29167
29168         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29169         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29170         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29171         mention of RELOCATABLE_STRIP.
29172         Reported by Sylvain Beucler <beuc@beuc.net>.
29173
29174 2010-04-19  Bruno Haible  <bruno@clisp.org>
29175
29176         * lib/diffseq.h: Fix typo in comment.
29177         Reported by Eric Blake.
29178
29179 2010-04-19  Bruno Haible  <bruno@clisp.org>
29180
29181         ioctl: Move autoconf macro to a .m4 file.
29182         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29183         * modules/ioctl (Files): Add it.
29184         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29185         Reported by Ian Beckwith <ianb@erislabs.net>.
29186
29187 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29188             Bruno Haible  <bruno@clisp.org>
29189
29190         diffseq: Accommodate use-case with abstract arrays.
29191         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29192         is not defined.
29193         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29194         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29195
29196 2010-04-18  Bruno Haible  <bruno@clisp.org>
29197
29198         * doc/posix-headers/stdbool.texi: More precise wording.
29199
29200 2010-04-17  Jim Meyering  <meyering@redhat.com>
29201
29202         maint.mk: use gnu-style indentation in an embedded perl script
29203         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29204         Rename variable: s/two/last_two_bytes/
29205
29206 2010-04-16  Eric Blake  <eblake@redhat.com>
29207
29208         test-stdbool: skip test that fails with Solaris CC
29209         * tests/test-stdbool.c (f): Skip test that causes compilation
29210         error under buggy C++ compiler.
29211         * lib/stdbool.in.h: Document the limitation.
29212         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29213
29214         setenv: allow compilation with C++
29215         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29216         register keyword.
29217
29218         stdint: allow test to pass with C++
29219         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29220
29221         getopt: allow compilation with C++
29222         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29223         struct.
29224         * lib/getopt.c (_getopt_internal_r): Use correct type.
29225         Reported by Dagobert Michelson, via Joel E. Denny.
29226
29227 2010-04-16  Bruno Haible  <bruno@clisp.org>
29228
29229         Override netdb.h always.
29230         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29231         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29232         Reported by Ludovic Courtès <ludo@gnu.org>.
29233
29234 2010-04-15  Bruno Haible  <bruno@clisp.org>
29235
29236         openpty: Fix mistake from 2010-03-21.
29237         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29238         Reported by Simon Josefsson.
29239
29240 2010-04-15  Eric Blake  <eblake@redhat.com>
29241
29242         test-forkpty: fix expected signature
29243         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29244         Reported by Simon Josefsson.
29245
29246 2010-04-15  Jim Meyering  <meyering@redhat.com>
29247
29248         maint.mk: texinfo_suffix_re_: correct the default regexp
29249         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29250
29251         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29252         make it configurable via texinfo_suffix_re_.
29253
29254 2010-04-14  Eric Blake  <eblake@redhat.com>
29255
29256         strtok_r: relax license to LGPLv2+
29257         * modules/strtok_r (License): Relax license.
29258         Reported by Matthias Bolte.
29259
29260 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29261
29262         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29263         version 1.4.4 by default instead of requiring the libgcrypt
29264         version used during build.  This makes it possible to use the
29265         application with older but still binary compatible libgcrypt
29266         versions.
29267
29268 2010-04-13  Eric Blake  <eblake@redhat.com>
29269
29270         getopt-gnu: match recent glibc fixes and posix ruling
29271         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29272         '+' handling, when requesting extensions.
29273         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29274         'W;' handling.
29275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29276         * doc/posix-functions/getopt.texi (getopt): Document this.
29277         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29278         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29279         Likewise.
29280
29281         getopt: merge bug fixes from glibc
29282         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29283         diagnostics.  Honor '+:' correctly.  Reject ';'.
29284
29285         getopt-posix: detect MacOS bug
29286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29287         optind when missing a required argument.
29288         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29289         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29290         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29291         Likewise.
29292
29293         getopt-posix: avoid spurious failure on Solaris
29294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29295         an indicator that setting optind=1 is sufficient for reset.
29296
29297         getopt-posix: avoid spurious failure on FreeBSD
29298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29299         in POSIX mode, since the m4 test uses it.
29300
29301         gnulib-tool: silence warning on BSD sh
29302         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29303
29304 2010-04-13  Jim Meyering  <meyering@redhat.com>
29305
29306         doc: users.txt: GNU patch now uses gnulib
29307         * users.txt: Add patch.
29308
29309 2010-04-12  Jim Meyering  <meyering@redhat.com>
29310
29311         maint.mk: generate more concise timing data for syntax-check rules
29312         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29313         " done" from each line that reports a syntax-check test duration.
29314
29315 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29316
29317         git-version-gen: use "git update-index..." rather than "git status"
29318         * build-aux/git-version-gen: Use git update-index --refresh, not
29319         "git status".  With some versions of git, "git status" would fail
29320         to update the index and result in an unwarranted "-dirty" suffix.
29321
29322 2010-04-11  Jim Meyering  <meyering@redhat.com>
29323
29324         openat: correct formatting (no semantic change)
29325         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29326         Suggested by Bruno Haible.
29327
29328 2010-04-11  Bruno Haible  <bruno@clisp.org>
29329
29330         Stricter declaration checking in testdirs.
29331         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29332         If for_tests is true, augment AM_CPPFLAGS to define
29333         GNULIB_STRICT_CHECKING.
29334         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29335         GNULIB_STRICT_CHECKING is defined, verify that the function is
29336         declared.
29337
29338 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29339             Bruno Haible  <bruno@clisp.org>
29340
29341         libunistring: Improve configure output.
29342         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29343         Don't say "consider installing GNU libunistring" when checking again
29344         with libiconv.
29345
29346 2010-04-11  Bruno Haible  <bruno@clisp.org>
29347
29348         libunistring: Correct value of $LTLIBUNISTRING.
29349         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29350         correct the value of $LTLIBUNISTRING.
29351
29352 2010-04-11  Bruno Haible  <bruno@clisp.org>
29353
29354         havelib: Add static libraries to LIBS in the right order.
29355         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29356         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29357
29358 2010-04-11  Bruno Haible  <bruno@clisp.org>
29359
29360         libunistring: Detect libunistring also when it depends on libiconv.
29361         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29362         the second AC_LIB_HAVE_LINKFLAGS invocation.
29363
29364 2010-04-11  James Youngman  <jay@gnu.org>
29365
29366         close-stream: declare local scalars to be "const"
29367         * lib/close-stream.c (close_stream): Make boolean variables const
29368         to document the fact that we set but do not change them.
29369
29370 2010-04-11  Bruno Haible  <bruno@clisp.org>
29371
29372         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29373
29374 2010-04-11  Jim Meyering  <meyering@redhat.com>
29375
29376         maint.mk: don't include dist-check.mk
29377         * top/maint.mk: Remove bogus include directive.
29378
29379         maint.mk: improve empty-line-at-EOF check
29380         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29381         solution, rather than tail+Perl-based one.  The latter would read
29382         a few kilobytes from the end of each file, and did not handle empty
29383         files properly.
29384
29385         maint.mk: print the elapsed time for each syntax-check rule
29386         * top/maint.mk (sc_m_rules_): Save start time in a file.
29387         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29388         (local-check): Interpose the .z rules
29389
29390 2010-04-11  Jim Meyering  <meyering@redhat.com>
29391
29392         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29393         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29394         empty file with one that ends in an empty line.
29395
29396 2010-04-10  Bruno Haible  <bruno@clisp.org>
29397
29398         mkdir: Make it work on mingw64.
29399         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29400         * lib/mkdir.c: Update comment.
29401         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29402
29403 2010-04-10  Bruno Haible  <bruno@clisp.org>
29404
29405         Don't override improved macro from newer autoconf.
29406         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29407         autoconf >= 2.62.
29408         Reported by Joel E. Denny <jdenny@clemson.edu>.
29409
29410 2010-04-10  Jim Meyering  <meyering@redhat.com>
29411
29412         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29413         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29414
29415         maint.mk: correct a diagnostic
29416         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29417         in diagnostic; now use $prohibit.
29418
29419 2010-04-10  Bruno Haible  <address@hidden>
29420
29421         fchownat: Fix a C++ test error on Solaris 8.
29422         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29423         the function does not exist.
29424
29425 2010-04-10  Bruno Haible  <bruno@clisp.org>
29426
29427         vasnprintf: Add more tests.
29428         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29429         (test_function): Test converting an invalid wide string.
29430
29431         vasnprintf: Correct handling of unconvertible wide string arguments.
29432         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29433         VASNPRINTF.
29434         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29435         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29436         smaller than the expected maximum need for the directive. Set errno to
29437         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29438         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29440         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29441         * modules/vasnprintf (Files): Add m4/printf.m4.
29442         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29443
29444 2010-04-10  Bruno Haible  <bruno@clisp.org>
29445
29446         vasnprintf: Fix crash in %ls directive.
29447         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29448         string is passed as argument to %ls, with no precision and no width.
29449         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29450
29451 2010-04-10  Bruno Haible  <bruno@clisp.org>
29452
29453         vasnprintf: Fix multiple test failures on mingw.
29454         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29455         _snprintf, or snwprintf, not _snwprintf.
29456
29457 2010-04-10  Bruno Haible  <bruno@clisp.org>
29458
29459         write: Fix a C++ test error on mingw.
29460         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29461
29462 2010-04-10  Bruno Haible  <bruno@clisp.org>
29463
29464         vasnprintf test: Reduce code duplication.
29465         * tests/test-vasnprintf.c (test_function): New function, extracted from
29466         test_vasnprintf.
29467         (test_vasnprintf, test_asnprintf): Invoke it.
29468
29469 2010-04-10  Bruno Haible  <bruno@clisp.org>
29470
29471         strnlen: Fix warning in C++ mode on MacOS X.
29472         * lib/string.in.h (strnlen): Use the modern idiom.
29473         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29474         defining strnlen as a macro already in <config.h>.
29475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29476         REPLACE_STRNLEN.
29477         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29478         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29479
29480 2010-04-08  James Youngman  <jay@gnu.org>
29481
29482         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29483         the example.
29484
29485 2010-04-09  Jim Meyering  <meyering@redhat.com>
29486
29487         maint.mk: print better diagnostic when there is no $(_hv_file)
29488         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29489         announce that when $(_hv_file) (aka help-version) does not exist.
29490
29491         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29492         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29493         not try to interpret its random input bytes.  Jarno Rajahalme reported
29494         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29495         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29496         (mktempd_): Likewise, just in case.
29497
29498         ftruncate: add two years to projected module removal date: 2012
29499         * m4/ftruncate.m4: Adjust comments.
29500
29501         ftruncate: mark module as obsolete; even MinGW provides it, now
29502         * modules/ftruncate (Status): Obsolete.
29503         (Notice): Say that.
29504         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29505         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29506
29507 2010-04-08  Bruno Haible  <bruno@clisp.org>
29508
29509         Fix side effects from tests-related modules.
29510         * modules/dprintf-posix (Comment): New section.
29511         * modules/fprintf-posix (Comment): Likewise.
29512         * modules/obstack-printf-posix (Comment): Likewise.
29513         * modules/printf-posix (Comment): Likewise.
29514         * modules/snprintf-posix (Comment): Likewise.
29515         * modules/sprintf-posix (Comment): Likewise.
29516         * modules/vasnprintf-posix (Comment): Likewise.
29517         * modules/vasprintf-posix (Comment): Likewise.
29518         * modules/vdprintf-posix (Comment): Likewise.
29519         * modules/vfprintf-posix (Comment): Likewise.
29520         * modules/vprintf-posix (Comment): Likewise.
29521         * modules/vsnprintf-posix (Comment): Likewise.
29522         * modules/vsprintf-posix (Comment): Likewise.
29523         * modules/xprintf-posix (Comment): Likewise.
29524         * modules/xvasprintf-posix (Comment): Likewise.
29525         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29526         * modules/floorf-tests (Depends-on): Likewise.
29527         * modules/round-tests (Depends-on): Likewise.
29528         * modules/roundf-tests (Depends-on): Likewise.
29529         * modules/trunc-tests (Depends-on): Likewise.
29530         * modules/truncf-tests (Depends-on): Likewise.
29531         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29532         'fprintf-posix' module is not present.
29533         * tests/test-floorf2.c (check): Likewise.
29534         * tests/test-trunc2.c (check): Likewise.
29535         * tests/test-truncf2.c (check): Likewise.
29536         * tests/test-round2.c (equal): Likewise.
29537         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29538
29539 2010-04-07  Karl Berry  <karl@gnu.org>
29540
29541         * config/srclist.txt,
29542         * config/srclistvars.sh,
29543         * config/srclist-update: doc fixes.
29544
29545 2010-04-07  Jim Meyering  <meyering@redhat.com>
29546
29547         maint.mk: add a PATH crosschecking syntax-check rule
29548         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29549         Useful if you use a test like the one in help-version (coreutils,
29550         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29551         printed by prog --version.
29552
29553 2010-04-06  Bruno Haible  <bruno@clisp.org>
29554
29555         Fix link error on mingw.
29556         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29557         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29558
29559 2010-04-06  Bruno Haible  <bruno@clisp.org>
29560
29561         Assume rmdir exists.
29562         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29563
29564 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29565
29566         doc: update users.txt
29567         * users.txt: Add gcal.
29568
29569 2010-04-06  Jim Meyering  <meyering@redhat.com>
29570
29571         init.sh: simply unset TMPDIR rather than risking env -i
29572         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29573         although it probably works fine on all Unix-based systems, some
29574         systems (Cygwin?) cannot tolerate a totally cleared environment.
29575         Suggestion from Eric Blake.
29576
29577 2010-04-06  Jim Meyering  <meyering@redhat.com>
29578
29579         init.sh: portability fix: use env's POSIX-specified -i option not -u
29580         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29581         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29582
29583 2010-04-05  Bruno Haible  <bruno@clisp.org>
29584
29585         btowc: Work around Cygwin 1.7.2 bug.
29586         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29587         does not map NUL to 0.
29588         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29589
29590 2010-04-05  Bruno Haible  <bruno@clisp.org>
29591
29592         Make the multithread modules work on Cygwin 1.7.2.
29593         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29594         imported symbols can be declared weak, so that it returns "no" on
29595         Cygwin 1.7.2.
29596
29597 2010-04-05  Bruno Haible  <bruno@clisp.org>
29598
29599         Use the module 'strncat'.
29600         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29601
29602         Tests for module 'strncat'.
29603         * modules/strncat-tests: New file.
29604         * tests/test-strncat.c: New file.
29605
29606         New module 'strncat'.
29607         * lib/string.in.h (strncat): New declaration.
29608         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29609         * m4/strncat.m4: New file, based on m4/memchr.m4.
29610         * modules/strncat: New file.
29611         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29612         is declared.
29613         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29614         REPLACE_STRNCAT.
29615         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29616         REPLACE_STRNCAT.
29617         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29618         module.
29619         * tests/test-string-c++.cc: Check signature of strncat.
29620
29621 2010-04-05  Jim Meyering  <meyering@redhat.com>
29622
29623         xstrtoumax-tests: convert to use init.sh
29624         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29625         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29626         Use Exit, not exit.
29627         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29628
29629         xstrtoimax-tests: convert to use init.sh
29630         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29631         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29632         Use Exit, not exit.
29633         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29634
29635 2010-04-05  Bruno Haible  <bruno@clisp.org>
29636
29637         sys_socket: Avoid #define replacements in C++ mode.
29638         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29639         warning to the function if possible, rather than #defining the symbol
29640         to a dysfunctional alias.
29641
29642 2010-04-05  Bruno Haible  <bruno@clisp.org>
29643
29644         fseeko: Fix C++ test error on mingw.
29645         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29646         gl_FUNC_FSEEKO.
29647         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29648         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29649         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29650         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29651
29652 2010-04-05  Bruno Haible  <bruno@clisp.org>
29653
29654         duplocale: Improve test output.
29655         * tests/test-duplocale.c (main): Print reason for skipped test.
29656
29657 2010-04-05  Bruno Haible  <bruno@clisp.org>
29658
29659         Assume rmdir exists.
29660         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29661         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29662
29663 2010-04-05  Bruno Haible  <bruno@clisp.org>
29664
29665         Fix link error on Solaris 8 with cc.
29666         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29667
29668 2010-04-05  Bruno Haible  <bruno@clisp.org>
29669
29670         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29671         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29672
29673 2010-04-05  Bruno Haible  <bruno@clisp.org>
29674
29675         vasprintf: Update documentation.
29676         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29677
29678 2010-04-05  Bruno Haible  <bruno@clisp.org>
29679
29680         ptsname: Improve test.
29681         * tests/test-ptsname.c (main): Also try the various master names of BSD
29682         systems.
29683
29684 2010-04-05  Bruno Haible  <bruno@clisp.org>
29685
29686         memchr: Avoid a possible C++ test error.
29687         * lib/string.in.h (memchr): Provide declaration if function is missing.
29688         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29689         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29691         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29692
29693 2010-04-05  Bruno Haible  <bruno@clisp.org>
29694
29695         strtok_r: Improve idiom.
29696         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29697         AC_LIBOBJ is used.
29698
29699 2010-04-05  Bruno Haible  <bruno@clisp.org>
29700
29701         strdup: Improve idiom.
29702         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29703         AC_LIBOBJ is used.
29704         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29705         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29706         when AC_LIBOBJ is used.
29707
29708 2010-04-05  Bruno Haible  <bruno@clisp.org>
29709
29710         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29711         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29712         don't set REPLACE_MBSINIT to 1.
29713         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29714         don't set REPLACE_MBRTOWC to 1.
29715         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29716         exist, don't set REPLACE_MBSRTOWCS to 1.
29717         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29718         exist, don't set REPLACE_MBSNRTOWCS to 1.
29719         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29720         don't set REPLACE_WCRTOMB to 1.
29721         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29722         exist, don't set REPLACE_WCSRTOMBS to 1.
29723         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29724         exist, don't set REPLACE_WCSNRTOMBS to 1.
29725
29726 2010-04-05  Bruno Haible  <bruno@clisp.org>
29727
29728         ldexpl: Improve idiom.
29729         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29730         make sure to set HAVE_DECL_LDEXPL to 0.
29731
29732 2010-04-05  Jim Meyering  <meyering@redhat.com>
29733
29734         xstrtol-tests: convert to use init.sh
29735         * modules/xstrtol-tests (Files): Add tests/init.sh.
29736         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29737         Use Exit, not exit.
29738         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29739
29740         atexit-tests: convert to use init.sh
29741         * modules/atexit-tests (Files): Add tests/init.sh.
29742         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29743         Use Exit, not exit.
29744         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29745
29746         init.sh: fix typo
29747         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29748
29749         init.sh: make it easier for a test script to write to the tty, ...
29750         when using automake's parallel-tests mode.
29751         * tests/init.sh (stderr_fileno_): Define overridable variable.
29752         (warn_): New function, to use it.
29753         (fail_, skip_, framework_failure_): Use warn_.
29754
29755 2010-04-04  Bruno Haible  <bruno@clisp.org>
29756
29757         btowc: Avoid warning.
29758         * lib/btowc.c: Include <stdlib.h>.
29759         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29760
29761 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29762             Bruno Haible  <bruno@clisp.org>
29763
29764         wchar: Port to NetBSD 1.5.
29765         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29766         * lib/wctype.in.h (WEOF): Likewise.
29767
29768 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29769             Bruno Haible  <bruno@clisp.org>
29770
29771         Port extended stdio to NetBSD 1.5.
29772         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29773         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29774         older.
29775
29776 2010-04-04  Bruno Haible  <bruno@clisp.org>
29777
29778         string: Remove unused substitution.
29779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29780         HAVE_DECL_STRERROR.
29781         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29782
29783 2010-04-04  Bruno Haible  <bruno@clisp.org>
29784
29785         strtod: Avoid a possible C++ test error.
29786         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29787         set REPLACE_STRTOD.
29788
29789 2010-04-04  Bruno Haible  <bruno@clisp.org>
29790
29791         strerror: Update documentation.
29792         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29793
29794 2010-04-04  Bruno Haible  <bruno@clisp.org>
29795
29796         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29797         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29798         _GL_CXXALIAS_SYS_CAST.
29799
29800 2010-04-04  Bruno Haible  <bruno@clisp.org>
29801
29802         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29803         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29804         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29805         REPLACE_FREXPL to 1.
29806         * doc/posix-functions/frexpl.texi: Update documentation.
29807
29808 2010-04-04  Bruno Haible  <bruno@clisp.org>
29809
29810         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29811         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29812
29813 2010-04-04  Bruno Haible  <bruno@clisp.org>
29814
29815         Implement nanosleep for native Windows.
29816         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29817
29818 2010-04-04  Bruno Haible  <bruno@clisp.org>
29819
29820         math: Fix some C++ test errors on Solaris 8.
29821         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29822
29823 2010-04-04  Bruno Haible  <bruno@clisp.org>
29824
29825         math: Fix some C++ test errors on Cygwin.
29826         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29827         truncl): Provide declaration if the system does not have it.
29828         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29829         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29830         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29831         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29832         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29833         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29834         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29835         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29836         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29837         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29838         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29839         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29840         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29841         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29842         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29843         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29845         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29846         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29847         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29848         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29849         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29850
29851 2010-04-04  Bruno Haible  <bruno@clisp.org>
29852
29853         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29854         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29855         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29856         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29857         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29858         * m4/isinf.m4 (gl_ISINF): Likewise.
29859         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29860
29861 2010-04-04  Bruno Haible  <bruno@clisp.org>
29862
29863         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29864         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29865
29866 2010-04-04  Bruno Haible  <bruno@clisp.org>
29867
29868         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29869         * modules/tmpfile (configure.ac): Update.
29870
29871         tmpfile: Fix C++ test error on mingw.
29872         * lib/stdio.in.h (tmpfile): New declaration.
29873         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29874         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29875         * modules/tmpfile (Depends-on): Add stdio.
29876         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29877         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29878         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29879         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29880         REPLACE_TMPFILE.
29881         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29882
29883 2010-04-04  Bruno Haible  <bruno@clisp.org>
29884
29885         ioctl: Fix C++ test error on mingw.
29886         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29887         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29888         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29889
29890 2010-04-03  Bruno Haible  <bruno@clisp.org>
29891
29892         wcwidth: Fix C++ test error on mingw.
29893         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29894         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29895         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29896
29897 2010-04-03  Bruno Haible  <bruno@clisp.org>
29898
29899         nanosleep: Fix C++ test error on mingw.
29900         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29901         * lib/time.in.h (nanosleep): Use modern idiom.
29902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29903         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29904         REPLACE_NANOSLEEP to 1.
29905         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29906         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29907
29908 2010-04-03  Bruno Haible  <bruno@clisp.org>
29909
29910         strptime: Fix C++ test error on mingw.
29911         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29912         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29913         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29914         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29915         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29916         not REPLACE_STRPTIME.
29917         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29918         REPLACE_STRPTIME.
29919
29920 2010-04-03  Bruno Haible  <bruno@clisp.org>
29921
29922         timegm: Fix C++ test error on mingw.
29923         * lib/time.in.h (timegm): Use modern idiom.
29924         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29925         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29926         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29927         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29928
29929 2010-04-03  Bruno Haible  <bruno@clisp.org>
29930
29931         timegm: Assume declaration if function exists.
29932         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29933         if it exists. Don't clobber ac_cv_func_timegm.
29934
29935 2010-04-03  Bruno Haible  <bruno@clisp.org>
29936
29937         time_r: Fix C++ test error on mingw.
29938         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29939         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29940         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29941         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29942         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29943
29944 2010-04-03  Bruno Haible  <bruno@clisp.org>
29945
29946         time_r: Minor updates.
29947         * modules/time_r (Description): Mention the provided functions.
29948         * lib/time_r.c: Don't include <string.h>.
29949         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29950         * doc/posix-functions/localtime_r.texi: Likewise.
29951
29952 2010-04-03  Bruno Haible  <bruno@clisp.org>
29953
29954         time: Fix regression introduced on 2010-03-08.
29955         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29956         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29957
29958 2010-04-03  Jim Meyering  <meyering@redhat.com>
29959
29960         maint.mk: don't silently disable project-specific syntax-check rules
29961         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29962         that they need to convert their project-specific syntax-check rules
29963         to use the new _sc_search_regexp.
29964
29965 2010-04-03  Bruno Haible  <bruno@clisp.org>
29966
29967         fchdir: Fix regression introduced on 2010-03-08.
29968         * lib/unistd.in.h (fchdir): Fix declaration.
29969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29971         REPLACE_FCHDIR.
29972         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29973         REPLACE_FCHDIR.
29974
29975 2010-04-03  Bruno Haible  <bruno@clisp.org>
29976
29977         getpagesize: Fix C++ test error on mingw.
29978         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29979         system does not declare the function.
29980         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29981         declared.
29982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29983         HAVE_DECL_GETPAGESIZE.
29984         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29985
29986 2010-04-03  Bruno Haible  <bruno@clisp.org>
29987
29988         stdio: Make C++ tests work on mingw.
29989         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29990         does not declare the function.
29991
29992 2010-04-03  Bruno Haible  <bruno@clisp.org>
29993
29994         ftello: Fix C++ test error on mingw.
29995         * lib/stdio.in.h (ftello): Use modern idiom.
29996         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29997         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29998         is missing and that it needs to be replaced.
29999         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30001         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30002
30003 2010-04-03  Bruno Haible  <bruno@clisp.org>
30004
30005         fseeko: Fix C++ test error on mingw.
30006         * lib/stdio.in.h (fseeko): Use modern idiom.
30007         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30008         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30009         is missing and that it needs to be replaced.
30010         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30012         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30013
30014 2010-04-03  Bruno Haible  <bruno@clisp.org>
30015
30016         mkstemp: Fix C++ test error on mingw.
30017         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30018         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30019         function is missing and that it needs to be replaced.
30020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30021         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30022
30023 2010-04-03  Bruno Haible  <bruno@clisp.org>
30024
30025         stpncpy: Fix C++ test error on mingw.
30026         * lib/string.in.h (stpncpy): Use modern idiom.
30027         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30028         function is missing and that it needs to be replaced.
30029         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30030         REPLACE_STPNCPY.
30031         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30032
30033 2010-04-03  Bruno Haible  <bruno@clisp.org>
30034
30035         sys_stat: Fix C++ test error on mingw.
30036         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30037         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30038
30039 2010-04-03  Bruno Haible  <bruno@clisp.org>
30040
30041         pty: Update doc.
30042         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30043
30044 2010-04-03  Bruno Haible  <bruno@clisp.org>
30045
30046         unistd: Fix C++ test error on mingw.
30047         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30048
30049 2010-04-03  Bruno Haible  <bruno@clisp.org>
30050
30051         Update doc regarding mingw.
30052         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30053         * doc/glibc-functions/login_tty.texi: Likewise.
30054         * doc/glibc-functions/forkpty.texi: Likewise.
30055
30056 2010-04-03  Bruno Haible  <bruno@clisp.org>
30057
30058         stdlib: Avoid compilation failure of c-strtold on mingw.
30059         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30060
30061 2010-04-03  Bruno Haible  <bruno@clisp.org>
30062
30063         locale: Make C++ tests work on Cygwin and mingw.
30064         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30065         cannot provide the function.
30066         Reported by Simon Josefsson.
30067
30068 2010-04-03  Bruno Haible  <bruno@clisp.org>
30069
30070         localename: Port to MacOS X 10.6.
30071         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30072         memory layout of the locales in MacOS X 10.6 as well.
30073         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30074
30075 2010-04-02  Bruno Haible  <bruno@clisp.org>
30076
30077         gnulib-tool: Ensure that long-running tests are executed last.
30078         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30079         running tests after the one for the other tests.
30080
30081 2010-04-02  Bruno Haible  <bruno@clisp.org>
30082
30083         gnulib-tool: Ensure the tests in the main directory are executed first.
30084         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30085         start with the current directory.
30086
30087 2010-04-02  Bruno Haible  <bruno@clisp.org>
30088
30089         Tests for module 'havelib', moved here from GNU gettext.
30090         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30091         modifications.
30092         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30093         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30094         with modifications.
30095         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30096         modifications.
30097         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30098         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30099         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30100         with modifications.
30101         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30102         with modifications.
30103         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30104         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30105         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30106         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30107         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30108         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30109         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30110         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30111         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30112         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30113         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30114         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30115         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30116         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30117         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30118         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30119         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30120         with modifications.
30121         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30122         with modifications.
30123         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30124         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30125         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30126         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30127         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30128         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30129         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30130         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30131         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30132         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30133         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30134         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30135         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30136         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30137         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30138         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30139         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30140         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30141         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30142         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30143         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30144         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30145         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30146         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30147         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30148         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30149         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30150         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30151         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30152         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30153         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30154         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30155         * tests/havelib/rpathx/rpathx.c: New file, from
30156         gettext/autoconf-lib-link.
30157         * tests/havelib/rpathx/Makefile.am: New file, from
30158         gettext/autoconf-lib-link.
30159         * tests/havelib/rpathx/configure.ac: New file, from
30160         gettext/autoconf-lib-link with modifications.
30161         * tests/havelib/rpathy/rpathy.c: New file, from
30162         gettext/autoconf-lib-link.
30163         * tests/havelib/rpathy/Makefile.am: New file, from
30164         gettext/autoconf-lib-link.
30165         * tests/havelib/rpathy/configure.ac: New file, from
30166         gettext/autoconf-lib-link with modifications.
30167         * tests/havelib/rpathz/rpathz.c: New file, from
30168         gettext/autoconf-lib-link.
30169         * tests/havelib/rpathz/Makefile.am: New file, from
30170         gettext/autoconf-lib-link.
30171         * tests/havelib/rpathz/configure.ac: New file, from
30172         gettext/autoconf-lib-link with modifications.
30173         * tests/havelib/rpathlx/usex.c: New file, from
30174         gettext/autoconf-lib-link.
30175         * tests/havelib/rpathlx/Makefile.am: New file, from
30176         gettext/autoconf-lib-link.
30177         * tests/havelib/rpathlx/configure.ac: New file, from
30178         gettext/autoconf-lib-link with modifications.
30179         * tests/havelib/rpathly/usey.c: New file, from
30180         gettext/autoconf-lib-link.
30181         * tests/havelib/rpathly/Makefile.am: New file, from
30182         gettext/autoconf-lib-link.
30183         * tests/havelib/rpathly/configure.ac: New file, from
30184         gettext/autoconf-lib-link with modifications.
30185         * tests/havelib/rpathlz/usez.c: New file, from
30186         gettext/autoconf-lib-link.
30187         * tests/havelib/rpathlz/Makefile.am: New file, from
30188         gettext/autoconf-lib-link.
30189         * tests/havelib/rpathlz/configure.ac: New file, from
30190         gettext/autoconf-lib-link with modifications.
30191         * tests/havelib/rpathlyx/usey.c: New file, from
30192         gettext/autoconf-lib-link.
30193         * tests/havelib/rpathlyx/Makefile.am: New file, from
30194         gettext/autoconf-lib-link.
30195         * tests/havelib/rpathlyx/configure.ac: New file, from
30196         gettext/autoconf-lib-link with modifications.
30197         * tests/havelib/rpathlzyx/usez.c: New file, from
30198         gettext/autoconf-lib-link.
30199         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30200         gettext/autoconf-lib-link.
30201         * tests/havelib/rpathlzyx/configure.ac: New file, from
30202         gettext/autoconf-lib-link with modifications.
30203         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30204         with modifications.
30205
30206 2010-04-02  Bruno Haible  <bruno@clisp.org>
30207
30208         gnulib-tool: Create distributed built sources also for the tests.
30209         * gnulib-tool (func_create_testdir): Also generate distributed built
30210         sources in the tests directory.
30211
30212 2010-04-02  Bruno Haible  <bruno@clisp.org>
30213
30214         gnulib-tool: Obey user's environment variables.
30215         * gnulib-tool (func_create_testdir): When creating built sources,
30216         respect the environment variables for autoconf, automake, etc. given by
30217         the user.
30218
30219 2010-04-02  Bruno Haible  <bruno@clisp.org>
30220
30221         gnulib-tool: Provide the value of --m4-base to modules.
30222         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30223         of gl_m4_base.
30224
30225 2010-04-02  Eric Blake  <eblake@redhat.com>
30226
30227         maint.mk: fix some fallout
30228         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30229         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30230
30231 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30232
30233         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30234         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30235         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30236         (sc_cast_of_x_alloc_return_value): Likewise.
30237         (sc_cast_of_alloca_return_value): Likewise.
30238         (sc_space_tab): Likewise.
30239         (sc_prohibit_atoi_atof): Likewise.
30240         (sc_prohibit_magic_number_exit): Likewise.
30241         (sc_error_exit_success): Likewise.
30242         (sc_file_system): Likewise.
30243         (sc_prohibit_have_config_h): Likewise.
30244         (sc_require_config_h): Likewise.
30245         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30246         (sc_obsolete_symbols): Likewise.
30247         (sc_changelog): Likewise.
30248         (sc_program_name): Likewise.
30249         (sc_the_the): Likewise.
30250         (sc_trailing_blank): Likewise.
30251         (sc_two_space_separator_in_usage): Likewise.
30252         (sc_useless_cpp_parens): Likewise.
30253         (sc_GPL_version): Likewise.
30254         (sc_GFDL_version): Likewise.
30255         (sc_texinfo_acronym): Likewise.
30256         (sc_prohibit_cvs_keyword): Likewise.
30257         (sc_prohibit_stat_st_blocks): Likewise.
30258         (sc_prohibit_S_IS_definition): Likewise.
30259         (sc_redundant_const): Likewise.
30260         (sc_makefile_TAB_only_indentation): Likewise.
30261         (sc_m4_quote_check): Likewise.
30262         (sc_makefile_path_separator_check): Likewise.
30263         (sc_copyright_check): Likewise.
30264         (sc_Wundef_boolean): Likewise.
30265         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30266
30267         maint.mk: match 0 or more whitespace-before-function-call '('
30268         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30269         that have zero or two-and-more spaces between the function name
30270         and the open parenthesis.
30271         (sc_error_message_warn_fatal): Likewise.
30272         (sc_error_message_uppercase): Likewise.
30273         (sc_error_message_period): Likewise.
30274
30275 2010-03-31  Eric Blake  <eblake@redhat.com>
30276
30277         maint.mk: check for [ as well as test
30278         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30279         Based on a libvirt report by Matthias Bolte.
30280
30281         gnumakefile: don't squelch _version output
30282         * top/GNUmakefile (_version): Create one-shot dependency rather
30283         than using $(shell) when version must be regenerated.
30284         (_autoreconf): Run verbosely, by default.
30285
30286         sys_time: avoid compiler warnings
30287         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30288         unconditional, fixing regression from 2010-03-29.
30289         Reported by Simon Josefsson.
30290
30291 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30292
30293         maint.mk: s/_header_without_use/_sc_header_without_use/
30294         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30295         (sc_prohibit_assert_without_use): Use the new name.
30296         (sc_prohibit_close_stream_without_use): Likewise.
30297         (sc_prohibit_getopt_without_use): Likewise.
30298         (sc_prohibit_quotearg_without_use): Likewise.
30299         (sc_prohibit_quote_without_use): Likewise.
30300         (sc_prohibit_long_options_without_use): Likewise.
30301         (sc_prohibit_inttostr_without_use): Likewise.
30302         (sc_prohibit_ignore_value_without_use): Likewise.
30303         (sc_prohibit_error_without_use): Likewise.
30304         (sc_prohibit_xalloc_without_use): Likewise.
30305         (sc_prohibit_hash_without_use): Likewise.
30306         (sc_prohibit_hash_pjw_without_use): Likewise.
30307         (sc_prohibit_safe_read_without_use): Likewise.
30308         (sc_prohibit_argmatch_without_use): Likewise.
30309         (sc_prohibit_canonicalize_without_use): Likewise.
30310         (sc_prohibit_root_dev_ino_without_use): Likewise.
30311         (sc_prohibit_openat_without_use): Likewise.
30312         (sc_prohibit_c_ctype_without_use): Likewise.
30313         (sc_prohibit_signal_without_use): Likewise.
30314         (sc_prohibit_intprops_without_use): Likewise.
30315
30316 2010-03-30  Eric Blake  <eblake@redhat.com>
30317
30318         maint: improve module indicators
30319         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30320         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30321         columns, and avoid extra macro expansion.
30322
30323         fdopendir: work around FreeBSD bug
30324         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30325         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30326         * modules/dirent (Makefile.am): Substitute it.
30327         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30328         declaration.
30329         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30330         fix.
30331         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30332
30333 2010-03-29  Bruno Haible  <bruno@clisp.org>
30334
30335         Emit #pragma system_header after the inclusion guard, not before.
30336         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30337         guard that spans the entire file, not before. This enables an
30338         optimization in GCC's preprocessor.
30339         * lib/ctype.in.h: Likewise.
30340         * lib/dirent.in.h: Likewise.
30341         * lib/errno.in.h: Likewise.
30342         * lib/float.in.h: Likewise.
30343         * lib/getopt.in.h: Likewise.
30344         * lib/iconv.in.h: Likewise.
30345         * lib/langinfo.in.h: Likewise.
30346         * lib/locale.in.h: Likewise.
30347         * lib/math.in.h: Likewise.
30348         * lib/netdb.in.h: Likewise.
30349         * lib/netinet_in.in.h: Likewise.
30350         * lib/pty.in.h: Likewise.
30351         * lib/sched.in.h: Likewise.
30352         * lib/se-selinux.in.h: Likewise.
30353         * lib/search.in.h: Likewise.
30354         * lib/spawn.in.h: Likewise.
30355         * lib/stdarg.in.h: Likewise.
30356         * lib/stdint.in.h: Likewise.
30357         * lib/string.in.h: Likewise.
30358         * lib/strings.in.h: Likewise.
30359         * lib/sys_file.in.h: Likewise.
30360         * lib/sys_ioctl.in.h: Likewise.
30361         * lib/sys_time.in.h: Likewise.
30362         * lib/sys_times.in.h: Likewise.
30363         * lib/sys_utsname.in.h: Likewise.
30364         * lib/sys_wait.in.h: Likewise.
30365         * lib/sysexits.in.h: Likewise.
30366         * lib/wctype.in.h: Likewise.
30367
30368 2010-03-28  James Youngman  <jay@gnu.org>
30369
30370         save-cwd: don't leak a file descriptor when the caller execs.
30371         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30372         saved file descriptor.
30373         * modules/save-cwd (Depends-on): Depend on cloexec.
30374
30375 2010-03-29  Bruno Haible  <bruno@clisp.org>
30376
30377         Remove vestiges of fts-lgpl module.
30378         * lib/fts_.h: Assume GNULIB_FTS is 1.
30379         * lib/fts.c: Likewise.
30380         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30381
30382 2010-03-28  Bruno Haible  <bruno@clisp.org>
30383
30384         Fix definition of tests witness macro.
30385         * gnulib-tool (func_import): Fix definition of witness macro.
30386
30387 2010-03-28  Bruno Haible  <bruno@clisp.org>
30388
30389         Fix ioctl's protoype on glibc systems.
30390         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30391         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30392         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30393         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30394         signature. If not, arrange to replace the ioctl function.
30395         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30396         REPLACE_IOCTL.
30397         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30398         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30399         Reported by Ludovic Courtès <ludo@gnu.org>.
30400
30401 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30402
30403         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30404         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30405         made it so grep -r --include=GLOB* ... did not work.
30406
30407 2010-03-26  Jim Meyering  <meyering@redhat.com>
30408             Eric Blake  <eblake@redhat.com>
30409
30410         maint.mk: prohibit use of test's -o and -a operators
30411         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30412
30413 2010-03-28  Bruno Haible  <bruno@clisp.org>
30414
30415         Remove unused GNULIB_XYZ macro definitions.
30416         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30417         invocation.
30418
30419 2010-03-28  Bruno Haible  <bruno@clisp.org>
30420
30421         Mark privileged tests modules.
30422         * modules/idpriv-drop-tests (Status): New section.
30423         * modules/idpriv-droptemp-tests (Status): New section.
30424
30425 2010-03-28  Bruno Haible  <bruno@clisp.org>
30426
30427         Split C++ tests into separate tests modules.
30428         * modules/dirent-c++-tests: New file, extracted from
30429         modules/dirent-tests.
30430         * modules/dirent-tests: Depend on it.
30431         * modules/fcntl-h-c++-tests: New file, extracted from
30432         modules/fcntl-h-tests.
30433         * modules/fcntl-h-tests: Depend on it.
30434         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30435         * modules/glob-tests: Depend on it.
30436         * modules/iconv-h-c++-tests: New file, extracted from
30437         modules/iconv-h-tests.
30438         * modules/iconv-h-tests: Depend on it.
30439         * modules/langinfo-c++-tests: New file, extracted from
30440         modules/langinfo-tests.
30441         * modules/langinfo-tests: Depend on it.
30442         * modules/locale-c++-tests: New file, extracted from
30443         modules/locale-tests.
30444         * modules/locale-tests: Depend on it.
30445         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30446         * modules/math-tests: Depend on it.
30447         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30448         * modules/pty-tests: Depend on it.
30449         * modules/search-c++-tests: New file, extracted from
30450         modules/search-tests.
30451         * modules/search-tests: Depend on it.
30452         * modules/signal-c++-tests: New file, extracted from
30453         modules/signal-tests.
30454         * modules/signal-tests: Depend on it.
30455         * modules/spawn-c++-tests: New file, extracted from
30456         modules/spawn-tests.
30457         * modules/spawn-tests: Depend on it.
30458         * modules/stdio-c++-tests: New file, extracted from
30459         modules/stdio-tests.
30460         * modules/stdio-tests: Depend on it.
30461         * modules/stdlib-c++-tests: New file, extracted from
30462         modules/stdlib-tests.
30463         * modules/stdlib-tests: Depend on it.
30464         * modules/string-c++-tests: New file, extracted from
30465         modules/string-tests.
30466         * modules/string-tests: Depend on it.
30467         * modules/sys_ioctl-c++-tests: New file, extracted from
30468         modules/sys_ioctl-tests.
30469         * modules/sys_ioctl-tests: Depend on it.
30470         * modules/sys_select-c++-tests: New file, extracted from
30471         modules/sys_select-tests.
30472         * modules/sys_select-tests: Depend on it.
30473         * modules/sys_socket-c++-tests: New file, extracted from
30474         modules/sys_socket-tests.
30475         * modules/sys_socket-tests: Depend on it.
30476         * modules/sys_stat-c++-tests: New file, extracted from
30477         modules/sys_stat-tests.
30478         * modules/sys_stat-tests: Depend on it.
30479         * modules/sys_time-c++-tests: New file, extracted from
30480         modules/sys_time-tests.
30481         * modules/sys_time-tests: Depend on it.
30482         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30483         * modules/time-tests: Depend on it.
30484         * modules/unistd-c++-tests: New file, extracted from
30485         modules/unistd-tests.
30486         * modules/unistd-tests: Depend on it.
30487         * modules/wchar-c++-tests: New file, extracted from
30488         modules/wchar-tests.
30489         * modules/wchar-tests: Depend on it.
30490         * modules/wctype-c++-tests: New file, extracted from
30491         modules/wctype-tests.
30492         * modules/wctype-tests: Depend on it.
30493         Reported by Simon Josefsson.
30494
30495 2010-03-28  Bruno Haible  <bruno@clisp.org>
30496
30497         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30498         * gnulib-tool (func_exists_module): New function, extracted from
30499         func_verify_module.
30500         (func_verify_module): Use it.
30501         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30502         'foo' only if 'foo' exists.
30503         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30504         module.
30505
30506 2010-03-28  Bruno Haible  <bruno@clisp.org>
30507
30508         gnulib-tool: Add support for special categories of tests.
30509         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30510         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30511         (func_usage): Document them.
30512         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30513         inc_unportable_tests, inc_all_tests): New variables.
30514         (func_acceptable): Consider these variables.
30515         (func_modules_transitive_closure): Make it work when the 'Status' field
30516         consists of multiple words.
30517         (func_import): Store and restore the values of inc_cxx_tests,
30518         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30519         inc_all_tests in gnulib-comp.m4.
30520         (func_create_testdir): Set inc_all_tests to true.
30521         * doc/gnulib.texi (Extra tests modules): New section.
30522         Suggested by Jim Meyering.
30523
30524 2010-03-28  Bruno Haible  <bruno@clisp.org>
30525
30526         ansi-c++-opt: Allow turning off the C++ build by default.
30527         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30528         gl_CXX_CHOICE_DEFAULT_NO is defined.
30529         Requested by Eric Blake.
30530
30531 2010-03-28  Bruno Haible  <bruno@clisp.org>
30532
30533         unistd: Avoid #define replacements in C++ mode.
30534         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30535         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30536         setsockopt, shutdown, select): In C++, attach a warning to the function
30537         if possible, rather than #defining the symbol to a dysfunctional alias.
30538         Reported by John W. Eaton <jwe@gnu.org>.
30539
30540 2010-03-28  Bruno Haible  <bruno@clisp.org>
30541
30542         Fix link errors on mingw.
30543         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30544         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30545         $(LIBSOCKET).
30546         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30547         $(LIBSOCKET).
30548
30549 2010-03-28  Bruno Haible  <bruno@clisp.org>
30550             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30551
30552         lib-ignore: Determine different options for different compilers.
30553         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30554         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30555         Add comments.
30556         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30557         * NEWS: Mention the change.
30558
30559 2010-03-27  Bruno Haible  <bruno@clisp.org>
30560
30561         Remove unused GNULIB_XYZ macro definitions.
30562         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30563         * modules/fseek (configure.ac): Likewise.
30564         * modules/ioctl (configure.ac): Likewise.
30565         * modules/open (configure.ac): Likewise.
30566         * modules/stdlib-safer (configure.ac): Likewise.
30567
30568 2010-03-27  Bruno Haible  <bruno@clisp.org>
30569
30570         Add a remark about certain modules.
30571         * modules/malloc (Comment): New section.
30572         * modules/realloc (Comment): Likewise.
30573         * modules/sigpipe (Comment): Likewise.
30574
30575 2010-03-27  Bruno Haible  <bruno@clisp.org>
30576
30577         Resolve conflict between the two kinds of module indicators.
30578         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30579         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30580         * modules/canonicalize (configure.ac): Invoke
30581         gl_MODULE_INDICATOR_FOR_TESTS.
30582         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30583         GNULIB_XYZ.
30584         * tests/test-dirent-c++.cc: Likewise.
30585         * tests/test-dirent-safer.c: Likewise.
30586         * tests/test-dup2.c: Likewise.
30587         * tests/test-fchdir.c: Likewise.
30588         * tests/test-fcntl-h-c++.cc: Likewise.
30589         * tests/test-getopt.c: Likewise.
30590         * tests/test-getopt.h: Likewise.
30591         * tests/test-langinfo-c++.cc: Likewise.
30592         * tests/test-locale-c++.cc: Likewise.
30593         * tests/test-math-c++.cc: Likewise.
30594         * tests/test-pty-c++.cc: Likewise.
30595         * tests/test-search-c++.cc: Likewise.
30596         * tests/test-signal-c++.cc: Likewise.
30597         * tests/test-spawn-c++.cc: Likewise.
30598         * tests/test-stdio-c++.cc: Likewise.
30599         * tests/test-stdlib-c++.cc: Likewise.
30600         * tests/test-string-c++.cc: Likewise.
30601         * tests/test-sys_ioctl-c++.cc: Likewise.
30602         * tests/test-sys_select-c++.cc: Likewise.
30603         * tests/test-sys_socket-c++.cc: Likewise.
30604         * tests/test-sys_stat-c++.cc: Likewise.
30605         * tests/test-sys_time-c++.cc: Likewise.
30606         * tests/test-time-c++.cc: Likewise.
30607         * tests/test-unistd-c++.cc: Likewise.
30608         * tests/test-wchar-c++.cc: Likewise.
30609         * tests/uninorm/test-u8-nfc.c: Likewise.
30610         * tests/uninorm/test-u8-nfd.c: Likewise.
30611         * tests/uninorm/test-u8-nfkc.c: Likewise.
30612         * tests/uninorm/test-u8-nfkd.c: Likewise.
30613         * tests/uninorm/test-u16-nfc.c: Likewise.
30614         * tests/uninorm/test-u16-nfd.c: Likewise.
30615         * tests/uninorm/test-u16-nfkc.c: Likewise.
30616         * tests/uninorm/test-u16-nfkd.c: Likewise.
30617         * tests/uninorm/test-u32-nfc.c: Likewise.
30618         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30619         * tests/uninorm/test-u32-nfd.c: Likewise.
30620         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30621         * tests/uninorm/test-u32-nfkc.c: Likewise.
30622         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30623         * tests/uninorm/test-u32-nfkd.c: Likewise.
30624         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30625         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30626
30627 2010-03-27  Bruno Haible  <bruno@clisp.org>
30628
30629         Distinguish two kinds of module indicators.
30630         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30631         gl_MODULE_INDICATOR.
30632         (gl_MODULE_INDICATOR): New macro.
30633         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30634         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30635         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30636         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30637         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30638         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30639         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30640         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30641         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30642         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30643         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30644         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30645         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30646         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30647         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30648         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30649         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30650         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30651         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30652         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30653         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30654         * modules/cloexec (configure.ac): Likewise.
30655         * modules/getopt-gnu (configure.ac): Likewise.
30656         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30657         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30658         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30659         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30660
30661 2010-03-27  Bruno Haible  <bruno@clisp.org>
30662
30663         New module description field 'Comment'.
30664         * gnulib-tool: New option --extract-comment.
30665         (func_usage): Document it.
30666         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30667         (func_get_comment): New function.
30668         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30669
30670 2010-03-27  Bruno Haible  <bruno@clisp.org>
30671
30672         Addendum to 2010-02-07 commit.
30673         * gnulib-tool (func_usage): Document --extract-applicability option.
30674
30675 2010-03-27  Bruno Haible  <bruno@clisp.org>
30676
30677         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30678         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30679         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30680         rather than link errors.
30681
30682 2010-03-27  Bruno Haible  <bruno@clisp.org>
30683
30684         Avoid side effects from tests-related modules on the compilation of lib.
30685         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30686         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30687         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30688         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30689         macro.
30690         (func_import): Define a witness macro. Assign it a value that depends
30691         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30692         tests-related modules.
30693         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30694         Reported by Jim Meyering.
30695
30696 2010-03-27  Bruno Haible  <bruno@clisp.org>
30697
30698         Factorize common .m4 code.
30699         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30700         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30701         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30702         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30703         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30704         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30705         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30706         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30707         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30708         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30709         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30710         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30711         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30712         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30713         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30714         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30715         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30716         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30717         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30718         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30719         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30720         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30721         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30722         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30723         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30724         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30725         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30726         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30727         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30728         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30729         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30730         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30731
30732 2010-03-27  Bruno Haible  <bruno@clisp.org>
30733
30734         Fix a compilation error on Cygwin with g++ >= 4.3.
30735         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30736         if it is undefined or if we alias it to chmod.
30737         (lstat): Don't warn about the use of this function if it is undefined
30738         or if we alias it to stat.
30739         Reported by Simon Josefsson.
30740
30741 2010-03-27  Bruno Haible  <bruno@clisp.org>
30742
30743         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30744         * modules/getlogin (configure.ac): Update.
30745
30746         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30747         * modules/getlogin_r (configure.ac): Update.
30748
30749         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30750         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30751         * modules/inet_ntop (configure.ac): Update.
30752
30753         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30754         * modules/inet_pton (configure.ac): Update.
30755
30756         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30757         * modules/mbslen (configure.ac): Update.
30758
30759         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30760         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30761         * modules/forkpty (configure.ac): Update.
30762         * modules/openpty (configure.ac): Update.
30763
30764 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30765
30766         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30767         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30768
30769 2010-03-25  Eric Blake  <eblake@redhat.com>
30770
30771         maint: use pragma consistently across replacement headers
30772         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30773         * lib/dirent.in.h (system_header): Likewise.
30774         * lib/errno.in.h (system_header): Likewise.
30775         * lib/float.in.h (system_header): Likewise.
30776         * lib/getopt.in.h (system_header): Likewise.
30777         * lib/iconv.in.h (system_header): Likewise.
30778         * lib/inttypes.in.h (system_header): Likewise.
30779         * lib/langinfo.in.h (system_header): Likewise.
30780         * lib/locale.in.h (system_header): Likewise.
30781         * lib/math.in.h (system_header): Likewise.
30782         * lib/netdb.in.h (system_header): Likewise.
30783         * lib/netinet_in.in.h (system_header): Likewise.
30784         * lib/pty.in.h (system_header): Likewise.
30785         * lib/sched.in.h (system_header): Likewise.
30786         * lib/se-selinux.in.h (system_header): Likewise.
30787         * lib/search.in.h (system_header): Likewise.
30788         * lib/spawn.in.h (system_header): Likewise.
30789         * lib/stdarg.in.h (system_header): Likewise.
30790         * lib/stdint.in.h (system_header): Likewise.
30791         * lib/string.in.h (system_header): Likewise.
30792         * lib/strings.in.h (system_header): Likewise.
30793         * lib/sys_file.in.h (system_header): Likewise.
30794         * lib/sys_ioctl.in.h (system_header): Likewise.
30795         * lib/sys_socket.in.h (system_header): Likewise.
30796         * lib/sys_times.in.h (system_header): Likewise.
30797         * lib/sys_utsname.in.h (system_header): Likewise.
30798         * lib/sys_wait.in.h (system_header): Likewise.
30799         * lib/sysexits.in.h (system_header): Likewise.
30800         * lib/unistd.in.h (system_header): Likewise.
30801         * lib/wctype.in.h (system_header): Likewise.
30802
30803         arpa/inet: fix mingw compilation warning
30804         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30805         Reported by Matthew Bolte.
30806
30807 2010-03-25  Bruno Haible  <bruno@clisp.org>
30808
30809         Avoid collision between gnulib wrapper and libintl wrapper.
30810         * lib/printf.c (printf): Don't define if a printf wrapper is already
30811         defined in intl/printf.c.
30812         Reported by Michel Boaventura <michel@michelboaventura.com>.
30813
30814 2010-03-25  Bruno Haible  <bruno@clisp.org>
30815
30816         Use ANSI C.
30817         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30818
30819 2010-03-25  Bruno Haible  <bruno@clisp.org>
30820
30821         Minor formatting changes.
30822         * lib/acosl.c: Insert space before function argument list.
30823         * lib/argz.c: Likewise.
30824         * lib/asinl.c: Likewise.
30825         * lib/expl.c: Likewise.
30826         * lib/gen-uni-tables.c: Likewise.
30827         * lib/gettext.h: Likewise.
30828         * lib/glthread/lock.h: Likewise.
30829         * lib/tanl.c: Likewise.
30830         * lib/uniname/uniname.c: Likewise.
30831         * tests/test-idpriv-drop.c: Likewise.
30832         * tests/test-idpriv-droptemp.c: Likewise.
30833         * tests/test-lock.c: Likewise.
30834         * tests/test-tls.c: Likewise.
30835         * lib/argp-help.c: Insert space before function-like macro argument
30836         list.
30837         * lib/memcmp.c: Likewise.
30838         * tests/test-base64.c: Likewise.
30839         * lib/localename.c: Insert space before sizeof's argument list.
30840         * lib/safe-alloc.h: Likewise.
30841         * lib/file-set.h: Insert space before macro argument list.
30842         * tests/test-argp.c: Likewise.
30843         * lib/argp-namefrob.h: Insert space before function parameter list.
30844         * lib/getaddrinfo.c: Likewise.
30845         * lib/netdb.in.h: Likewise.
30846         * lib/parse-duration.h: Likewise.
30847         * lib/parse-duration.c: Likewise.
30848         * lib/poll.c: Likewise.
30849         * lib/select.c: Likewise.
30850         * lib/trim.h: Likewise.
30851         * tests/test-usleep.c: Likewise.
30852         * lib/ldexpl.c: Insert space before function parameter list and before
30853         function argument list.
30854         * lib/logl.c: Likewise.
30855         * lib/sqrtl.c: Likewise.
30856         * lib/trim.c: Likewise.
30857         * lib/cosl.c: Use GNU style indentation. Insert space before function
30858         argument list.
30859         * lib/sinl.c: Likewise.
30860         * lib/tsearch.c: Insert space after 'for'.
30861         Reported by Jim Meyering.
30862
30863 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30864
30865         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30866         config header before grepping, as it's not present before
30867         autoreconf/configure are run.  Reported by Simon Josefsson.
30868
30869 2010-03-23  Bruno Haible  <bruno@clisp.org>
30870
30871         pt_chown: Make it work with automake < 1.11.
30872         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30873         Reported by Simon Josefsson.
30874
30875 2010-03-23  Bruno Haible  <bruno@clisp.org>
30876
30877         pt_chown: Don't depend on GPLed modules.
30878         * lib/pt_chown.c: Don't include idpriv.h.
30879         (main): Don't drop privileges.
30880         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30881         Reported by Simon Josefsson.
30882
30883 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30884
30885         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30886         suggestions from karl@freefriends.org (Karl Berry).
30887
30888 2010-03-22  Eric Blake  <eblake@redhat.com>
30889
30890         gethostname: further tweaks
30891         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30892         are overriding gethostname.
30893         Suggested by Bruno Haible.
30894
30895 2010-03-21  Bruno Haible  <bruno@clisp.org>
30896
30897         Fix comments.
30898         * lib/forkpty.c (rpl_forkpty): Fix comment.
30899         * lib/openpty.c (rpl_openpty): Likewise.
30900         Reported by Eric Blake.
30901
30902 2010-03-22  Eric Blake  <eblake@redhat.com>
30903
30904         gethostname: fix build on mingw
30905         * lib/unistd.in.h (includes): Work around fact that mingw
30906         <winsock2.h> re-includes <unistd.h>, by avoiding any
30907         redeclarations if we are being included by <winsock2.h>.
30908         Reported by Matthias Bolte.
30909
30910 2010-03-21  Bruno Haible  <bruno@clisp.org>
30911
30912         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30913         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30914         modifications.
30915         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30916         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30917         provide the replacement.
30918         * modules/forkpty (Depends-on): Add openpty, login_tty.
30919         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30920         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30921         * doc/glibc-functions/forkpty.texi: More supported platforms.
30922         * config/srclist.txt: Add forkpty.c (commented).
30923
30924 2010-03-21  Bruno Haible  <bruno@clisp.org>
30925
30926         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30927         (Makefile.am): Verify that PTY_LIB is defined.
30928
30929         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30930
30931 2010-03-21  Bruno Haible  <bruno@clisp.org>
30932
30933         Tests for module 'login_tty'.
30934         * modules/login_tty-tests: New file.
30935         * tests/test-login_tty.c: New file.
30936
30937         New module 'login_tty'.
30938         * lib/login_tty.c: New file.
30939         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30940         * modules/login_tty: New file.
30941         * doc/glibc-functions/login_tty.texi: Mention the new module.
30942
30943 2010-03-21  Bruno Haible  <bruno@clisp.org>
30944
30945         login_tty: Documentation.
30946         * doc/glibc-functions/login_tty.texi: New file.
30947         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30948
30949 2010-03-21  Bruno Haible  <bruno@clisp.org>
30950
30951         pty: Consistent macro naming.
30952         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30953         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30954         * modules/pty (configure.ac): Update.
30955
30956 2010-03-21  Bruno Haible  <bruno@clisp.org>
30957
30958         Tests for openpty: Make stricter.
30959         * tests/test-openpty.c (main): Add test of canonical processing and
30960         erase.
30961         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30962
30963         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30964         * lib/openpty.c (openpty): New replacement function.
30965         * lib/pty.in.h: Include <termios.h>.
30966         (openpty): Update declaration. Add comments.
30967         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30968         is not declared, arrange to provide the replacement. Check for _getpty
30969         and posix_openpt.
30970         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30971         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30972         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30973         * modules/pty-tests (test_pty_c___LDADD): New variable.
30974         * doc/glibc-functions/openpty.texi: More supported platforms.
30975
30976 2010-03-21  Bruno Haible  <bruno@clisp.org>
30977
30978         setenv: Tweaks.
30979         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30980         the test program.
30981         * doc/posix-functions/setenv.texi: Update platforms list.
30982
30983 2010-03-21  Bruno Haible  <bruno@clisp.org>
30984
30985         New module 'unlockpt'.
30986         * lib/unlockpt.c: New file, from glibc with modifications.
30987         * m4/unlockpt.m4: New file.
30988         * modules/unlockpt: New file.
30989         * lib/stdlib.in.h (unlockpt): New declaration.
30990         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30991         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30992         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30993         HAVE_UNLOCKPT.
30994         * doc/posix-functions/unlockpt.texi: Mention the new module.
30995         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30996         * config/srclist.txt: Add unlockpt.c (commented).
30997
30998 2010-03-21  Jim Meyering  <meyering@redhat.com>
30999
31000         maint.mk: prohibit inclusion of "intprops.h" without use
31001         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31002
31003 2010-03-21  Bruno Haible  <bruno@clisp.org>
31004
31005         New module 'grantpt'.
31006         * lib/grantpt.c: New file, from glibc with modifications.
31007         * m4/grantpt.m4: New file.
31008         * modules/grantpt: New file.
31009         * lib/stdlib.in.h (grantpt): New declaration.
31010         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31011         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31012         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31013         HAVE_GRANTPT.
31014         * doc/posix-functions/grantpt.texi: Mention the new module.
31015         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31016         * config/srclist.txt: Add grantpt.c (commented).
31017
31018 2010-03-21  Bruno Haible  <bruno@clisp.org>
31019
31020         New module 'pt_chown'.
31021         * lib/pt_chown.c: New file, from glibc with modifications.
31022         * lib/pty-private.h: New file, from glibc with modifications.
31023         * modules/pt_chown: New file.
31024         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31025
31026 2010-03-21  Bruno Haible  <bruno@clisp.org>
31027
31028         Tests for module 'ptsname'.
31029         * modules/ptsname-tests: New file.
31030         * tests/test-ptsname.c: New file.
31031
31032         New module 'ptsname'.
31033         * lib/ptsname.c: New file, from glibc with modifications.
31034         * m4/ptsname.m4: New file.
31035         * modules/ptsname: New file.
31036         * lib/stdlib.in.h (ptsname): New declaration.
31037         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31038         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31039         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31040         HAVE_PTSNAME.
31041         * doc/posix-functions/ptsname.texi: Mention the new module.
31042         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31043         * config/srclist.txt: Add ptsname.c (commented).
31044
31045 2010-03-21  Bruno Haible  <bruno@clisp.org>
31046
31047         Tests for module 'ttyname_r'.
31048         * modules/ttyname_r-tests: New file.
31049         * tests/test-ttyname_r.c: New file.
31050
31051         New module 'ttyname_r'.
31052         * lib/ttyname_r.c: New file.
31053         * m4/ttyname_r.m4: New file.
31054         * modules/ttyname_r: New file.
31055         * lib/unistd.in.h (ttyname_r): New declaration.
31056         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31057         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31058         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31059         HAVE_TTYNAME_R.
31060         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31061         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31062
31063 2010-03-20  Bruno Haible  <bruno@clisp.org>
31064
31065         signal: Undefine macro definitions in C++ mode.
31066         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31067         sigfillset): Undefine macro definitions from the system header in C++
31068         mode.
31069         Reported by John W. Eaton <jwe@gnu.org>.
31070
31071 2010-03-20  Bruno Haible  <bruno@clisp.org>
31072
31073         Ensure no #include statements inside extern "C" { ... }.
31074         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31075         contain #include statements.
31076         * lib/time.in.h: Likewise.
31077
31078 2010-03-20  Bruno Haible  <bruno@clisp.org>
31079
31080         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31081         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31082         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31083         Reported by John W. Eaton <jwe@gnu.org>.
31084
31085 2010-03-20  Bruno Haible  <bruno@clisp.org>
31086
31087         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31088         Reported by Jim Meyering.
31089
31090 2010-03-20  Bruno Haible  <bruno@clisp.org>
31091
31092         pipe: Set errno upon failure.
31093         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31094         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31095         errno value in error message.
31096
31097 2010-03-20  Bruno Haible  <bruno@clisp.org>
31098             Jim Meyering  <meyering@redhat.com>
31099
31100         lchown: Avoid "unused variable" warning.
31101         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31102
31103 2010-03-20  Bruno Haible  <bruno@clisp.org>
31104
31105         Work around unlink() bug on MacOS X 10.5.6.
31106         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31107         attempting to unlink a parent directory.
31108         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31109         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31110         activate for the replacement function.
31111         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31112
31113 2010-03-20  Bruno Haible  <bruno@clisp.org>
31114
31115         Fix link errors on Solaris 8.
31116         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31117         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31118
31119 2010-03-19  Jim Meyering  <meyering@redhat.com>
31120
31121         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31122         The _LIBC implementation of build_range_exp correctly honors the
31123         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31124         However, the non-_LIBC implementation would ignore that syntax-bit
31125         flag and return REG_ERANGE unconditionally.
31126         This change makes it honor that flag.
31127         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31128         Make two pointer parameters "const".
31129         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31130         (parse_bracket_exp): Update caller.
31131
31132         regex.m4: correct the reversed range endpoint ([b-a]) test
31133         * m4/regex.m4: When requiring that [b-a] evoke failure,
31134         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31135         test pass once again for x86-based systems.
31136
31137 2010-03-19  Bruno Haible  <bruno@clisp.org>
31138
31139         scandir: Fix link error on Solaris 8.
31140         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31141         macros.
31142
31143 2010-03-19  Bruno Haible  <bruno@clisp.org>
31144
31145         getusershell: Fix documentation.
31146         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31147         module.
31148         * doc/glibc-functions/setusershell.texi: Likewise.
31149
31150         getusershell: Provide declaration, missing on Solaris 9.
31151         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31152         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31153         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31154         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31156         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31157         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31158         HAVE_GETUSERSHELL.
31159         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31160
31161 2010-03-19  Bruno Haible  <bruno@clisp.org>
31162
31163         wctype: Provide iswblank function.
31164         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31165         exists and is fine.
31166         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31167         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31168         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31169         * doc/posix-functions/iswblank.texi: Update.
31170
31171 2010-03-19  Bruno Haible  <bruno@clisp.org>
31172
31173         Tests of module 'pty' in C++ mode.
31174         * modules/pty-tests: New file.
31175         * tests/test-pty-c++.cc: New file.
31176         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31177
31178 2010-03-19  Eric Blake  <eblake@redhat.com>
31179
31180         logb: fix documentation
31181         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31182         1.5 declaration bug.
31183
31184         forkpty, openpty: prefer glibc's const-safe prototype
31185         * lib/forkpty.c (rpl_forkpty): New file.
31186         * lib/openpty.c (rpl_openpty): Likewise.
31187         * modules/forkpty (Files): Distribute it.
31188         * modules/openpty (Files): Likewise.
31189         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31190         check...
31191         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31192         replacement for for non-const BSD signature.
31193         * modules/pty (Makefile.am): Substitute witnesses.
31194         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31195         * tests/test-forkpty.c: Update signature check.
31196         * tests/test-openpty.c: Likewise.
31197         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31198         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31199
31200         forkpty, openpty: split functions into new modules
31201         * modules/pty (Makefile.am): Substitute new witnesses.
31202         (Libraries): Move library detection...
31203         * modules/forkpty: ...into new module.
31204         * modules/openpty: Another new module.
31205         * modules/pty-tests: Rename and split...
31206         * modules/forkpty-tests: ...to this...
31207         * modules/openpty-tests: ...and this.
31208         * tests/test-pty.c: Rename and split...
31209         * tests/test-forkpty.c: ...to this...
31210         * tests/test-openpty.c: ...and this.
31211         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31212         (gl_PTY): Split library searching...
31213         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31214         (gl_FORKPTY, gl_OPENPTY): New macros.
31215         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31216         * NEWS: Mention the split.
31217         * MODULES.html.sh (Misc): Document the modules.
31218         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31219         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31220
31221         pty: improve replacement header
31222         * lib/pty.in.h: New file.
31223         * modules/pty (Files): Ship it.
31224         (Makefile.am): Always build replacement.
31225         * m4/pty.m4: Rename...
31226         * m4/pty_h.m4: ...to this.
31227         (gl_PTY): Modernize setting of witness macros; update check of
31228         forkpty to take proper advantage of cache.
31229         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31230
31231         getopt: avoid compiler warning
31232         * lib/getopt.c (attribute_hidden): Remove unused macro.
31233
31234 2010-03-18  Bruno Haible  <bruno@clisp.org>
31235
31236         Fix link errors on Solaris 8.
31237         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31238         * modules/search-tests (test_search_c___LDADD): Likewise.
31239         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31240         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31241         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31242         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31243         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31244         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31245         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31246
31247 2010-03-18  Bruno Haible  <bruno@clisp.org>
31248
31249         Fix bug introduced on 2010-03-14.
31250         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31251         (gl_SPAWN_H): Require it.
31252         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31253         Reported by Simon Josefsson.
31254
31255 2010-03-18  Bruno Haible  <bruno@clisp.org>
31256
31257         Fix typo introduced on 2009-12-31.
31258         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31259         posix_spawn_file_actions_adddup2.
31260
31261 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31262         and Eric Blake  <eblake@redhat.com>
31263
31264         test-vc-list-files-git: make more robust
31265         * tests/test-vc-list-files-git.sh: Unset problematic environment
31266         variables.  Chain commands together.
31267
31268 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31269
31270         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31271         `AC_CHECK_DECL' invocation.
31272
31273 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31274
31275         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31276         appears before executable statements. Suggested by Petr Sumbera
31277         <Petr.Sumbera@Sun.COM>.
31278
31279 2010-03-14  Bruno Haible  <bruno@clisp.org>
31280
31281         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31282         portability problems. Instead use a simpler test.
31283         (main): Check that invalid arguments are rejected only on Linux.
31284
31285 2010-03-14  Bruno Haible  <bruno@clisp.org>
31286
31287         Fix bug introduced on 2009-12-31.
31288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31289         gl_PREREQ_SYS_H_WINSOCK2 always.
31290         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31291         SYS_SOCKET_H variable.
31292         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31293         Update comments.
31294         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31295         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31296         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31297         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31298         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31299
31300 2010-03-14  Bruno Haible  <bruno@clisp.org>
31301
31302         Fix values returned by sinl, cosl.
31303         * lib/trigl.h: Add specification comments.
31304         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31305         that combines the values from the precomputed table with the values of
31306         the Chebyshev polynomials.
31307
31308 2010-03-14  Bruno Haible  <bruno@clisp.org>
31309
31310         Fix compilation error when modules 'posix_spawn[p]' are not used.
31311         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31312         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31313
31314 2010-03-14  Bruno Haible  <bruno@clisp.org>
31315
31316         Fix compilation error on mingw when module 'time_r' is not used.
31317         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31318         is 1.
31319         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31320         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31321         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31322         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31323
31324 2010-03-14  Bruno Haible  <bruno@clisp.org>
31325
31326         Fix compilation error with Sun C.
31327         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31328         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31329         instead of GCC specific ULONG_LONG_MAX.
31330         * lib/xstrtoll.c: Likewise.
31331         * lib/xstrtoull.c: Likewise.
31332
31333 2010-03-13  Bruno Haible  <bruno@clisp.org>
31334
31335         Allow the user to disable C++ code and tests.
31336         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31337         (gl_PROG_ANSI_CXX): Require it.
31338
31339 2010-03-13  Bruno Haible  <bruno@clisp.org>
31340
31341         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31342         cases.
31343
31344 2010-03-13  Bruno Haible  <bruno@clisp.org>
31345
31346         Test that gnulib does not break the standard C++ headers.
31347         * tests/test-locale-c++2.cc: New file.
31348         * modules/locale-tests (Files): Add it.
31349         (Makefile.am): Compile it for test-locale-c++.
31350         * tests/test-math-c++2.cc: New file.
31351         * modules/math-tests (Files): Add it.
31352         (Makefile.am): Compile it for test-math-c++.
31353         * tests/test-signal-c++2.cc: New file.
31354         * modules/signal-tests (Files): Add it.
31355         (Makefile.am): Compile it for test-signal-c++.
31356         * tests/test-stdio-c++2.cc: New file.
31357         * modules/stdio-tests (Files): Add it.
31358         (Makefile.am): Compile it for test-stdio-c++.
31359         * tests/test-stdlib-c++2.cc: New file.
31360         * modules/stdlib-tests (Files): Add it.
31361         (Makefile.am): Compile it for test-stdlib-c++.
31362         * tests/test-string-c++2.cc: New file.
31363         * modules/string-tests (Files): Add it.
31364         (Makefile.am): Compile it for test-string-c++.
31365         * tests/test-time-c++2.cc: New file.
31366         * modules/time-tests (Files): Add it.
31367         (Makefile.am): Compile it for test-time-c++.
31368         Reported by John W. Eaton <jwe@gnu.org>.
31369
31370 2010-03-13  Bruno Haible  <bruno@clisp.org>
31371
31372         * gnulib-tool (func_usage): Clarify which options are available for
31373         --create-testdir and --create-megatestdir.
31374
31375 2010-03-13  Bruno Haible  <bruno@clisp.org>
31376
31377         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31378         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31379         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31380         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31381         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31382         when appropriate.
31383         Reported by Jim Meyering.
31384
31385 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31386
31387         * gnulib-tool (func_import): Explain origin of code.
31388
31389 2010-03-12  Bruno Haible  <bruno@clisp.org>
31390
31391         Fix problem with automake's definition of CXXLINK.
31392         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31393         Reported by Simon Josefsson and Ludovic Courtès.
31394
31395 2010-03-12  Bruno Haible  <bruno@clisp.org>
31396
31397         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31398         stable releases.
31399
31400 2010-03-11  Bruno Haible  <bruno@clisp.org>
31401
31402         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31403         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31404         whether the system provides one variant or multiple variants of the
31405         function.
31406         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31407         C++ compilers.
31408         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31409         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31410         Reported by Jim Meyering.
31411
31412 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31413
31414         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31415
31416 2010-03-08  Bruno Haible  <bruno@clisp.org>
31417
31418         gnulib-tool: Add support for --libtool in --create-testdir.
31419         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31420         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31421
31422 2010-03-08  Eric Blake  <eblake@redhat.com>
31423
31424         gnulib-tool.texi: mention possibility of git submodule
31425         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31426         submodules.
31427         * doc/.gitignore: Ignore another generated file.
31428
31429 2010-03-08  Karl Berry  <karl@gnu.org>
31430
31431         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31432         of committing gnulib files while skipping others.
31433
31434 2010-03-07  Bruno Haible  <bruno@clisp.org>
31435
31436         Tests of module 'wctype' in C++ mode.
31437         * tests/test-wctype-c++.cc: New file.
31438         * modules/wctype-tests (Files): Add it and tests/signature.h.
31439         (Depends-on): Add ansi-c++-opt.
31440         (Makefile.am): Arrange to compile and run test-wctype-c++.
31441
31442         Tests of module 'wchar' in C++ mode.
31443         * tests/test-wchar-c++.cc: New file.
31444         * modules/wchar-tests (Files): Add it and tests/signature.h.
31445         (Depends-on): Add ansi-c++-opt.
31446         (Makefile.am): Arrange to compile and run test-wchar-c++.
31447         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31448         gl_MODULE_INDICATOR.
31449
31450         Tests of module 'unistd' in C++ mode.
31451         * tests/test-unistd-c++.cc: New file.
31452         * modules/unistd-tests (Files): Add it and tests/signature.h.
31453         (Depends-on): Add ansi-c++-opt.
31454         (Makefile.am): Arrange to compile and run test-unistd-c++.
31455         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31456         gl_MODULE_INDICATOR.
31457
31458         Tests of module 'time' in C++ mode.
31459         * tests/test-time-c++.cc: New file.
31460         * modules/time-tests (Files): Add it and tests/signature.h.
31461         (Depends-on): Add ansi-c++-opt.
31462         (Makefile.am): Arrange to compile and run test-time-c++.
31463         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31464
31465         Tests of module 'sys_time' in C++ mode.
31466         * tests/test-sys_time-c++.cc: New file.
31467         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31468         (Depends-on): Add ansi-c++-opt.
31469         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31470         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31471         gl_MODULE_INDICATOR.
31472
31473         Tests of module 'sys_stat' in C++ mode.
31474         * tests/test-sys_stat-c++.cc: New file.
31475         * modules/sys_stat-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_stat-c++.
31478         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31479         gl_MODULE_INDICATOR.
31480
31481         Tests of module 'sys_socket' in C++ mode.
31482         * tests/test-sys_socket-c++.cc: New file.
31483         * modules/sys_socket-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_socket-c++.
31486         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31487         gl_MODULE_INDICATOR.
31488
31489         Tests of module 'sys_select' in C++ mode.
31490         * tests/test-sys_select-c++.cc: New file.
31491         * modules/sys_select-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_select-c++.
31494         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31495         gl_MODULE_INDICATOR.
31496
31497         Tests of module 'sys_ioctl' in C++ mode.
31498         * tests/test-sys_ioctl-c++.cc: New file.
31499         * modules/sys_ioctl-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_ioctl-c++.
31502         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31503         gl_MODULE_INDICATOR.
31504
31505         Tests of module 'string' in C++ mode.
31506         * tests/test-string-c++.cc: New file.
31507         * modules/string-tests (Files): Add it and tests/signature.h.
31508         (Depends-on): Add ansi-c++-opt.
31509         (Makefile.am): Arrange to compile and run test-string-c++.
31510         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31511         gl_MODULE_INDICATOR.
31512
31513         Tests of module 'stdlib' in C++ mode.
31514         * tests/test-stdlib-c++.cc: New file.
31515         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31516         (Depends-on): Add ansi-c++-opt.
31517         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31518         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31519         gl_MODULE_INDICATOR.
31520
31521         Tests of module 'stdio' in C++ mode.
31522         * tests/test-stdio-c++.cc: New file.
31523         * modules/stdio-tests (Files): Add it and tests/signature.h.
31524         (Depends-on): Add ansi-c++-opt.
31525         (Makefile.am): Arrange to compile and run test-stdio-c++.
31526         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31527         gl_MODULE_INDICATOR.
31528
31529         Tests of module 'spawn' in C++ mode.
31530         * tests/test-spawn-c++.cc: New file.
31531         * modules/spawn-tests (Files): Add it and tests/signature.h.
31532         (Depends-on): Add ansi-c++-opt.
31533         (Makefile.am): Arrange to compile and run test-spawn-c++.
31534         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31535         gl_MODULE_INDICATOR.
31536
31537         Tests of module 'signal' in C++ mode.
31538         * tests/test-signal-c++.cc: New file.
31539         * modules/signal-tests (Files): Add it and tests/signature.h.
31540         (Depends-on): Add ansi-c++-opt.
31541         (Makefile.am): Arrange to compile and run test-signal-c++.
31542         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31543         gl_MODULE_INDICATOR.
31544
31545         Tests of module 'search' in C++ mode.
31546         * tests/test-search-c++.cc: New file.
31547         * modules/search-tests (Files): Add it and tests/signature.h.
31548         (Depends-on): Add ansi-c++-opt.
31549         (Makefile.am): Arrange to compile and run test-search-c++.
31550         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31551         gl_MODULE_INDICATOR.
31552
31553         Tests of module 'math' in C++ mode.
31554         * tests/test-math-c++.cc: New file.
31555         * modules/math-tests (Files): Add it and tests/signature.h.
31556         (Depends-on): Add ansi-c++-opt.
31557         (Makefile.am): Arrange to compile and run test-math-c++.
31558         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31559
31560         Tests of module 'locale' in C++ mode.
31561         * tests/test-locale-c++.cc: New file.
31562         * modules/locale-tests (Files): Add it and tests/signature.h.
31563         (Depends-on): Add ansi-c++-opt.
31564         (Makefile.am): Arrange to compile and run test-locale-c++.
31565         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31566         gl_MODULE_INDICATOR.
31567
31568         Tests of module 'langinfo' in C++ mode.
31569         * tests/test-langinfo-c++.cc: New file.
31570         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31571         (Depends-on): Add ansi-c++-opt.
31572         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31573         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31574         gl_MODULE_INDICATOR.
31575
31576         Tests of module 'iconv-h' in C++ mode.
31577         * tests/test-iconv-h-c++.cc: New file.
31578         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31579         (Depends-on): Add ansi-c++-opt.
31580         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31581
31582         Tests of module 'glob' in C++ mode.
31583         * tests/test-glob-c++.cc: New file.
31584         * modules/glob-tests (Files): Add it.
31585         (Depends-on): Add ansi-c++-opt.
31586         (Makefile.am): Arrange to compile and run test-glob-c++.
31587
31588         Tests of module 'fcntl-h' in C++ mode.
31589         * tests/test-fcntl-h-c++.cc: New file.
31590         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31591         (Depends-on): Add ansi-c++-opt.
31592         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31593         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31594         gl_MODULE_INDICATOR.
31595
31596         Tests of module 'dirent' in C++ mode.
31597         * tests/test-dirent-c++.cc: New file.
31598         * modules/dirent-tests (Files): Add it and tests/signature.h.
31599         (Depends-on): Add ansi-c++-opt.
31600         (Makefile.am): Arrange to compile and run test-dirent-c++.
31601         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31602         gl_MODULE_INDICATOR.
31603
31604         New module 'ansi-c++-opt'.
31605         * modules/ansi-c++-opt: New file.
31606         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31607
31608         Document C++ namespace mode.
31609         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31610
31611         wctype: Avoid #define replacements in C++ mode.
31612         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31613         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31614         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31615         In C++, define a namespaced alias symbol.
31616         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31617         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31618         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31619         rule.
31620
31621         wchar: Avoid #define replacements in C++ mode.
31622         * lib/wchar.in.h: Include c++defs.h.
31623         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31624         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31625         symbol.
31626         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31627         * modules/wchar (Depends-on): Add c++defs.
31628         (Makefile.am): Update wchar.h rule.
31629
31630         unistd: Avoid #define replacements in C++ mode.
31631         * lib/unistd.in.h: Include c++defs.h.
31632         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31633         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31634         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31635         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31636         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31637         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31638         symbol.
31639         (environ): Update.
31640         * modules/unistd (Depends-on): Add c++defs.
31641         (Makefile.am): Update unistd.h rule.
31642
31643         time: Avoid #define replacements in C++ mode.
31644         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31645         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31646         define a namespaced alias symbol.
31647         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31648         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31649         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31650         * modules/time (Depends-on): Add c++defs, warn-on-use.
31651         (Makefile.am): Update time.h rule.
31652         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31653         * modules/nanosleep (configure.ac): Likewise.
31654         * modules/strptime (configure.ac): Likewise.
31655         * modules/timegm (configure.ac): Likewise.
31656
31657         sys_time: Avoid #define replacements in C++ mode.
31658         * lib/sys_time.in.h: Include c++defs.h.
31659         (gettimeofday): In C++, define a namespaced alias symbol.
31660         * modules/sys_time (Depends-on): Add c++defs.
31661         (Makefile.am): Update sys/time.h rule.
31662
31663         sys_stat: Avoid #define replacements in C++ mode.
31664         * lib/sys_stat.in.h: Include c++defs.h.
31665         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31666         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31667         namespaced alias symbol.
31668         In C++, define a namespaced alias symbol.
31669         * modules/sys_stat (Depends-on): Add c++defs.
31670         (Makefile.am): Update sys/stat.h rule.
31671
31672         sys_socket: Avoid #define replacements in C++ mode.
31673         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31674         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31675         definitions also when the system has a <sys/socket.h>.
31676         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31677         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31678         In C++, define a namespaced alias symbol.
31679         * modules/sys_socket (Depends-on): Add c++defs.
31680         (Makefile.am): Update sys/socket.h rule.
31681
31682         sys_select: Avoid #define replacements in C++ mode.
31683         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31684         definitions also when the system has a <sys/select.h>.
31685         (select): In C++, define a namespaced alias symbol.
31686         * modules/sys_select (Depends-on): Add c++defs.
31687         (Makefile.am): Update sys/select.h rule.
31688
31689         sys_ioctl: Avoid #define replacements in C++ mode.
31690         * lib/sys_ioctl.in.h: Include c++defs.h.
31691         (ioctl): In C++, define a namespaced alias symbol.
31692         * modules/sys_ioctl (Depends-on): Add c++defs.
31693         (Makefile.am): Update sys/ioctl.h rule.
31694
31695         string: Avoid #define replacements in C++ mode.
31696         * lib/string.in.h: Include c++defs.h.
31697         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31698         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31699         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31700         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31701         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31702         * modules/string (Depends-on): Add c++defs.
31703         (Makefile.am): Update string.h rule.
31704
31705         stdlib: Avoid #define replacements in C++ mode.
31706         * lib/stdlib.in.h: Include c++defs.h.
31707         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31708         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31709         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31710         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31711         symbol.
31712         * modules/stdlib (Depends-on): Add c++defs.
31713         (Makefile.am): Update stdlib.h rule.
31714
31715         stdio: Avoid #define replacements in C++ mode.
31716         * lib/stdio.in.h: Include c++defs.h.
31717         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31718         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31719         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31720         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31721         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31722         namespaced alias symbol.
31723         * modules/stdio (Depends-on): Add c++defs.
31724         (Makefile.am): Update stdio.h rule.
31725
31726         spawn: Avoid #define replacements in C++ mode.
31727         * lib/spawn.in.h: Include c++defs.h.
31728         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31729         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31730         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31731         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31732         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31733         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31734         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31735         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31736         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31737         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31738         In C++, define a namespaced alias symbol.
31739         * modules/spawn (Depends-on): Add c++defs.
31740         (Makefile.am): Update spawn.h rule.
31741
31742         signal: Avoid #define replacements in C++ mode.
31743         * lib/signal.in.h: Include c++defs.h.
31744         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31745         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31746         namespaced alias symbol.
31747         * modules/signal (Depends-on): Add c++defs.
31748         (Makefile.am): Update signal.h rule.
31749
31750         search: Avoid #define replacements in C++ mode.
31751         * lib/search.in.h: Include c++defs.h.
31752         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31753         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31754         symbol.
31755         * modules/search (Depends-on): Add c++defs.
31756         (Makefile.am): Update search.h rule.
31757
31758         math: Avoid #define replacements in C++ mode.
31759         * lib/math.in.h: Include c++defs.h.
31760         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31761         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31762         trunc, truncl): In C++, define a namespaced alias symbol.
31763         * modules/math (Depends-on): Add c++defs.
31764         (Makefile.am): Update math.h rule.
31765
31766         locale: Avoid #define replacements in C++ mode.
31767         * lib/locale.in.h: Include c++defs.h.
31768         (duplocale): In C++, define a namespaced alias symbol.
31769         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31770         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31771         * modules/locale (Depends-on): Add c++defs.
31772         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31773
31774         langinfo: Avoid #define replacements in C++ mode.
31775         * lib/langinfo.in.h: Include c++defs.h.
31776         (nl_langinfo): In C++, define a namespaced alias symbol.
31777         * modules/langinfo (Depends-on): Add c++defs.
31778         (Makefile.am): Update langinfo.h rule.
31779
31780         iconv-h: Avoid #define replacements in C++ mode.
31781         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31782         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31783         symbol.
31784         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31785         whenever iconv is present.
31786         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31787         (Makefile.am): Update iconv.h rule.
31788
31789         glob: Avoid #define replacements in C++ mode.
31790         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31791         (_gl_glob_errfunc_fn): New type.
31792         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31793         symbol.
31794         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31795         (Makefile.am): Update glob.h rule.
31796
31797         fcntl-h: Avoid #define replacements in C++ mode.
31798         * lib/fcntl.in.h: Include c++defs.h.
31799         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31800         * modules/fcntl-h (Depends-on): Add c++defs.
31801         (Makefile.am): Update fcntl.h rule.
31802
31803         dirent: Avoid #define replacements in C++ mode.
31804         * lib/dirent.in.h: Include c++defs.h.
31805         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31806         namespaced alias symbol.
31807         (dirfd): Update declaration.
31808         * modules/dirent (Depends-on): Add c++defs.
31809         (Makefile.am): Update dirent.h rule.
31810
31811         ctype: Make it usable in C++ code.
31812         * lib/ctype.in.h: Include c++defs.h.
31813         (isblank): Declare as extern "C".
31814         * modules/ctype (Depends-on): Add c++defs.
31815         (Makefile.am): Update ctype.h rule.
31816
31817         New module 'c++defs'.
31818         * modules/c++defs: New file.
31819         * build-aux/c++defs.h: New file.
31820         Reported by John W. Eaton <jwe@gnu.org>.
31821
31822 2010-03-07  Bruno Haible  <bruno@clisp.org>
31823
31824         logb: Provide missing declaration for Cygwin.
31825         * lib/math.in.h (logb): New declaration.
31826         * m4/logb.m4: New file.
31827         * modules/logb (Files): Add m4/logb.m4.
31828         (Depends-on): Add math.
31829         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31830         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31832         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31833         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31834
31835 2010-03-07  Bruno Haible  <bruno@clisp.org>
31836
31837         Fix test-cond link error.
31838         * tests/test-cond.c: Include <stdio.h>.
31839
31840 2010-03-07  Bruno Haible  <bruno@clisp.org>
31841
31842         Fix test-dirent-safer link error.
31843         * modules/dirent-safer-tests (Makefile.am): Define
31844         test_dirent_safer_LDADD.
31845
31846 2010-03-07  Bruno Haible  <bruno@clisp.org>
31847
31848         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31849         among default module list.
31850
31851 2010-03-07  Bruno Haible  <bruno@clisp.org>
31852
31853         Fix link error on platforms with GNU libiconv.
31854         * modules/unistr/u8-strcoll-tests (Makefile): Define
31855         test_u8_strcoll_LDADD.
31856         * modules/unistr/u16-strcoll-tests (Makefile): Define
31857         test_u16_strcoll_LDADD.
31858         * modules/unistr/u32-strcoll-tests (Makefile): Define
31859         test_u32_strcoll_LDADD.
31860
31861 2010-03-07  Bruno Haible  <bruno@clisp.org>
31862
31863         Use POSIX declarations for socket functions.
31864         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31865         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31866         rpl_sendto): Change declaration to match POSIX.
31867         * lib/connect.c (rpl_connect): Likewise.
31868         * lib/accept.c (rpl_accept): Likewise.
31869         * lib/bind.c (rpl_bind): Likewise.
31870         * lib/getpeername.c (rpl_getpeername): Likewise.
31871         * lib/getsockname.c (rpl_getsockname): Likewise.
31872         * lib/recv.c (rpl_recv): Likewise.
31873         * lib/send.c (rpl_send): Likewise.
31874         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31875         * lib/sendto.c (rpl_sendto): Likewise.
31876
31877 2010-03-06  Bruno Haible  <bruno@clisp.org>
31878
31879         Clarify access, euidaccess, faccessat.
31880         * doc/posix-functions/faccessat.texi: Mention security problem under
31881         "Other problems", not "Portability problems".
31882         * doc/posix-functions/access.texi: Likewise. Mention a related security
31883         problem.
31884         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31885         * lib/euidaccess.c: Add comments about platforms.
31886         * lib/unistd.in.h (access, euidaccess): Add warnings.
31887
31888 2010-03-07  Bruno Haible  <bruno@clisp.org>
31889
31890         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31891         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31892         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31893         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31894         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31895         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31896         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31897         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31898         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31899         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31900         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31901         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31902         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31903         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31904         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31905         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31906         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31907         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31908         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31909         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31910         Likewise.
31911         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31912         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31913         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31914         Likewise.
31915         * tests/test-spawn.c (main): Make it work when
31916         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31917
31918 2010-03-07  Bruno Haible  <bruno@clisp.org>
31919
31920         Fix incorrect Makefile.am generation in German locale.
31921         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31922         Execute sed command with character range in C locale.
31923
31924 2010-03-06  Bruno Haible  <bruno@clisp.org>
31925
31926         Tests for module 'iconv-h'.
31927         * modules/iconv-h-tests: New file.
31928         * tests/test-iconv-h.c: New file.
31929
31930         New module 'iconv-h'.
31931         * modules/iconv-h: New file.
31932         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31933         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31934         (configure.ac): Remove gl_ICONV_H.
31935         (Makefile.am): Remove rule for iconv.h.
31936
31937 2010-03-06  Bruno Haible  <bruno@clisp.org>
31938
31939         More consistent naming of *.m4 files.
31940         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31941         * modules/wctype (Files): Update.
31942
31943         More consistent naming of *.m4 files.
31944         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31945         * modules/wchar (Files): Update.
31946
31947 2010-03-06  Jim Meyering  <meyering@redhat.com>
31948
31949         euidaccess: relax license to LGPLv2+
31950         * modules/euidaccess (License): Relax to LGPLv2+.
31951
31952 2010-03-06  Bruno Haible  <bruno@clisp.org>
31953
31954         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31955         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31956         (Makefile.am): Augment lib_SOURCES instead.
31957
31958 2010-03-04  Jim Meyering  <meyering@redhat.com>
31959
31960         utime: remove obsolete module
31961         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31962         unnecessary for years, and has been marked as obsolete for 10 months.
31963         * modules/utime: Remove file.
31964         * lib/utime.c: Remove file.
31965         * m4/utime.m4: Remove file.
31966         * m4/utimes-null.m4: Remove file.
31967         * doc/posix-functions/utime.texi (utime): Remove reference to
31968         the module.  Move the sole "fixed by gnulib" item into the
31969         "problems not fixed by Gnulib" list.
31970         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31971
31972 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31973
31974         * modules/exit (License): Relax license to LGPLv2+.
31975         (Status): Mark as obsolete.
31976         * NEWS: Mention deprecated 'exit' module.
31977         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31978         of now obsolete 'exit'.
31979
31980 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31981
31982         fts-lgpl: remove unused module
31983         * modules/fts-lgpl: Remove.
31984         * MODULES.html.sh (func_all_modules): Adjust.
31985         * check-module (find_included_lib_files): Adjust.
31986         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31987
31988 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31989
31990         copy-acl: enhance Solaris ACL error handling
31991         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31992         * lib/set-mode-acl.c (qset_acl): Likewise.
31993
31994 2010-03-02  Bruno Haible  <bruno@clisp.org>
31995
31996         spawn: Don't override the system defined values on FreeBSD 8.
31997         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31998         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31999         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32000         if HAVE_POSIX_SPAWN is 1.
32001         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32002
32003 2010-03-01  Bruno Haible  <bruno@clisp.org>
32004
32005         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32006         regarding Automake.
32007
32008 2010-02-25  Bruno Haible  <bruno@clisp.org>
32009
32010         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32011         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32012         setting, not afterwards.
32013         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32014
32015 2010-02-24  Eric Blake  <eblake@redhat.com>
32016
32017         bootstrap, git-version-gen: use timestamp
32018         * build-aux/git-version-gen (scriptversion): Force UTC.
32019         * build-aux/bootstrap (scriptversion): New variable.
32020
32021         bootstrap: allow older git
32022         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32023         older than 1.6.4.  Requested by the libvirt project.
32024
32025 2010-02-23  Eric Blake  <eblake@redhat.com>
32026
32027         warn-on-use: work with old autoconf
32028         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32029         AS_VAR semantics of autoconf 2.60.
32030         Reported by Bruno Haible.
32031
32032         bootstrap: improve some comments
32033         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32034         clarification comments.
32035
32036         gettimeofday: provide correct function
32037         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32038         when replacement is declared, otherwise provide gettimeofday.
32039         Reported by Michael Goffioul.
32040
32041 2010-02-23  Jim Meyering  <meyering@redhat.com>
32042
32043         lib-ignore: relax license to "unlimited", not LGPLv2+
32044         * modules/lib-ignore (License): Relax to "unlimited".
32045
32046 2010-02-23  Jim Meyering  <meyering@redhat.com>
32047
32048         lib-ignore: relax license to LGPLv2+
32049         * modules/lib-ignore (License): Relax to LGPLv2+.
32050
32051 2010-02-22  Eric Blake  <eblake@redhat.com>
32052
32053         lseek: avoid bash 3.2 broken pipe bug
32054         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32055         warning from bash 3.2.
32056         Reported by Ben Pfaff, with analysis from Bruno Haible.
32057
32058         bootstrap: support non-FSF copyright holder
32059         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32060         bootstrap.conf override of COPYRIGHT_HOLDER.
32061         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32062
32063         bootstrap: interoperate with gettext 0.14.1
32064         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32065
32066         bootstrap: allow for alternate submodule location
32067         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32068         hardcoding submodule location.
32069         (gnulib_mk): Allow direct use of Makefile.am.
32070
32071         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32072         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32073         rather than reconfiguring where the submodule points.
32074
32075         gettimeofday: restore support for platforms that lack function
32076         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32077         replacement if function is missing.
32078         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32079         * modules/sys_time (Makefile.am): Substitute it.
32080         * lib/sys_time.in.h (gettimeofday): Check it.
32081         Reported by Michael Goffioul.
32082
32083 2010-02-21  Bruno Haible  <bruno@clisp.org>
32084
32085         * lib/stdio.in.h (obstack_printf): Fix typo.
32086
32087 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32088
32089         vc-list-files: use bzr ls's -R option
32090         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32091         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32092
32093 2010-02-21  Jim Meyering  <meyering@redhat.com>
32094
32095         init.sh: fix EXEEXT shims to work also for names like test-prog
32096         * tests/init.sh: Re-exec a better shell, when needed.
32097         If the current shell lacks support for posix $(...), an init.sh-using
32098         test will now try to find a shell that supports that.  If EXEEXT is
32099         nonempty, we also require support for hyphen-in-alias-name and shell
32100         substitutions like ${var#glob}.  Failure to find such a shell results
32101         in a skipped test.
32102
32103 2010-02-21  Bruno Haible  <bruno@clisp.org>
32104
32105         Really work around around "broken pipe" error message from bash 3.2.
32106         * gnulib-tool (func_reset_sigpipe): Remove function.
32107         (echo): In bash 3.2, define to a function that uses printf.
32108         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32109
32110 2010-02-20  Bruno Haible  <bruno@clisp.org>
32111
32112         Restore support for automake 1.9.6 with autoconf 2.61.
32113         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32114         Reported by James Youngman <jay@gnu.org>.
32115
32116 2010-02-20  Bruno Haible  <bruno@clisp.org>
32117
32118         Improve *printf warning condition.
32119         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32120         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32121         and the function is overridden due to SIGPIPE emulation.
32122
32123 2010-02-20  Bruno Haible  <bruno@clisp.org>
32124
32125         * lib/stdio.in.h: Tweak comments.
32126
32127 2010-02-19  Bruno Haible  <bruno@clisp.org>
32128
32129         Make it easier to find modules. New gnulib-tool option '--find'.
32130         * gnulib-tool: New option --find.
32131         (func_usage): Document it.
32132         (func_sanitize_modulelist): New function, extracted from
32133         func_all_modules.
32134         (func_all_modules): Invoke it.
32135         * doc/gnulib-tool.texi (Which modules?): New node.
32136
32137 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32138
32139         * lib/sys_select.in.h: Provide select replacement even if
32140         sys/select.h exists on a system, for Interix.
32141
32142 2010-02-18  Jim Meyering  <meyering@redhat.com>
32143
32144         init.sh: don't use $(...) just yet
32145         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32146         to accommodate e.g., Solaris' /bin/sh.
32147
32148 2010-02-17  Bruno Haible  <bruno@clisp.org>
32149
32150         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32151         Reported by Ludovic Courtès <ludo@gnu.org>.
32152
32153 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32154
32155         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32156         linking with -lintl.
32157
32158 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32159
32160         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32161         if not provided by the system's netdb.h.  Reported by
32162         ludo@gnu.org (Ludovic Courtès).
32163
32164 2010-02-15  Jim Meyering  <meyering@redhat.com>
32165
32166         init.sh: improve portability and efficiency
32167         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32168         "dummy" in a for loop.
32169         Use '!', not '^' to select the complement of a character set used
32170         in a "case" statement.
32171         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32172         Suggestions from Eric Blake.
32173
32174         init.sh: automatically accommodate programs with the .exe suffix
32175         Automatically arrange for an invocation of "prog" to execute the
32176         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32177         may use the simpler "prog", yet still work when built on a system
32178         that requires specifying the added suffix.
32179         Do this by constructing a function named "prog" that invokes
32180         "prog.exe" for each .exe file in selected directories.
32181         * tests/init.sh (find_exe_basenames_): New function.
32182         (create_exe_shim_functions_): New function.
32183         (path_prepend_): Use it.
32184
32185         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32186         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32187         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32188
32189 2010-02-14  Jim Meyering  <meyering@redhat.com>
32190
32191         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32192         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32193         (sc_prohibit_hash_pjw_without_use): New rule.
32194
32195         maint.mk: allow the default upload destination dir to be overridden
32196         * top/maint.mk (upload_dest_dir_): Define with a default that
32197         preserves the status quo.
32198         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32199         Reported by Peter Simons.
32200
32201         maint.mk: prohibit inclusion of "hash.h" without_use
32202         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32203
32204 2010-02-10  Jim Meyering  <meyering@redhat.com>
32205
32206         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32207         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32208
32209 2010-02-09  Eric Blake  <ebb9@byu.net>
32210         and Bruno Haible  <bruno@clisp.org>
32211
32212         obstack-printf-posix: ensure declaration
32213         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32214         extracted from gl_FUNC_OBSTACK_PRINTF.
32215         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32216         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32217         Likewise.
32218         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32219         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32220         0.
32221
32222 2010-02-08  Bruno Haible  <bruno@clisp.org>
32223
32224         gnulib-tool: Fix typo in 2010-02-07 commit.
32225         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32226         Reported by Eric Blake.
32227
32228 2010-02-07  Bruno Haible  <bruno@clisp.org>
32229
32230         gnulib-tool: Fix up caching patches.
32231         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32232         option --no-cache. Use associative arrays when supported by the shell.
32233         (sed_comments): New variable.
32234         (modcache): Renamed from do_cache.
32235         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32236         abbreviate unnecessarily.
32237         (have_associative): New variable.
32238         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32239         way also for ksh and zsh.
32240         (func_init_sed_convert_to_cache_statements): New function, extracted
32241         from func_cache_lookup_module. Add support for associative arrays.
32242         Don't set the c_MODULE_cached variable here. Ignore all lines before
32243         the first field header. Remove only the final newline, not all trailing
32244         newlines. Support empty fields correctly. Limit the use of 'eval' to
32245         assignments.
32246         (func_get_description, func_get_status, func_get_notice,
32247         func_get_applicability, func_get_filelist, func_get_dependencies,
32248         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32249         func_get_automake_snippet, func_get_include_directive,
32250         func_get_link_directive, func_get_license, func_get_maintainer):
32251         Update documentation. List the unoptimized code first. Add support for
32252         associative arrays. Limit the use of 'eval' to assignments.
32253         (func_get_applicability): Undo stylistic pessimisations.
32254         (func_get_automake_snippet, func_get_include_directive): Reduce code
32255         duplication.
32256         (func_modules_transitive_closure, func_modules_add_dummy,
32257         func_modules_notice, func_modules_to_filelist, func_add_file,
32258         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32259         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32260         func_create_testdir, func_create_megatestdir): Update documentation.
32261
32262 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32263
32264         * gnulib-tool (func_cache_lookup_module): Store the module name
32265         belonging to the cache variable; error out if two different
32266         module names map to the same cache variable name.
32267
32268 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32269
32270         gnulib-tool: Make caching optional.
32271         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32272         Update matching short versions of --no-changelog.
32273         (func_usage): Update.
32274         (sed_extract_cache_prog): Renamed from ...
32275         (sed_extract_prog): ... this; revert to old extraction script.
32276         (func_get_description, func_get_status)
32277         (func_get_notice, func_get_applicability, func_get_filelist)
32278         (func_get_dependencies, func_get_autoconf_early_snippet)
32279         (func_get_autoconf_snippet, func_get_automake_snippet)
32280         (func_get_include_directive, func_get_link_directive)
32281         (func_get_license, func_get_maintainer): If $do_cache is false,
32282         use old, non-caching extraction scripts.
32283         Suggestion by Bruno Haible.
32284
32285 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32286
32287         gnulib-tool: cache module metainformation.
32288         * gnulib-tool (sed_extract_prog): Match newline before each
32289         header, and rewrite header to a shell variable suffix.
32290         (func_cache_var, func_cache_lookup_module): New functions,
32291         to turn a module name into a cache variable prefix, and to
32292         look up and cache module metainformation.
32293         (func_get_description, func_get_status)
32294         (func_get_notice, func_get_applicability, func_get_filelist)
32295         (func_get_dependencies, func_get_autoconf_early_snippet)
32296         (func_get_autoconf_snippet, func_get_automake_snippet)
32297         (func_get_include_directive, func_get_link_directive)
32298         (func_get_license, func_get_maintainer): Use
32299         func_cache_lookup_module.
32300
32301 2010-02-07  Bruno Haible  <bruno@clisp.org>
32302
32303         fnctl: Fix missing dependency.
32304         * modules/fcntl (Depends-on): Add getdtablesize.
32305         Reported by John W. Eaton <jwe@gnu.org>.
32306
32307 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32308
32309         Argp: fix recognition of short alias options.
32310
32311         * lib/argp-parse.c (convert_options): Fix improper use of
32312         `|' between character values.
32313         * tests/test-argp.c (group1_option): New alias option
32314         --read (-r).
32315         (group1_parser): Special handling for 'r'.
32316         (test15): New test case.
32317         (test_fun): Add test15.
32318         * tests/test-argp-2.sh: Update expected --help and --usage
32319         outputs.
32320
32321 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32322
32323         * tests/test-argp.c: Fix indentation.
32324
32325 2010-02-04  Eric Blake  <ebb9@byu.net>
32326
32327         gettimeofday: expose type of second argument
32328         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32329         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32330         * tests/test-gettimeofday.c: Use it to silence warning.
32331         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32332         the issue.
32333
32334 2010-02-03  Jim Meyering  <meyering@redhat.com>
32335
32336         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32337         * lib/regcomp.c (TYPE_SIGNED): Define.
32338         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32339
32340         regcomp.c: avoid a new -Wshadow warning
32341         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32342
32343 2010-02-01  Jim Meyering  <meyering@redhat.com>
32344
32345         removing useless parentheses in cpp #define directives
32346         For motivation, see commit c0221df4, "define STREQ(a,b)
32347         consistently, removing useless parentheses"
32348         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32349         * lib/mountlist.c (MNT_IGNORE): Likewise.
32350         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32351
32352 2010-02-01  Eric Blake  <ebb9@byu.net>
32353
32354         sys_time: use link-warning
32355         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32356         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32357         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32358         * modules/sys_time (Depends-on): Add warn-on-use.
32359         (Makefile.am): Always build replacement.
32360         (configure.ac): Update substitutions.
32361         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32362         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32363         bother with SYS_TIME_H.
32364         * modules/gettimeofday (configure.ac): Declare indicator.
32365         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32366         in use.
32367
32368         closein-tests: silence compiler warning
32369         * tests/test-closein.c (main): Ignore fread result.
32370         * modules/closein-tests (Depends-on): Add ignore-value.
32371
32372         tests: silence warning about system return
32373         * tests/test-areadlink-with-size.c (main): Ignore system result.
32374         * tests/test-areadlink.c (main): Likewise.
32375         * tests/test-areadlinkat-with-size.c (main): Likewise.
32376         * tests/test-areadlinkat.c (main): Likewise.
32377         * tests/test-canonicalize-lgpl.c (main): Likewise.
32378         * tests/test-canonicalize.c (main): Likewise.
32379         * tests/test-chown.c (main): Likewise.
32380         * tests/test-fchownat.c (main): Likewise.
32381         * tests/test-fdutimensat.c (main): Likewise.
32382         * tests/test-fstatat.c (main): Likewise.
32383         * tests/test-futimens.c (main): Likewise.
32384         * tests/test-lchown.c (main): Likewise.
32385         * tests/test-link.c (main): Likewise.
32386         * tests/test-linkat.c (main): Likewise.
32387         * tests/test-lstat.c (main): Likewise.
32388         * tests/test-mkdir.c (main): Likewise.
32389         * tests/test-mkdirat.c (main): Likewise.
32390         * tests/test-mkfifo.c (main): Likewise.
32391         * tests/test-mkfifoat.c (main): Likewise.
32392         * tests/test-mknod.c (main): Likewise.
32393         * tests/test-readlink.c (main): Likewise.
32394         * tests/test-remove.c (main): Likewise.
32395         * tests/test-rename.c (main): Likewise.
32396         * tests/test-renameat.c (main): Likewise.
32397         * tests/test-rmdir.c (main): Likewise.
32398         * tests/test-symlink.c (main): Likewise.
32399         * tests/test-symlinkat.c (main): Likewise.
32400         * tests/test-unlink.c (main): Likewise.
32401         * tests/test-unlinkat.c (main): Likewise.
32402         * tests/test-utimens.c (main): Likewise.
32403         * tests/test-utimensat.c (main): Likewise.
32404         * modules/areadlink-tests (Depends-on): Add ignore-value.
32405         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32406         * modules/areadlinkat-tests (Depends-on): Likewise.
32407         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32408         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32409         * modules/canonicalize-tests (Depends-on): Likewise.
32410         * modules/chown-tests (Depends-on): Likewise.
32411         * modules/fdutimensat-tests (Depends-on): Likewise.
32412         * modules/futimens-tests (Depends-on): Likewise.
32413         * modules/lchown-tests (Depends-on): Likewise.
32414         * modules/link-tests (Depends-on): Likewise.
32415         * modules/linkat-tests (Depends-on): Likewise.
32416         * modules/lstat-tests (Depends-on): Likewise.
32417         * modules/mkdir-tests (Depends-on): Likewise.
32418         * modules/mkfifo-tests (Depends-on): Likewise.
32419         * modules/mkfifoat-tests (Depends-on): Likewise.
32420         * modules/mknod-tests (Depends-on): Likewise.
32421         * modules/openat-tests (Depends-on): Likewise.
32422         * modules/readlink-tests (Depends-on): Likewise.
32423         * modules/remove-tests (Depends-on): Likewise.
32424         * modules/rename-tests (Depends-on): Likewise.
32425         * modules/renameat-tests (Depends-on): Likewise.
32426         * modules/rmdir-tests (Depends-on): Likewise.
32427         * modules/symlink-tests (Depends-on): Likewise.
32428         * modules/symlinkat-tests (Depends-on): Likewise.
32429         * modules/unlink-tests (Depends-on): Likewise.
32430         * modules/utimens-tests (Depends-on): Likewise.
32431         * modules/utimensat-tests (Depends-on): Likewise.
32432
32433 2010-01-31  Bruno Haible  <bruno@clisp.org>
32434
32435         Perform the same test for many <math.h> functions.
32436         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32437         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32438         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32439         of gl_MATHFUNC.
32440         * modules/acos (configure.ac): Likewise.
32441         * modules/asin (configure.ac): Likewise.
32442         * modules/atan (configure.ac): Likewise.
32443         * modules/atan2 (configure.ac): Likewise.
32444         * modules/cbrt (configure.ac): Likewise.
32445         * modules/copysign (configure.ac): Likewise.
32446         * modules/cos (configure.ac): Likewise.
32447         * modules/cosh (configure.ac): Likewise.
32448         * modules/erf (configure.ac): Likewise.
32449         * modules/erfc (configure.ac): Likewise.
32450         * modules/exp (configure.ac): Likewise.
32451         * modules/fmod (configure.ac): Likewise.
32452         * modules/hypot (configure.ac): Likewise.
32453         * modules/j0 (configure.ac): Likewise.
32454         * modules/j1 (configure.ac): Likewise.
32455         * modules/jn (configure.ac): Likewise.
32456         * modules/lgamma (configure.ac): Likewise.
32457         * modules/log (configure.ac): Likewise.
32458         * modules/log10 (configure.ac): Likewise.
32459         * modules/log1p (configure.ac): Likewise.
32460         * modules/pow (configure.ac): Likewise.
32461         * modules/remainder (configure.ac): Likewise.
32462         * modules/sin (configure.ac): Likewise.
32463         * modules/sinh (configure.ac): Likewise.
32464         * modules/tan (configure.ac): Likewise.
32465         * modules/tanh (configure.ac): Likewise.
32466         * modules/y0 (configure.ac): Likewise.
32467         * modules/y1 (configure.ac): Likewise.
32468         * modules/yn (configure.ac): Likewise.
32469         Suggested by Paolo Bonzini.
32470
32471 2010-01-31  Bruno Haible  <bruno@clisp.org>
32472
32473         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32474
32475 2010-01-31  Bruno Haible  <bruno@clisp.org>
32476
32477         Work around getdelim() bug on FreeBSD 8.0.
32478         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32479         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32480         not work.
32481         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32482         is 1.
32483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32484         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32485         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32486         a non-zero size.
32487         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32488
32489 2010-01-31  Bruno Haible  <bruno@clisp.org>
32490
32491         Work around getline() bug on FreeBSD 8.0.
32492         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32493         and a non-zero size.
32494         * tests/test-getline.c (main): Likewise.
32495         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32496         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32497
32498 2010-01-28  Eric Blake  <ebb9@byu.net>
32499
32500         regex: fix build failure
32501         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32502         platforms.
32503
32504 2010-01-28  Jim Meyering  <meyering@redhat.com>
32505
32506         regex: do not ignore memory allocation failure
32507         * lib/regex_internal.c (create_cd_newstate): Detect
32508         re_node_set_init_copy failure.   Extracted from glibc commit
32509         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32510
32511         regex: sync more white-space changes from libc
32512         * lib/regex_internal.c: White-space only changes.
32513         * lib/regexec.c: Likewise.
32514
32515         regex: add many uses of __attribute_warn_unused_result__
32516         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32517         * lib/regexec.c: Likewise.
32518         Extracted from a messy glibc commit.
32519
32520         regcomp.c: spelling and merge-artifact from glibc
32521         * lib/regcomp.c: Merge remainder of glibc's
32522         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32523
32524         regcomp.c: sync white-space changes from glibc
32525         * lib/regcomp.c: Merge to accommodate white space
32526         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32527
32528         regcomp.c: do not ignore internal return values
32529         * lib/regcomp.c: Do not ignore internal return values.
32530         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32531         but without its white-space changes and spelling fixes.
32532
32533         regex_internal.h: define __attribute_warn_unused_result__
32534         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32535
32536         maint: add a syntax-check rule to check for vulnerable Makefile.in
32537         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32538
32539 2010-01-27  Jim Meyering  <meyering@redhat.com>
32540
32541         ncftpput-ftp: clean up spaces
32542         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32543         Remove trailing blanks.
32544
32545 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32546
32547         * build-aux/git-version-gen: Fix copyright statement.
32548         * build-aux/gnupload: Likewise.
32549         * tests/test-arcfour.c: Likewise.
32550         * tests/test-arctwo.c: Likewise.
32551         * tests/test-count-one-bits.c: Likewise.
32552         * tests/test-crc.c: Likewise.
32553         * tests/test-des.c: Likewise.
32554         * tests/test-gc-arcfour.c: Likewise.
32555         * tests/test-gc-arctwo.c: Likewise.
32556         * tests/test-gc-des.c: Likewise.
32557         * tests/test-gc-hmac-md5.c: Likewise.
32558         * tests/test-gc-hmac-sha1.c: Likewise.
32559         * tests/test-gc-md2.c: Likewise.
32560         * tests/test-gc-md4.c: Likewise.
32561         * tests/test-gc-md5.c: Likewise.
32562         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32563         * tests/test-gc-rijndael.c: Likewise.
32564         * tests/test-gc-sha1.c: Likewise.
32565         * tests/test-gc.c: Likewise.
32566         * tests/test-gethostname.c: Likewise.
32567         * tests/test-gettimeofday.c: Likewise.
32568         * tests/test-hash.c: Likewise.
32569         * tests/test-hmac-md5.c: Likewise.
32570         * tests/test-hmac-sha1.c: Likewise.
32571         * tests/test-md2.c: Likewise.
32572         * tests/test-md4.c: Likewise.
32573         * tests/test-md5.c: Likewise.
32574         * tests/test-memchr.c: Likewise.
32575         * tests/test-memchr2.c: Likewise.
32576         * tests/test-memcmp.c: Likewise.
32577         * tests/test-memmem.c: Likewise.
32578         * tests/test-memrchr.c: Likewise.
32579         * tests/test-rawmemchr.c: Likewise.
32580         * tests/test-read-file.c: Likewise.
32581         * tests/test-rijndael.c: Likewise.
32582         * tests/test-sockets.c: Likewise.
32583         * tests/test-strchrnul.c: Likewise.
32584         * tests/test-strstr.c: Likewise.
32585         * tests/test-strtod.c: Likewise.
32586         * build-aux/ncftpput-ftp: Likewise.
32587
32588 2010-01-26  Eric Blake  <ebb9@byu.net>
32589
32590         ignore-value: update recommended header name
32591         * modules/ignore-value (Include): Only use <> for headers that
32592         exist in glibc.
32593
32594 2010-01-26  Jim Meyering  <meyering@redhat.com>
32595
32596         test-userspec.c: avoid compiler warnings
32597         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32598         and "initialization discards qualifiers..." warnings.
32599         Put the first "uid" in its own scope, and make char* members "const".
32600
32601 2010-01-25  Bruno Haible  <bruno@clisp.org>
32602
32603         gnulib-tool: Make warning diagnostics consistent.
32604         * gnulib-tool (func_warning): New function.
32605         Use it everywhere where gnulib-tool produces output to stderr and it is
32606         not a fatal error.
32607
32608 2010-01-25  Bruno Haible  <bruno@clisp.org>
32609
32610         Fix test dependencies.
32611         * modules/xstrtol-tests (Depends-on): Add inttypes.
32612         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32613
32614 2010-01-25 Pádraig Brady <P@draigBrady.com>
32615
32616         syntax-check: detect incorrect boolean macro values in config.h
32617         * modules/maintainer-makefile (configure.ac): Parameterize the location
32618         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32619         The logic is from Eric Blake and the location indicated by Jim Meyering.
32620         Note the more natural CONFIG_HEADER name is prohibited by automake
32621         for backwards compatibility reasons.
32622         * top/maint.mk (sc_Wundef_boolean): New rule.
32623
32624 2010-01-25  Jim Meyering  <meyering@redhat.com>
32625
32626         bootstrap: detect MacOS 10.6's shasum, too
32627         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32628         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32629
32630 2010-01-23  Jim Meyering  <meyering@redhat.com>
32631
32632         xstrtoll: new module
32633         * modules/xstrtoll: New file.
32634         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32635         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32636         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32637         ./configure fails if you use this module and lack "long long".
32638         * modules/xstrtoll-tests: New module.
32639         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32640         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32641         new init.sh-based test framework.
32642
32643 2010-01-24  Bruno Haible  <bruno@clisp.org>
32644
32645         Tests for module 'yn'.
32646         * modules/yn-tests: New file.
32647         * tests/test-yn.c: New file.
32648
32649         Tests for module 'y1'.
32650         * modules/y1-tests: New file.
32651         * tests/test-y1.c: New file.
32652
32653         Tests for module 'y0'.
32654         * modules/y0-tests: New file.
32655         * tests/test-y0.c: New file.
32656
32657         Tests for module 'tanh'.
32658         * modules/tanh-tests: New file.
32659         * tests/test-tanh.c: New file.
32660
32661         Tests for module 'tan'.
32662         * modules/tan-tests: New file.
32663         * tests/test-tan.c: New file.
32664
32665         Tests for module 'sqrt'.
32666         * modules/sqrt-tests: New file.
32667         * tests/test-sqrt.c: New file.
32668
32669         Tests for module 'sinh'.
32670         * modules/sinh-tests: New file.
32671         * tests/test-sinh.c: New file.
32672
32673         Tests for module 'sin'.
32674         * modules/sin-tests: New file.
32675         * tests/test-sin.c: New file.
32676
32677         Tests for module 'rint'.
32678         * modules/rint-tests: New file.
32679         * tests/test-rint.c: New file.
32680
32681         Tests for module 'remainder'.
32682         * modules/remainder-tests: New file.
32683         * tests/test-remainder.c: New file.
32684
32685         Tests for module 'pow'.
32686         * modules/pow-tests: New file.
32687         * tests/test-pow.c: New file.
32688
32689         Tests for module 'nextafter'.
32690         * modules/nextafter-tests: New file.
32691         * tests/test-nextafter.c: New file.
32692
32693         Tests for module 'modf'.
32694         * modules/modf-tests: New file.
32695         * tests/test-modf.c: New file.
32696
32697         Tests for module 'logb'.
32698         * modules/logb-tests: New file.
32699         * tests/test-logb.c: New file.
32700
32701         Tests for module 'log1p'.
32702         * modules/log1p-tests: New file.
32703         * tests/test-log1p.c: New file.
32704
32705         Tests for module 'log10'.
32706         * modules/log10-tests: New file.
32707         * tests/test-log10.c: New file.
32708
32709         Tests for module 'log'.
32710         * modules/log-tests: New file.
32711         * tests/test-log.c: New file.
32712
32713         Tests for module 'lgamma'.
32714         * modules/lgamma-tests: New file.
32715         * tests/test-lgamma.c: New file.
32716
32717         Tests for module 'ldexp'.
32718         * modules/ldexp-tests: New file.
32719         * tests/test-ldexp.c: New file.
32720
32721         Tests for module 'jn'.
32722         * modules/jn-tests: New file.
32723         * tests/test-jn.c: New file.
32724
32725         Tests for module 'j1'.
32726         * modules/j1-tests: New file.
32727         * tests/test-j1.c: New file.
32728
32729         Tests for module 'j0'.
32730         * modules/j0-tests: New file.
32731         * tests/test-j0.c: New file.
32732
32733         Tests for module 'hypot'.
32734         * modules/hypot-tests: New file.
32735         * tests/test-hypot.c: New file.
32736
32737         Tests for module 'fmod'.
32738         * modules/fmod-tests: New file.
32739         * tests/test-fmod.c: New file.
32740
32741         Tests for module 'fabs'.
32742         * modules/fabs-tests: New file.
32743         * tests/test-fabs.c: New file.
32744
32745         Tests for module 'exp'.
32746         * modules/exp-tests: New file.
32747         * tests/test-exp.c: New file.
32748
32749         Tests for module 'erfc'.
32750         * modules/erfc-tests: New file.
32751         * tests/test-erfc.c: New file.
32752
32753         Tests for module 'erf'.
32754         * modules/erf-tests: New file.
32755         * tests/test-erf.c: New file.
32756
32757         Tests for module 'cosh'.
32758         * modules/cosh-tests: New file.
32759         * tests/test-cosh.c: New file.
32760
32761         Tests for module 'cos'.
32762         * modules/cos-tests: New file.
32763         * tests/test-cos.c: New file.
32764
32765         Tests for module 'copysign'.
32766         * modules/copysign-tests: New file.
32767         * tests/test-copysign.c: New file.
32768
32769         Tests for module 'cbrt'.
32770         * modules/cbrt-tests: New file.
32771         * tests/test-cbrt.c: New file.
32772
32773         Tests for module 'atan2'.
32774         * modules/atan2-tests: New file.
32775         * tests/test-atan2.c: New file.
32776
32777         Tests for module 'atan'.
32778         * modules/atan-tests: New file.
32779         * tests/test-atan.c: New file.
32780
32781         Tests for module 'asin'.
32782         * modules/asin-tests: New file.
32783         * tests/test-asin.c: New file.
32784
32785         Tests for module 'acos'.
32786         * modules/acos-tests: New file.
32787         * tests/test-acos.c: New file.
32788
32789 2010-01-24  Bruno Haible  <bruno@clisp.org>
32790
32791         Fix tests for common <math.h> functions.
32792         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32793         code snippet that references the function pointer, rather than merely
32794         calling the function. Substitute the FUNC_LIBM variable.
32795         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32796         * modules/acos (configure.ac): Likewise.
32797         * modules/asin (configure.ac): Likewise.
32798         * modules/atan (configure.ac): Likewise.
32799         * modules/atan2 (configure.ac): Likewise.
32800         * modules/cbrt (configure.ac): Likewise.
32801         * modules/copysign (configure.ac): Likewise.
32802         * modules/cos (configure.ac): Likewise.
32803         * modules/cosh (configure.ac): Likewise.
32804         * modules/erf (configure.ac): Likewise.
32805         * modules/erfc (configure.ac): Likewise.
32806         * modules/exp (configure.ac): Likewise.
32807         * modules/fabs (configure.ac): Likewise.
32808         * modules/fmod (configure.ac): Likewise.
32809         * modules/hypot (configure.ac): Likewise.
32810         * modules/j0 (configure.ac): Likewise.
32811         * modules/j1 (configure.ac): Likewise.
32812         * modules/jn (configure.ac): Likewise.
32813         * modules/ldexp (configure.ac): Likewise.
32814         * modules/lgamma (configure.ac): Likewise.
32815         * modules/log (configure.ac): Likewise.
32816         * modules/log10 (configure.ac): Likewise.
32817         * modules/log1p (configure.ac): Likewise.
32818         * modules/logb (configure.ac): Likewise.
32819         * modules/modf (configure.ac): Likewise.
32820         * modules/nextafter (configure.ac): Likewise.
32821         * modules/pow (configure.ac): Likewise.
32822         * modules/remainder (configure.ac): Likewise.
32823         * modules/rint (configure.ac): Likewise.
32824         * modules/sin (configure.ac): Likewise.
32825         * modules/sinh (configure.ac): Likewise.
32826         * modules/tan (configure.ac): Likewise.
32827         * modules/tanh (configure.ac): Likewise.
32828         * modules/y0 (configure.ac): Likewise.
32829         * modules/y1 (configure.ac): Likewise.
32830         * modules/yn (configure.ac): Likewise.
32831
32832 2010-01-24  Bruno Haible  <bruno@clisp.org>
32833
32834         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32835         * tests/test-acosl.c (x): New variable.
32836         (main): Store argument in x and fetch it from x.
32837         * tests/test-asinl.c (x): New variable.
32838         (main): Store argument in x and fetch it from x.
32839         * tests/test-atanl.c (x): New variable.
32840         (main): Store argument in x and fetch it from x.
32841         * tests/test-cosl.c (x): New variable.
32842         (main): Store argument in x and fetch it from x.
32843         * tests/test-expl.c (x): New variable.
32844         (main): Store argument in x and fetch it from x.
32845         * tests/test-logl.c (x): New variable.
32846         (main): Store argument in x and fetch it from x.
32847         * tests/test-sinl.c (x): New variable.
32848         (main): Store argument in x and fetch it from x.
32849         * tests/test-sqrtl.c (x): New variable.
32850         (main): Store argument in x and fetch it from x.
32851         * tests/test-tanl.c (x): New variable.
32852         (main): Store argument in x and fetch it from x.
32853
32854 2010-01-24  Bruno Haible  <bruno@clisp.org>
32855
32856         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32857         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32858         assignments to the initial TESTS_ENVIRONMENT.
32859         * doc/gnulib.texi (Unit test modules): Document it.
32860         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32861         TESTS_ENVIRONMENT.
32862         * modules/btowc-tests (Makefile.am): Likewise.
32863         * modules/c-stack-tests (Makefile.am): Likewise.
32864         * modules/c-strcase-tests (Makefile.am): Likewise.
32865         * modules/copy-file-tests (Makefile.am): Likewise.
32866         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32867         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32868         * modules/mbrtowc-tests (Makefile.am): Likewise.
32869         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32870         * modules/mbscasestr-tests (Makefile.am): Likewise.
32871         * modules/mbschr-tests (Makefile.am): Likewise.
32872         * modules/mbscspn-tests (Makefile.am): Likewise.
32873         * modules/mbsinit-tests (Makefile.am): Likewise.
32874         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32875         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32876         * modules/mbspbrk-tests (Makefile.am): Likewise.
32877         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32878         * modules/mbsrchr-tests (Makefile.am): Likewise.
32879         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32880         * modules/mbsspn-tests (Makefile.am): Likewise.
32881         * modules/mbsstr-tests (Makefile.am): Likewise.
32882         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32883         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32884         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32885         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32886         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32887         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32888         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32889         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32890         * modules/wcrtomb-tests (Makefile.am): Likewise.
32891         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32892         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32893         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32894         assignments from TESTS_ENVIRONMENT.
32895         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32896         augmentation.
32897         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32898         * modules/atexit-tests (Makefile.am): Likewise.
32899         * modules/binary-io-tests (Makefile.am): Likewise.
32900         * modules/closein-tests (Makefile.am): Likewise.
32901         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32902         * modules/exclude-tests (Makefile.am): Likewise.
32903         * modules/fflush-tests (Makefile.am): Likewise.
32904         * modules/fpending-tests (Makefile.am): Likewise.
32905         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32906         * modules/freadahead-tests (Makefile.am): Likewise.
32907         * modules/freadptr-tests (Makefile.am): Likewise.
32908         * modules/freadseek-tests (Makefile.am): Likewise.
32909         * modules/fseek-tests (Makefile.am): Likewise.
32910         * modules/fseeko-tests (Makefile.am): Likewise.
32911         * modules/ftell-tests (Makefile.am): Likewise.
32912         * modules/ftello-tests (Makefile.am): Likewise.
32913         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32914         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32915         * modules/lseek-tests (Makefile.am): Likewise.
32916         * modules/parse-duration-tests (Makefile.am): Likewise.
32917         * modules/perror-tests (Makefile.am): Likewise.
32918         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32919         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32920         * modules/pipe-tests (Makefile.am): Likewise.
32921         * modules/pread-tests (Makefile.am): Likewise.
32922         * modules/printf-posix-tests (Makefile.am): Likewise.
32923         * modules/select-tests (Makefile.am): Likewise.
32924         * modules/sigpipe-tests (Makefile.am): Likewise.
32925         * modules/tsearch-tests (Makefile.am): Likewise.
32926         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32927         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32928         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32929         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32930         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32931         * modules/version-etc-tests (Makefile.am): Likewise.
32932         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32933         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32934         * modules/xalloc-die-tests (Makefile.am): Likewise.
32935         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32936         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32937         * modules/xstrtol-tests (Makefile.am): Likewise.
32938         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32939         * modules/yesno-tests (Makefile.am): Likewise.
32940         Suggested by Jim Meyering.
32941
32942 2010-01-24  Bruno Haible  <bruno@clisp.org>
32943
32944         More documentation.
32945         * doc/gnulib.texi (Writing modules): New chapter.
32946         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32947         the new chapter.
32948
32949 2010-01-24  Jim Meyering  <meyering@redhat.com>
32950
32951         maint.mk: do not prepend "./" after filtering
32952         * top/maint.mk (_prepend_srcdir_prefix): New variable
32953         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32954         "./" when $(srcdir) is ".".
32955
32956         define STREQ(a,b) consistently, removing useless parentheses
32957         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32958         since the only risk is that "a" or "b" contains an unparenthesized
32959         comma, but if either did that, STREQ would have 3 or more arguments.
32960         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32961         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32962         * lib/hash-triple.c (STREQ): Likewise.
32963         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32964         * lib/getugroups.c (STREQ): Likewise.
32965
32966 2010-01-23  Jim Meyering  <meyering@redhat.com>
32967
32968         maint.mk: fix syntax-check in a non-srcdir build directory
32969         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32970         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32971
32972 2010-01-22  Jim Meyering  <meyering@redhat.com>
32973
32974         userspec: add unit tests
32975         * tests/test-userspec.c: New file.
32976         * modules/userspec-tests: Likewise.
32977
32978 2010-01-21  Jim Meyering  <meyering@redhat.com>
32979
32980         maint.mk: handle source file names containing "." robustly
32981         * top/maint.mk (_dot_escaped_srcdir): Define.
32982         (VC_LIST): Use it in LHS of sed substitution.
32983
32984 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32985
32986         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32987         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32988         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32989         from a non-srcdir build.
32990
32991 2010-01-20  Eric Blake  <ebb9@byu.net>
32992
32993         warn-on-use: use instead of link-warning
32994         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32995         * modules/unistd (Depends-on, Makefile.am): Likewise.
32996         * modules/arpa_inet (Depends-on): Replace link-warning with
32997         warn-on-use.
32998         (Makefile.am): Update rules accordingly.
32999         * modules/ctype (Depends-on, Makefile.am): Likewise.
33000         * modules/dirent (Depends-on, Makefile.am): Likewise.
33001         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33002         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33003         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33004         * modules/locale (Depends-on, Makefile.am): Likewise.
33005         * modules/math (Depends-on, Makefile.am): Likewise.
33006         * modules/search (Depends-on, Makefile.am): Likewise.
33007         * modules/signal (Depends-on, Makefile.am): Likewise.
33008         * modules/spawn (Depends-on, Makefile.am): Likewise.
33009         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33010         * modules/string (Depends-on, Makefile.am): Likewise.
33011         * modules/strings (Depends-on, Makefile.am): Likewise.
33012         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33013         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33014         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33015         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33016         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33017         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33018         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33019         * modules/wchar (Depends-on, Makefile.am): Likewise.
33020         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33021         should be poisoned.
33022         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33023         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33024         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33025         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33026         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33027         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33028         * m4/math_h.m4 (gl_MATH_H): Likewise.
33029         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33030         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33031         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33032         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33033         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33034         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33035         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33036         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33037         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33038         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33039         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33040         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33041         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33042         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33043         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33044         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33045         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33046         GL_LINK_WARNING.
33047         * lib/ctype.in.h: Likewise.
33048         * lib/dirent.in.h: Likewise.
33049         * lib/fcntl.in.h: Likewise.
33050         * lib/inttypes.in.h: Likewise.
33051         * lib/langinfo.in.h: Likewise.
33052         * lib/locale.in.h: Likewise.
33053         * lib/math.in.h: Likewise.
33054         * lib/search.in.h: Likewise.
33055         * lib/signal.in.h: Likewise.
33056         * lib/spawn.in.h: Likewise.
33057         * lib/stdio.in.h: Likewise.
33058         * lib/stdlib.in.h: Likewise.
33059         * lib/string.in.h: Likewise.
33060         * lib/strings.in.h: Likewise.
33061         * lib/sys_file.in.h: Likewise.
33062         * lib/sys_ioctl.in.h: Likewise.
33063         * lib/sys_select.in.h: Likewise.
33064         * lib/sys_socket.in.h: Likewise.
33065         * lib/sys_stat.in.h: Likewise.
33066         * lib/sys_times.in.h: Likewise.
33067         * lib/sys_utsname.in.h: Likewise.
33068         * lib/unistd.in.h: Likewise.
33069         * lib/wchar.in.h: Likewise.
33070
33071 2010-01-20  Bruno Haible  <bruno@clisp.org>
33072
33073         Avoid duplicate -lm.
33074         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33075         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33076         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33077         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33078         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33079         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33080         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33081         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33082         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33083         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33084         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33085         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33086         Reported by Paolo Bonzini.
33087
33088 2010-01-19  Bruno Haible  <bruno@clisp.org>
33089
33090         langinfo, nl_langinfo: Relicense under LGPLv2+.
33091         * modules/langinfo (License): Change to LGPLv2+.
33092         * modules/nl_langinfo (License): Likewise.
33093         Patch by David Lutterkort <lutter@redhat.com>.
33094
33095 2010-01-19  Bruno Haible  <bruno@clisp.org>
33096
33097         Avoid compilation error with cc on OSF/1 5.1.
33098         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33099         statement, not before.
33100         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33101
33102 2010-01-18  Bruno Haible  <bruno@clisp.org>
33103
33104         Avoid a link error due to the __printf__ symbol.
33105         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33106         and 2.6.x.
33107         (__format__, __printf__): Remove definitions.
33108         * lib/argp-fmtstream.h: Likewise.
33109         * lib/argp.h: Likewise.
33110         * lib/error.h: Likewise.
33111         * lib/vasnprintf.h: Likewise.
33112         * lib/xprintf.h: Likewise.
33113         * lib/xvasprintf.h: Likewise.
33114         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33115
33116 2010-01-18  Bruno Haible  <bruno@clisp.org>
33117
33118         Tests for module 'tanl'.
33119         * modules/tanl-tests: New file.
33120         * tests/test-tanl.c: New file.
33121
33122         Tests for module 'sqrtl'.
33123         * modules/sqrtl-tests: New file.
33124         * tests/test-sqrtl.c: New file.
33125
33126         Tests for module 'sinl'.
33127         * modules/sinl-tests: New file.
33128         * tests/test-sinl.c: New file.
33129
33130         Tests for module 'logl'.
33131         * modules/logl-tests: New file.
33132         * tests/test-logl.c: New file.
33133
33134         Tests for module 'expl'.
33135         * modules/expl-tests: New file.
33136         * tests/test-expl.c: New file.
33137
33138         Tests for module 'cosl'.
33139         * modules/cosl-tests: New file.
33140         * tests/test-cosl.c: New file.
33141
33142         Tests for module 'atanl'.
33143         * modules/atanl-tests: New file.
33144         * tests/test-atanl.c: New file.
33145
33146         Tests for module 'asinl'.
33147         * modules/asinl-tests: New file.
33148         * tests/test-asinl.c: New file.
33149
33150         Tests for module 'acosl'.
33151         * modules/acosl-tests: New file.
33152         * tests/test-acosl.c: New file.
33153
33154         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33155         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33156         tanl): Use the standard gnulib idiom.
33157         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33158         * lib/sinl.c: Likewise.
33159         * lib/tanl.c: Don't include trigl.c.
33160         (kernel_tanl): Make static.
33161         * lib/sincosl.c: Include trigl.h first.
33162         * lib/trigl.c: Likewise.
33163         * m4/acosl.m4: New file.
33164         * m4/asinl.m4: New file.
33165         * m4/atanl.m4: New file.
33166         * m4/cosl.m4: New file.
33167         * m4/expl.m4: New file.
33168         * m4/logl.m4: New file.
33169         * m4/sinl.m4: New file.
33170         * m4/sqrtl.m4: New file.
33171         * m4/tanl.m4: New file.
33172         * m4/mathl.m4: Remove file.
33173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33174         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33175         Don't initialize GNULIB_MATHL.
33176         * modules/acosl: New file.
33177         * modules/asinl: New file.
33178         * modules/atanl: New file.
33179         * modules/cosl: New file.
33180         * modules/expl: New file.
33181         * modules/logl: New file.
33182         * modules/sinl: New file.
33183         * modules/sqrtl: New file.
33184         * modules/tanl: New file.
33185         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33186         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33187         substitute GNULIB_MATHL.
33188         * modules/mathl: Rewritten.
33189         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33190         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33191         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33192         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33193         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33194         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33195         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33196         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33197         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33198
33199 2010-01-18  Bruno Haible  <bruno@clisp.org>
33200
33201         sqrt: Make gl_FUNC_SQRT requirable.
33202         * m4/sqrt.m4: New file.
33203         * modules/sqrt (Files): Add it.
33204         (configure.ac): Invoke gl_FUNC_SQRT.
33205
33206 2010-01-18  Bruno Haible  <bruno@clisp.org>
33207
33208         New modules for common <math.h> functions.
33209         * m4/mathfunc.m4: New file.
33210         * modules/acos: New file.
33211         * modules/asin: New file.
33212         * modules/atan: New file.
33213         * modules/atan2: New file.
33214         * modules/cbrt: New file.
33215         * modules/copysign: New file.
33216         * modules/cos: New file.
33217         * modules/cosh: New file.
33218         * modules/erf: New file.
33219         * modules/erfc: New file.
33220         * modules/exp: New file.
33221         * modules/fabs: New file.
33222         * modules/fmod: New file.
33223         * modules/hypot: New file.
33224         * modules/j0: New file.
33225         * modules/j1: New file.
33226         * modules/jn: New file.
33227         * modules/ldexp: New file.
33228         * modules/lgamma: New file.
33229         * modules/log: New file.
33230         * modules/log10: New file.
33231         * modules/log1p: New file.
33232         * modules/logb: New file.
33233         * modules/modf: New file.
33234         * modules/nextafter: New file.
33235         * modules/pow: New file.
33236         * modules/remainder: New file.
33237         * modules/rint: New file.
33238         * modules/sin: New file.
33239         * modules/sinh: New file.
33240         * modules/sqrt: New file.
33241         * modules/tan: New file.
33242         * modules/tanh: New file.
33243         * modules/y0: New file.
33244         * modules/y1: New file.
33245         * modules/yn: New file.
33246         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33247         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33248         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33249         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33250         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33251         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33252         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33253         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33254         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33255         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33256         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33257         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33258         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33259         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33260         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33261         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33262         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33263         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33264         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33265         * doc/posix-functions/log.texi: Mention the 'log' module.
33266         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33267         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33268         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33269         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33270         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33271         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33272         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33273         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33274         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33275         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33276         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33277         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33278         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33279         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33280         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33281         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33282
33283 2010-01-18  Jim Meyering  <meyering@redhat.com>
33284
33285         ignore-value: relax license to LGPLv2+
33286         * modules/ignore-value (License): Relax to LGPLv2+.
33287
33288         getdate: don't leak when TZ contains two or more '"'s
33289         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33290         double quote in TZ after the first one.
33291
33292         readtokens: do not leak internal token_lengths buffer
33293         * lib/readtokens.c (readtokens): Free the local, lengths,
33294         when the supplied "token_lengths" parameter is NULL.
33295
33296 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33297
33298         Fix a couple of missing LIBTHREAD link failures on AIX.
33299         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33300         $(LIBTHREAD).
33301         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33302
33303         Link test-poll against INET_PTON_LIB.
33304         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33305         for inet_pton on Solaris 10.
33306
33307 2010-01-17  Bruno Haible  <bruno@clisp.org>
33308
33309         unistdio/*-sprintf: Fix typo in module description.
33310         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33311         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33312         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33313         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33314         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33315         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33316         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33317         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33318
33319 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33320
33321         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33322         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33323         variables in shell case patterns, for AIX and HP-UX ksh.
33324
33325         Split large sed scripts, for HP-UX sed.
33326         * modules/stdio: Split sed scripts around 50 sed commands,
33327         to avoid HP-UX limit of 99 commands, in the near future.
33328         * modules/string: Likewise.
33329         * modules/unistd: Likewise.
33330
33331         gnulib-tool: avoid writing in the current directory.
33332         * gnulib-tool (func_emit_lib_Makefile_am)
33333         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33334         not in the current directory, so concurrent gnulib-tool
33335         instances do not interfere.
33336
33337 2010-01-16  Jim Meyering  <meyering@redhat.com>
33338
33339         doc: update users.txt
33340         * users.txt: Add grep.
33341         (diffutils, gzip): Update URLs.
33342
33343 2010-01-12  Bruno Haible  <bruno@clisp.org>
33344
33345         posix_spawn: Avoid test failure on Cygwin.
33346         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33347         characters.
33348         Reported by Simon Josefsson.
33349
33350 2010-01-12  Bruno Haible  <bruno@clisp.org>
33351
33352         * tests/test-cond.c (main): When skipping the test, show the reason.
33353
33354 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33355
33356         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33357
33358 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33359
33360         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33361         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33362
33363 2010-01-12  Eric Blake  <ebb9@byu.net>
33364
33365         build: guarantee AS_VAR_IF
33366         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33367         (gl_AS_VAR_IF): Move...
33368         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33369         Reported by Simon Josefsson.
33370
33371 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33372
33373         * lib/stdio.in.h: Fix typo.
33374
33375 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33376
33377         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33378         libgpg-error.
33379
33380 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33381
33382         * tests/test-xalloc-die.sh: Use $EXEEXT.
33383
33384 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33385             Bruno Haible  <bruno@clisp.org>
33386
33387         getlogin, getlogin_r: Avoid test failure.
33388         * tests/test-getlogin.c: Include <stdio.h>.
33389         (main): Skip the test when the function fails because stdin is not a
33390         tty.
33391         * tests/test-getlogin_r.c: Include <stdio.h>.
33392         (main): Skip the test when the function fails because stdin is not a
33393         tty.
33394
33395 2010-01-11  Eric Blake  <ebb9@byu.net>
33396
33397         tests: avoid more large file warnings
33398         * tests/test-fflush.c: Avoid warning about ftell use.
33399         * tests/test-fseek.c: Avoid warning about fseek use.
33400
33401 2010-01-10  Bruno Haible  <bruno@clisp.org>
33402
33403         nproc: Work better on Linux when /proc and /sys are not mounted.
33404         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33405         as lower bound when, on glibc/Linux systems,
33406         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33407         Suggested by Pádraig Brady <P@draigbrady.com>.
33408         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33409
33410         nproc: Refactor.
33411         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33412         extracted from num_processors.
33413         (num_processors): Call it.
33414
33415 2010-01-11  Jim Meyering  <meyering@redhat.com>
33416
33417         utimecmp: avoid new warning from upcoming gcc-4.5.0
33418         * lib/utimecmp.c (BILLION): Define using #define rather than an
33419         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33420
33421 2010-01-11  Eric Blake  <ebb9@byu.net>
33422
33423         math: add portability warnings for classification macros
33424         * modules/math (Depends-on): Add warn-on-use.
33425         (Makefile.am): Provide new substitutions.
33426         * m4/math_h.m4 (gl_MATH_H): Require inline.
33427         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33428         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33429         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33430         implement warnings.
33431
33432         unistd: warn on use of environ without module
33433         * modules/unistd (Depends-on): Add warn-on-use.
33434         (Makefile.am): Provide new substitutions.
33435         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33436         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33437
33438         stdio: warn on suspicious uses
33439         * modules/stdio (Depends-on): Add warn-on-use.
33440         (Makefile.am): Provide new substitutions.
33441         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33442         fseeko.
33443         * lib/stdio.in.h (gets): Always warn on use.
33444         (fseek, ftell): Adjust when warnings are issued, and honor
33445         _GL_NO_LARGE_FILES as a way to silence the warning.
33446         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33447         any warning about large file offsets.
33448         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33449         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33450         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33451         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33452         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33453         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33454         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33455         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33456
33457         warn-on-use: new module
33458         * modules/warn-on-use: New file.
33459         * build-aux/warn-on-use.h: Likewise.
33460         * m4/warn-on-use.m4: Likewise.
33461         * MODULES.html.sh (Support for building): Mention it.
33462
33463 2010-01-10  Bruno Haible  <bruno@clisp.org>
33464
33465         Tests for module 'unistr/u32-strdup'.
33466         * modules/unistr/u32-strdup-tests: New file.
33467         * tests/unistr/test-u32-strdup.c: New file.
33468
33469         Tests for module 'unistr/u16-strdup'.
33470         * modules/unistr/u16-strdup-tests: New file.
33471         * tests/unistr/test-u16-strdup.c: New file.
33472
33473         Tests for module 'unistr/u8-strdup'.
33474         * modules/unistr/u8-strdup-tests: New file.
33475         * tests/unistr/test-u8-strdup.c: New file.
33476         * tests/unistr/test-strdup.h: New file.
33477
33478         Tests for module 'unistr/u32-strncmp'.
33479         * modules/unistr/u32-strncmp-tests: New file.
33480         * tests/unistr/test-u32-strncmp.c: New file.
33481
33482         Tests for module 'unistr/u16-strncmp'.
33483         * modules/unistr/u16-strncmp-tests: New file.
33484         * tests/unistr/test-u16-strncmp.c: New file.
33485
33486         Tests for module 'unistr/u8-strncmp'.
33487         * modules/unistr/u8-strncmp-tests: New file.
33488         * tests/unistr/test-u8-strncmp.c: New file.
33489         * tests/unistr/test-strncmp.h: New file.
33490
33491         Tests for module 'unistr/u32-strcoll'.
33492         * modules/unistr/u32-strcoll-tests: New file.
33493         * tests/unistr/test-u32-strcoll.c: New file.
33494
33495         Tests for module 'unistr/u16-strcoll'.
33496         * modules/unistr/u16-strcoll-tests: New file.
33497         * tests/unistr/test-u16-strcoll.c: New file.
33498
33499         Tests for module 'unistr/u8-strcoll'.
33500         * modules/unistr/u8-strcoll-tests: New file.
33501         * tests/unistr/test-u8-strcoll.c: New file.
33502
33503         Tests for module 'unistr/u32-strcmp'.
33504         * modules/unistr/u32-strcmp-tests: New file.
33505         * tests/unistr/test-u32-strcmp.c: New file.
33506         * tests/unistr/test-u32-strcmp.h: New file.
33507
33508         Tests for module 'unistr/u16-strcmp'.
33509         * modules/unistr/u16-strcmp-tests: New file.
33510         * tests/unistr/test-u16-strcmp.c: New file.
33511         * tests/unistr/test-u16-strcmp.h: New file.
33512
33513         Tests for module 'unistr/u8-strcmp'.
33514         * modules/unistr/u8-strcmp-tests: New file.
33515         * tests/unistr/test-u8-strcmp.c: New file.
33516         * tests/unistr/test-u8-strcmp.h: New file.
33517         * tests/unistr/test-strcmp.h: New file.
33518
33519         Tests for module 'unistr/u32-strncat'.
33520         * modules/unistr/u32-strncat-tests: New file.
33521         * tests/unistr/test-u32-strncat.c: New file.
33522
33523         Tests for module 'unistr/u16-strncat'.
33524         * modules/unistr/u16-strncat-tests: New file.
33525         * tests/unistr/test-u16-strncat.c: New file.
33526
33527         Tests for module 'unistr/u8-strncat'.
33528         * modules/unistr/u8-strncat-tests: New file.
33529         * tests/unistr/test-u8-strncat.c: New file.
33530         * tests/unistr/test-strncat.h: New file.
33531
33532         Tests for module 'unistr/u32-strcat'.
33533         * modules/unistr/u32-strcat-tests: New file.
33534         * tests/unistr/test-u32-strcat.c: New file.
33535
33536         Tests for module 'unistr/u16-strcat'.
33537         * modules/unistr/u16-strcat-tests: New file.
33538         * tests/unistr/test-u16-strcat.c: New file.
33539
33540         Tests for module 'unistr/u8-strcat'.
33541         * modules/unistr/u8-strcat-tests: New file.
33542         * tests/unistr/test-u8-strcat.c: New file.
33543         * tests/unistr/test-strcat.h: New file.
33544
33545         Tests for module 'unistr/u32-stpncpy'.
33546         * modules/unistr/u32-stpncpy-tests: New file.
33547         * tests/unistr/test-u32-stpncpy.c: New file.
33548
33549         Tests for module 'unistr/u16-stpncpy'.
33550         * modules/unistr/u16-stpncpy-tests: New file.
33551         * tests/unistr/test-u16-stpncpy.c: New file.
33552
33553         Tests for module 'unistr/u8-stpncpy'.
33554         * modules/unistr/u8-stpncpy-tests: New file.
33555         * tests/unistr/test-u8-stpncpy.c: New file.
33556         * tests/unistr/test-stpncpy.h: New file.
33557
33558         Tests for module 'unistr/u32-strncpy'.
33559         * modules/unistr/u32-strncpy-tests: New file.
33560         * tests/unistr/test-u32-strncpy.c: New file.
33561
33562         Tests for module 'unistr/u16-strncpy'.
33563         * modules/unistr/u16-strncpy-tests: New file.
33564         * tests/unistr/test-u16-strncpy.c: New file.
33565
33566         Tests for module 'unistr/u8-strncpy'.
33567         * modules/unistr/u8-strncpy-tests: New file.
33568         * tests/unistr/test-u8-strncpy.c: New file.
33569         * tests/unistr/test-strncpy.h: New file.
33570
33571         Tests for module 'unistr/u32-stpcpy'.
33572         * modules/unistr/u32-stpcpy-tests: New file.
33573         * tests/unistr/test-u32-stpcpy.c: New file.
33574
33575         Tests for module 'unistr/u16-stpcpy'.
33576         * modules/unistr/u16-stpcpy-tests: New file.
33577         * tests/unistr/test-u16-stpcpy.c: New file.
33578
33579         Tests for module 'unistr/u8-stpcpy'.
33580         * modules/unistr/u8-stpcpy-tests: New file.
33581         * tests/unistr/test-u8-stpcpy.c: New file.
33582         * tests/unistr/test-stpcpy.h: New file.
33583
33584         Tests for module 'unistr/u32-strcpy'.
33585         * modules/unistr/u32-strcpy-tests: New file.
33586         * tests/unistr/test-u32-strcpy.c: New file.
33587
33588         Tests for module 'unistr/u16-strcpy'.
33589         * modules/unistr/u16-strcpy-tests: New file.
33590         * tests/unistr/test-u16-strcpy.c: New file.
33591
33592         Tests for module 'unistr/u8-strcpy'.
33593         * modules/unistr/u8-strcpy-tests: New file.
33594         * tests/unistr/test-u8-strcpy.c: New file.
33595         * tests/unistr/test-strcpy.h: New file.
33596
33597         Tests for module 'unistr/u32-strnlen'.
33598         * modules/unistr/u32-strnlen-tests: New file.
33599         * tests/unistr/test-u32-strnlen.c: New file.
33600
33601         Tests for module 'unistr/u16-strnlen'.
33602         * modules/unistr/u16-strnlen-tests: New file.
33603         * tests/unistr/test-u16-strnlen.c: New file.
33604
33605         Tests for module 'unistr/u8-strnlen'.
33606         * modules/unistr/u8-strnlen-tests: New file.
33607         * tests/unistr/test-u8-strnlen.c: New file.
33608         * tests/unistr/test-strnlen.h: New file.
33609
33610         Tests for module 'unistr/u32-strlen'.
33611         * modules/unistr/u32-strlen-tests: New file.
33612         * tests/unistr/test-u32-strlen.c: New file.
33613
33614         Tests for module 'unistr/u16-strlen'.
33615         * modules/unistr/u16-strlen-tests: New file.
33616         * tests/unistr/test-u16-strlen.c: New file.
33617
33618         Tests for module 'unistr/u8-strlen'.
33619         * modules/unistr/u8-strlen-tests: New file.
33620         * tests/unistr/test-u8-strlen.c: New file.
33621
33622         Tests for module 'unistr/u32-prev'.
33623         * modules/unistr/u32-prev-tests: New file.
33624         * tests/unistr/test-u32-prev.c: New file.
33625
33626         Tests for module 'unistr/u16-prev'.
33627         * modules/unistr/u16-prev-tests: New file.
33628         * tests/unistr/test-u16-prev.c: New file.
33629
33630         Tests for module 'unistr/u8-prev'.
33631         * modules/unistr/u8-prev-tests: New file.
33632         * tests/unistr/test-u8-prev.c: New file.
33633
33634         Tests for module 'unistr/u32-next'.
33635         * modules/unistr/u32-next-tests: New file.
33636         * tests/unistr/test-u32-next.c: New file.
33637
33638         Tests for module 'unistr/u16-next'.
33639         * modules/unistr/u16-next-tests: New file.
33640         * tests/unistr/test-u16-next.c: New file.
33641
33642         Tests for module 'unistr/u8-next'.
33643         * modules/unistr/u8-next-tests: New file.
33644         * tests/unistr/test-u8-next.c: New file.
33645
33646         Tests for module 'unistr/u32-strmbtouc'.
33647         * modules/unistr/u32-strmbtouc-tests: New file.
33648         * tests/unistr/test-u32-strmbtouc.c: New file.
33649
33650         Tests for module 'unistr/u16-strmbtouc'.
33651         * modules/unistr/u16-strmbtouc-tests: New file.
33652         * tests/unistr/test-u16-strmbtouc.c: New file.
33653
33654         Tests for module 'unistr/u8-strmbtouc'.
33655         * modules/unistr/u8-strmbtouc-tests: New file.
33656         * tests/unistr/test-u8-strmbtouc.c: New file.
33657
33658         Tests for module 'unistr/u32-strmblen'.
33659         * modules/unistr/u32-strmblen-tests: New file.
33660         * tests/unistr/test-u32-strmblen.c: New file.
33661
33662         Tests for module 'unistr/u16-strmblen'.
33663         * modules/unistr/u16-strmblen-tests: New file.
33664         * tests/unistr/test-u16-strmblen.c: New file.
33665
33666         Tests for module 'unistr/u8-strmblen'.
33667         * modules/unistr/u8-strmblen-tests: New file.
33668         * tests/unistr/test-u8-strmblen.c: New file.
33669
33670         Tests for module 'unistr/u32-cpy-alloc'.
33671         * modules/unistr/u32-cpy-alloc-tests: New file.
33672         * tests/unistr/test-u32-cpy-alloc.c: New file.
33673
33674         Tests for module 'unistr/u16-cpy-alloc'.
33675         * modules/unistr/u16-cpy-alloc-tests: New file.
33676         * tests/unistr/test-u16-cpy-alloc.c: New file.
33677
33678         Tests for module 'unistr/u8-cpy-alloc'.
33679         * modules/unistr/u8-cpy-alloc-tests: New file.
33680         * tests/unistr/test-u8-cpy-alloc.c: New file.
33681         * tests/unistr/test-cpy-alloc.h: New file.
33682
33683         Tests for module 'unistr/u32-mbsnlen'.
33684         * modules/unistr/u32-mbsnlen-tests: New file.
33685         * tests/unistr/test-u32-mbsnlen.c: New file.
33686
33687         Tests for module 'unistr/u16-mbsnlen'.
33688         * modules/unistr/u16-mbsnlen-tests: New file.
33689         * tests/unistr/test-u16-mbsnlen.c: New file.
33690
33691         Tests for module 'unistr/u8-mbsnlen'.
33692         * modules/unistr/u8-mbsnlen-tests: New file.
33693         * tests/unistr/test-u8-mbsnlen.c: New file.
33694
33695         Tests for module 'unistr/u32-chr'.
33696         * modules/unistr/u32-chr-tests: New file.
33697         * tests/unistr/test-u32-chr.c: New file.
33698
33699         Tests for module 'unistr/u16-chr'.
33700         * modules/unistr/u16-chr-tests: New file.
33701         * tests/unistr/test-u16-chr.c: New file.
33702
33703         Tests for module 'unistr/u8-chr'.
33704         * modules/unistr/u8-chr-tests: New file.
33705         * tests/unistr/test-u8-chr.c: New file.
33706         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33707
33708         Tests for module 'unistr/u32-cmp2'.
33709         * modules/unistr/u32-cmp2-tests: New file.
33710         * tests/unistr/test-u32-cmp2.c: New file.
33711
33712         Tests for module 'unistr/u16-cmp2'.
33713         * modules/unistr/u16-cmp2-tests: New file.
33714         * tests/unistr/test-u16-cmp2.c: New file.
33715
33716         Tests for module 'unistr/u8-cmp2'.
33717         * modules/unistr/u8-cmp2-tests: New file.
33718         * tests/unistr/test-u8-cmp2.c: New file.
33719         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33720
33721         Tests for module 'unistr/u32-cmp'.
33722         * modules/unistr/u32-cmp-tests: New file.
33723         * tests/unistr/test-u32-cmp.c: New file.
33724
33725         Tests for module 'unistr/u16-cmp'.
33726         * modules/unistr/u16-cmp-tests: New file.
33727         * tests/unistr/test-u16-cmp.c: New file.
33728
33729         Tests for module 'unistr/u8-cmp'.
33730         * modules/unistr/u8-cmp-tests: New file.
33731         * tests/unistr/test-u8-cmp.c: New file.
33732         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33733
33734         Tests for module 'unistr/u32-set'.
33735         * modules/unistr/u32-set-tests: New file.
33736         * tests/unistr/test-u32-set.c: New file.
33737
33738         Tests for module 'unistr/u16-set'.
33739         * modules/unistr/u16-set-tests: New file.
33740         * tests/unistr/test-u16-set.c: New file.
33741
33742         Tests for module 'unistr/u8-set'.
33743         * modules/unistr/u8-set-tests: New file.
33744         * tests/unistr/test-u8-set.c: New file.
33745         * tests/unistr/test-set.h: New file.
33746
33747         Tests for module 'unistr/u32-move'.
33748         * modules/unistr/u32-move-tests: New file.
33749         * tests/unistr/test-u32-move.c: New file.
33750
33751         Tests for module 'unistr/u16-move'.
33752         * modules/unistr/u16-move-tests: New file.
33753         * tests/unistr/test-u16-move.c: New file.
33754
33755         Tests for module 'unistr/u8-move'.
33756         * modules/unistr/u8-move-tests: New file.
33757         * tests/unistr/test-u8-move.c: New file.
33758         * tests/unistr/test-move.h: New file.
33759
33760         Tests for module 'unistr/u32-cpy'.
33761         * modules/unistr/u32-cpy-tests: New file.
33762         * tests/unistr/test-u32-cpy.c: New file.
33763
33764         Tests for module 'unistr/u16-cpy'.
33765         * modules/unistr/u16-cpy-tests: New file.
33766         * tests/unistr/test-u16-cpy.c: New file.
33767
33768         Tests for module 'unistr/u8-cpy'.
33769         * modules/unistr/u8-cpy-tests: New file.
33770         * tests/unistr/test-u8-cpy.c: New file.
33771         * tests/unistr/test-cpy.h: New file.
33772
33773 2010-01-09  Bruno Haible  <bruno@clisp.org>
33774
33775         Tests for module 'unistr/u32-uctomb'.
33776         * modules/unistr/u32-uctomb-tests: New file.
33777         * tests/unistr/test-u32-uctomb.c: New file.
33778
33779         Tests for module 'unistr/u16-uctomb'.
33780         * modules/unistr/u16-uctomb-tests: New file.
33781         * tests/unistr/test-u16-uctomb.c: New file.
33782
33783         Tests for module 'unistr/u8-uctomb'.
33784         * modules/unistr/u8-uctomb-tests: New file.
33785         * tests/unistr/test-u8-uctomb.c: New file.
33786
33787         Tests for module 'unistr/u32-mbtoucr'.
33788         * modules/unistr/u32-mbtoucr-tests: New file.
33789         * tests/unistr/test-u32-mbtoucr.c: New file.
33790
33791         Tests for module 'unistr/u16-mbtoucr'.
33792         * modules/unistr/u16-mbtoucr-tests: New file.
33793         * tests/unistr/test-u16-mbtoucr.c: New file.
33794
33795         Tests for module 'unistr/u8-mbtoucr'.
33796         * modules/unistr/u8-mbtoucr-tests: New file.
33797         * tests/unistr/test-u8-mbtoucr.c: New file.
33798
33799         Tests for module 'unistr/u32-mbtouc'.
33800         * modules/unistr/u32-mbtouc-tests: New file.
33801         * tests/unistr/test-u32-mbtouc.c: New file.
33802
33803         Tests for module 'unistr/u16-mbtouc'.
33804         * modules/unistr/u16-mbtouc-tests: New file.
33805         * tests/unistr/test-u16-mbtouc.c: New file.
33806
33807         Tests for module 'unistr/u8-mbtouc'.
33808         * modules/unistr/u8-mbtouc-tests: New file.
33809         * tests/unistr/test-u8-mbtouc.c: New file.
33810
33811         Tests for module 'unistr/u32-mbtouc-unsafe'.
33812         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33813         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33814         * tests/unistr/test-u32-mbtouc.h: New file.
33815
33816         Tests for module 'unistr/u16-mbtouc-unsafe'.
33817         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33818         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33819         * tests/unistr/test-u16-mbtouc.h: New file.
33820
33821         Tests for module 'unistr/u8-mbtouc-unsafe'.
33822         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33823         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33824         * tests/unistr/test-u8-mbtouc.h: New file.
33825
33826         Tests for module 'unistr/u32-mblen'.
33827         * modules/unistr/u32-mblen-tests: New file.
33828         * tests/unistr/test-u32-mblen.c: New file.
33829
33830         Tests for module 'unistr/u16-mblen'.
33831         * modules/unistr/u16-mblen-tests: New file.
33832         * tests/unistr/test-u16-mblen.c: New file.
33833
33834         Tests for module 'unistr/u8-mblen'.
33835         * modules/unistr/u8-mblen-tests: New file.
33836         * tests/unistr/test-u8-mblen.c: New file.
33837
33838         Tests for module 'unistr/u32-to-u16'.
33839         * modules/unistr/u32-to-u16-tests: New file.
33840         * tests/unistr/test-u32-to-u16.c: New file.
33841
33842         Tests for module 'unistr/u32-to-u8'.
33843         * modules/unistr/u32-to-u8-tests: New file.
33844         * tests/unistr/test-u32-to-u8.c: New file.
33845
33846         Tests for module 'unistr/u16-to-u32'.
33847         * modules/unistr/u16-to-u32-tests: New file.
33848         * tests/unistr/test-u16-to-u32.c: New file.
33849
33850         Tests for module 'unistr/u16-to-u8'.
33851         * modules/unistr/u16-to-u8-tests: New file.
33852         * tests/unistr/test-u16-to-u8.c: New file.
33853
33854         Tests for module 'unistr/u8-to-u32'.
33855         * modules/unistr/u8-to-u32-tests: New file.
33856         * tests/unistr/test-u8-to-u32.c: New file.
33857
33858         Tests for module 'unistr/u8-to-u16'.
33859         * modules/unistr/u8-to-u16-tests: New file.
33860         * tests/unistr/test-u8-to-u16.c: New file.
33861
33862         Tests for module 'unistr/u32-check'.
33863         * modules/unistr/u32-check-tests: New file.
33864         * tests/unistr/test-u32-check.c: New file.
33865
33866         Tests for module 'unistr/u16-check'.
33867         * modules/unistr/u16-check-tests: New file.
33868         * tests/unistr/test-u16-check.c: New file.
33869
33870         Tests for module 'unistr/u8-check'.
33871         * modules/unistr/u8-check-tests: New file.
33872         * tests/unistr/test-u8-check.c: New file.
33873
33874         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33875         (category_equals): New function.
33876         (main): Add more tests.
33877         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33878
33879         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33880
33881 2010-01-10  Bruno Haible  <bruno@clisp.org>
33882
33883         unistr/u*-strcoll: Try harder to distinguish different strings.
33884         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33885         compare s1 and s2 to see if they are different.
33886
33887 2010-01-10  Bruno Haible  <bruno@clisp.org>
33888
33889         unistr/u*-stpncpy: Fix the return value.
33890         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33891         description of the return value consistent with stpncpy in glibc.
33892         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33893         written non-NUL unit.
33894
33895 2010-01-10  Bruno Haible  <bruno@clisp.org>
33896
33897         unistr/u*-next: Add missing dependencies.
33898         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33899         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33900         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33901
33902 2010-01-10  Bruno Haible  <bruno@clisp.org>
33903
33904         unistr/u8-mbsnlen: Fix return value for incomplete character.
33905         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33906         u8_mblen.
33907         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33908         Remove unistr/u8-mblen.
33909         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33910         u16_mblen.
33911         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33912         Remove unistr/u16-mblen.
33913
33914 2010-01-10  Bruno Haible  <bruno@clisp.org>
33915
33916         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33917         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33918         Reported by Brian Gough <bjg@gnu.org> and
33919         Chris Clayton <chris2553@googlemail.com> via
33920         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33921
33922 2010-01-09  Bruno Haible  <bruno@clisp.org>
33923
33924         unistr/u16-to-u32: Reject invalid input.
33925         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33926         u16_mbtouc.
33927         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33928         Remove unistr/u16-mbtouc.
33929
33930         unistr/u16-to-u8: Reject invalid input.
33931         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33932         u16_mbtouc.
33933         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33934         Remove unistr/u16-mbtouc.
33935
33936         unistr/u8-to-u32: Reject invalid input.
33937         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33938         u8_mbtouc.
33939         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33940         Remove unistr/u8-mbtouc.
33941
33942         unistr/u8-to-u16: Reject invalid input.
33943         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33944         u8_mbtouc.
33945         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33946         Remove unistr/u8-mbtouc.
33947
33948 2010-01-09  Bruno Haible  <bruno@clisp.org>
33949
33950         Tests for module 'getlogin'.
33951         * modules/getlogin-tests: New file.
33952         * tests/test-getlogin.c: New file.
33953
33954         New module 'getlogin'.
33955         * lib/unistd.in.h (getlogin): New declaration.
33956         * lib/getlogin.c: New file.
33957         * m4/getlogin.m4: New file.
33958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33959         HAVE_GETLOGIN.
33960         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33961         HAVE_GETLOGIN.
33962         * modules/getlogin: New file.
33963         * doc/posix-functions/getlogin.texi: Mention the new module.
33964         Reported by John W. Eaton <jwe@gnu.org>.
33965
33966 2010-01-09  Bruno Haible  <bruno@clisp.org>
33967
33968         getlogin_r: Support for native Windows.
33969         * lib/getlogin_r.c: Include <windows.h>
33970         (getlogin_r): Implement for native Windows.
33971         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33972         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33973         via John W. Eaton <jwe@gnu.org>.
33974
33975 2010-01-09  Bruno Haible  <bruno@clisp.org>
33976
33977         getlogin_r: Small fixes.
33978         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33979         succeeds.
33980         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33981         before testing whether getlogin_r is declared. No need to set
33982         HAVE_DECL_GETLOGIN_R to 1.
33983         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33984
33985 2010-01-09  Bruno Haible  <bruno@clisp.org>
33986
33987         * lib/unistd.in.h (getlogin_r): Add comment.
33988
33989 2010-01-09  Bruno Haible  <bruno@clisp.org>
33990
33991         Tests for module 'getlogin_r'.
33992         * modules/getlogin_r-tests: New file.
33993         * tests/test-getlogin_r.c: New file.
33994
33995 2010-01-09  Jim Meyering  <meyering@redhat.com>
33996
33997         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33998         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33999         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34000
34001 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34002
34003         * lib/dup2.c (rpl_dup2): Improve comment.
34004
34005 2010-01-08  Eric Blake  <ebb9@byu.net>
34006
34007         maint.mk: allow packages to add makefile @@ exceptions
34008         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34009         (sc_makefile_check): Rename...
34010         (sc_makefile_at_at_check): ...to this, and use hook.
34011
34012         dup2: work around mingw bug
34013         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34014         Reported by Simon Josefsson.
34015
34016 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34017
34018         glob: Fix C++ compilation.
34019         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34020         C++.
34021
34022 2010-01-07  Bruno Haible  <bruno@clisp.org>
34023
34024         Fix indentation of wctype.in.h, broken since 2007-01-06.
34025         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34026
34027 2010-01-07  Bruno Haible  <bruno@clisp.org>
34028
34029         mbslen: Avoid collision with system function.
34030         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34031         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34032         * m4/mbslen.m4: New file.
34033         * modules/mbslen (Files): Add it.
34034         (configure.ac): Invoke gl_MBSLEN.
34035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34036         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34037         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34038         via Ian Beckwith <ianb@erislabs.net>.
34039
34040 2010-01-07  Bruno Haible  <bruno@clisp.org>
34041
34042         dirent: Document the last fix.
34043         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34044
34045 2010-01-07  Bruno Haible  <bruno@clisp.org>
34046
34047         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34048         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34049         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34050         va_list are defined.
34051         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34052         Reported by Eric Blake.
34053
34054 2010-01-07  Bruno Haible  <bruno@clisp.org>
34055
34056         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34057         * modules/xlist (Depends-on): Add 'list',
34058         * modules/xoset (Depends-on): Add 'oset'.
34059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34060
34061 2010-01-07  Bruno Haible  <bruno@clisp.org>
34062
34063         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34064         * doc/posix-functions/strncasecmp.texi: Likewise.
34065
34066 2010-01-07  Bruno Haible  <bruno@clisp.org>
34067
34068         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34069
34070 2010-01-07  John W. Eaton  <jwe@octave.org>
34071
34072         wctype: allow C++ use
34073         * lib/wctype.in.h: Add extern "C" block for C++.
34074
34075 2010-01-06  Eric Blake  <ebb9@byu.net>
34076
34077         maint.mk: detect incorrect GFDL usage
34078         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34079
34080 2010-01-06  Jim Meyering  <meyering@redhat.com>
34081         and Eric Blake  <ebb9@byu.net>
34082
34083         maint.mk: ignore multi-line copyright in NEWS
34084         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34085
34086 2010-01-06  Eric Blake  <ebb9@byu.net>
34087
34088         select: add missing dependency
34089         * modules/select-tests (Depends-on): Move sockets dependency...
34090         * modules/select (Depends-on): ...here.
34091         Reported by Ian Beckwith.
34092
34093         doc: regenerate INSTALL
34094         * doc/INSTALL: Reflect recent autoconf update.
34095         * doc/INSTALL.ISO: Likewise.
34096         * doc/INSTALL.UTF-8: Likewise.
34097
34098         pread: fix compilation on glibc
34099         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34100         Reported by Ralf Wildenhues.
34101
34102         dirent: fix test failure
34103         * lib/dirent.in.h (includes): Guarantee ino_t.
34104         Reported by Ralf Wildenhues.
34105
34106 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34107
34108         linkat, renameat: avoid bad free
34109         * lib/at-func2.c (at_func2): Fix typo.
34110         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34111
34112 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34113
34114         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34115         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34116         to avoid failure of symlink test later.
34117
34118 2010-01-06  Eric Blake  <ebb9@byu.net>
34119
34120         stdio, unistd: guarantee ssize_t
34121         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34122         2008 are exposed when needed.
34123         * lib/stdio.in.h (includes): Likewise.
34124         Reported by Ralf Wildenhues.
34125
34126 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34127
34128         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34129         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34130         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34131
34132 2010-01-06  Jim Meyering  <meyering@redhat.com>
34133
34134         readtokens: this module *does* require xalloc.h
34135         It uses only functions that were omitted by the old syntax-check rule.
34136         * lib/readtokens.c: Include "xalloc.h" once again.
34137         * modules/readtokens (Depends-on): Add xalloc.
34138         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34139
34140 2010-01-05  Eric Blake  <ebb9@byu.net>
34141
34142         maint: support 'make announcement' from a VPATH build
34143         * top/maint.mk (announcement): Look for correct NEWS file.
34144
34145 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34146
34147         utimens (fdutimens): ignore a negative FD, per contract
34148         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34149         when we have a valid file descriptor.  Otherwise, using a brand
34150         new glibc (with just-patched futimens that now fails with EBADF)
34151         would cause this function to fail with ENOSYS.
34152         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34153         See also http://bugzilla.redhat.com/552320.
34154
34155 2010-01-05  Eric Blake  <ebb9@byu.net>
34156
34157         strcase: document what it provides
34158         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34159         gnulib module.
34160         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34161         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34162
34163 2010-01-05  Jim Meyering  <meyering@redhat.com>
34164
34165         maint: remove useless inclusions of "xalloc.h"
34166         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34167         * lib/readtokens.c: Likewise.
34168         * lib/same.c: Likewise.
34169         * modules/getloadavg (Depends-on): Remove xalloc.
34170         * modules/readtokens: Likewise.
34171         * modules/same: Likewise.
34172
34173         maint.mk: include 4 more function names in alloca.h-checking regexp
34174         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34175         regexp.  Before, we would give a false-positive (saying alloca.h
34176         is included unnecessarily) when the only uses involved omitted symbols.
34177
34178         xalloc.h: use consistent formatting
34179         * lib/xalloc.h: Move declarations to start in the first column.
34180
34181 2010-01-05  Eric Blake  <ebb9@byu.net>
34182
34183         mkdir: avoid xalloc
34184         * lib/mkdir.c (includes): Drop unused header.
34185         Reported by John W. Eaton.
34186
34187 2010-01-04  Jim Meyering  <meyering@redhat.com>
34188
34189         nl_langinfo: avoid configure-time syntax error
34190         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34191         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34192         the empty string.  Don't let that provoke a shell syntax error.
34193
34194         regcomp, regexec, fnmatch: avoid array bounds read error
34195         * lib/regcomp.c (build_equiv_class): From glibc:
34196         Use only the low 24 bits of a findidx return value as an index
34197         into the weights array.  Patch by Ulrich Drepper:
34198         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34199         * lib/regexec.c (check_node_accept_bytes): Likewise.
34200         * lib/fnmatch_loop.c (FCT): Likewise.
34201
34202         regcomp: skip collseq lookup when there are no rules
34203         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34204         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34205
34206         regcomp: recognize ill-formed { } expressions
34207         * lib/regcomp.c (parse_dup_op): From glibc:
34208         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34209
34210         regcomp: fix typo in comment
34211         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34212         s/satisfy/satisfies/.
34213
34214         regcomp: sync from glibc: remove dead store
34215         * lib/regcomp.c (duplicate_node_closure): Remove useless
34216         search_duplicated_node call and dead store.
34217
34218         regcomp: sync from glibc; always use nl_langinfo
34219         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34220         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34221         * modules/regex (Depends-on): Add nl_langinfo.
34222
34223 2010-01-04  Eric Blake  <ebb9@byu.net>
34224
34225         fdopendir: fix configure test
34226         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34227
34228 2010-01-01  Bruno Haible  <bruno@clisp.org>
34229
34230         wchar: Remove unused configure check.
34231         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34232
34233 2010-01-01  Eric Blake  <ebb9@byu.net>
34234
34235         headers: make check of system header explicit
34236         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34237         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34238         ourselves.
34239         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34240         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34241         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34242         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34243         internals.
34244         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34245         missing.
34246         Suggested by Bruno Haible.
34247
34248 2010-01-01  Jim Meyering  <meyering@redhat.com>
34249
34250         ChangeLog: tweak to eliminate unnecessary copyright line
34251         * ChangeLog: Remove a copyright line that was mistakenly updated
34252         by today's update-copyright run.  Reported by Eric Blake.
34253
34254         test-update-copyright: don't let envvar setting cause test failure
34255         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34256
34257 2010-01-01  Bruno Haible  <bruno@clisp.org>
34258
34259         localename: Avoid gcc warning.
34260         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34261         function if it is not used.
34262
34263 2010-01-01  Jim Meyering  <meyering@redhat.com>
34264
34265         update nearly all FSF copyright year lists to include 2010
34266         Use the same procedure as for 2009, outlined in
34267         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34268
34269         version-etc: set COPYRIGHT_YEAR to 2010
34270         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34271
34272 2009-12-31  Eric Blake  <ebb9@byu.net>
34273
34274         doc: correct availability of cygwin 1.5.x getopt
34275         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34276         variables.
34277         * doc/posix-functions/opterr.texi (opterr): Likewise.
34278         * doc/posix-functions/optind.texi (optind): Likewise.
34279         * doc/posix-functions/optopt.texi (optopt): Likewise.
34280         * doc/posix-functions/tzname.texi (tzname): Likewise.
34281
34282         openat: update maintainer
34283         * modules/openat (Maintainer): Add myself.
34284
34285         utimens: avoid shadowing warning
34286         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34287         buffers into one, to avoid shadowing, as well as avoiding a
34288         redundant stat.
34289         Reported by Jim Meyering.
34290
34291         test-dup2: avoid compiler warning
34292         * tests/test-dup2.c (is_inheritable): Only define if used.
34293
34294 2010-01-01  Bruno Haible  <bruno@clisp.org>
34295
34296         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34297         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34298         defined, use wctomb instead of wcrtomb.
34299
34300 2010-01-01  Bruno Haible  <bruno@clisp.org>
34301
34302         iconv: Reject native Solaris iconv.
34303         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34304         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34305
34306 2009-12-31  Bruno Haible  <bruno@clisp.org>
34307
34308         * tests/test-signal.c (main): Remove test of 'SIG'.
34309
34310 2009-12-31  Bruno Haible  <bruno@clisp.org>
34311
34312         spawn: Fix incomplete fix.
34313         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34314         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34315         warnings for GNULIB_POSIXCHECK again.
34316         Reported by Eric Blake.
34317
34318 2009-12-31  Bruno Haible  <bruno@clisp.org>
34319
34320         Avoid namespace pollution on glibc systems.
34321         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34322         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34323         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34324         glibc systems.
34325
34326 2009-12-31  Bruno Haible  <bruno@clisp.org>
34327
34328         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34329         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34330         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34331         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34332         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34333         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34334         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34335
34336 2009-12-31  Bruno Haible  <bruno@clisp.org>
34337
34338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34339         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34340         afterwards.
34341
34342 2009-12-31  Bruno Haible  <bruno@clisp.org>
34343
34344         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34345         SYS_UTSNAME_H.
34346
34347 2009-12-31  Bruno Haible  <bruno@clisp.org>
34348
34349         spawn: Fix misapplied patch.
34350         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34351         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34352         warnings for GNULIB_POSIXCHECK.
34353
34354 2009-12-31  Bruno Haible  <bruno@clisp.org>
34355
34356         times: Update after sys_times changed.
34357         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34358         * modules/times (Files): Add it.
34359         (configure.ac): Invoke gl_FUNC_TIMES.
34360
34361 2009-12-31  Bruno Haible  <bruno@clisp.org>
34362
34363         Use AC_C_INLINE where necessary.
34364         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34365         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34367         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34368         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34369         * m4/mbiter.m4 (gl_MBITER): Likewise.
34370         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34371         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34372         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34373         * modules/u64 (configure.ac): Likewise.
34374
34375 2009-12-31  Bruno Haible  <bruno@clisp.org>
34376
34377         Use AC_C_INLINE instead of module 'inline' where possible.
34378         * modules/inline (Description): Clarify purpose.
34379         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34380         * modules/count-one-bits (Depends-on): Remove inline.
34381         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34382         * modules/openat (Depends-on): Remove inline.
34383         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34384         instead of depending on module 'inline'.
34385         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34386         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34387         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34388         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34389         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34390         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34391         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34392         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34393         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34394         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34395         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34396         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34397         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34398         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34399         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34400         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34401         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34402         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34403         Likewise.
34404         * modules/unictype/property-ascii-hex-digit (Depends-on,
34405         configure.ac): Likewise.
34406         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34407         configure.ac): Likewise.
34408         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34409         configure.ac): Likewise.
34410         * modules/unictype/property-bidi-block-separator (Depends-on,
34411         configure.ac): Likewise.
34412         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34413         configure.ac): Likewise.
34414         * modules/unictype/property-bidi-common-separator (Depends-on,
34415         configure.ac): Likewise.
34416         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34417         Likewise.
34418         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34419         configure.ac): Likewise.
34420         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34421         configure.ac): Likewise.
34422         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34423         configure.ac): Likewise.
34424         * modules/unictype/property-bidi-european-digit (Depends-on,
34425         configure.ac): Likewise.
34426         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34427         configure.ac): Likewise.
34428         * modules/unictype/property-bidi-left-to-right (Depends-on,
34429         configure.ac): Likewise.
34430         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34431         configure.ac): Likewise.
34432         * modules/unictype/property-bidi-other-neutral (Depends-on,
34433         configure.ac): Likewise.
34434         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34435         Likewise.
34436         * modules/unictype/property-bidi-segment-separator (Depends-on,
34437         configure.ac): Likewise.
34438         * modules/unictype/property-bidi-whitespace (Depends-on,
34439         configure.ac): Likewise.
34440         * modules/unictype/property-combining (Depends-on, configure.ac):
34441         Likewise.
34442         * modules/unictype/property-composite (Depends-on, configure.ac):
34443         Likewise.
34444         * modules/unictype/property-currency-symbol (Depends-on,
34445         configure.ac): Likewise.
34446         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34447         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34448         Likewise.
34449         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34450         configure.ac): Likewise.
34451         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34452         Likewise.
34453         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34454         Likewise.
34455         * modules/unictype/property-extender (Depends-on, configure.ac):
34456         Likewise.
34457         * modules/unictype/property-format-control (Depends-on, configure.ac):
34458         Likewise.
34459         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34460         Likewise.
34461         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34462         Likewise.
34463         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34464         Likewise.
34465         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34466         Likewise.
34467         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34468         Likewise.
34469         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34470         Likewise.
34471         * modules/unictype/property-id-start (Depends-on, configure.ac):
34472         Likewise.
34473         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34474         Likewise.
34475         * modules/unictype/property-ids-binary-operator (Depends-on,
34476         configure.ac): Likewise.
34477         * modules/unictype/property-ids-trinary-operator (Depends-on,
34478         configure.ac): Likewise.
34479         * modules/unictype/property-ignorable-control (Depends-on,
34480         configure.ac): Likewise.
34481         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34482         Likewise.
34483         * modules/unictype/property-join-control (Depends-on, configure.ac):
34484         Likewise.
34485         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34486         Likewise.
34487         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34488         Likewise.
34489         * modules/unictype/property-logical-order-exception (Depends-on,
34490         configure.ac): Likewise.
34491         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34492         Likewise.
34493         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34494         * modules/unictype/property-non-break (Depends-on, configure.ac):
34495         Likewise.
34496         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34497         Likewise.
34498         * modules/unictype/property-numeric (Depends-on, configure.ac):
34499         Likewise.
34500         * modules/unictype/property-other-alphabetic (Depends-on,
34501         configure.ac): Likewise.
34502         * modules/unictype/property-other-default-ignorable-code-point
34503         (Depends-on, configure.ac): Likewise.
34504         * modules/unictype/property-other-grapheme-extend (Depends-on,
34505         configure.ac): Likewise.
34506         * modules/unictype/property-other-id-continue (Depends-on,
34507         configure.ac): Likewise.
34508         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34509         Likewise.
34510         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34511         Likewise.
34512         * modules/unictype/property-other-math (Depends-on, configure.ac):
34513         Likewise.
34514         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34515         Likewise.
34516         * modules/unictype/property-paired-punctuation (Depends-on,
34517         configure.ac): Likewise.
34518         * modules/unictype/property-paragraph-separator (Depends-on,
34519         configure.ac): Likewise.
34520         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34521         Likewise.
34522         * modules/unictype/property-pattern-white-space (Depends-on,
34523         configure.ac): Likewise.
34524         * modules/unictype/property-private-use (Depends-on, configure.ac):
34525         Likewise.
34526         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34527         Likewise.
34528         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34529         Likewise.
34530         * modules/unictype/property-radical (Depends-on, configure.ac):
34531         Likewise.
34532         * modules/unictype/property-sentence-terminal (Depends-on,
34533         configure.ac): Likewise.
34534         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34535         Likewise.
34536         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34537         * modules/unictype/property-terminal-punctuation (Depends-on,
34538         configure.ac): Likewise.
34539         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34540         Likewise.
34541         * modules/unictype/property-unassigned-code-value (Depends-on,
34542         configure.ac): Likewise.
34543         * modules/unictype/property-unified-ideograph (Depends-on,
34544         configure.ac): Likewise.
34545         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34546         Likewise.
34547         * modules/unictype/property-variation-selector (Depends-on,
34548         configure.ac): Likewise.
34549         * modules/unictype/property-white-space (Depends-on, configure.ac):
34550         Likewise.
34551         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34552         Likewise.
34553         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34554         Likewise.
34555         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34556         Likewise.
34557         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34558         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34559         Likewise.
34560
34561 2009-12-31  Bruno Haible  <bruno@clisp.org>
34562
34563         Remove unnecessary AC_C_INLINE invocation.
34564         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34565         since 2009-08-21.
34566
34567 2009-12-31  Jim Meyering  <meyering@redhat.com>
34568
34569         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34570         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34571         With this change, we can all remove the gpg_key_ID = ... definition
34572         from our respective cfg.mk files.
34573
34574         maint.mk: create announcement template in ~/, not in /tmp
34575         * top/maint.mk (emit_upload_commands): Adjust.
34576         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34577         Remove temporary file, .ci-msg.
34578
34579 2009-12-31  Eric Blake  <ebb9@byu.net>
34580
34581         link-warning: always build headers with link warnings
34582         * modules/arpa_inet (Makefile.am): Always build replacement
34583         header.
34584         * modules/ctype (Makefile.am): Likewise.
34585         * modules/dirent (Makefile.am): Likewise.
34586         * modules/inttypes (Makefile.am): Likewise.
34587         * modules/langinfo (Makefile.am): Likewise.
34588         * modules/locale (Makefile.am): Likewise.
34589         * modules/spawn (Makefile.am): Likewise.
34590         * modules/sys_file (Makefile.am): Likewise.
34591         * modules/sys_ioctl (Makefile.am): Likewise.
34592         * modules/sys_select (Makefile.am): Likewise.
34593         * modules/sys_socket (Makefile.am): Likewise.
34594         * modules/sys_times (Makefile.am): Likewise.
34595         * modules/sys_utsname (Makefile.am): Likewise.
34596         * modules/sys_wait (Makefile.am): Likewise.
34597         * modules/wchar (Makefile.am): Likewise.
34598         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34599         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34600         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34601         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34602         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34603         Likewise.
34604         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34605         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34606         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34607         Likewise.
34608         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34609         Likewise.
34610         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34611         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34612         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34613         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34614         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34615         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34616         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34617         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34618         (gl_WCHAR_H_DEFAULTS): Likewise.
34619
34620 2009-12-31  Eric Blake  <ebb9@byu.net>
34621
34622         signal, spawn: use link warnings
34623         * lib/signal.in.h (sigset_t): Make unconditional.
34624         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34625         (sigpending, sigprocmask, sigaction): Add link warnings.
34626         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34627         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34628         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34629         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34630         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34631         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34632         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34633         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34634         (posix_spawn_file_actions_destroy)
34635         (posix_spawn_file_actions_addopen)
34636         (posix_spawn_file_actions_addclose)
34637         (posix_spawn_file_actions_adddup2): Likewise.
34638         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34639         * tests/test-signal.c (main): Enhance test.
34640
34641         spawn: improve wrapper support
34642         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34643         (gl_SPAWN_H_DEFAULTS): New defaults.
34644         * modules/spawn (Makefile.am): Substitute them.
34645         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34646         Only declare if missing or broken.
34647
34648         sys_times, sys_utsname: use include_next
34649         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34650         header.
34651         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34652         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34653         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34654         * modules/sys_times (Depends-on): Add include_next.
34655         (Makefile.am): Substitute additional values.
34656         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34657         * lib/sys_times.in.h (includes): Include native header, if
34658         available.
34659         * lib/sys_utsname.in.h (includes): Likewise.
34660         * tests/test-sys_times.c (main): Enhance test.
34661
34662         fdutimensat: revert prior patch
34663         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34664         utimens.h.
34665         Reported by Bruno Haible.
34666
34667 2009-12-30  Eric Blake  <ebb9@byu.net>
34668
34669         sys_wait: drop link-warning dependency
34670         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34671         link-warning efforts.
34672         * lib/sys_wait.in.h: Likewise.
34673
34674         fdutimensat: remove bogus dependency
34675         * modules/fdutimensat (Depends-on): Drop inline.
34676
34677         unistd: fix typo
34678         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34679
34680 2009-12-30  Bruno Haible  <bruno@clisp.org>
34681
34682         Fix compilation error with Solaris cc.
34683         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34684         * lib/unicase/u16-is-invariant.c: Likewise.
34685         * lib/unicase/u32-is-invariant.c: Likewise.
34686         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34687
34688 2009-12-30  Bruno Haible  <bruno@clisp.org>
34689
34690         Fix test crash.
34691         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34692         locales.
34693         Reported by Simon Josefsson <simon@josefsson.org>.
34694
34695 2009-12-30  Bruno Haible  <bruno@clisp.org>
34696
34697         Fix compilation error on most platforms.
34698         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34699         Reported by Simon Josefsson <simon@josefsson.org>
34700         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34701
34702 2009-12-30  Eric Blake  <ebb9@byu.net>
34703
34704         futimens, utimensat: work around ntfs-3g bug
34705         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34706         a ctime bug is present, and expand workaround to cover ntfs-3g.
34707         * lib/utimens.c (fdutimens, lutimens): Likewise.
34708         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34709         (validate_timespec): Adjust return value.
34710         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34711         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34712         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34713
34714 2009-12-29  Eric Blake  <ebb9@byu.net>
34715
34716         link-warning: make usage consistent
34717         * modules/ctype (Depends-on): Add link-warning.
34718         (Makefile.am): Update rules accordingly.
34719         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34720         * modules/locale (Depends-on, Makefile.am): Likewise.
34721         * modules/sys_file (Makefile.am): Likewise.
34722         * modules/getopt-posix (Makefile.am): Delete unused link warning
34723         efforts.
34724         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34725         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34726         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34727         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34728
34729         stdio: remove unused variables
34730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34731         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34732         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34733
34734         tests: test more substitute headers
34735         * modules/ctype-tests: New file.
34736         * modules/dirent-tests: Likewise.
34737         * modules/spawn-tests: Likewise.
34738         * modules/sys_file-tests: Likewise.
34739         * modules/sys_ioctl-tests: Likewise.
34740         * modules/sys_wait-tests: Likewise.
34741         * tests/test-ctype.c: Likewise.
34742         * tests/test-dirent.c: Likewise.
34743         * tests/test-spawn.c: Likewise.
34744         * tests/test-sys_file.c: Likewise.
34745         * tests/test-sys_ioctl.c: Likewise.
34746         * tests/test-sys_wait.c: Likewise.
34747         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34748         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34749         whether or not flock is in use.
34750
34751         tests: remove License section from module
34752         * modules/arpa_inet-tests: Remove unneeded section.
34753         * modules/byteswap-tests: Likewise.
34754         * modules/ceilf-tests: Likewise.
34755         * modules/ceill-tests: Likewise.
34756         * modules/crypto/des-tests: Likewise.
34757         * modules/crypto/gc-arcfour-tests: Likewise.
34758         * modules/crypto/gc-arctwo-tests: Likewise.
34759         * modules/crypto/gc-des-tests: Likewise.
34760         * modules/crypto/gc-hmac-md5-tests: Likewise.
34761         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34762         * modules/crypto/gc-md2-tests: Likewise.
34763         * modules/crypto/gc-md4-tests: Likewise.
34764         * modules/crypto/gc-md5-tests: Likewise.
34765         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34766         * modules/crypto/gc-rijndael-tests: Likewise.
34767         * modules/crypto/gc-sha1-tests: Likewise.
34768         * modules/crypto/gc-tests: Likewise.
34769         * modules/crypto/md2-tests: Likewise.
34770         * modules/crypto/md4-tests: Likewise.
34771         * modules/fcntl-h-tests: Likewise.
34772         * modules/floorf-tests: Likewise.
34773         * modules/floorl-tests: Likewise.
34774         * modules/frexp-nolibm-tests: Likewise.
34775         * modules/frexp-tests: Likewise.
34776         * modules/frexpl-nolibm-tests: Likewise.
34777         * modules/frexpl-tests: Likewise.
34778         * modules/getaddrinfo-tests: Likewise.
34779         * modules/inttypes-tests: Likewise.
34780         * modules/isfinite-tests: Likewise.
34781         * modules/isinf-tests: Likewise.
34782         * modules/ldexpl-tests: Likewise.
34783         * modules/locale-tests: Likewise.
34784         * modules/math-tests: Likewise.
34785         * modules/netdb-tests: Likewise.
34786         * modules/netinet_in-tests: Likewise.
34787         * modules/printf-frexp-tests: Likewise.
34788         * modules/printf-frexpl-tests: Likewise.
34789         * modules/priv-set-tests: Likewise.
34790         * modules/random_r-tests: Likewise.
34791         * modules/round-tests: Likewise.
34792         * modules/roundf-tests: Likewise.
34793         * modules/roundl-tests: Likewise.
34794         * modules/search-tests: Likewise.
34795         * modules/select-tests: Likewise.
34796         * modules/signal-tests: Likewise.
34797         * modules/stdbool-tests: Likewise.
34798         * modules/stddef-tests: Likewise.
34799         * modules/stdint-tests: Likewise.
34800         * modules/stdio-tests: Likewise.
34801         * modules/stdlib-tests: Likewise.
34802         * modules/string-tests: Likewise.
34803         * modules/strings-tests: Likewise.
34804         * modules/sys_select-tests: Likewise.
34805         * modules/sys_socket-tests: Likewise.
34806         * modules/sys_stat-tests: Likewise.
34807         * modules/sys_time-tests: Likewise.
34808         * modules/sys_utsname-tests: Likewise.
34809         * modules/sysexits-tests: Likewise.
34810         * modules/time-tests: Likewise.
34811         * modules/trunc-tests: Likewise.
34812         * modules/truncf-tests: Likewise.
34813         * modules/truncl-tests: Likewise.
34814         * modules/tsearch-tests: Likewise.
34815         * modules/unistd-tests: Likewise.
34816         * modules/wchar-tests: Likewise.
34817         * modules/wctype-tests: Likewise.
34818
34819         tests: fix license on several tests
34820         * tests/test-des.c: Update to GPLv3+.
34821         * tests/test-flock.c: Likewise.
34822         * tests/test-fsync.c: Likewise.
34823         * tests/test-futimens.h: Likewise.
34824         * tests/test-gc-arcfour.c: Likewise.
34825         * tests/test-gc-arctwo.c: Likewise.
34826         * tests/test-gc-des.c: Likewise.
34827         * tests/test-gc-hmac-md5.c: Likewise.
34828         * tests/test-gc-hmac-sha1.c: Likewise.
34829         * tests/test-gc-md2.c: Likewise.
34830         * tests/test-gc-md4.c: Likewise.
34831         * tests/test-gc-md5.c: Likewise.
34832         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34833         * tests/test-gc-rijndael.c: Likewise.
34834         * tests/test-gc-sha1.c: Likewise.
34835         * tests/test-gc.c: Likewise.
34836         * tests/test-getcwd.c: Likewise.
34837         * tests/test-link.c: Likewise.
34838         * tests/test-link.h: Likewise.
34839         * tests/test-lutimens.h: Likewise.
34840         * tests/test-md2.c: Likewise.
34841         * tests/test-md4.c: Likewise.
34842         * tests/test-mkdir.h: Likewise.
34843         * tests/test-rename.c: Likewise.
34844         * tests/test-rename.h: Likewise.
34845         * tests/test-safe-alloc.c: Likewise.
34846         * tests/test-utimens-common.h: Likewise.
34847         * tests/test-utimens.h: Likewise.
34848
34849         maint: sync license texts
34850         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34851         * doc/gpl-3.0.texi: Revert copyright year update.
34852         * doc/lgpl-3.0.texi: Likewise.
34853
34854 2009-12-29  Jim Meyering  <meyering@redhat.com>
34855
34856         update nearly all FSF copyright year lists to include 2009
34857         The files named by the following are exempted:
34858             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34859               test -f "$dst" && { echo "$dst"; continue; }
34860               test -d "$dst" || continue
34861               echo "$dst"/$(basename "$src")
34862             done > exempt
34863             git ls-files tests/unictype >> exempt
34864         In the remaining files, convert to all-interval notation if
34865         - there is already at least one year interval like 2000-2003
34866         - the file is maintained by me
34867         - the file is in lib/uni*/, where that style already prevails
34868         Otherwise, use update-copyright's default.
34869
34870 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34871         and Eric Blake  <ebb9@byu.net>
34872
34873         tests: don't require debug system() to pass
34874         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34875         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34876         * tests/test-unlink.h (test_unlink_func): Likewise.
34877         * tests/test-fstatat.c (main): ...into callers.
34878         * tests/test-lstat.c (main): Likewise.
34879         * tests/test-rmdir.c (main): Likewise.
34880         * tests/test-unlink.c (main): Likewise.
34881         * tests/test-unlinkat.c (main): Likewise.
34882         * tests/test-areadlink-with-size.c (main): Don't require a
34883         debug-only system call to pass, aiding cross-testing to mingw.
34884         * tests/test-areadlink.c (main): Likewise.
34885         * tests/test-areadlinkat-with-size.c (main): Likewise.
34886         * tests/test-areadlinkat.c (main): Likewise.
34887         * tests/test-canonicalize-lgpl.c (main): Likewise.
34888         * tests/test-canonicalize.c (main): Likewise.
34889         * tests/test-chown.c (main): Likewise.
34890         * tests/test-fchownat.c (main): Likewise.
34891         * tests/test-lchown.c (main): Likewise.
34892         * tests/test-fdutimensat.c (main): Likewise.
34893         * tests/test-futimens.c (main): Likewise.
34894         * tests/test-link.c (main): Likewise.
34895         * tests/test-linkat.c (main): Likewise.
34896         * tests/test-mkdir.c (main): Likewise.
34897         * tests/test-mkdirat.c (main): Likewise.
34898         * tests/test-mkfifo.c (main): Likewise.
34899         * tests/test-mkfifoat.c (main): Likewise.
34900         * tests/test-mknod.c (main): Likewise.
34901         * tests/test-readlink.c (main): Likewise.
34902         * tests/test-remove.c (main): Likewise.
34903         * tests/test-rename.c (main): Likewise.
34904         * tests/test-renameat.c (main): Likewise.
34905         * tests/test-symlink.c (main): Likewise.
34906         * tests/test-symlinkat.c (main): Likewise.
34907         * tests/test-utimens.c (main): Likewise.
34908         * tests/test-utimensat.c (main): Likewise.
34909
34910 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34911
34912         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34913         on $(UNUSED_PARAMETER_H) to avoid build failure.
34914
34915 2009-12-28  Jim Meyering  <meyering@redhat.com>
34916
34917         update-copyright: you may specify a max. line length other than 72
34918         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34919
34920         maint: use consistent FSF copyright line syntax
34921         * lib/posixtm.c: Add missing comma in FSF copyright line.
34922         * lib/posixtm.h: Likewise.
34923         * lib/getugroups.c: Add missing ", Inc.".
34924
34925         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34926         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34927         FSF copyright line.  Remove trailing blanks.
34928
34929 2009-12-28  Eric Blake  <ebb9@byu.net>
34930
34931         test-dup2: reduce dependencies
34932         * modules/cloexec (Configure.ac): Set witness.
34933         * modules/dup2-tests (Depends-on): Drop cloexec.
34934         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34935         not present.
34936         Suggested by Bruno Haible.
34937
34938 2009-12-26  Bruno Haible  <bruno@clisp.org>
34939
34940         Remove an unneeded dependency.
34941         * modules/fseterr (Depends-on): Remove dup2.
34942
34943 2009-12-26  Eric Blake  <ebb9@byu.net>
34944
34945         tests: use macros.h in more places
34946         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34947         (ASSERT_STREAM): Provide default of stderr.
34948         * tests/test-dirent-safer.c: Include macros.h, using alternate
34949         stream for assertions.
34950         * tests/test-dup-safer.c: Likewise.
34951         * tests/test-freopen-safer.c: Likewise.
34952         * tests/test-getopt.c: Likewise.
34953         * tests/test-openat-safer.c: Likewise.
34954         * tests/test-pipe.c: Likewise.
34955         * tests/test-popen-safer.c: Likewise.
34956         * modules/dirent-safer-tests (Files): Include macros.h.
34957         * modules/unistd-safer-tests (Files): Likewise.
34958         * modules/freopen-safer-tests (Files): Likewise.
34959         * modules/getopt-posix-tests (Files): Likewise.
34960         * modules/openat-safer-tests (Files): Likewise.
34961         * modules/pipe-tests (Files): Likewise.
34962
34963 2009-12-26  Bruno Haible  <bruno@clisp.org>
34964
34965         javacomp: Portability fix.
34966         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34967         that it also works on Solaris.
34968
34969 2009-12-26  Bruno Haible  <bruno@clisp.org>
34970
34971         localename: Fix storage allocation of gl_locale_name_thread's result.
34972         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34973         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34974         all platforms that have 'uselocale'.
34975         (gl_locale_name_thread_unsafe): New function, extracted from
34976         gl_locale_name_thread.
34977         (gl_locale_name_thread): Call struniq on all platforms that have
34978         'uselocale'.
34979         * tests/test-localename.c (test_locale_name_thread): Check that the
34980         resulting strings are permanently allocated.
34981         * modules/localename-tests (Depends-on): Add strdup.
34982
34983 2009-12-26  Bruno Haible  <bruno@clisp.org>
34984
34985         * tests/test-localename.c (categories): Fill in the strings.
34986
34987 2009-12-26  Jim Meyering  <meyering@redhat.com>
34988
34989         isdir: complete the removal of m4/isdir.m4
34990         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34991
34992         isdir: clean up, since at least grep still uses it
34993         * lib/isdir.c: Include "isdir.h".
34994         (S_ISDIR): Remove now-unneeded definition.
34995         * modules/isdir (Files): Add lib/isdir.h.
34996         * lib/isdir.h: New file, with declaration.
34997         * m4/isdir.m4: Remove file -- unneeded.
34998
34999 2009-12-25  Bruno Haible  <bruno@clisp.org>
35000
35001         selinux-h: Make generated .h files standalone.
35002         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35003         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35004         * lib/se-selinux.in.h: Likewise.
35005         * modules/selinux-h (Depends-on): Add unused-parameter.
35006         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35007         selinux/selinux.h and selinux/context.h.
35008         Suggested by Eric Blake.
35009
35010 2009-12-25  Bruno Haible  <bruno@clisp.org>
35011
35012         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35013         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35014         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35015         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35016         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35017
35018 2009-12-24  Bruno Haible  <bruno@clisp.org>
35019
35020         openat: Fix warning.
35021         * lib/openat-proc.c: Include <unistd.h>.
35022
35023 2009-12-24  Bruno Haible  <bruno@clisp.org>
35024
35025         New module 'unused-parameter'.
35026         * build-aux/unused-parameter.h: New file, extracted from earlier
35027         gnulib-common.m4.
35028         * modules/unused-parameter: New file.
35029         * lib/unistr.h: Include unused-parameter.h.
35030         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35031         _GL_UNUSED.
35032         * modules/unistr/base (Depends-on): Add unused-parameter.
35033
35034 2009-12-24  Bruno Haible  <bruno@clisp.org>
35035
35036         Add missing dependencies to 'extensions' module.
35037         * m4/extensions.m4: Add comment.
35038         * modules/accept4 (Depends-on): Add extensions.
35039         * modules/dup3 (Depends-on): Likewise.
35040         * modules/fcntl (Depends-on): Likewise.
35041         * modules/futimens (Depends-on): Likewise.
35042         * modules/mknod (Depends-on): Likewise.
35043         * modules/pipe2 (Depends-on): Likewise.
35044         * modules/stat-time (Depends-on): Likewise.
35045         * modules/strcasestr-simple (Depends-on): Likewise.
35046         * modules/strsignal (Depends-on): Likewise.
35047         * modules/utimensat (Depends-on): Likewise.
35048         * modules/localcharset (Depends-on): Likewise. Needed because of
35049         gl_FCNTL_O_FLAGS.
35050         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35051         AC_TYPE_MBSTATE_T.
35052         * modules/wcsnrtombs (Depends-on): Likewise.
35053         * modules/wcsrtombs (Depends-on): Likewise.
35054
35055 2009-12-24  Bruno Haible  <bruno@clisp.org>
35056
35057         binary-io: Avoid gcc warning due to SET_BINARY.
35058         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35059         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35060
35061 2009-12-24  Bruno Haible  <bruno@clisp.org>
35062
35063         Avoid future namespace pollution on glibc systems.
35064         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35065         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35066         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35067         glibc systems.
35068
35069 2009-12-24  Bruno Haible  <bruno@clisp.org>
35070
35071         Refactor common macros used in tests.
35072         * tests/macros.h: New file.
35073         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35074         and/or <stdlib.h>, if appropriate.
35075         (ASSERT, SIZEOF): Remove macros.
35076         * tests/test-areadlink-with-size.c: Likewise.
35077         * tests/test-areadlinkat.c: Likewise.
35078         * tests/test-areadlinkat-with-size.c: Likewise.
35079         * tests/test-argmatch.c: Likewise.
35080         * tests/test-argv-iter.c: Likewise.
35081         * tests/test-array-mergesort.c: Likewise.
35082         * tests/test-array_list.c: Likewise.
35083         * tests/test-array_oset.c: Likewise.
35084         * tests/test-avltree_list.c: Likewise.
35085         * tests/test-avltree_oset.c: Likewise.
35086         * tests/test-avltreehash_list.c: Likewise.
35087         * tests/test-base64.c: Likewise.
35088         * tests/test-binary-io.c: Likewise.
35089         * tests/test-bitrotate.c: Likewise.
35090         * tests/test-btowc.c: Likewise.
35091         * tests/test-byteswap.c: Likewise.
35092         * tests/test-c-ctype.c: Likewise.
35093         * tests/test-c-stack.c: Likewise.
35094         * tests/test-c-strcasecmp.c: Likewise.
35095         * tests/test-c-strcasestr.c: Likewise.
35096         * tests/test-c-strncasecmp.c: Likewise.
35097         * tests/test-c-strstr.c: Likewise.
35098         * tests/test-canonicalize-lgpl.c: Likewise.
35099         * tests/test-canonicalize.c: Likewise.
35100         * tests/test-carray_list.c: Likewise.
35101         * tests/test-ceilf1.c: Likewise.
35102         * tests/test-ceilf2.c: Likewise.
35103         * tests/test-ceill.c: Likewise.
35104         * tests/test-chown.c: Likewise.
35105         * tests/test-cloexec.c: Likewise.
35106         * tests/test-copy-acl.c: Likewise.
35107         * tests/test-copy-file.c: Likewise.
35108         * tests/test-count-one-bits.c: Likewise.
35109         * tests/test-dprintf-posix.c: Likewise.
35110         * tests/test-dup2.c: Likewise.
35111         * tests/test-dup3.c: Likewise.
35112         * tests/test-duplocale.c: Likewise.
35113         * tests/test-fbufmode.c: Likewise.
35114         * tests/test-fchdir.c: Likewise.
35115         * tests/test-fchownat.c: Likewise.
35116         * tests/test-fcntl-safer.c: Likewise.
35117         * tests/test-fcntl.c: Likewise.
35118         * tests/test-fdopendir.c: Likewise.
35119         * tests/test-fdutimensat.c: Likewise.
35120         * tests/test-fflush2.c: Likewise.
35121         * tests/test-file-has-acl.c: Likewise.
35122         * tests/test-filevercmp.c: Likewise.
35123         * tests/test-flock.c: Likewise.
35124         * tests/test-floorf1.c: Likewise.
35125         * tests/test-floorf2.c: Likewise.
35126         * tests/test-floorl.c: Likewise.
35127         * tests/test-fnmatch.c: Likewise.
35128         * tests/test-fopen.h: Likewise.
35129         * tests/test-fpending.c: Likewise.
35130         * tests/test-fprintf-posix.c: Likewise.
35131         * tests/test-fpurge.c: Likewise.
35132         * tests/test-freadable.c: Likewise.
35133         * tests/test-freadahead.c: Likewise.
35134         * tests/test-freading.c: Likewise.
35135         * tests/test-freadptr.c: Likewise.
35136         * tests/test-freadptr2.c: Likewise.
35137         * tests/test-freadseek.c: Likewise.
35138         * tests/test-freopen.c: Likewise.
35139         * tests/test-frexp.c: Likewise.
35140         * tests/test-frexpl.c: Likewise.
35141         * tests/test-fseek.c: Likewise.
35142         * tests/test-fseeko.c: Likewise.
35143         * tests/test-fstatat.c: Likewise.
35144         * tests/test-fstrcmp.c: Likewise.
35145         * tests/test-fsync.c: Likewise.
35146         * tests/test-ftell.c: Likewise.
35147         * tests/test-ftello.c: Likewise.
35148         * tests/test-func.c: Likewise.
35149         * tests/test-futimens.c: Likewise.
35150         * tests/test-fwritable.c: Likewise.
35151         * tests/test-fwriting.c: Likewise.
35152         * tests/test-getcwd.c: Likewise.
35153         * tests/test-getdate.c: Likewise.
35154         * tests/test-getdelim.c: Likewise.
35155         * tests/test-getdtablesize.c: Likewise.
35156         * tests/test-getgroups.c: Likewise.
35157         * tests/test-getline.c: Likewise.
35158         * tests/test-getndelim2.c: Likewise.
35159         * tests/test-glob.c: Likewise.
35160         * tests/test-hash.c: Likewise.
35161         * tests/test-i-ring.c: Likewise.
35162         * tests/test-iconv-utf.c: Likewise.
35163         * tests/test-iconv.c: Likewise.
35164         * tests/test-idpriv-drop.c: Likewise.
35165         * tests/test-idpriv-droptemp.c: Likewise.
35166         * tests/test-inet_ntop.c: Likewise.
35167         * tests/test-inet_pton.c: Likewise.
35168         * tests/test-isblank.c: Likewise.
35169         * tests/test-isfinite.c: Likewise.
35170         * tests/test-isinf.c: Likewise.
35171         * tests/test-isnan.c: Likewise.
35172         * tests/test-isnand.h: Likewise.
35173         * tests/test-isnanf.h: Likewise.
35174         * tests/test-isnanl.h: Likewise.
35175         * tests/test-lchown.c: Likewise.
35176         * tests/test-ldexpl.c: Likewise.
35177         * tests/test-link.c: Likewise.
35178         * tests/test-linkat.c: Likewise.
35179         * tests/test-linked_list.c: Likewise.
35180         * tests/test-linkedhash_list.c: Likewise.
35181         * tests/test-localename.c: Likewise.
35182         * tests/test-lseek.c: Likewise.
35183         * tests/test-lstat.c: Likewise.
35184         * tests/test-mbmemcasecmp.c: Likewise.
35185         * tests/test-mbmemcasecoll.c: Likewise.
35186         * tests/test-mbrtowc.c: Likewise.
35187         * tests/test-mbscasecmp.c: Likewise.
35188         * tests/test-mbscasestr1.c: Likewise.
35189         * tests/test-mbscasestr2.c: Likewise.
35190         * tests/test-mbscasestr3.c: Likewise.
35191         * tests/test-mbscasestr4.c: Likewise.
35192         * tests/test-mbschr.c: Likewise.
35193         * tests/test-mbscspn.c: Likewise.
35194         * tests/test-mbsinit.c: Likewise.
35195         * tests/test-mbsncasecmp.c: Likewise.
35196         * tests/test-mbsnrtowcs.c: Likewise.
35197         * tests/test-mbspbrk.c: Likewise.
35198         * tests/test-mbspcasecmp.c: Likewise.
35199         * tests/test-mbsrchr.c: Likewise.
35200         * tests/test-mbsrtowcs.c: Likewise.
35201         * tests/test-mbsspn.c: Likewise.
35202         * tests/test-mbsstr1.c: Likewise.
35203         * tests/test-mbsstr2.c: Likewise.
35204         * tests/test-mbsstr3.c: Likewise.
35205         * tests/test-memchr.c: Likewise.
35206         * tests/test-memchr2.c: Likewise.
35207         * tests/test-memcmp.c: Likewise.
35208         * tests/test-memmem.c: Likewise.
35209         * tests/test-memrchr.c: Likewise.
35210         * tests/test-mkdir.c: Likewise.
35211         * tests/test-mkdirat.c: Likewise.
35212         * tests/test-mkfifo.c: Likewise.
35213         * tests/test-mkfifoat.c: Likewise.
35214         * tests/test-mknod.c: Likewise.
35215         * tests/test-nanosleep.c: Likewise.
35216         * tests/test-nl_langinfo.c: Likewise.
35217         * tests/test-obstack-printf.c: Likewise.
35218         * tests/test-open.c: Likewise.
35219         * tests/test-openat.c: Likewise.
35220         * tests/test-pipe-filter-gi1.c: Likewise.
35221         * tests/test-pipe-filter-gi2-main.c: Likewise.
35222         * tests/test-pipe-filter-ii1.c: Likewise.
35223         * tests/test-pipe-filter-ii2-main.c: Likewise.
35224         * tests/test-pipe2.c: Likewise.
35225         * tests/test-popen.h: Likewise.
35226         * tests/test-posixtm.c: Likewise.
35227         * tests/test-pread.c: Likewise.
35228         * tests/test-printf-frexp.c: Likewise.
35229         * tests/test-printf-frexpl.c: Likewise.
35230         * tests/test-printf-posix.c: Likewise.
35231         * tests/test-priv-set.c: Likewise.
35232         * tests/test-quotearg.c: Likewise.
35233         * tests/test-random_r.c: Likewise.
35234         * tests/test-rawmemchr.c: Likewise.
35235         * tests/test-rbtree_list.c: Likewise.
35236         * tests/test-rbtree_oset.c: Likewise.
35237         * tests/test-rbtreehash_list.c: Likewise.
35238         * tests/test-readlink.c: Likewise.
35239         * tests/test-remove.c: Likewise.
35240         * tests/test-rename.c: Likewise.
35241         * tests/test-renameat.c: Likewise.
35242         * tests/test-rmdir.c: Likewise.
35243         * tests/test-round1.c: Likewise.
35244         * tests/test-roundf1.c: Likewise.
35245         * tests/test-roundl.c: Likewise.
35246         * tests/test-safe-alloc.c: Likewise.
35247         * tests/test-sameacls.c: Likewise.
35248         * tests/test-set-mode-acl.c: Likewise.
35249         * tests/test-setenv.c: Likewise.
35250         * tests/test-sigaction.c: Likewise.
35251         * tests/test-signbit.c: Likewise.
35252         * tests/test-sleep.c: Likewise.
35253         * tests/test-snprintf-posix.c: Likewise.
35254         * tests/test-snprintf.c: Likewise.
35255         * tests/test-sprintf-posix.c: Likewise.
35256         * tests/test-stat-time.c: Likewise.
35257         * tests/test-stat.c: Likewise.
35258         * tests/test-strcasestr.c: Likewise.
35259         * tests/test-strchrnul.c: Likewise.
35260         * tests/test-strerror.c: Likewise.
35261         * tests/test-striconv.c: Likewise.
35262         * tests/test-striconveh.c: Likewise.
35263         * tests/test-striconveha.c: Likewise.
35264         * tests/test-strsignal.c: Likewise.
35265         * tests/test-strstr.c: Likewise.
35266         * tests/test-strtod.c: Likewise.
35267         * tests/test-strverscmp.c: Likewise.
35268         * tests/test-symlink.c: Likewise.
35269         * tests/test-symlinkat.c: Likewise.
35270         * tests/test-trunc1.c: Likewise.
35271         * tests/test-trunc2.c: Likewise.
35272         * tests/test-truncf1.c: Likewise.
35273         * tests/test-truncf2.c: Likewise.
35274         * tests/test-truncl.c: Likewise.
35275         * tests/test-uname.c: Likewise.
35276         * tests/test-unlink.c: Likewise.
35277         * tests/test-unlinkat.c: Likewise.
35278         * tests/test-unsetenv.c: Likewise.
35279         * tests/test-usleep.c: Likewise.
35280         * tests/test-utimens.c: Likewise.
35281         * tests/test-utimensat.c: Likewise.
35282         * tests/test-vasnprintf-posix.c: Likewise.
35283         * tests/test-vasnprintf-posix2.c: Likewise.
35284         * tests/test-vasnprintf.c: Likewise.
35285         * tests/test-vasprintf-posix.c: Likewise.
35286         * tests/test-vasprintf.c: Likewise.
35287         * tests/test-vdprintf-posix.c: Likewise.
35288         * tests/test-vfprintf-posix.c: Likewise.
35289         * tests/test-vprintf-posix.c: Likewise.
35290         * tests/test-vsnprintf-posix.c: Likewise.
35291         * tests/test-vsnprintf.c: Likewise.
35292         * tests/test-vsprintf-posix.c: Likewise.
35293         * tests/test-wcrtomb.c: Likewise.
35294         * tests/test-wcsnrtombs.c: Likewise.
35295         * tests/test-wcsrtombs.c: Likewise.
35296         * tests/test-wctype.c: Likewise.
35297         * tests/test-wcwidth.c: Likewise.
35298         * tests/test-xfprintf-posix.c: Likewise.
35299         * tests/test-xmemdup0.c: Likewise.
35300         * tests/test-xprintf-posix.c: Likewise.
35301         * tests/test-xvasprintf.c: Likewise.
35302         * tests/unicase/test-locale-language.c: Likewise.
35303         * tests/unicase/test-mapping-part1.h: Likewise.
35304         * tests/unicase/test-predicate-part1.h: Likewise.
35305         * tests/unicase/test-u8-casecmp.c: Likewise.
35306         * tests/unicase/test-u8-casecoll.c: Likewise.
35307         * tests/unicase/test-u8-casefold.c: Likewise.
35308         * tests/unicase/test-u8-is-cased.c: Likewise.
35309         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35310         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35311         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35312         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35313         * tests/unicase/test-u8-tolower.c: Likewise.
35314         * tests/unicase/test-u8-totitle.c: Likewise.
35315         * tests/unicase/test-u8-toupper.c: Likewise.
35316         * tests/unicase/test-u16-casecmp.c: Likewise.
35317         * tests/unicase/test-u16-casecoll.c: Likewise.
35318         * tests/unicase/test-u16-casefold.c: Likewise.
35319         * tests/unicase/test-u16-is-cased.c: Likewise.
35320         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35321         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35322         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35323         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35324         * tests/unicase/test-u16-tolower.c: Likewise.
35325         * tests/unicase/test-u16-totitle.c: Likewise.
35326         * tests/unicase/test-u16-toupper.c: Likewise.
35327         * tests/unicase/test-u32-casecmp.c: Likewise.
35328         * tests/unicase/test-u32-casecoll.c: Likewise.
35329         * tests/unicase/test-u32-casefold.c: Likewise.
35330         * tests/unicase/test-u32-is-cased.c: Likewise.
35331         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35332         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35333         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35334         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35335         * tests/unicase/test-u32-tolower.c: Likewise.
35336         * tests/unicase/test-u32-totitle.c: Likewise.
35337         * tests/unicase/test-u32-toupper.c: Likewise.
35338         * tests/unicase/test-ulc-casecmp.c: Likewise.
35339         * tests/unicase/test-ulc-casecoll.c: Likewise.
35340         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35341         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35342         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35343         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35344         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35345         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35346         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35347         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35348         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35349         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35350         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35351         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35352         * tests/unictype/test-bidi_byname.c: Likewise.
35353         * tests/unictype/test-bidi_name.c: Likewise.
35354         * tests/unictype/test-bidi_of.c: Likewise.
35355         * tests/unictype/test-bidi_test.c: Likewise.
35356         * tests/unictype/test-block_list.c: Likewise.
35357         * tests/unictype/test-block_of.c: Likewise.
35358         * tests/unictype/test-block_test.c: Likewise.
35359         * tests/unictype/test-categ_and.c: Likewise.
35360         * tests/unictype/test-categ_and_not.c: Likewise.
35361         * tests/unictype/test-categ_byname.c: Likewise.
35362         * tests/unictype/test-categ_name.c: Likewise.
35363         * tests/unictype/test-categ_none.c: Likewise.
35364         * tests/unictype/test-categ_of.c: Likewise.
35365         * tests/unictype/test-categ_or.c: Likewise.
35366         * tests/unictype/test-categ_test_withtable.c: Likewise.
35367         * tests/unictype/test-combining.c: Likewise.
35368         * tests/unictype/test-decdigit.c: Likewise.
35369         * tests/unictype/test-digit.c: Likewise.
35370         * tests/unictype/test-mirror.c: Likewise.
35371         * tests/unictype/test-numeric.c: Likewise.
35372         * tests/unictype/test-pr_byname.c: Likewise.
35373         * tests/unictype/test-pr_test.c: Likewise.
35374         * tests/unictype/test-predicate-part1.h: Likewise.
35375         * tests/unictype/test-scripts.c: Likewise.
35376         * tests/unictype/test-sy_c_ident.c: Likewise.
35377         * tests/unictype/test-sy_java_ident.c: Likewise.
35378         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35379         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35380         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35381         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35382         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35383         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35384         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35385         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35386         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35387         * tests/uninorm/test-compat-decomposition.c: Likewise.
35388         * tests/uninorm/test-composition.c: Likewise.
35389         * tests/uninorm/test-decomposing-form.c: Likewise.
35390         * tests/uninorm/test-decomposition.c: Likewise.
35391         * tests/uninorm/test-u8-nfc.c: Likewise.
35392         * tests/uninorm/test-u8-nfd.c: Likewise.
35393         * tests/uninorm/test-u8-nfkc.c: Likewise.
35394         * tests/uninorm/test-u8-nfkd.c: Likewise.
35395         * tests/uninorm/test-u8-normcmp.c: Likewise.
35396         * tests/uninorm/test-u8-normcoll.c: Likewise.
35397         * tests/uninorm/test-u16-nfc.c: Likewise.
35398         * tests/uninorm/test-u16-nfd.c: Likewise.
35399         * tests/uninorm/test-u16-nfkc.c: Likewise.
35400         * tests/uninorm/test-u16-nfkd.c: Likewise.
35401         * tests/uninorm/test-u16-normcmp.c: Likewise.
35402         * tests/uninorm/test-u16-normcoll.c: Likewise.
35403         * tests/uninorm/test-u32-nfc.c: Likewise.
35404         * tests/uninorm/test-u32-nfd.c: Likewise.
35405         * tests/uninorm/test-u32-nfkc.c: Likewise.
35406         * tests/uninorm/test-u32-nfkd.c: Likewise.
35407         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35408         * tests/uninorm/test-u32-normcmp.c: Likewise.
35409         * tests/uninorm/test-u32-normcoll.c: Likewise.
35410         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35411         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35412         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35413         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35414         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35415         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35416         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35417         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35418         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35419         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35420         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35421         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35422         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35423         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35424         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35425         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35426         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35427         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35428         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35429         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35430         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35431         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35432         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35433         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35434         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35435         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35436         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35437         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35438         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35439         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35440         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35441         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35442         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35443         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35444         * tests/uniwidth/test-u8-width.c: Likewise.
35445         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35446         * tests/uniwidth/test-u16-width.c: Likewise.
35447         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35448         * tests/uniwidth/test-u32-width.c: Likewise.
35449         * tests/uniwidth/test-uc_width.c: Likewise.
35450         * tests/uniwidth/test-uc_width2.c: Likewise.
35451         * modules/acl-tests (Files): Add tests/macros.h.
35452         * modules/areadlink-tests (Files): Likewise.
35453         * modules/areadlink-with-size-tests (Files): Likewise.
35454         * modules/areadlinkat-tests (Files): Likewise.
35455         * modules/areadlinkat-with-size-tests (Files): Likewise.
35456         * modules/argmatch-tests (Files): Likewise.
35457         * modules/argv-iter-tests (Files): Likewise.
35458         * modules/array-list-tests (Files): Likewise.
35459         * modules/array-mergesort-tests (Files): Likewise.
35460         * modules/array-oset-tests (Files): Likewise.
35461         * modules/avltree-list-tests (Files): Likewise.
35462         * modules/avltree-oset-tests (Files): Likewise.
35463         * modules/avltreehash-list-tests (Files): Likewise.
35464         * modules/base64-tests (Files): Likewise.
35465         * modules/binary-io-tests (Files): Likewise.
35466         * modules/bitrotate-tests (Files): Likewise.
35467         * modules/btowc-tests (Files): Likewise.
35468         * modules/byteswap-tests (Files): Likewise.
35469         * modules/c-ctype-tests (Files): Likewise.
35470         * modules/c-stack-tests (Files): Likewise.
35471         * modules/c-strcase-tests (Files): Likewise.
35472         * modules/c-strcasestr-tests (Files): Likewise.
35473         * modules/c-strstr-tests (Files): Likewise.
35474         * modules/canonicalize-lgpl-tests (Files): Likewise.
35475         * modules/canonicalize-tests (Files): Likewise.
35476         * modules/carray-list-tests (Files): Likewise.
35477         * modules/ceilf-tests (Files): Likewise.
35478         * modules/ceill-tests (Files): Likewise.
35479         * modules/chown-tests (Files): Likewise.
35480         * modules/cloexec-tests (Files): Likewise.
35481         * modules/copy-file-tests (Files): Likewise.
35482         * modules/count-one-bits-tests (Files): Likewise.
35483         * modules/dprintf-posix-tests (Files): Likewise.
35484         * modules/dup2-tests (Files): Likewise.
35485         * modules/dup3-tests (Files): Likewise.
35486         * modules/duplocale-tests (Files): Likewise.
35487         * modules/fbufmode-tests (Files): Likewise.
35488         * modules/fchdir-tests (Files): Likewise.
35489         * modules/fcntl-safer-tests (Files): Likewise.
35490         * modules/fcntl-tests (Files): Likewise.
35491         * modules/fdopendir-tests (Files): Likewise.
35492         * modules/fdutimensat-tests (Files): Likewise.
35493         * modules/fflush-tests (Files): Likewise.
35494         * modules/filevercmp-tests (Files): Likewise.
35495         * modules/flock-tests (Files): Likewise.
35496         * modules/floorf-tests (Files): Likewise.
35497         * modules/floorl-tests (Files): Likewise.
35498         * modules/fnmatch-tests (Files): Likewise.
35499         * modules/fopen-safer-tests (Files): Likewise.
35500         * modules/fopen-tests (Files): Likewise.
35501         * modules/fpending-tests (Files): Likewise.
35502         * modules/fprintf-posix-tests (Files): Likewise.
35503         * modules/fpurge-tests (Files): Likewise.
35504         * modules/freadable-tests (Files): Likewise.
35505         * modules/freadahead-tests (Files): Likewise.
35506         * modules/freading-tests (Files): Likewise.
35507         * modules/freadptr-tests (Files): Likewise.
35508         * modules/freadseek-tests (Files): Likewise.
35509         * modules/freopen-tests (Files): Likewise.
35510         * modules/frexp-nolibm-tests (Files): Likewise.
35511         * modules/frexp-tests (Files): Likewise.
35512         * modules/frexpl-nolibm-tests (Files): Likewise.
35513         * modules/frexpl-tests (Files): Likewise.
35514         * modules/fseek-tests (Files): Likewise.
35515         * modules/fseeko-tests (Files): Likewise.
35516         * modules/fstrcmp-tests (Files): Likewise.
35517         * modules/fsync-tests (Files): Likewise.
35518         * modules/ftell-tests (Files): Likewise.
35519         * modules/ftello-tests (Files): Likewise.
35520         * modules/func-tests (Files): Likewise.
35521         * modules/futimens-tests (Files): Likewise.
35522         * modules/fwritable-tests (Files): Likewise.
35523         * modules/fwriting-tests (Files): Likewise.
35524         * modules/getcwd-tests (Files): Likewise.
35525         * modules/getdate-tests (Files): Likewise.
35526         * modules/getdelim-tests (Files): Likewise.
35527         * modules/getdtablesize-tests (Files): Likewise.
35528         * modules/getgroups-tests (Files): Likewise.
35529         * modules/getline-tests (Files): Likewise.
35530         * modules/getndelim2-tests (Files): Likewise.
35531         * modules/glob-tests (Files): Likewise.
35532         * modules/hash-tests (Files): Likewise.
35533         * modules/i-ring-tests (Files): Likewise.
35534         * modules/iconv-tests (Files): Likewise.
35535         * modules/iconv_open-utf-tests (Files): Likewise.
35536         * modules/idpriv-drop-tests (Files): Likewise.
35537         * modules/idpriv-droptemp-tests (Files): Likewise.
35538         * modules/inet_ntop-tests (Files): Likewise.
35539         * modules/inet_pton-tests (Files): Likewise.
35540         * modules/isblank-tests (Files): Likewise.
35541         * modules/isfinite-tests (Files): Likewise.
35542         * modules/isinf-tests (Files): Likewise.
35543         * modules/isnan-tests (Files): Likewise.
35544         * modules/isnand-nolibm-tests (Files): Likewise.
35545         * modules/isnand-tests (Files): Likewise.
35546         * modules/isnanf-nolibm-tests (Files): Likewise.
35547         * modules/isnanf-tests (Files): Likewise.
35548         * modules/isnanl-nolibm-tests (Files): Likewise.
35549         * modules/isnanl-tests (Files): Likewise.
35550         * modules/lchown-tests (Files): Likewise.
35551         * modules/ldexpl-tests (Files): Likewise.
35552         * modules/link-tests (Files): Likewise.
35553         * modules/linkat-tests (Files): Likewise.
35554         * modules/linked-list-tests (Files): Likewise.
35555         * modules/linkedhash-list-tests (Files): Likewise.
35556         * modules/localename-tests (Files): Likewise.
35557         * modules/lseek-tests (Files): Likewise.
35558         * modules/lstat-tests (Files): Likewise.
35559         * modules/mbmemcasecmp-tests (Files): Likewise.
35560         * modules/mbmemcasecoll-tests (Files): Likewise.
35561         * modules/mbrtowc-tests (Files): Likewise.
35562         * modules/mbscasecmp-tests (Files): Likewise.
35563         * modules/mbscasestr-tests (Files): Likewise.
35564         * modules/mbschr-tests (Files): Likewise.
35565         * modules/mbscspn-tests (Files): Likewise.
35566         * modules/mbsinit-tests (Files): Likewise.
35567         * modules/mbsncasecmp-tests (Files): Likewise.
35568         * modules/mbsnrtowcs-tests (Files): Likewise.
35569         * modules/mbspbrk-tests (Files): Likewise.
35570         * modules/mbspcasecmp-tests (Files): Likewise.
35571         * modules/mbsrchr-tests (Files): Likewise.
35572         * modules/mbsrtowcs-tests (Files): Likewise.
35573         * modules/mbsspn-tests (Files): Likewise.
35574         * modules/mbsstr-tests (Files): Likewise.
35575         * modules/memchr-tests (Files): Likewise.
35576         * modules/memchr2-tests (Files): Likewise.
35577         * modules/memcmp-tests (Files): Likewise.
35578         * modules/memmem-tests (Files): Likewise.
35579         * modules/memrchr-tests (Files): Likewise.
35580         * modules/mkdir-tests (Files): Likewise.
35581         * modules/mkfifo-tests (Files): Likewise.
35582         * modules/mkfifoat-tests (Files): Likewise.
35583         * modules/mknod-tests (Files): Likewise.
35584         * modules/nanosleep-tests (Files): Likewise.
35585         * modules/nl_langinfo-tests (Files): Likewise.
35586         * modules/obstack-printf-tests (Files): Likewise.
35587         * modules/open-tests (Files): Likewise.
35588         * modules/openat-tests (Files): Likewise.
35589         * modules/pipe-filter-gi-tests (Files): Likewise.
35590         * modules/pipe-filter-ii-tests (Files): Likewise.
35591         * modules/pipe2-tests (Files): Likewise.
35592         * modules/popen-safer-tests (Files): Likewise.
35593         * modules/popen-tests (Files): Likewise.
35594         * modules/posixtm-tests (Files): Likewise.
35595         * modules/pread-tests (Files): Likewise.
35596         * modules/printf-frexp-tests (Files): Likewise.
35597         * modules/printf-frexpl-tests (Files): Likewise.
35598         * modules/printf-posix-tests (Files): Likewise.
35599         * modules/priv-set-tests (Files): Likewise.
35600         * modules/quotearg-tests (Files): Likewise.
35601         * modules/random_r-tests (Files): Likewise.
35602         * modules/rawmemchr-tests (Files): Likewise.
35603         * modules/rbtree-list-tests (Files): Likewise.
35604         * modules/rbtree-oset-tests (Files): Likewise.
35605         * modules/rbtreehash-list-tests (Files): Likewise.
35606         * modules/readlink-tests (Files): Likewise.
35607         * modules/remove-tests (Files): Likewise.
35608         * modules/rename-tests (Files): Likewise.
35609         * modules/renameat-tests (Files): Likewise.
35610         * modules/rmdir-tests (Files): Likewise.
35611         * modules/round-tests (Files): Likewise.
35612         * modules/roundf-tests (Files): Likewise.
35613         * modules/roundl-tests (Files): Likewise.
35614         * modules/safe-alloc-tests (Files): Likewise.
35615         * modules/setenv-tests (Files): Likewise.
35616         * modules/sigaction-tests (Files): Likewise.
35617         * modules/signbit-tests (Files): Likewise.
35618         * modules/sleep-tests (Files): Likewise.
35619         * modules/snprintf-posix-tests (Files): Likewise.
35620         * modules/snprintf-tests (Files): Likewise.
35621         * modules/sprintf-posix-tests (Files): Likewise.
35622         * modules/stat-tests (Files): Likewise.
35623         * modules/stat-time-tests (Files): Likewise.
35624         * modules/strcasestr-tests (Files): Likewise.
35625         * modules/strchrnul-tests (Files): Likewise.
35626         * modules/strerror-tests (Files): Likewise.
35627         * modules/striconv-tests (Files): Likewise.
35628         * modules/striconveh-tests (Files): Likewise.
35629         * modules/striconveha-tests (Files): Likewise.
35630         * modules/strsignal-tests (Files): Likewise.
35631         * modules/strstr-tests (Files): Likewise.
35632         * modules/strtod-tests (Files): Likewise.
35633         * modules/strverscmp-tests (Files): Likewise.
35634         * modules/symlink-tests (Files): Likewise.
35635         * modules/symlinkat-tests (Files): Likewise.
35636         * modules/trunc-tests (Files): Likewise.
35637         * modules/truncf-tests (Files): Likewise.
35638         * modules/truncl-tests (Files): Likewise.
35639         * modules/uname-tests (Files): Likewise.
35640         * modules/unicase/cased-tests (Files): Likewise.
35641         * modules/unicase/ignorable-tests (Files): Likewise.
35642         * modules/unicase/locale-language-tests (Files): Likewise.
35643         * modules/unicase/tolower-tests (Files): Likewise.
35644         * modules/unicase/totitle-tests (Files): Likewise.
35645         * modules/unicase/toupper-tests (Files): Likewise.
35646         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35647         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35648         * modules/unicase/u8-casefold-tests (Files): Likewise.
35649         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35650         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35651         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35652         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35653         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35654         * modules/unicase/u8-tolower-tests (Files): Likewise.
35655         * modules/unicase/u8-totitle-tests (Files): Likewise.
35656         * modules/unicase/u8-toupper-tests (Files): Likewise.
35657         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35658         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35659         * modules/unicase/u16-casefold-tests (Files): Likewise.
35660         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35661         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35662         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35663         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35664         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35665         * modules/unicase/u16-tolower-tests (Files): Likewise.
35666         * modules/unicase/u16-totitle-tests (Files): Likewise.
35667         * modules/unicase/u16-toupper-tests (Files): Likewise.
35668         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35669         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35670         * modules/unicase/u32-casefold-tests (Files): Likewise.
35671         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35672         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35673         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35674         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35675         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35676         * modules/unicase/u32-tolower-tests (Files): Likewise.
35677         * modules/unicase/u32-totitle-tests (Files): Likewise.
35678         * modules/unicase/u32-toupper-tests (Files): Likewise.
35679         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35680         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35681         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35682         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35683         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35684         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35685         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35686         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35687         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35688         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35689         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35690         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35691         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35692         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35693         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35694         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35695         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35696         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35697         * modules/unictype/block-list-tests (Files): Likewise.
35698         * modules/unictype/block-of-tests (Files): Likewise.
35699         * modules/unictype/block-test-tests (Files): Likewise.
35700         * modules/unictype/category-C-tests (Files): Likewise.
35701         * modules/unictype/category-Cc-tests (Files): Likewise.
35702         * modules/unictype/category-Cf-tests (Files): Likewise.
35703         * modules/unictype/category-Cn-tests (Files): Likewise.
35704         * modules/unictype/category-Co-tests (Files): Likewise.
35705         * modules/unictype/category-Cs-tests (Files): Likewise.
35706         * modules/unictype/category-L-tests (Files): Likewise.
35707         * modules/unictype/category-Ll-tests (Files): Likewise.
35708         * modules/unictype/category-Lm-tests (Files): Likewise.
35709         * modules/unictype/category-Lo-tests (Files): Likewise.
35710         * modules/unictype/category-Lt-tests (Files): Likewise.
35711         * modules/unictype/category-Lu-tests (Files): Likewise.
35712         * modules/unictype/category-M-tests (Files): Likewise.
35713         * modules/unictype/category-Mc-tests (Files): Likewise.
35714         * modules/unictype/category-Me-tests (Files): Likewise.
35715         * modules/unictype/category-Mn-tests (Files): Likewise.
35716         * modules/unictype/category-N-tests (Files): Likewise.
35717         * modules/unictype/category-Nd-tests (Files): Likewise.
35718         * modules/unictype/category-Nl-tests (Files): Likewise.
35719         * modules/unictype/category-No-tests (Files): Likewise.
35720         * modules/unictype/category-P-tests (Files): Likewise.
35721         * modules/unictype/category-Pc-tests (Files): Likewise.
35722         * modules/unictype/category-Pd-tests (Files): Likewise.
35723         * modules/unictype/category-Pe-tests (Files): Likewise.
35724         * modules/unictype/category-Pf-tests (Files): Likewise.
35725         * modules/unictype/category-Pi-tests (Files): Likewise.
35726         * modules/unictype/category-Po-tests (Files): Likewise.
35727         * modules/unictype/category-Ps-tests (Files): Likewise.
35728         * modules/unictype/category-S-tests (Files): Likewise.
35729         * modules/unictype/category-Sc-tests (Files): Likewise.
35730         * modules/unictype/category-Sk-tests (Files): Likewise.
35731         * modules/unictype/category-Sm-tests (Files): Likewise.
35732         * modules/unictype/category-So-tests (Files): Likewise.
35733         * modules/unictype/category-Z-tests (Files): Likewise.
35734         * modules/unictype/category-Zl-tests (Files): Likewise.
35735         * modules/unictype/category-Zp-tests (Files): Likewise.
35736         * modules/unictype/category-Zs-tests (Files): Likewise.
35737         * modules/unictype/category-and-not-tests (Files): Likewise.
35738         * modules/unictype/category-and-tests (Files): Likewise.
35739         * modules/unictype/category-byname-tests (Files): Likewise.
35740         * modules/unictype/category-name-tests (Files): Likewise.
35741         * modules/unictype/category-none-tests (Files): Likewise.
35742         * modules/unictype/category-of-tests (Files): Likewise.
35743         * modules/unictype/category-or-tests (Files): Likewise.
35744         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35745         * modules/unictype/combining-class-tests (Files): Likewise.
35746         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35747         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35748         * modules/unictype/ctype-blank-tests (Files): Likewise.
35749         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35750         * modules/unictype/ctype-digit-tests (Files): Likewise.
35751         * modules/unictype/ctype-graph-tests (Files): Likewise.
35752         * modules/unictype/ctype-lower-tests (Files): Likewise.
35753         * modules/unictype/ctype-print-tests (Files): Likewise.
35754         * modules/unictype/ctype-punct-tests (Files): Likewise.
35755         * modules/unictype/ctype-space-tests (Files): Likewise.
35756         * modules/unictype/ctype-upper-tests (Files): Likewise.
35757         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35758         * modules/unictype/decimal-digit-tests (Files): Likewise.
35759         * modules/unictype/digit-tests (Files): Likewise.
35760         * modules/unictype/mirror-tests (Files): Likewise.
35761         * modules/unictype/numeric-tests (Files): Likewise.
35762         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35763         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35764         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35765         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35766         Likewise.
35767         * modules/unictype/property-bidi-block-separator-tests (Files):
35768         Likewise.
35769         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35770         Likewise.
35771         * modules/unictype/property-bidi-common-separator-tests (Files):
35772         Likewise.
35773         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35774         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35775         Likewise.
35776         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35777         Likewise.
35778         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35779         Likewise.
35780         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35781         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35782         Likewise.
35783         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35784         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35785         Likewise.
35786         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35787         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35788         * modules/unictype/property-bidi-segment-separator-tests (Files):
35789         Likewise.
35790         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35791         * modules/unictype/property-byname-tests (Files): Likewise.
35792         * modules/unictype/property-combining-tests (Files): Likewise.
35793         * modules/unictype/property-composite-tests (Files): Likewise.
35794         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35795         * modules/unictype/property-dash-tests (Files): Likewise.
35796         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35797         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35798         Likewise.
35799         * modules/unictype/property-deprecated-tests (Files): Likewise.
35800         * modules/unictype/property-diacritic-tests (Files): Likewise.
35801         * modules/unictype/property-extender-tests (Files): Likewise.
35802         * modules/unictype/property-format-control-tests (Files): Likewise.
35803         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35804         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35805         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35806         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35807         * modules/unictype/property-hyphen-tests (Files): Likewise.
35808         * modules/unictype/property-id-continue-tests (Files): Likewise.
35809         * modules/unictype/property-id-start-tests (Files): Likewise.
35810         * modules/unictype/property-ideographic-tests (Files): Likewise.
35811         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35812         * modules/unictype/property-ids-trinary-operator-tests (Files):
35813         Likewise.
35814         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35815         * modules/unictype/property-iso-control-tests (Files): Likewise.
35816         * modules/unictype/property-join-control-tests (Files): Likewise.
35817         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35818         * modules/unictype/property-line-separator-tests (Files): Likewise.
35819         * modules/unictype/property-logical-order-exception-tests (Files):
35820         Likewise.
35821         * modules/unictype/property-lowercase-tests (Files): Likewise.
35822         * modules/unictype/property-math-tests (Files): Likewise.
35823         * modules/unictype/property-non-break-tests (Files): Likewise.
35824         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35825         * modules/unictype/property-numeric-tests (Files): Likewise.
35826         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35827         * modules/unictype/property-other-default-ignorable-code-point-tests
35828         (Files): Likewise.
35829         * modules/unictype/property-other-grapheme-extend-tests (Files):
35830         Likewise.
35831         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35832         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35833         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35834         * modules/unictype/property-other-math-tests (Files): Likewise.
35835         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35836         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35837         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35838         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35839         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35840         * modules/unictype/property-private-use-tests (Files): Likewise.
35841         * modules/unictype/property-punctuation-tests (Files): Likewise.
35842         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35843         * modules/unictype/property-radical-tests (Files): Likewise.
35844         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35845         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35846         * modules/unictype/property-space-tests (Files): Likewise.
35847         * modules/unictype/property-terminal-punctuation-tests (Files):
35848         Likewise.
35849         * modules/unictype/property-test-tests (Files): Likewise.
35850         * modules/unictype/property-titlecase-tests (Files): Likewise.
35851         * modules/unictype/property-unassigned-code-value-tests (Files):
35852         Likewise.
35853         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35854         * modules/unictype/property-uppercase-tests (Files): Likewise.
35855         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35856         * modules/unictype/property-white-space-tests (Files): Likewise.
35857         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35858         * modules/unictype/property-xid-start-tests (Files): Likewise.
35859         * modules/unictype/property-zero-width-tests (Files): Likewise.
35860         * modules/unictype/scripts-tests (Files): Likewise.
35861         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35862         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35863         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35864         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35865         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35866         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35867         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35868         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35869         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35870         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35871         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35872         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35873         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35874         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35875         * modules/uninorm/composition-tests (Files): Likewise.
35876         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35877         * modules/uninorm/decomposition-tests (Files): Likewise.
35878         * modules/uninorm/filter-tests (Files): Likewise.
35879         * modules/uninorm/nfc-tests (Files): Likewise.
35880         * modules/uninorm/nfd-tests (Files): Likewise.
35881         * modules/uninorm/nfkc-tests (Files): Likewise.
35882         * modules/uninorm/nfkd-tests (Files): Likewise.
35883         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35884         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35885         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35886         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35887         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35888         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35889         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35890         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35891         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35892         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35893         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35894         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35895         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35896         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35897         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35898         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35899         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35900         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35901         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35902         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35903         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35904         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35905         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35906         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35907         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35908         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35909         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35910         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35911         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35912         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35913         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35914         * modules/uniwidth/u8-width-tests (Files): Likewise.
35915         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35916         * modules/uniwidth/u16-width-tests (Files): Likewise.
35917         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35918         * modules/uniwidth/u32-width-tests (Files): Likewise.
35919         * modules/uniwidth/width-tests (Files): Likewise.
35920         * modules/unlink-tests (Files): Likewise.
35921         * modules/unsetenv-tests (Files): Likewise.
35922         * modules/usleep-tests (Files): Likewise.
35923         * modules/utimens-tests (Files): Likewise.
35924         * modules/utimensat-tests (Files): Likewise.
35925         * modules/vasnprintf-posix-tests (Files): Likewise.
35926         * modules/vasnprintf-tests (Files): Likewise.
35927         * modules/vasprintf-posix-tests (Files): Likewise.
35928         * modules/vasprintf-tests (Files): Likewise.
35929         * modules/vdprintf-posix-tests (Files): Likewise.
35930         * modules/vfprintf-posix-tests (Files): Likewise.
35931         * modules/vprintf-posix-tests (Files): Likewise.
35932         * modules/vsnprintf-posix-tests (Files): Likewise.
35933         * modules/vsnprintf-tests (Files): Likewise.
35934         * modules/vsprintf-posix-tests (Files): Likewise.
35935         * modules/wcrtomb-tests (Files): Likewise.
35936         * modules/wcsnrtombs-tests (Files): Likewise.
35937         * modules/wcsrtombs-tests (Files): Likewise.
35938         * modules/wctype-tests (Files): Likewise.
35939         * modules/wcwidth-tests (Files): Likewise.
35940         * modules/xmemdup0-tests (Files): Likewise.
35941         * modules/xprintf-posix-tests (Files): Likewise.
35942         * modules/xvasprintf-tests (Files): Likewise.
35943
35944 2009-12-24  Eric Blake  <ebb9@byu.net>
35945
35946         test-nanosleep: fix typo
35947         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35948         patch.
35949         Reported by Bruno Haible.
35950
35951 2009-12-24  Bruno Haible  <bruno@clisp.org>
35952
35953         Reduce namespace pollution on glibc systems.
35954         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35955         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35956         systems.
35957         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35958         <getopt.h> on glibc systems.
35959         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35960         systems.
35961         * lib/fcntl.c: Include <unistd.h> here instead.
35962
35963 2009-12-24  Bruno Haible  <bruno@clisp.org>
35964
35965         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35966
35967 2009-12-24  Eric Blake  <ebb9@byu.net>
35968
35969         tests: add signature checks
35970         * tests/signature.h (SIGNATURE_CHECK): New file.
35971         * modules/atexit-tests (Files): Use it.
35972         * modules/btowc-tests (Files): Likewise.
35973         * modules/canonicalize-lgpl-tests (Files): Likewise.
35974         * modules/ceilf-tests (Files): Likewise.
35975         * modules/ceill-tests (Files): Likewise.
35976         * modules/chown-tests (Files): Likewise.
35977         * modules/dprintf-posix-tests (Files): Likewise.
35978         * modules/dup2-tests (Files): Likewise.
35979         * modules/dup3-tests (Files): Likewise.
35980         * modules/duplocale-tests (Files): Likewise.
35981         * modules/fchdir-tests (Files): Likewise.
35982         * modules/fcntl-tests (Files): Likewise.
35983         * modules/fdopendir-tests (Files): Likewise.
35984         * modules/fflush-tests (Files): Likewise.
35985         * modules/flock-tests (Files): Likewise.
35986         * modules/floorf-tests (Files): Likewise.
35987         * modules/floorl-tests (Files): Likewise.
35988         * modules/fnmatch-tests (Files): Likewise.
35989         * modules/fopen-tests (Files): Likewise.
35990         * modules/fprintf-posix-tests (Files): Likewise.
35991         * modules/freopen-tests (Files): Likewise.
35992         * modules/frexp-nolibm-tests (Files): Likewise.
35993         * modules/frexp-tests (Files): Likewise.
35994         * modules/frexpl-nolibm-tests (Files): Likewise.
35995         * modules/frexpl-tests (Files): Likewise.
35996         * modules/fseek-tests (Files): Likewise.
35997         * modules/fseeko-tests (Files): Likewise.
35998         * modules/fsync-tests (Files): Likewise.
35999         * modules/ftell-tests (Files): Likewise.
36000         * modules/ftello-tests (Files): Likewise.
36001         * modules/futimens-tests (Files): Likewise.
36002         * modules/getaddrinfo-tests (Files): Likewise.
36003         * modules/getcwd-tests (Files): Likewise.
36004         * modules/getdelim-tests (Files): Likewise.
36005         * modules/getdtablesize-tests (Files): Likewise.
36006         * modules/getgroups-tests (Files): Likewise.
36007         * modules/gethostname-tests (Files): Likewise.
36008         * modules/getline-tests (Files): Likewise.
36009         * modules/getopt-posix-tests (Files): Likewise.
36010         * modules/gettimeofday-tests (Files): Likewise.
36011         * modules/glob-tests (Files): Likewise.
36012         * modules/iconv-tests (Files): Likewise.
36013         * modules/inet_ntop-tests (Files): Likewise.
36014         * modules/inet_pton-tests (Files): Likewise.
36015         * modules/isblank-tests (Files): Likewise.
36016         * modules/lchown-tests (Files): Likewise.
36017         * modules/ldexpl-tests (Files): Likewise.
36018         * modules/link-tests (Files): Likewise.
36019         * modules/linkat-tests (Files): Likewise.
36020         * modules/lseek-tests (Files): Likewise.
36021         * modules/lstat-tests (Files): Likewise.
36022         * modules/mbrtowc-tests (Files): Likewise.
36023         * modules/mbsinit-tests (Files): Likewise.
36024         * modules/mbsnrtowcs-tests (Files): Likewise.
36025         * modules/mbsrtowcs-tests (Files): Likewise.
36026         * modules/memchr-tests (Files): Likewise.
36027         * modules/memcmp-tests (Files): Likewise.
36028         * modules/memmem-tests (Files): Likewise.
36029         * modules/memrchr-tests (Files): Likewise.
36030         * modules/mkdir-tests (Files): Likewise.
36031         * modules/mkfifo-tests (Files): Likewise.
36032         * modules/mkfifoat-tests (Files): Likewise.
36033         * modules/mknod-tests (Files): Likewise.
36034         * modules/nanosleep-tests (Files): Likewise.
36035         * modules/nl_langinfo-tests (Files): Likewise.
36036         * modules/obstack-printf-tests (Files): Likewise.
36037         * modules/open-tests (Files): Likewise.
36038         * modules/openat-tests (Files): Likewise.
36039         * modules/perror-tests (Files): Likewise.
36040         * modules/pipe2-tests (Files): Likewise.
36041         * modules/poll-tests (Files): Likewise.
36042         * modules/popen-tests (Files): Likewise.
36043         * modules/posix_spawn-tests (Files): Likewise.
36044         * modules/posix_spawnp-tests (Files): Likewise.
36045         * modules/pread-tests (Files): Likewise.
36046         * modules/printf-posix-tests (Files): Likewise.
36047         * modules/pty-tests (Files): Likewise.
36048         * modules/random_r-tests (Files): Likewise.
36049         * modules/rawmemchr-tests (Files): Likewise.
36050         * modules/readlink-tests (Files): Likewise.
36051         * modules/remove-tests (Files): Likewise.
36052         * modules/rename-tests (Files): Likewise.
36053         * modules/renameat-tests (Files): Likewise.
36054         * modules/rmdir-tests (Files): Likewise.
36055         * modules/round-tests (Files): Likewise.
36056         * modules/roundf-tests (Files): Likewise.
36057         * modules/roundl-tests (Files): Likewise.
36058         * modules/select-tests (Files): Likewise.
36059         * modules/setenv-tests (Files): Likewise.
36060         * modules/sigaction-tests (Files): Likewise.
36061         * modules/sleep-tests (Files): Likewise.
36062         * modules/snprintf-posix-tests (Files): Likewise.
36063         * modules/snprintf-tests (Files): Likewise.
36064         * modules/sprintf-posix-tests (Files): Likewise.
36065         * modules/stat-tests (Files): Likewise.
36066         * modules/strcasestr-tests (Files): Likewise.
36067         * modules/strchrnul-tests (Files): Likewise.
36068         * modules/strerror-tests (Files): Likewise.
36069         * modules/strsignal-tests (Files): Likewise.
36070         * modules/strstr-tests (Files): Likewise.
36071         * modules/strtod-tests (Files): Likewise.
36072         * modules/strverscmp-tests (Files): Likewise.
36073         * modules/symlink-tests (Files): Likewise.
36074         * modules/symlinkat-tests (Files): Likewise.
36075         * modules/times-tests (Files): Likewise.
36076         * modules/trunc-tests (Files): Likewise.
36077         * modules/truncf-tests (Files): Likewise.
36078         * modules/truncl-tests (Files): Likewise.
36079         * modules/tsearch-tests (Files): Likewise.
36080         * modules/uname-tests (Files): Likewise.
36081         * modules/unlink-tests (Files): Likewise.
36082         * modules/unsetenv-tests (Files): Likewise.
36083         * modules/usleep-tests (Files): Likewise.
36084         * modules/utimensat-tests (Files): Likewise.
36085         * modules/vasprintf-tests (Files): Likewise.
36086         * modules/vdprintf-posix-tests (Files): Likewise.
36087         * modules/vfprintf-posix-tests (Files): Likewise.
36088         * modules/vprintf-posix-tests (Files): Likewise.
36089         * modules/vsnprintf-posix-tests (Files): Likewise.
36090         * modules/vsnprintf-tests (Files): Likewise.
36091         * modules/vsprintf-posix-tests (Files): Likewise.
36092         * modules/wcrtomb-tests (Files): Likewise.
36093         * modules/wcsnrtombs-tests (Files): Likewise.
36094         * modules/wcsrtombs-tests (Files): Likewise.
36095         * modules/wcwidth-tests (Files): Likewise.
36096         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36097         * tests/test-isinf.c (isinf): Likewise.
36098         * tests/test-isnan.c (isnan): Likewise.
36099         * tests/test-signbit.c (signbit): Likewise.
36100         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36101         declaration, either as macro or with correct signature.
36102         (select): Ensure function under test is declared with correct
36103         signature in correct header.
36104         * tests/test-atexit.c (atexit): Likewise.
36105         * tests/test-btowc.c (btowc): Likewise.
36106         * tests/test-canonicalize-lgpl.c (realpath)
36107         (canonicalize_file_name): Likewise.
36108         * tests/test-ceilf1.c (ceilf): Likewise.
36109         * tests/test-ceill.c (ceill): Likewise.
36110         * tests/test-chown.c (chown): Likewise.
36111         * tests/test-dprintf-posix.c (dprintf): Likewise.
36112         * tests/test-dup2.c (dup2): Likewise.
36113         * tests/test-dup3.c (dup3): Likewise.
36114         * tests/test-duplocale.c (duplocale): Likewise.
36115         * tests/test-fchdir.c (fchdir): Likewise.
36116         * tests/test-fchownat.c (fchownat): Likewise.
36117         * tests/test-fcntl.c (fcntl): Likewise.
36118         * tests/test-fdopendir.c (fdopendir): Likewise.
36119         * tests/test-fflush.c (fflush): Likewise.
36120         * tests/test-flock.c (flock): Likewise.
36121         * tests/test-floorf1.c (floorf): Likewise.
36122         * tests/test-floorl.c (floorl): Likewise.
36123         * tests/test-fnmatch.c (fnmatch): Likewise.
36124         * tests/test-fopen.c (fopen): Likewise.
36125         * tests/test-fprintf-posix.c (fprintf): Likewise.
36126         * tests/test-freopen.c (freopen): Likewise.
36127         * tests/test-frexp.c (frexp): Likewise.
36128         * tests/test-frexpl.c (frexpl): Likewise.
36129         * tests/test-fseek.c (fseek): Likewise.
36130         * tests/test-fseeko.c (fseeko): Likewise.
36131         * tests/test-fstatat.c (fstatat): Likewise.
36132         * tests/test-fsync.c (fsync): Likewise.
36133         * tests/test-ftell.c (ftell): Likewise.
36134         * tests/test-ftello.c (ftello): Likewise.
36135         * tests/test-futimens.c (futimens): Likewise.
36136         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36137         (gai_strerror): Likewise.
36138         * tests/test-getcwd.c (getcwd): Likewise.
36139         * tests/test-getdelim.c (getdelim): Likewise.
36140         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36141         * tests/test-getgroups.c (getgroups): Likewise.
36142         * tests/test-gethostname.c (gethostname): Likewise.
36143         * tests/test-getline.c (getline): Likewise.
36144         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36145         Likewise.
36146         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36147         * tests/test-glob.c (glob, globfree): Likewise.
36148         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36149         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36150         * tests/test-inet_pton.c (inet_pton): Likewise.
36151         * tests/test-isblank.c (isblank): Likewise.
36152         * tests/test-lchown.c (lchown): Likewise.
36153         * tests/test-ldexpl.c (ldexpl): Likewise.
36154         * tests/test-link.c (link): Likewise.
36155         * tests/test-linkat.c (linkat): Likewise.
36156         * tests/test-lseek.c (lseek): Likewise.
36157         * tests/test-lstat.c (lstat): Likewise.
36158         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36159         * tests/test-mbsinit.c (mbsinit): Likewise.
36160         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36161         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36162         * tests/test-memchr.c (memchr): Likewise.
36163         * tests/test-memcmp.c (memcmp): Likewise.
36164         * tests/test-memmem.c (memmem): Likewise.
36165         * tests/test-memrchr.c (memrchr): Likewise.
36166         * tests/test-mkdir.c (mkdir): Likewise.
36167         * tests/test-mkdirat.c (mkdirat): Likewise.
36168         * tests/test-mkfifo.c (mkfifo): Likewise.
36169         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36170         * tests/test-mknod.c (mknod): Likewise.
36171         * tests/test-nanosleep.c (nanosleep): Likewise.
36172         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36173         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36174         Likewise.
36175         * tests/test-open.c (open): Likewise.
36176         * tests/test-openat.c (openat): Likewise.
36177         * tests/test-perror.c (perror): Likewise.
36178         * tests/test-pipe2.c (pipe2): Likewise.
36179         * tests/test-poll.c (poll): Likewise.
36180         * tests/test-popen.c (popen, pclose): Likewise.
36181         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36182         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36183         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36184         (posix_spawn_file_actions_destroy)
36185         (posix_spawn_file_actions_addclose)
36186         (posix_spawn_file_actions_addopen)
36187         (posix_spawn_file_actions_adddup2): Likewise.
36188         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36189         * tests/test-pread.c (pread): Likewise.
36190         * tests/test-printf-posix.c (printf): Likewise.
36191         * tests/test-pty.c (openpty, forkpty): Likewise.
36192         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36193         (random_r): Likewise.
36194         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36195         * tests/test-readlink.c (readlink): Likewise.
36196         * tests/test-remove.c (remove): Likewise.
36197         * tests/test-rename.c (rename): Likewise.
36198         * tests/test-renameat.c (renameat): Likewise.
36199         * tests/test-rmdir.c (rmdir): Likewise.
36200         * tests/test-round1.c (round): Likewise.
36201         * tests/test-roundf1.c (roundf): Likewise.
36202         * tests/test-roundl.c (roundl): Likewise.
36203         * tests/test-setenv.c (setenv): Likewise.
36204         * tests/test-sigaction.c (sigaction): Likewise.
36205         * tests/test-sleep.c (sleep): Likewise.
36206         * tests/test-snprintf.c (snprintf): Likewise.
36207         * tests/test-sprintf-posix.c (sprintf): Likewise.
36208         * tests/test-stat.c (stat): Likewise.
36209         * tests/test-stpncpy.c (stpncpy): Likewise.
36210         * tests/test-strcasestr.c (strcasestr): Likewise.
36211         * tests/test-strchrnul.c (strchrnul): Likewise.
36212         * tests/test-strerror.c (strerror): Likewise.
36213         * tests/test-strsignal.c (strsignal): Likewise.
36214         * tests/test-strstr.c (strstr): Likewise.
36215         * tests/test-strtod.c (strtod): Likewise.
36216         * tests/test-strverscmp.c (strverscmp): Likewise.
36217         * tests/test-symlink.c (symlink): Likewise.
36218         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36219         * tests/test-times.c (times): Likewise.
36220         * tests/test-trunc1.c (trunc): Likewise.
36221         * tests/test-truncf1.c (truncf): Likewise.
36222         * tests/test-truncl.c (truncl): Likewise.
36223         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36224         Likewise.
36225         * tests/test-uname.c (uname): Likewise.
36226         * tests/test-unlink.c (unlink): Likewise.
36227         * tests/test-unlinkat.c (unlinkat): Likewise.
36228         * tests/test-unsetenv.c (unsetenv): Likewise.
36229         * tests/test-usleep.c (usleep): Likewise.
36230         * tests/test-utimensat.c (utimensat): Likewise.
36231         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36232         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36233         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36234         * tests/test-vprintf-posix.c (vprintf): Likewise.
36235         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36236         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36237         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36238         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36239         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36240         * tests/test-wcwidth.c (wcwidth): Likewise.
36241
36242         build: pull in conditional headers during GNULIB_POSIXCHECK
36243         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36244         definitions from any conditionally-included headers.
36245         * lib/stdlib.in.h (includes): Likewise.
36246         * lib/unistd.in.h (includes): Likewise.
36247
36248 2009-12-24  Bruno Haible  <bruno@clisp.org>
36249
36250         * tests/test-argv-iter.c: Include header file being tested immediately
36251         after config.h.
36252         * tests/test-base64.c: Likewise.
36253         * tests/test-flock.c: Likewise.
36254         * tests/test-fsync.c: Likewise.
36255         * tests/test-getdate.c: Likewise.
36256         * tests/test-getndelim2.c: Likewise.
36257         * tests/test-isfinite.c: Likewise.
36258         * tests/test-isinf.c: Likewise.
36259         * tests/test-strerror.c: Likewise.
36260         * tests/test-strsignal.c: Likewise.
36261
36262 2009-12-23  Eric Blake  <ebb9@byu.net>
36263
36264         unistd: work around cygwin bug
36265         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36266         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36267         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36268
36269 2009-12-23  Bruno Haible  <bruno@clisp.org>
36270
36271         localename: More tests.
36272         * tests/test-localename.c (SIZEOF): New macro.
36273         (categories): New variable.
36274         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36275         test_locale_name_default): Add test w.r.t. thread locale.
36276         (test_locale_name_thread): New function.
36277         (main): Invoke it.
36278
36279         localename: Make aware of thread locale.
36280         * lib/localename.h (gl_locale_name_thread): New declaration.
36281         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36282         behaviour with respect to thread locale.
36283         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36284         <langinfo.h>, glthread/lock.h.
36285         (SIZE_BITS): New macro.
36286         (string_hash): New function.
36287         (struct hash_node): New type.
36288         (HASH_TABLE_SIZE): New macro.
36289         (struniq_hash_table, struniq_lock): New variables.
36290         (struniq): New function.
36291         (gl_locale_name_thread): New function.
36292         (gl_locale_name): Invoke it.
36293         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36294         * modules/localename (Depends-on): Add lock.
36295         Reported by Mike Gran <spk121@yahoo.com>.
36296
36297 2009-12-23  Eric Blake  <ebb9@byu.net>
36298
36299         va-args: new module
36300         * modules/va-args: New file.
36301         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36302         * MODULES.html.sh (Core language properties): Mention it.
36303
36304         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36305         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36306         named alias for __attribute__((__unused__)).
36307         * lib/chown.c: Update client.
36308         * lib/fchmodat.c: Likewise.
36309         * lib/fts.c: Likewise.
36310         * lib/getdate.y: Likewise.
36311         * lib/getgroups.c: Likewise.
36312         * lib/getopt.c: Likewise.
36313         * lib/getugroups.c: Likewise.
36314         * lib/mkdir.c: Likewise.
36315         * lib/mkfifo.c: Likewise.
36316         * lib/mkfifoat.c: Likewise.
36317         * lib/mknod.c: Likewise.
36318         * lib/mknodat.c: Likewise.
36319         * lib/readlink.c: Likewise.
36320         * lib/se-context.in.h: Likewise.
36321         * lib/se-selinux.in.h: Likewise.
36322         * lib/sockets.c: Likewise.
36323         * lib/symlink.c: Likewise.
36324         * lib/symlinkat.c: Likewise.
36325         * lib/unicodeio.c: Likewise.
36326         * lib/unistr.h: Likewise.
36327         * tests/test-areadlink.c: Likewise.
36328         * tests/test-areadlinkat.c: Likewise.
36329         * tests/test-filenamecat.c: Likewise.
36330         * tests/test-fseeko.c: Likewise.
36331         * tests/test-ftello.c: Likewise.
36332         * tests/test-getdate.c: Likewise.
36333         * tests/test-getgroups.c: Likewise.
36334         * tests/test-gethostname.c: Likewise.
36335         * tests/test-quotearg.c: Likewise.
36336         * tests/test-version-etc.c: Likewise.
36337         * tests/test-xalloc-die.c: Likewise.
36338         * tests/test-xfprintf-posix.c: Likewise.
36339         * tests/test-xprintf-posix.c: Likewise.
36340         * tests/test-xvasprintf.c: Likewise.
36341
36342         tests: avoid compiler warnings
36343         * tests/test-fcntl.c (main): Delete unused parameters.
36344         * tests/test-freopen-safer.c (main): Likewise.
36345         * tests/test-xalloc-die.c (main): Mark unused parameters.
36346         * tests/test-fseeko.c (main): Likewise.
36347         * tests/test-ftello.c (main): Likewise.
36348         * tests/test-nanosleep.c (main): Avoid declaration warning.
36349         * tests/test-sleep.c (main): Likewise.
36350         * tests/test-unsetenv.c (main): Silence warning about string
36351         literal.
36352         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36353
36354 2009-12-23  Bruno Haible  <bruno@clisp.org>
36355
36356         * tests/test-localename.c (test_locale_name): New function, extracted
36357         from main. Also test mixed situations.
36358         (test_locale_name_posix, test_locale_name_environ,
36359         test_locale_name_default): New functions.
36360         (main): Invoke them all.
36361         * modules/localename-tests (configure.ac): Test for newlocale.
36362
36363 2009-12-23  Bruno Haible  <bruno@clisp.org>
36364
36365         unistd: Ensure getcwd gets declared before being overridden.
36366         * lib/unistd.in.h: Conditionally include <io.h>.
36367
36368 2009-12-22  Bruno Haible  <bruno@clisp.org>
36369
36370         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36371         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36372         (gl_WCHAR_H): Invoke it.
36373         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36374         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36375         Reported by Karl Berry <karl@freefriends.org>.
36376
36377 2009-12-22  Eric Blake  <ebb9@byu.net>
36378
36379         math, unistd: avoid redundant includes
36380         * lib/math.in.h (isnan): No need to re-include <math.h>.
36381         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36382
36383         getsubopt: work around cygwin bug
36384         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36385         avoid conflicting with system getsubopt.
36386         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36387         bug.
36388
36389         getopt: synchronize from glibc
36390         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36391         parameter order.  Adjust all callers.
36392         (_getopt_internal_r, main): Adjust quoting in error messages.
36393         Drop considerations for outdated POSIX 1003.2 error message.
36394         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36395         callers.
36396         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36397
36398         test-getopt: test stderr behavior
36399         * modules/getopt-posix-tests (Depends-on): Add dup2.
36400         * tests/test-getopt.c (ASSERT): Avoid stderr.
36401         (main): Move stderr to a temporary file.
36402         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36403         Instead, add parameter to inform caller if output occurred.
36404         (test_getopt): Adjust all existing tests to expect silence, and
36405         add new tests of leading ":".
36406         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36407         glibc shortcomings with leading "-:" or "+:" in optstring.
36408         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36409         Likewise.
36410         * doc/posix-functions/getopt.texi (getopt): Likewise.
36411
36412         test-getopt: enhance test
36413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36414         supports optind=0.
36415         * tests/test-getopt.c (OPTIND_MIN): Move...
36416         * tests/test-getopt.h (OPTIND_MIN): ...here.
36417         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36418         Require that optind=0 works, since modern BSD supports it in
36419         addition to optreset, and since coreutils expects it.
36420         (test_getopt_long_only): New test.
36421         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36422         glibc shortcomings with 'W;', and enforcement of optind=0.
36423         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36424         Likewise.
36425
36426 2009-12-21  Bruno Haible  <bruno@clisp.org>
36427
36428         localename: Improvements for MacOS X and Cygwin.
36429         * lib/localename.h (gl_locale_name_environ): New declaration.
36430         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36431         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36432         (gl_locale_name_posix): Invoke it.
36433         (gl_locale_name_default): Add comments. Use Windows native API also on
36434         Cygwin.
36435
36436 2009-12-21  Bruno Haible  <bruno@clisp.org>
36437
36438         Update list of Win32 locale ids.
36439         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36440         (LANG_SAMI): Renamed from LANG_SAAMI.
36441         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36442         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36443         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36444         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36445         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36446         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36447         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36448         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36449         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36450         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36451         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36452         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36453         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36454         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36455         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36456         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36457         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36458         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36459         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36460         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36461         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36462         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36463         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36464         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36465         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36466         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36467         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36468         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36469         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36470         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36471         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36472         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36473         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36474         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36475         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36476         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36477         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36478         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36479         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36480         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36481         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36482         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36483         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36484         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36485         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36486         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36487         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36488         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36489         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36490         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36491         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36492         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36493         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36494         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36495         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36496         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36497         Add more languages and countries for Sami, Sorbian. Add more countries
36498         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36499         for Pashto. Change country for Syriac, Tswana.
36500
36501 2009-12-21  Eric Blake  <ebb9@byu.net>
36502
36503         test-utimens: avoid spurious failure
36504         * tests/test-chown.h (nap): Factor...
36505         * tests/nap.h: ...into new file.
36506         * tests/test-lchown.h (nap): Avoid duplication.
36507         * tests/test-utimens-common.h (nap): Use shared implementation,
36508         necessary on file systems with 1-second resolution.
36509         * modules/chown-tests (Files): Include new file.
36510         * modules/fdutimensat-tests (Files): Likewise.
36511         * modules/futimens-tests (Files): Likewise.
36512         * modules/lchown-tests (Files): Likewise.
36513         * modules/openat-tests (Files): Likewise.
36514         * modules/utimens-tests (Files): Likewise.
36515         * modules/utimensat-tests (Files): Likewise.
36516
36517 2009-12-19  Eric Blake  <ebb9@byu.net>
36518
36519         futimens, utimensat: work around Linux bug
36520         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36521         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36522         * lib/utimensat.c (rpl_utimensat): Work around it.
36523         * lib/futimens.c (rpl_futimens): Adjust comment.
36524
36525         utimens: work around Linux ctime bug
36526         * lib/utimens.c (detect_ctime_bug): New helper function.
36527         (update_timespec): Differentiate between workaround needed for
36528         this bug vs. what is needed for systems that lack utimensat.
36529         (fdutimens, lutimens): Work around bug.
36530
36531         utimens: check for ctime update
36532         * tests/test-utimens-common.h (check_ctime): Define.
36533         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36534         * tests/test-futimens.h (test_futimens): Likewise.
36535         * tests/test-lutimens.h (test_lutimens): Likewise.
36536         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36537         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36538
36539 2009-12-19  Bruno Haible  <bruno@clisp.org>
36540
36541         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36542         * tests/test-dprintf-posix2.sh: New file.
36543         * tests/test-dprintf-posix2.c: New file.
36544         * modules/dprintf-posix-tests (Files): Add them.
36545         (configure.ac): Check for getrlimit and setrlimit.
36546         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36547
36548 2009-12-19  Bruno Haible  <bruno@clisp.org>
36549
36550         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36551         * tests/test-fprintf-posix3.sh: New file.
36552         * tests/test-fprintf-posix3.c: New file.
36553         * modules/fprintf-posix-tests (Files): Add them.
36554         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36555
36556 2009-12-19  Eric Blake  <ebb9@byu.net>
36557
36558         dirfd: fix prototype
36559         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36560         * lib/dirfd.c (dirfd): Likewise.
36561
36562         canonicalize: reduce memory usage
36563         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36564         allocation to size.
36565         Reported by Solar Designer <solar@openwall.com>.
36566
36567 2009-12-19  Bruno Haible  <bruno@clisp.org>
36568
36569         New module attribute 'Applicability'.
36570         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36571         * gnulib-tool: New option --extract-applicability.
36572         (func_usage): Document it.
36573         (sed_extract_prog): Recognize it.
36574         (func_get_applicability): New function.
36575         (func_import): Generalize handling of 'link-warning' module.
36576         * modules/link-warning (Applicability): New section.
36577         * modules/arg-nonnull (Applicability): New section.
36578         Repoted by Simon Josefsson <simon@josefsson.org>.
36579
36580 2009-12-19  Bruno Haible  <bruno@clisp.org>
36581
36582         fflush: tweak
36583         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36584         * lib/fseeko.c (rpl_fseeko): Likewise.
36585
36586 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36587
36588         * lib/gl_list.h: Fix typo in comment.
36589
36590 2009-12-16  Eric Blake  <ebb9@byu.net>
36591
36592         fcntl: use to simplify other modules
36593         * modules/cloexec (Depends-on): Add fcntl.
36594         * modules/fchdir (Depends-on): Likewise.
36595         * modules/fd-safer-flag (Depends-on): Likewise.
36596         * modules/unistd-safer (Depends-on): Likewise.
36597         * modules/dup3 (configure.ac): Set module indicator.
36598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36599         missing.
36600         * lib/fchdir.c (_gl_register_dup): Fix comment.
36601         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36602         * lib/dup-safer.c (dup_safer): Likewise.
36603         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36604         * lib/dup3.c (dup3): Likewise.
36605         * tests/test-fchdir.c (main): Enhance test.
36606         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36607
36608         fcntl: port portions of fcntl to mingw
36609         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36610         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36611         replacement for mingw.
36612         * modules/fcntl (Description): Update.
36613         (Depends-on): Add dup2.
36614         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36615         * modules/fcntl-h (Makefile.am): Substitute it.
36616         * lib/fcntl.in.h (fcntl): Update declaration.
36617         (F_DUPFD, F_GETFD): New macros, when needed.
36618         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36619         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36620         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36621         we now guarantee.
36622
36623         fcntl: work around cygwin bug in F_DUPFD
36624         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36625         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36626         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36627         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36628         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36629
36630         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36631         * modules/fcntl (Files): List new files.
36632         (configure.ac): Run a test.
36633         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36634         * lib/fcntl.c (rpl_fcntl): Likewise.
36635         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36636         (gl_FCNTL_H): Always replace fcntl.h.
36637         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36638         * lib/fcntl.in.h (fcntl): Declare replacement.
36639         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36640         needed, plus a witness.
36641         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36642         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36643         * tests/test-fcntl.c: New file.
36644         * modules/fcntl-tests: Likewise.
36645
36646         binary-io: avoid potential compilation warning
36647         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36648         directives.
36649
36650         fflush: avoid compilation error on NetBSD
36651         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36652         between off_t and fpos_t, since the latter is sometimes a struct.
36653         * lib/fseeko.c (rpl_fseeko): Likewise.
36654         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36655
36656 2009-12-15  Eric Blake  <ebb9@byu.net>
36657
36658         fcntl-h, stdio, sys_ioctl: fix declarations
36659         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36660         function must not take arguments.
36661         * lib/sys_ioctl.in.h (ioctl): Likewise.
36662         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36663         (open): Add a link warning.
36664
36665 2009-12-15  Jim Meyering  <meyering@redhat.com>
36666
36667         areadlink, areadlink-with-size: relax license to LGPLv2+
36668         * modules/areadlink (License): Relax to LGPLv2+.
36669         * modules/areadlink-with-size (License): Likewise.
36670
36671 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36672             Bruno Haible  <bruno@clisp.org>
36673
36674         *printf: Fix memory leak.
36675         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36676         * lib/vfprintf.c (vfprintf): Likewise.
36677         * lib/dprintf.c (dprintf): Likewise.
36678         * lib/vdprintf.c (vdprintf): Likewise.
36679
36680 2009-12-14  Eric Blake  <ebb9@byu.net>
36681
36682         accept4: adjust module dependencies
36683         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36684
36685         utimens: one more try at avoiding compiler warning
36686         * lib/utimens.c (lutimens): Lower scope of result.
36687
36688 2009-12-13  Bruno Haible  <bruno@clisp.org>
36689
36690         Move the malloc checking from module 'list' to new module 'xlist'.
36691         * modules/xlist: New file.
36692         * lib/gl_xlist.h: New file.
36693         * lib/gl_xlist.c: New file.
36694         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36695         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36696         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36697         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36698         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36699         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36700         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36701         gl_sortedlist_nx_add): New declarations.
36702         (struct gl_list_implementation): Rename and change methods accordingly.
36703         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36704         (gl_list_nx_create): Renamed from gl_list_create.
36705         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36706         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36707         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36708         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36709         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36710         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36711         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36712         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36713         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36714         gl_list_create_empty.
36715         (gl_list_nx_create): Renamed from gl_list_create.
36716         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36717         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36718         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36719         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36720         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36721         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36722         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36723         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36724         * lib/gl_array_list.c: Don't include xalloc.h.
36725         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36726         NULL upon out-of-memory.
36727         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36728         out-of-memory.
36729         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36730         Change return type to 'int'.
36731         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36732         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36733         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36734         upon out-of-memory.
36735         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36736         upon out-of-memory.
36737         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36738         upon out-of-memory.
36739         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36740         upon out-of-memory.
36741         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36742         out-of-memory.
36743         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36744         Update.
36745         (gl_array_list_implementation): Update.
36746         * lib/gl_carray_list.c: Don't include xalloc.h.
36747         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36748         Return NULL upon out-of-memory.
36749         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36750         out-of-memory.
36751         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36752         Change return type to 'int'.
36753         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36754         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36755         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36756         upon out-of-memory.
36757         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36758         upon out-of-memory.
36759         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36760         out-of-memory.
36761         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36762         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36763         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36764         Update.
36765         (gl_carray_list_implementation): Update.
36766         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36767         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36768         gl_linked_create_empty. Return NULL upon out-of-memory.
36769         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36770         out-of-memory.
36771         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36772         Change return type to 'int'. Return -1 upon out-of-memory.
36773         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36774         out-of-memory.
36775         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36776         upon out-of-memory.
36777         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36778         upon out-of-memory.
36779         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36780         NULL upon out-of-memory.
36781         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36782         upon out-of-memory.
36783         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36784         out-of-memory.
36785         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36786         Update.
36787         * lib/gl_linked_list.c: Don't include xalloc.h.
36788         (gl_linked_list_implementation): Update.
36789         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36790         (add_to_bucket): Change return type to 'int'.
36791         (gl_linkedhash_list_implementation): Update.
36792         * lib/gl_anytree_list1.h (free_subtree): New function.
36793         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36794         gl_tree_create_empty. Return NULL upon out-of-memory.
36795         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36796         Change return type to 'int'. Return -1 upon out-of-memory.
36797         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36798         out-of-memory.
36799         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36800         (gl_tree_remove_node): New function, moved here from
36801         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36802         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36803         Update.
36804         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36805         malloc, not xmalloc. Return NULL upon out-of-memory.
36806         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36807         out-of-memory.
36808         (gl_tree_remove_node_from_tree): New function, extracted from
36809         gl_tree_remove_node.
36810         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36811         upon out-of-memory.
36812         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36813         out-of-memory.
36814         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36815         upon out-of-memory.
36816         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36817         upon out-of-memory.
36818         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36819         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36820         not xmalloc. Return NULL upon out-of-memory.
36821         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36822         out-of-memory.
36823         (gl_tree_remove_node_from_tree): New function, extracted from
36824         gl_tree_remove_node.
36825         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36826         upon out-of-memory.
36827         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36828         out-of-memory.
36829         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36830         upon out-of-memory.
36831         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36832         upon out-of-memory.
36833         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36834         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36835         gl_anytree_list1.h before gl_anyavltree_list2.h.
36836         (gl_avltree_list_implementation): Update.
36837         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36838         gl_anytree_list1.h before gl_anyavltree_list2.h.
36839         (gl_rbtree_list_implementation): Update.
36840         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36841         Change return type to 'int'. Return -1 upon out-of-memory. Use
36842         __builtin_expect.
36843         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36844         (gl_avltreehash_list_implementation): Update.
36845         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36846         (gl_rbtreehash_list_implementation): Update.
36847         * modules/array-list (Depends-on): Remove xalloc.
36848         * modules/carray-list (Depends-on): Likewise.
36849         * modules/linked-list (Depends-on): Likewise.
36850         * modules/linkedhash-list (Depends-on): Likewise.
36851         * modules/avltree-list (Depends-on): Likewise.
36852         * modules/rbtree-list (Depends-on): Likewise.
36853         * modules/avltreehash-list (Depends-on): Likewise.
36854         * modules/rbtreehash-list (Depends-on): Likewise.
36855
36856         * modules/xsublist: New file.
36857         * lib/gl_xsublist.h: New file.
36858         * lib/gl_xsublist.c: New file.
36859         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36860         (gl_sublist_nx_create): New declaration.
36861         * lib/gl_sublist.c: Don't include xalloc.h.
36862         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36863         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36864         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36865         Change return type to 'int'. Return -1 upon out-of-memory.
36866         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36867         upon out-of-memory.
36868         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36869         NULL upon out-of-memory.
36870         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36871         upon out-of-memory.
36872         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36873         NULL upon out-of-memory.
36874         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36875         NULL upon out-of-memory.
36876         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36877         upon out-of-memory.
36878         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36879         (gl_sublist_list_implementation): Update.
36880         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36881         upon out-of-memory.
36882         * modules/sublist (Depends-on): Remove xalloc.
36883
36884         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36885         * tests/test-carray_list.c: Likewise.
36886         * tests/test-linked_list.c: Likewise.
36887         * tests/test-linkedhash_list.c: Likewise.
36888         * tests/test-avltree_list.c: Likewise.
36889         * tests/test-rbtree_list.c: Likewise.
36890         * tests/test-avltreehash_list.c: Likewise.
36891         * tests/test-rbtreehash_list.c: Likewise.
36892         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36893         * modules/carray-list-tests (Makefile.am): Likewise.
36894         * modules/linked-list-tests (Makefile.am): Likewise.
36895         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36896         * modules/avltree-list-tests (Makefile.am): Likewise.
36897         * modules/rbtree-list-tests (Makefile.am): Likewise.
36898         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36899         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36900
36901         * NEWS: Mention the changes.
36902
36903         * lib/clean-temp.c: Include gl_xlist.h.
36904         * modules/clean-temp (Depends-on): Add xlist.
36905
36906         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36907         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36908
36909         * tests/test-array_oset.c: Include gl_xlist.h.
36910         * modules/array-oset-tests (Depends-on): Add xlist.
36911
36912         Reported by José E. Marchesi <jemarch@gnu.org>.
36913
36914 2009-12-13  Bruno Haible  <bruno@clisp.org>
36915
36916         Move the malloc checking from module 'oset' to new module 'xoset'.
36917         * modules/xoset: New file.
36918         * lib/gl_xoset.h: New file.
36919         * lib/gl_xoset.c: New file.
36920         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36921         declarations.
36922         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36923         (struct gl_oset_implementation): Rename and change methods accordingly.
36924         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36925         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36926         'int'. Mark as __warn_unused_result__.
36927         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36928         gl_oset_create_empty.
36929         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36930         'int'.
36931         * lib/gl_array_oset.c: Don't include xalloc.h.
36932         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36933         malloc, not xmalloc.
36934         (grow): Change return type to 'int'. Don't call xalloc_die.
36935         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36936         to 'int'.
36937         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36938         'int'.
36939         (gl_array_oset_implementation): Update.
36940         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36941         gl_tree_create_empty.
36942         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36943         'int'.
36944         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36945         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36946         xmalloc.
36947         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36948         not xmalloc.
36949         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36950         xmalloc.
36951         (gl_avltree_oset_implementation): Update.
36952         * lib/gl_rbtree_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_rbtree_oset_implementation): Update.
36960         * modules/array-oset (Depends-on): Remove xalloc.
36961         * modules/avltree-oset (Depends-on): Likewise.
36962         * modules/rbtree-oset (Depends-on): Likewise.
36963         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36964         * tests/test-avltree_oset.c: Likewise.
36965         * tests/test-rbtree_oset.c: Likewise.
36966         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36967         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36968         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36969         * NEWS: Mention the change.
36970
36971 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36972
36973         maint.mk: allow a project to override release-prep commands
36974         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36975         commands into a new rule.
36976         (release-prep): New rule.
36977         (release-prep-hook): New overridable variable.
36978
36979 2009-12-13  Bruno Haible  <bruno@clisp.org>
36980
36981         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36982
36983 2009-12-13  Jim Meyering  <meyering@redhat.com>
36984
36985         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36986         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36987
36988 2009-12-12  Bruno Haible  <bruno@clisp.org>
36989
36990         duplocale: Tweak.
36991         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36992
36993 2009-12-12  Karl Berry  <karl@gnu.org>
36994
36995         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36996
36997 2009-12-12  Bruno Haible  <bruno@clisp.org>
36998
36999         * m4/po.m4: Undo incorrect untabification.
37000
37001 2009-12-12  Bruno Haible  <bruno@clisp.org>
37002
37003         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37004         * modules/c-strtod (Depends-on): Add locale.
37005         * modules/c-strtold (Depends-on): Likewise.
37006
37007 2009-12-12  Bruno Haible  <bruno@clisp.org>
37008
37009         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37010
37011 2009-12-11  Eric Blake  <ebb9@byu.net>
37012
37013         setenv: relax requirement in light of POSIX ruling
37014         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37015         not NULL.
37016         * tests/test-setenv.c (main): Relax test.
37017         * tests/test-unsetenv.c (main): Likewise.
37018         * doc/posix-functions/setenv.texi (setenv): Document this.
37019         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37020
37021 2009-12-11  Bruno Haible  <bruno@clisp.org>
37022
37023         New module 'fd-safer-flag'.
37024         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37025         * lib/dup-safer.c (dup_safer_flag): Remove function.
37026         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37027         * lib/fd-safer.c (fd_safer_flag): Remove function.
37028         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37029         * modules/cloexec (configure.ac): Drop indicator macro.
37030         * modules/fd-safer-flag: New file.
37031         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37032         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37033         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37034
37035 2009-12-11  Bruno Haible  <bruno@clisp.org>
37036
37037         Tests for module 'nl_langinfo'.
37038         * modules/nl_langinfo-tests: New file.
37039         * tests/test-nl_langinfo.sh: New file.
37040         * tests/test-nl_langinfo.c: New file.
37041
37042         New module 'nl_langinfo'.
37043         * lib/nl_langinfo.c: New file.
37044         * m4/nl_langinfo.m4: New file.
37045         * modules/nl_langinfo: New file.
37046         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37047
37048 2009-12-11  Bruno Haible  <bruno@clisp.org>
37049
37050         Tests for module 'langinfo'.
37051         * modules/langinfo-tests: New file.
37052         * tests/test-langinfo.c: New file.
37053
37054         New module 'langinfo'.
37055         * lib/langinfo.in.h: New file.
37056         * m4/langinfo_h.m4: New file.
37057         * modules/langinfo: New file.
37058         * doc/posix-headers/langinfo.texi: Mention the new module.
37059
37060 2009-12-11  Bruno Haible  <bruno@clisp.org>
37061
37062         * lib/config.charset: Untabify.
37063
37064 2009-12-11  Bruno Haible  <bruno@clisp.org>
37065
37066         * modules/unistd-safer (configure.ac): Drop indicator macro.
37067
37068 2009-12-11  Bruno Haible  <bruno@clisp.org>
37069
37070         Move pipe2-safer code to its own file.
37071         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37072         * lib/pipe-safer.c (pipe2_safer): Remove function.
37073         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37074         (Makefile.am): Add it to lib_SOURCES.
37075
37076 2009-12-10  Bruno Haible  <bruno@clisp.org>
37077
37078         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37079
37080 2009-12-10  Bruno Haible  <bruno@clisp.org>
37081
37082         Declare which arguments expect non-NULL values, for GCC and clang.
37083         * build-aux/arg-nonnull.h: New file.
37084         * modules/arg-nonnull: New file.
37085         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37086         (inet_ntop, inet_pton): Use it.
37087         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37088         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37089         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37090         (open, openat): Use it.
37091         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37092         (fnmatch): Use it.
37093         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37094         (getopt, getopt_long, getopt_long_only): Use it.
37095         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37096         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37097         Use it.
37098         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37099         (iconv_open): Use it.
37100         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37101         (strtoimax, strtoumax): Use it.
37102         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37103         (duplocale): Use it.
37104         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37105         (frexp, frexpl): Use it.
37106         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37107         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37108         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37109         (tsearch, tfind, tdelete, twalk): Use it.
37110         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37111         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37112         sigpending): Use it.
37113         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37114         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37115         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37116         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37117         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37118         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37119         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37120         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37121         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37122         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37123         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37124         Use it.
37125         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37126         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37127         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37128         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37129         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37130         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37131         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37132         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37133         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37134         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37135         strtoull, unsetenv): Use it.
37136         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37137         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37138         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37139         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37140         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37141         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37142         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37143         (strcasecmp, strncasecmp): Use it.
37144         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37145         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37146         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37147         rpl_setsockopt): Use it.
37148         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37149         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37150         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37151         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37152         (gettimeofday): Use it.
37153         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37154         (times): Use it.
37155         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37156         (uname): Use it.
37157         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37158         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37159         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37160         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37161         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37162         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37163         unlinkat, write): Use it.
37164         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37165         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37166         * lib/argv-iter.h: Include arg-nonnull.h.
37167         (_ATTRIBUTE_NONNULL_): Remove macro.
37168         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37169         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37170         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37171         optimization.
37172         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37173         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37174         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37175         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37176         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37177         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37178         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37179         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37180         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37181         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37182         * modules/dirent (Depends-on): Add arg-nonnull.
37183         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37184         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37185         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37186         * modules/fnmatch (Depends-on): Add arg-nonnull.
37187         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37188         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37189         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37190         * modules/glob (Depends-on): Add arg-nonnull.
37191         (Makefile.am): Insert arg-nonnull.h into glob.h.
37192         * modules/iconv_open (Depends-on): Add arg-nonnull.
37193         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37194         * modules/inttypes (Depends-on): Add arg-nonnull.
37195         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37196         * modules/locale (Depends-on): Add arg-nonnull.
37197         (Makefile.am): Insert arg-nonnull.h into locale.h.
37198         * modules/math (Depends-on): Add arg-nonnull.
37199         (Makefile.am): Insert arg-nonnull.h into math.h.
37200         * modules/netdb (Depends-on): Add arg-nonnull.
37201         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37202         * modules/search (Depends-on): Add arg-nonnull.
37203         (Makefile.am): Insert arg-nonnull.h into search.h.
37204         * modules/signal (Depends-on): Add arg-nonnull.
37205         (Makefile.am): Insert arg-nonnull.h into signal.h.
37206         * modules/spawn (Depends-on): Add arg-nonnull.
37207         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37208         * modules/stdio (Depends-on): Add arg-nonnull.
37209         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37210         * modules/stdlib (Depends-on): Add arg-nonnull.
37211         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37212         * modules/string (Depends-on): Add arg-nonnull.
37213         (Makefile.am): Insert arg-nonnull.h into string.h.
37214         * modules/strings (Depends-on): Add arg-nonnull.
37215         (Makefile.am): Insert arg-nonnull.h into strings.h.
37216         * modules/sys_socket (Depends-on): Add arg-nonnull.
37217         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37218         * modules/sys_stat (Depends-on): Add arg-nonnull.
37219         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37220         * modules/sys_time (Depends-on): Add arg-nonnull.
37221         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37222         * modules/sys_times (Depends-on): Add arg-nonnull.
37223         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37224         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37225         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37226         * modules/time (Depends-on): Add arg-nonnull.
37227         (Makefile.am): Insert arg-nonnull.h into time.h.
37228         * modules/unistd (Depends-on): Add arg-nonnull.
37229         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37230         * modules/wchar (Depends-on): Add arg-nonnull.
37231         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37232         * modules/argv-iter (Depends-on): Add arg-nonnull.
37233         * tests/test-canonicalize.c (null_ptr): New function.
37234         (main): Use it.
37235         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37236         (main): Use it.
37237         * tests/test-memmem.c (null_ptr): New function.
37238         (main): Use it.
37239         Reported by Jim Meyering.
37240
37241 2009-12-10  Bruno Haible  <bruno@clisp.org>
37242
37243         Use spaces for indentation, not tabs.
37244         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37245         * m4/*.m4: Untabify.
37246         * build-aux/*.h: Untabify.
37247         * tests/**/*.[hc]: Untabify.
37248         * README: New section "Indent with spaces, not TABs", based on
37249         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37250         * NEWS: Mention the change.
37251
37252 2009-12-10  Bruno Haible  <bruno@clisp.org>
37253
37254         pty test: Fix link error.
37255         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37256         test_pty_LDADD.
37257
37258 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37259
37260         * modules/pty: New file.
37261         * modules/pty-tests: New file.
37262         * m4/pty.m4: New file.
37263         * tests/test-pty.c: New file.
37264         * doc/glibc-headers/pty.texi: Modified.
37265         * doc/glibc-functions/forkpty.texi: Modified.
37266         * doc/glibc-functions/openpty.texi: Modified.
37267
37268 2009-12-10  Bruno Haible  <bruno@clisp.org>
37269
37270         Avoid syntax error in C++ mode.
37271         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37272
37273 2009-12-10  Bruno Haible  <bruno@clisp.org>
37274
37275         Use sed with option -e.
37276         * gnulib-tool (func_version, func_emit_copyright_notice,
37277         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37278         option -e to sed.
37279         * modules/link-warning (Makefile.am): Likewise.
37280
37281 2009-12-10  Jim Meyering  <meyering@redhat.com>
37282
37283         mgetgroups: do not write bytes beyond end of malloc'd buffer
37284         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37285         username, we call getgroups with a one-element-shorter buffer,
37286         but still told it the length was original, max_n_groups.
37287
37288 2009-12-09  Eric Blake  <ebb9@byu.net>
37289
37290         cloexec: relax license
37291         * modules/cloexec (Maintainer): Add myself.
37292         (License): Use LGPL, not GPL.
37293
37294         link-warning: optimize generation
37295         * modules/link-warning (Makefile.am): Reduce process usage.
37296
37297 2009-12-09  Bruno Haible  <bruno@clisp.org>
37298
37299         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37300         workaround was added on 2009-11-17.
37301
37302 2009-12-09  Jim Meyering  <meyering@redhat.com>
37303             Bruno Haible  <bruno@clisp.org>
37304
37305         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37306         * modules/link-warning (Makefile.am): Make the comment-removing sed
37307         command more robust in the face of bootstrap-prepended comment lines.
37308
37309 2009-12-09  Bruno Haible  <bruno@clisp.org>
37310
37311         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37312         most one group.
37313
37314 2009-12-09  Simon Josefsson <simon@josefsson.org>
37315             Bruno Haible  <bruno@clisp.org>
37316
37317         * build-aux/link-warning.h: Add copyright notice.
37318         * modules/link-warning (Makefile.am): Generate link-warning.h from
37319         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37320         * NEWS: Mention change in link-warning module.
37321         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37322         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37323         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37324         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37325         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37326         * modules/math (Makefile.am): Add dependency to math.h.
37327         * modules/search (Makefile.am): Add dependency to search.h.
37328         * modules/signal (Makefile.am): Add dependency to signal.h.
37329         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37330         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37331         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37332         * modules/string (Makefile.am): Add dependency to string.h.
37333         * modules/strings (Makefile.am): Add dependency to strings.h.
37334         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37335         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37336         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37337         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37338         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37339         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37340         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37341         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37342         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37343
37344 2009-12-09  Bruno Haible  <bruno@clisp.org>
37345
37346         fchdir: Optimize away rpl_fstat when possible.
37347         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37348         REPLACE_OPEN_DIRECTORY.
37349         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37350
37351 2009-12-09  Bruno Haible  <bruno@clisp.org>
37352
37353         * lib/fchdir.c: Update comment.
37354
37355 2009-12-09  Bruno Haible  <bruno@clisp.org>
37356
37357         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37358
37359 2009-12-08  Eric Blake  <ebb9@byu.net>
37360
37361         fchdir: avoid memory leak on re-registration.
37362         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37363
37364 2009-12-08  Jim Meyering  <meyering@redhat.com>
37365
37366         init.sh: avoid Solaris 10 /bin/sh portability problem
37367         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37368         sourced script:
37369           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37370           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37371           bar
37372         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37373         and two tests used that idiom.
37374         * tests/init.sh: Update suggested usage comments.
37375         (path_prepend_): New function, to be used in place
37376         of the --src-path=DIR option.
37377         (setup_): Move PATH-prepending code into path_prepend_.
37378         * tests/test-pread.sh: Adapt to new usage.
37379         * tests/test-xalloc-die.sh: Likewise.
37380
37381 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37382
37383         * doc/gnulib.texi (Glibc pty.h): Add.
37384         * doc/glibc-functions/forkpty.texi: Add.
37385         * doc/glibc-functions/openpty.texi: Add.
37386         Suggested by Bruno Haible.
37387
37388 2009-12-08  Eric Blake  <ebb9@byu.net>
37389
37390         fchdir: fix logic bugs
37391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37392         * tests/test-fchdir.c (main): Enhance test.
37393         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37394         is in use.
37395
37396         dup2: fix logic bugs
37397         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37398         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37399         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37400         exists.
37401         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37402
37403 2009-12-07  Eric Blake  <ebb9@byu.net>
37404
37405         unlink: fix m4 detection
37406         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37407
37408         unistd-safer: add unit test
37409         * modules/unistd-safer-tests: New file.
37410         * tests/test-dup-safer.c: Likewise.
37411         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37412         * tests/test-dup2.c (setmode): Likewise.
37413         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37414
37415         cloexec: preserve text vs. binary across dup_cloexec
37416         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37417         mode.
37418         * modules/dup2-tests (Depends-on): Add binary-io.
37419         * modules/cloexec-tests (Depends-on): Likewise.
37420         * tests/test-dup2.c (setmode, is_mode): New helpers.
37421         (main): Add tests that translation mode is preserved.
37422         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37423         Reported by Bruno Haible.
37424
37425         mgetgroups: reduce duplicate listings
37426         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37427         resulting array.
37428         * tests/test-chown.h (test_chown): Simplify client.
37429         * tests/test-lchown.h (test_lchown): Likewise.
37430
37431 2009-12-06  Bruno Haible  <bruno@clisp.org>
37432
37433         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37434         value.
37435
37436 2009-12-06  Bruno Haible  <bruno@clisp.org>
37437
37438         * lib/progname.c: Include stdio.h, stdlib.h.
37439         (set_program_name): Reject a NULL argument.
37440
37441 2009-12-05  Eric Blake  <ebb9@byu.net>
37442
37443         pipe2-safer: new module
37444         * modules/pipe2-safer: New file.
37445         * lib/unistd-safer.h (pipe2_safer): New prototype.
37446         * lib/unistd--.h (pipe2): New wrapper.
37447         * lib/pipe-safer.c (pipe2_safer): New function.
37448         * modules/pipe (Depends-on): Add pipe2-safer.
37449         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37450
37451         stdlib-safer: preserve cloexec flag for mkostemp[s]
37452         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37453         fd_safer_flag.
37454
37455         unistd-safer: allow preservation of cloexec status via flag
37456         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37457         prototypes.
37458         * lib/dup-safer.c (dup_safer_flag): New function.
37459         * lib/fd-safer.c (fd_safer_flag): Likewise.
37460         * modules/cloexec (configure.ac): Set witness.
37461
37462         test-dup2: enhance test
37463         * modules/dup2-tests (Depends-on): Add cloexec.
37464         * tests/test-dup2.c (main): Enhance test.
37465
37466         cloexec: add dup_cloexec
37467         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37468         header and comments.
37469         * lib/cloexec.c (set_cloexec_flag): Add comments.
37470         (dup_cloexec): New function, with mingw implementation borrowed
37471         from...
37472         * lib/w32spawn.h (dup_noinherit): ...here.
37473         * modules/execute (Depends-on): Add cloexec.
37474         * modules/pipe (Depends-on): Likewise.
37475         * modules/cloexec (Depends-on): Add dup2.
37476         * modules/cloexec-tests (Files): New file.
37477         * tests/test-cloexec.c: Likewise.
37478
37479         test-xalloc-die: fix test for mingw
37480         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37481         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37482         directory and .exe suffix off argv[0] output.
37483
37484         test-fseeko: fix test for mingw
37485         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37486         than undefining fseek, so test will pass on mingw.
37487
37488 2009-12-05  Bruno Haible  <bruno@clisp.org>
37489
37490         * lib/progname.h (set_program_name): Clarify specification.
37491         * lib/progname.c (set_program_name): Likewise.
37492         Reported by Jim Meyering.
37493
37494 2009-12-05  Jim Meyering  <meyering@redhat.com>
37495
37496         maint.mk: backslash-escape parens in default regexp
37497         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37498         backslash-escape the literal parentheses.
37499
37500         maint.mk: news-date-check: use grep -E
37501         * top/maint.mk (today): Define a Make variable, not a...
37502         (news-date-check): ...shell variable.
37503         (news-date-regexp): Use the Make variable.
37504         Use grep's -E option.  Change the failing diagnostic to mention
37505         the variable, $(news-date-regexp).
37506
37507 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37508
37509         maintainer-makefile: allow customization of NEWS entry format
37510         * top/maint.mk (news-date-regexp): New overridable variable.
37511         (news-date-check): Use it.
37512
37513 2009-12-04  Eric Blake  <ebb9@byu.net>
37514
37515         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37516         * lib/mgetgroups.h (xgetgroups): New prototype.
37517         * lib/mgetgroups.c (xgetgroups): New wrapper.
37518         (mgetgroups): Handle ENOSYS.
37519         * modules/mgetgroups (Depends-on): Add realloc.
37520         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37521
37522         mgetgroups: avoid argument promotion issues with -1
37523         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37524         for invalid gid_t.
37525         * tests/test-chown.h (getegid, test_chown): Likewise.
37526         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37527
37528 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37529
37530         exclude: Fix header file problems.
37531         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37532
37533 2009-12-01  Jim Meyering  <meyering@redhat.com>
37534
37535         fts: fts_open: do not let an empty string cause immediate failure
37536         This is required in support of GNU rm, for which the command
37537         "rm A '' B" must process and remove both A and B, in spite of
37538         the empty string argument.
37539         * lib/fts.c (fts_open): Do not let the presence of an empty string
37540         cause fts_open to fail immediately.  Most fts-using tools must be
37541         able to process all arguments, in order, and can be expected to
37542         diagnose such arguments themselves.
37543
37544 2009-11-30  Eric Blake  <ebb9@byu.net>
37545
37546         utimens: fix compilation error
37547         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37548         Declare variable at right scope.
37549
37550 2009-11-29  Jim Meyering  <meyering@redhat.com>
37551
37552         bootstrap: handle perl-5.11's changed --version output
37553         * build-aux/bootstrap (get_version): Handle perl separately,
37554         since perl-5.11's --version output is different.
37555
37556 2009-11-28  Jim Meyering  <meyering@redhat.com>
37557
37558         userspec: depend on the inttostr module, too
37559         * modules/userspec (Depends-on): Add inttostr.
37560
37561         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37562         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37563         number of MAXUID when it evaluates to (uid_t) -1.
37564         Likewise for group ID.  Reported by Matt McCutchen in
37565         <http://savannah.gnu.org/bugs/?28113>
37566
37567         userspec: reformat to use spaces, not TABs
37568         * lib/userspec.c: Expand TABs to spaces.
37569         Add Emacs' "indent-tabs-mode: nil" hint.
37570
37571 2009-11-27  Eric Blake  <ebb9@byu.net>
37572
37573         getopt-gnu: flush out another BSD bug
37574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37575         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37576         flush out BSD bug.
37577         * tests/test-getopt.h (test_getopt): End lists with NULL.
37578         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37579         (test_getopt_long_posix): Enhance test.
37580         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37581         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37582         getopt-gnu.
37583         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37584         Likewise.
37585
37586 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37587
37588         * modules/idpriv-droptemp-tests (Notice): Fix text.
37589
37590 2009-11-27  Jim Meyering  <meyering@redhat.com>
37591
37592         test-xalloc-die: avoid spurious failure due to libtool argv difference
37593         In a libtool-enabled project, this test would fail due to a difference
37594         in the emitted program name, e.g.,
37595         -test-xalloc-die: memory exhausted
37596         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37597         Use program to avoid that.
37598         * modules/xalloc-die-tests (Depends-on): Add progname.
37599         * tests/test-xalloc-die.c: Include progname.h".
37600         (program_name): Remove decl.
37601         (main): Call set_program_name.
37602         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37603
37604 2009-11-26  Richard Jones  <rjones@redhat.com>
37605
37606         w32sock: leave win32 error in place.
37607         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37608
37609 2009-11-26  Eric Blake  <ebb9@byu.net>
37610
37611         init.sh: suggest to use skip_ and fail_ functions in comments
37612         * tests/init.sh: Add a sentence.
37613
37614 2009-11-25  Bruno Haible  <bruno@clisp.org>
37615
37616         init.sh: add documentation in comments
37617         * tests/init.sh: Add some developer and user documentation.
37618
37619 2009-11-26  Jim Meyering  <meyering@redhat.com>
37620
37621         init.sh: accommodate even those who specify bogus srcdir manually
37622         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37623         configure-time tests to be sanitized, so that there is no need to
37624         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37625         (with no double quotes) suffices.  However, since tests may be
37626         invoked manually, and since you may explicitly set srcdir to the
37627         name of a directory containing spaces, do quote its uses here.
37628         * tests/test-pread.sh: Likewise.
37629         Suggested by Bruno Haible.
37630
37631         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37632         * tests/test-pread.sh: Write no data into the pipe, because
37633         test-pread actually reads none.  This avoids a diagnostic,
37634         "bash: echo: write error: Broken pipe", that arises in the unusual
37635         event something is ignoring SIGPIPE, and might be interpreted
37636         as some sort of failure.  Reported by Bruno Haible.
37637
37638 2009-11-25  Jim Meyering  <meyering@redhat.com>
37639
37640         test-pread: cover failure with ESPIPE and EINVAL
37641         * tests/test-pread.c (main): Test for failure, too.
37642         * tests/test-pread.sh: Invoke with stdin on a pipe.
37643         Suggested by Eric Blake.
37644
37645         pread: improvement and fix
37646         * modules/pread (Depends-on): Depend on lseek, for portability to
37647         e.g., mingw.  Suggested by Eric Blake.
37648         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37649
37650         unistd.in.h: correct declaration of pread
37651         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37652         Reported by Richard W.M. Jones.
37653
37654         test-pread.sh: distribute the test script
37655         * modules/pread-tests (Files): Include test-pread.sh.
37656
37657         test-pread.sh: clean up
37658         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37659         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37660         That is unnecessary, since it's always ".".
37661         Suggestion from Eric Blake.
37662
37663         test-pread.sh: make executable
37664         * tests/test-pread.sh: Set executable bit.
37665         Reported by Eric Blake.
37666
37667         correct typo in test-pread.sh
37668         * tests/test-pread.sh: Add #! line.
37669
37670         test pread
37671         * tests/test-pread.c: New file.
37672         * tests/test-pread.sh: Likewise.
37673         * modules/pread-tests: Likewise.
37674
37675         pread: new module
37676         * modules/pread: New file.
37677         * lib/unistd.in.h (pread): Define/declare.
37678         * lib/pread.c (pread): New file.
37679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37680         * modules/unistd (Makefile.am): Substitute witnesses.
37681         * doc/posix-functions/pread.texi (pread): Update.
37682         * MODULES.html.sh: Add pread.
37683
37684 2009-11-25  Jim Meyering  <meyering@redhat.com>
37685
37686         tests/init.sh: new file to be used via most *.sh tests
37687         * tests/init.sh: New file.
37688
37689 2009-11-25  Eric Blake  <ebb9@byu.net>
37690
37691         utimens: work around older Linux failure with symlinks
37692         * lib/utimens.c (lutimensat_works_really): New variable.
37693         (fdutimens, lutimens): Use it to manage kernels that support
37694         nanosecond times on files, but not on symlinks.
37695         Reported by OndÅ™ej Vašík.
37696
37697         utimes: fix configure grammar
37698         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37699
37700 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37701
37702         regex: Fix fastmap for multibyte character ranges.
37703         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37704         characters when a multibyte character range is included.
37705
37706 2009-11-22  Andy Wingo  <wingo@pobox.com>
37707
37708         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37709         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37710
37711 2009-11-24  Bruno Haible  <bruno@clisp.org>
37712
37713         doc: Most *_l functions exist in MacOS X 10.5.
37714         * doc/posix-functions/duplocale.texi: Update platforms list.
37715         * doc/posix-functions/freelocale.texi: Likewise.
37716         * doc/posix-functions/newlocale.texi: Likewise.
37717         * doc/posix-functions/uselocale.texi: Likewise.
37718         * doc/posix-functions/isalnum_l.texi: Likewise.
37719         * doc/posix-functions/isalpha_l.texi: Likewise.
37720         * doc/posix-functions/isblank_l.texi: Likewise.
37721         * doc/posix-functions/iscntrl_l.texi: Likewise.
37722         * doc/posix-functions/isdigit_l.texi: Likewise.
37723         * doc/posix-functions/isgraph_l.texi: Likewise.
37724         * doc/posix-functions/islower_l.texi: Likewise.
37725         * doc/posix-functions/isprint_l.texi: Likewise.
37726         * doc/posix-functions/ispunct_l.texi: Likewise.
37727         * doc/posix-functions/isspace_l.texi: Likewise.
37728         * doc/posix-functions/isupper_l.texi: Likewise.
37729         * doc/posix-functions/iswalnum_l.texi: Likewise.
37730         * doc/posix-functions/iswalpha_l.texi: Likewise.
37731         * doc/posix-functions/iswblank_l.texi: Likewise.
37732         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37733         * doc/posix-functions/iswctype_l.texi: Likewise.
37734         * doc/posix-functions/iswdigit_l.texi: Likewise.
37735         * doc/posix-functions/iswgraph_l.texi: Likewise.
37736         * doc/posix-functions/iswlower_l.texi: Likewise.
37737         * doc/posix-functions/iswprint_l.texi: Likewise.
37738         * doc/posix-functions/iswpunct_l.texi: Likewise.
37739         * doc/posix-functions/iswspace_l.texi: Likewise.
37740         * doc/posix-functions/iswupper_l.texi: Likewise.
37741         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37742         * doc/posix-functions/isxdigit_l.texi: Likewise.
37743         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37744         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37745         * doc/posix-functions/strcoll_l.texi: Likewise.
37746         * doc/posix-functions/strfmon_l.texi: Likewise.
37747         * doc/posix-functions/strftime_l.texi: Likewise.
37748         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37749         * doc/posix-functions/strxfrm_l.texi: Likewise.
37750         * doc/posix-functions/tolower_l.texi: Likewise.
37751         * doc/posix-functions/toupper_l.texi: Likewise.
37752         * doc/posix-functions/towctrans_l.texi: Likewise.
37753         * doc/posix-functions/towlower_l.texi: Likewise.
37754         * doc/posix-functions/towupper_l.texi: Likewise.
37755         * doc/posix-functions/wcscoll_l.texi: Likewise.
37756         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37757         * doc/posix-functions/wctrans_l.texi: Likewise.
37758         * doc/posix-functions/wctype_l.texi: Likewise.
37759         * doc/glibc-functions/strptime_l.texi: Likewise.
37760         * doc/glibc-functions/strtod_l.texi: Likewise.
37761         * doc/glibc-functions/strtof_l.texi: Likewise.
37762         * doc/glibc-functions/strtol_l.texi: Likewise.
37763         * doc/glibc-functions/strtold_l.texi: Likewise.
37764         * doc/glibc-functions/strtoll_l.texi: Likewise.
37765         * doc/glibc-functions/strtoul_l.texi: Likewise.
37766         * doc/glibc-functions/strtoull_l.texi: Likewise.
37767         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37768         * doc/glibc-functions/wcstod_l.texi: Likewise.
37769         * doc/glibc-functions/wcstof_l.texi: Likewise.
37770         * doc/glibc-functions/wcstol_l.texi: Likewise.
37771         * doc/glibc-functions/wcstold_l.texi: Likewise.
37772         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37773         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37774         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37775
37776 2009-11-24  Bruno Haible  <bruno@clisp.org>
37777
37778         duplocale: Fix logic bug.
37779         * lib/duplocale.c: Don't include <langinfo.h>.
37780         (_NL_LOCALE_NAME): Remove macro.
37781         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37782         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37783
37784 2009-11-23  Jim Meyering  <meyering@redhat.com>
37785
37786         test-update-copyright: don't hard-code /usr/bin/perl
37787         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37788         perl to print the current year.  Gilles Espinasse reported that
37789         the replaced use of perl was hard-coded as /usr/bin/perl.
37790
37791 2009-11-23  Bruno Haible  <bruno@clisp.org>
37792
37793         duplocale: Add support for glibc 2.3.x.
37794         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37795
37796 2009-11-22  Bruno Haible  <bruno@clisp.org>
37797
37798         vasnprintf: Tiny optimization.
37799         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37800         MacOS X.
37801
37802 2009-11-22  Bruno Haible  <bruno@clisp.org>
37803
37804         Tests for module 'duplocale'.
37805         * modules/duplocale-tests: New file.
37806         * tests/test-duplocale.c: New file.
37807
37808         New module 'duplocale'.
37809         * m4/duplocale.m4: New file.
37810         * lib/locale.in.h (duplocale): New declaration.
37811         * lib/duplocale.c: New file.
37812         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37813         gl_LOCALE_H_DEFAULTS): New macros.
37814         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37815         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37816         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37817         REPLACE_DUPLOCALE.
37818         * modules/duplocale: New file.
37819         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37820
37821 2009-11-22  Bruno Haible  <bruno@clisp.org>
37822
37823         * modules/locale-tests (configure.ac): Test for newlocale function.
37824         * tests/test-locale.c: When the system has extended locale functions,
37825         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37826
37827         locale: Make locale_t available when possible.
37828         * lib/locale.in.h: Include <xlocale.h> when it exists.
37829         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37830         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37831         * modules/locale (Depends-on): Add extensions.
37832         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37833         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37834
37835 2009-11-22  Bruno Haible  <bruno@clisp.org>
37836
37837         Add comments.
37838         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37839         invocation.
37840         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37841         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37842         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37843
37844 2009-11-22  Bruno Haible  <bruno@clisp.org>
37845
37846         error: account for the possibility of freopen (stdout).
37847         * lib/error.c: Include <unistd.h>.
37848         (flush_stdout): New function, extracted from error and error_at_line.
37849         Determine stdout's fd dynamically.
37850         (error, error_at_line): Invoke flush_stdout.
37851         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37852         * modules/error (Depends-on): Add unistd.
37853
37854 2009-11-22  Bruno Haible  <bruno@clisp.org>
37855
37856         diffseq: Add comment.
37857         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37858
37859 2009-11-22  Jim Meyering  <meyering@redhat.com>
37860
37861         c-stack: avoid defining an unused static function
37862         * lib/c-stack.c (find_stack_direction): Do not define this function
37863         when it will not be used.
37864
37865         diffseq: avoid spurious gcc warnings
37866         * lib/diffseq.h (IF_LINT2): Define.
37867         (compareseq): Use it to initialize two members of "part".
37868         This avoids two used-uninitialized warnings.
37869
37870 2009-11-21  Jim Meyering  <meyering@redhat.com>
37871
37872         c-stack: avoid "ignoring return value of `write'" warning
37873         * lib/c-stack.c: Include "ignore-value.h".
37874         (die): Explicitly ignore each write return value.
37875         * modules/c-stack (Depends-on): Add ignore-value.
37876
37877 2009-11-21  Bruno Haible  <bruno@clisp.org>
37878
37879         diffseq: reduce scope of variable 'best'.
37880         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37881         variable, earlier used for two different purposes.
37882
37883 2009-11-21  Jim Meyering  <meyering@redhat.com>
37884
37885         diffseq: remove useless assignment to "best"
37886         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37887         assignment.  At that point "best" is already guaranteed to be zero.
37888
37889 2009-11-20  Eric Blake  <ebb9@byu.net>
37890
37891         build: mention ftp redirector in release announcements
37892         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37893         values that used to come from cfg.mk; mention FTP redirect URL.
37894         * build-aux/announce-gen: Mention the mirror list.
37895         Suggested by Karl Berry.
37896
37897         nanosleep: improve port to mingw
37898         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37900         LIB_NANOSLEEP, but only when needed.
37901         * modules/select (Link): Document LIBSOCKET.
37902         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37903         enough.
37904
37905         nanosleep: work around cygwin bug
37906         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37907         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37908         bug.
37909         (getnow): Delete, not needed.
37910         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37911         LIB_CLOCK_GETTIME.
37912         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37913         clock-time, gettime.
37914         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37915         bug.
37916         * modules/nanosleep-tests: New test.
37917         * tests/test-nanosleep.c: New file.
37918
37919         sleep: work around cygwin bug
37920         * lib/sleep.c (rpl_sleep): Work around the bug.
37921         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37922         (gl_PREREQ_SLEEP): Delete unused macro.
37923         * modules/sleep (Depends-on): Add verify.
37924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37925         * modules/unistd (Makefile.am): Substitute witness.
37926         * lib/unistd.in.h (sleep): Update prototype.
37927         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37928         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37929         * modules/sleep-tests (Depends-on): Check for alarm.
37930
37931 2009-11-20  Jim Meyering  <meyering@redhat.com>
37932
37933         maint.mk: improve sc_prohibit_magic_number_exit
37934         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37935         so it does not match uses like System.exit(1).
37936         Add comments showing how to correct all offenders.
37937
37938 2009-11-19  Eric Blake  <ebb9@byu.net>
37939
37940         xalloc-die-tests: add missing library
37941         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37942
37943         test-xvasprintf: silence compiler warnings
37944         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37945         empty string from gcc.
37946
37947 2009-11-19  Jim Meyering  <meyering@redhat.com>
37948
37949         xfreopen: new module, from coreutils
37950         * modules/xfreopen: New module.
37951         * lib/xfreopen.c: New file.
37952         * lib/xfreopen.h: New file.
37953         * MODULES.html.sh (File stream based Input/Output"): Add it.
37954
37955 2009-11-19  Eric Blake  <ebb9@byu.net>
37956
37957         manywarnings: depend on warnings
37958         * modules/manywarnings (Depends-on): Add warnings.
37959
37960         build: avoid compiler warnings
37961         * lib/select.c (rpl_select): Delete unused variable.
37962         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37963
37964 2009-11-18  Eric Blake  <ebb9@byu.net>
37965
37966         tests: avoid false negative with --with-packager
37967         * tests/test-version-etc.sh: Discard packager information.
37968         * tests/test-argp-version-etc-1.sh: Likewise.
37969         Reported by Mike Frysinger.
37970
37971         utimens: fix regression on Solaris
37972         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37973         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37974         can only change fd timestamps via futimesat.  Instead, use an
37975         additional witness macro to avoid BSD bug.
37976         Reported by Jim Meyering.
37977
37978 2009-11-17  Eric Blake  <ebb9@byu.net>
37979
37980         usleep: use it to simplify tests
37981         * modules/stat-time-tests (Depends-on): Add usleep.
37982         (configure.ac): Drop usleep check.
37983         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37984         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37985         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37986         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37987         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37988         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37989         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37990         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37991         Likewise.
37992         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37993         * tests/test-lchown.h (nap): Likewise.
37994         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37995         * tests/test-stat-time.c (nap): Likewise.
37996         * tests/test-utimens-common.h (nap): Update comments.
37997
37998         usleep: new module
37999         * modules/usleep: New file.
38000         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38001         * lib/usleep.c (usleep): Likewise.
38002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38003         * modules/unistd (Makefile.am): Substitute witnesses.
38004         * lib/unistd.in.h (usleep): Add declaration.
38005         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38006         * MODULES.html.sh (Date and time): Likewise.
38007         * modules/usleep-tests (Depends-on): New test.
38008         * tests/test-usleep.c: New file.
38009
38010         chown: work around OpenBSD bug
38011         * lib/chown.c (rpl_chown): Work around the bug.
38012         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38013         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38014         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38015         * modules/chown (Depends-on): Add stdbool.
38016         * modules/lchown (Depends-on): Likewise.
38017         * doc/posix-functions/chown.texi (chown): Document the bug.
38018         * doc/posix-functions/lchown.texi (lchown): Likewise.
38019         * tests/test-lchown.h (test_chown): Relax test.
38020
38021         mkstemp: avoid conflict with C++ keyword template
38022         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38023         * lib/mkostemp.c (mkostemp): Likewise.
38024         * lib/mkostemps.c (mkostemps): Likewise.
38025         * lib/mkstemp.c (mkstemp): Likewise.
38026         * lib/mkstemps.c (mkstemps): Likewise.
38027
38028         xalloc-die-tests: optimize
38029         * tests/test-xalloc-die.sh: Reduce number of processes.
38030
38031 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38032
38033         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38034         patch from ludo@gnu.org (Ludovic Courtès).
38035
38036 2009-11-17  Jim Meyering  <meyering@redhat.com>
38037
38038         version-etc: use proper license string
38039         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38040         * modules/version-etc-fsf: Likewise.
38041
38042 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38043
38044         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38045         printed to stdout.  Deal with EOL differences.
38046
38047 2009-11-17  Eric Blake  <ebb9@byu.net>
38048
38049         unsetenv: work around Solaris bug
38050         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38051         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38052         Reported by Jim Meyering.
38053
38054         vasnprintf: avoid compiler warnings
38055         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38056         variables.
38057         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38058
38059 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38060
38061         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38062         settings since xalloc-die is no longer the self test,
38063         xalloc-die.sh is.
38064
38065 2009-11-17  Jim Meyering  <meyering@redhat.com>
38066
38067         test-xalloc-die.sh: make the code agree with the commit log
38068         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38069         at the end, just in case you happen to have a test-xalloc-die
38070         program in some other PATH directory.
38071
38072         test-xalloc-die.sh: fix a portability bug
38073         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38074         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38075         Otherwise, argv[0] (as often seen in diagnostics) would be too
38076         system-dependent, sometimes with, and sometimes without the leading "./".
38077
38078         version-etc-fsf: relax license to LGPLv3+
38079         * modules/version-etc-fsf (License): Relax license.
38080
38081 2009-11-16  Eric Blake  <ebb9@byu.net>
38082
38083         xalloc-die-tests: avoid printing null pointer
38084         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38085         shell script.
38086         * tests/test-xalloc-die.c (program_name): Declare.
38087         * tests/test-xalloc-die.sh (tmpfiles): New file.
38088
38089         setenv, unsetenv: work around various bugs
38090         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38091         (setenv) [HAVE_SETENV]: Work around bugs.
38092         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38093         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38094         for bugs.
38095         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38096         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38098         * modules/stdlib (Makefile.am): Update substitutions.
38099         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38100         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38101         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38102         * modules/setenv-tests: New test.
38103         * modules/unsetenv-tests: Likewise.
38104         * tests/test-setenv.c: New file.
38105         * tests/test-unsetenv.c: Likewise.
38106
38107 2009-11-16  Jim Meyering  <meyering@redhat.com>
38108
38109         version-etc: relax license to LGPLv3+
38110         * modules/version-etc (License): Relax license.
38111
38112         better AC_REQUIRE expanded-before-required-warning avoidance
38113         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38114         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38115         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38116         which is no longer needed.
38117
38118 2009-11-16  Eric Blake  <ebb9@byu.net>
38119
38120         test-freading: clean up temporary file
38121         * tests/test-freading.c (main): Remove file on success, and use
38122         ASSERT more liberally.
38123         Reported by Jim Meyering.
38124
38125 2009-11-16  Jim Meyering  <meyering@redhat.com>
38126
38127         avoid new AC_REQUIRE expanded-before-required warnings
38128         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38129         merely using it.
38130         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38131         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38132
38133 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38134
38135         * tests/test-xalloc-die.c: New file.
38136         * modules/xalloc-die-tests: New file.
38137         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38138         XFAIL_TESTS so it can be appended by modules.
38139
38140 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38141
38142         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38143         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38144
38145 2009-11-14  Eric Blake  <ebb9@byu.net>
38146
38147         fnmatch: avoid compiler warning
38148         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38149         to silence compiler warning about mismatch signedness in ?:.
38150         Reported by Robert Millan.
38151
38152         intprops: add double-inclusion guard
38153         * lib/intprops.h: Allow idempotent includes.
38154         Suggested by Bruce Korb.
38155
38156         openat: detect Solaris fchownat bug
38157         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38158         penalizing glibc chownat when only lchownat is broken.
38159         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38160         trailing slash bugs.
38161         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38162         * modules/openat-tests (Files): Include more files.
38163         (Depends-on): Add mgetgroups, sleep, stat-time.
38164         (configure.ac): Add additional checks.
38165         (Makefile.am): Build new test.
38166         * tests/test-fchownat.c: New file.
38167
38168         lchown: detect Solaris and FreeBSD bug
38169         * lib/lchown.c (rpl_lchown): Work around bug.
38170         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38172         * modules/unistd (Makefile.am): Populate it.
38173         * lib/unistd.in.h (lchown): Update declaration.
38174         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38175         * modules/lchown-tests: New file.
38176         * tests/test-lchown.h (test_lchown): Likewise.
38177         * tests/test-lchown.c (main): Likewise.
38178
38179         chown: detect Solaris and FreeBSD bug
38180         * lib/chown.c (rpl_chown): Work around bug.
38181         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38182         (gl_PREREQ_CHOWN): Delete.
38183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38184         * modules/unistd (Makefile.am): Populate it.
38185         * lib/unistd.in.h (chown): Update declaration.
38186         * lib/lchown.c (chown): Update client.
38187         * modules/lchown (Depends-on): Add lstat.
38188         * doc/posix-functions/chown.texi (chown): Document the bug.
38189         * doc/posix-functions/getgroups.texi (getgroups): Document
38190         getgroups pitfall.
38191         * modules/chown-tests: New file.
38192         * tests/test-chown.h (test_chown): Likewise.
38193         * tests/test-chown.c (main): Likewise.
38194
38195 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38196
38197         gnulib-tool: correctly detect absence of m4 directories
38198         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38199
38200 2009-11-14  Jim Meyering  <meyering@redhat.com>
38201
38202         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38203         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38204
38205 2009-11-14  John W. Eaton  <jwe@gnu.org>
38206
38207         strftime.h: wrap funtion declaration in extern "C" block
38208         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38209
38210 2009-11-13  Eric Blake  <ebb9@byu.net>
38211
38212         getgroups: avoid compiler warning
38213         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38214
38215         getgroups: work around FreeBSD bug
38216         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38217         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38218         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38219         * tests/test-getgroups.c (main): Fix buffer overrun.
38220
38221         getgroups: avoid compilation failure
38222         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38223         * modules/getgroups (Depends-on): Add stdint.
38224
38225 2009-11-13  Jim Meyering  <meyering@redhat.com>
38226
38227         test-getgroups: avoid compilation failure
38228         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38229
38230 2009-11-13  Eric Blake  <ebb9@byu.net>
38231
38232         mgetgroups: new module, taken from coreutils
38233         * modules/mgetgroups: New file.
38234         * lib/mgetgroups.h: Likewise.
38235         * lib/mgetgroups.c (mgetgroups): Likewise.
38236         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38237         * MODULES.html.sh (Users and groups): Mention it.
38238
38239         getgroups: don't expose GETGROUPS_T to user
38240         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38241         an element at a time if GETGROUPS_T is wrong size.
38242         * lib/getugroups.h (getugroups): Change signature.
38243         * lib/unistd.in.h (getgroups): Likewise.
38244         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38245         signature needs fixing.
38246         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38247         AC_TYPE_GETGROUPS.
38248         * modules/group-member (Depends-on): Add getgroups.
38249         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38250         (group_member): Rely on getgroups replacement.
38251         * lib/getugroups.c (getugroups): Use gid_t.
38252         * tests/test-getgroups.c (main): Likewise.
38253         * NEWS: Mention the signature change.
38254         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38255         problem with signature.
38256         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38257         GETGROUPS_T is still useful for setgroups.
38258
38259         getgroups, getugroups: provide stubs for mingw
38260         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38261         * lib/getugroups.c (getugroups): Likewise.
38262         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38263         function.  Modernize replacement scheme.
38264         (gl_PREREQ_GETGROUPS): Delete.
38265         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38266         * modules/getgroups (configure.ac): Declare witness.
38267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38268         * modules/unistd (Depends-on): Substitute witness.
38269         * lib/unistd.in.h (getgroups): Declare replacement.
38270
38271         getgroups: avoid calling exit
38272         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38273         drop xalloc.
38274         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38275         dependencies.
38276         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38277         exiting, in the rare case of malloc failure.
38278
38279         getgroups: fix logic error
38280         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38281         has more than 20 groups.
38282         * modules/getgroups-tests: New test.
38283         * tests/test-getgroups.c: New file.
38284
38285 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38286
38287         * tests/test-base64.c: Improve.
38288
38289 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38290
38291         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38292         Blake <ebb9@byu.net>.
38293
38294 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38295
38296         * tests/test-xvasprintf.c: Add %s%s related checks.
38297
38298 2009-11-12  Eric Blake  <ebb9@byu.net>
38299
38300         version-etc: match standards.texi style
38301         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38302         and use <> only for URLs.
38303
38304 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38305
38306         fts: do not fail on a submount during traversal
38307         * lib/fts.c (fts_build): Read the stat info again after opening
38308         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38309         Original report at http://bugzilla.redhat.com/501848.
38310
38311 2009-11-12  Jim Meyering  <meyering@redhat.com>
38312
38313         bootstrap: sync from coreutils
38314         * build-aux/bootstrap (bootstrap_epilogue): New function.
38315         Use git_modules_config in one more place.  This make bootstrap's
38316         --gnulib-srcdir option more useful for testing.
38317
38318         bootstrap: generalize autoheader check
38319         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38320         AC_CONFIG_HEADERS.
38321
38322 2009-11-11  Eric Blake  <ebb9@byu.net>
38323
38324         mkfifoat: use new modules for Solaris and BSD bugs
38325         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38326         * lib/mkfifoat.c (mknodat): Split...
38327         * lib/mknodat.c (mknodat): ...into new file.
38328         * modules/mkfifoat (Files): Ship new file.
38329         (Depends-on): Add mkfifo, mknod.
38330         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38331         (Depends-on): Add symlink.
38332         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38333         redundant with test_mkfifo.h.
38334         (do_mkfifoat, do_mknodat): New helpers.
38335
38336         mknod: new module
38337         * modules/mknod: New file.
38338         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38339         * lib/mknod.c (mknod): Likewise.
38340         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38341         defaults.
38342         * modules/sys_stat (Makefile.am): Substitute them.
38343         * lib/sys_stat.in.h (mknod): Declare replacement.
38344         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38345         Document it.
38346         * doc/posix-functions/mknod.texi (mknod): Likewise.
38347         * modules/mknod-tests: New test.
38348         * tests/test-mknod.c: Likewise.
38349
38350         mkfifo: new module
38351         * modules/mkfifo: New file.
38352         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38353         * lib/mkfifo.c (mkfifo): Likewise.
38354         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38355         defaults.
38356         * modules/sys_stat (Makefile.am): Substitute them.
38357         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38358         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38359         Document it.
38360         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38361         * modules/mkfifo-tests: New test.
38362         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38363         from test-mkfifoat.c.
38364         * tests/test-mkfifo.c: New file.
38365
38366         readlink: detect FreeBSD bug
38367         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38368         slash on symlink.
38369         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38370         * tests/test-readlink.h (test_readlink): Enhance test.
38371
38372         symlink: detect FreeBSD bug
38373         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38374         slash on symlink.
38375         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38376         * tests/test-symlink.h (test_symlink): Enhance test.
38377
38378 2009-11-10  Eric Blake  <ebb9@byu.net>
38379
38380         link: detect FreeBSD bug
38381         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38382         symlink.
38383         * doc/posix-functions/link.texi (link): Document the bug.
38384         * tests/test-link.h (test_link): Enhance test.
38385         * tests/test-linkat.c (main): Update caller.
38386
38387         unlink, remove: detect FreeBSD bug
38388         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38389         slash on symlink.
38390         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38391         * doc/posix-functions/remove.texi (remove): Likewise.
38392         * tests/test-unlink.h (test_unlink): Enhance test.
38393         * tests/test-remove.c (main): Likewise.
38394
38395 2009-11-09  Eric Blake  <ebb9@byu.net>
38396
38397         rename: detect FreeBSD bug
38398         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38399         slash on symlink.
38400         * modules/renameat-tests (Depends-on): Add filenamecat.
38401         * tests/test-rename.h (test_rename): Allow one more errno.
38402         * tests/test-renameat.c (main): Likewise.
38403         * doc/posix-functions/rename.texi (rename): Document the bug.
38404
38405         open: detect FreeBSD bug
38406         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38407         symlink.
38408         * doc/posix-functions/open.texi (open): Document the bug.
38409         * doc/posix-functions/utimes.texi (utimes): Likewise.
38410         * tests/test-open.h (test_open): Add parameters, and test symlink
38411         handling.
38412         * tests/test-open.c (main): Adjust caller.
38413         * tests/test-fcntl-safer.c (main): Likewise.
38414         * modules/open-tests (Depends-on): Add stdbool, symlink.
38415         * modules/fcntl-safer-tests (Depends-on): Likewise.
38416         * tests/test-openat.c (main): Add test-open tests.
38417
38418         stat: detect FreeBSD bug
38419         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38420         symlink.
38421         * doc/posix-functions/stat.texi (stat): Document the bug.
38422         * tests/test-stat.h (test_stat_func): Add argument.
38423         * tests/test-stat.c (main): Adjust caller.
38424         * tests/test-fstatat.c (main): Likewise.
38425         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38426         Reported by Jim Meyering.
38427
38428 2009-11-09  James Youngman  <jay@gnu.org>
38429
38430         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38431         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38432
38433 2009-11-08  Jim Meyering  <meyering@redhat.com>
38434
38435         utimens: remove invalid futimesat call
38436         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38437         It used the file descriptor of the target file as the DIR_FD
38438         parameter and NULL as the file name.  That caused failure with
38439         errno == EFAULT on FreeBSD-8.0-rc2
38440
38441 2009-11-07  Eric Blake  <ebb9@byu.net>
38442
38443         fflush, freadseek: use fseeko, not fseek
38444         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38445         (clear_ungetc_buffer): Avoid potential problems on large files.
38446         * lib/freadseek.c (freadseek): Likewise.
38447         * modules/freadseek (Depends-on): Add fseeko.
38448         * modules/fseek (configure.ac): Set a witness.
38449         * tests/test-fflush.c (main): Use fseeko.
38450         * tests/test-fpurge.c (fseek): Disable link warning.
38451         * tests/test-freadable.c (fseek): Likewise.
38452         * tests/test-freading.c (fseek): Likewise.
38453         * tests/test-fseeko.c (fseek): Likewise.
38454         * tests/test-ftell.c (fseek): Likewise.
38455         * tests/test-ftello.c (fseek): Likewise.
38456         * tests/test-fwritable.c (fseek): Likewise.
38457         * tests/test-fwriting.c (fseek): Likewise.
38458
38459 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38460
38461         * modules/memchr (Depends-on): Drop getpagesize dependency.
38462
38463 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38464
38465         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38466         Reported by Ludovic Courtès.
38467         * build-aux/pmccabe2html: Improve example usage.
38468         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38469
38470 2009-11-06  Jim Meyering  <meyering@redhat.com>
38471
38472         do-release-commit-and-tag: New module.
38473         Automate the release-commit and tag process.
38474         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38475         * modules/do-release-commit-and-tag: New file.
38476         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38477
38478 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38479
38480         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38481         because test-select.c uses inet_pton.
38482
38483 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38484
38485         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38486         GETADDRINFO_LIB.  Bump serial number.
38487         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38488         Suggested by Eric Blake <ebb9@byu.net>.
38489
38490 2009-11-05  Eric Blake  <ebb9@byu.net>
38491
38492         strtod: detect darwin bug
38493         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38494         Reported by Leo Davis.
38495
38496         freopen-safer: new module
38497         * modules/freopen-safer: New module.
38498         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38499         * lib/freopen-safer.c (freopen_safer): New file.
38500         * lib/stdio-safer.h (freopen_safer): New declaration.
38501         * lib/stdio--.h (freopen): New override.
38502         * MODULES.html.sh (File stream based Input/Output): Mention it.
38503         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38504         freopen-safer module.
38505         * doc/posix-functions/stderr.texi (stderr): Likewise.
38506         * doc/posix-functions/stdin.texi (stdin): Likewise.
38507         * doc/posix-functions/stdout.texi (stdout): Likewise.
38508         * modules/freopen-safer-tests: New test.
38509         * tests/test-reopen-safer.c: New file.
38510
38511 2009-11-05  Jim Meyering  <meyering@redhat.com>
38512
38513         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38514         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38515
38516 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38517
38518         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38519
38520 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38521
38522         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38523
38524 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38525
38526         Fix link error.
38527         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38528         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38529
38530 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38531
38532         * tests/test-func.c: Also test value of __func__.
38533
38534 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38535
38536         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38537         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38538
38539 2009-11-05  Bruno Haible  <bruno@clisp.org>
38540
38541         Fix link error.
38542         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38543         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38544         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38545
38546 2009-11-05  Bruno Haible  <bruno@clisp.org>
38547
38548         Tests for module 'inet_pton'.
38549         * modules/inet_pton-tests: New file.
38550         * tests/test-inet_pton.c: New file.
38551
38552 2009-11-05  Bruno Haible  <bruno@clisp.org>
38553
38554         Tests for module 'inet_ntop'.
38555         * modules/inet_ntop-tests: New file.
38556         * tests/test-inet_ntop.c: New file.
38557
38558 2009-11-04  Eric Blake  <ebb9@byu.net>
38559
38560         stdlib-safer: wrap all mkstemp variants
38561         * modules/mkostemp (configure.ac): Set witness.
38562         * modules/mkostemps (configure.ac): Likewise.
38563         * modules/mkstemps (configure.ac): Likewise.
38564         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38565         (mkstemps_safer): Wrap more functions.
38566         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38567         wrapping.
38568         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38569         (mkstemps_safer): Implement the wrappers.
38570
38571         mkstemps, mkostemps: new modules
38572         * modules/mkostemps: New module.
38573         * modules/mkstemps: Likewise.
38574         * lib/mkostemps.c (mkostemps): New file.
38575         * lib/mkstemps.c (mkstemps): Likewise.
38576         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38577         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38579         * modules/stdlib (Makefile.am): Substitute them.
38580         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38581         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38582         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38583         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38584         * MODULES.html.sh (File system functions): Mention them.
38585
38586         tempname: resync from glibc
38587         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38588         same values for __GT_FILE as glibc.  Abort even when assertions
38589         are disabled.
38590         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38591         match its value otherwise.  Allow idempotent inclusion.
38592         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38593         * lib/mkostemp.c (mkostemp): Likewise.
38594         * lib/mkstemp.c (mkstemp): Likewise.
38595         * lib/tmpfile.c (tmpfile): Likewise.
38596         * NEWS: Document this.
38597
38598         utimens: fix use of futimens on older Linux
38599         * lib/utimens.c (fdutimens): Use updated, rather than original,
38600         timespec to avoid bug in older Linux kernel.
38601         Reported by Simon Josefsson.
38602
38603 2009-11-04  Bruno Haible  <bruno@clisp.org>
38604
38605         Make num_processors more flexible and consistent.
38606         * lib/nproc.h (enum nproc_query): New type.
38607         (num_processors): Add a 'query' argument.
38608         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38609         (num_processors): Add a 'query' argument. Test the value of the
38610         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38611         mingw, count the number of CPUs available for the current process.
38612         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38613         Check for sched_getaffinity and sched_getaffinity_np.
38614         * modules/nproc (Depends-on): Add c-ctype, extensions.
38615         * NEWS: Mention the change.
38616
38617 2009-11-03  Bruno Haible  <bruno@clisp.org>
38618
38619         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38620
38621 2009-11-03  Jim Meyering  <meyering@redhat.com>
38622
38623         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38624         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38625         if it is defined.
38626
38627 2009-11-02  Eric Blake  <ebb9@byu.net>
38628
38629         mktime, timegm: share common declaration
38630         * lib/mktime-internal.h: New file.
38631         * lib/mktime.c: Use it rather than open-coding a declaration.
38632         * lib/timegm.c: Likewise.
38633         * modules/mktime (Files): Ship it.
38634         * modules/timegm (Files): Likewise.
38635         Suggested by Bruno Haible.
38636
38637         test-update-copyright: update test to match script changes
38638         * tests/test-update-copyright.sh: Avoid hard-coding perl
38639         location.  Don't update *.bak created by earlier runs.
38640
38641 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38642             Simon Josefsson  <simon@josefsson.org>
38643             Bruno Haible  <bruno@clisp.org>
38644
38645         Fix link error on Solaris 8.
38646         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38647         also in libnsl. Define also INET_PTON_LIB.
38648         * modules/inet_pton (Link): New section.
38649
38650 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38651             Bruno Haible  <bruno@clisp.org>
38652
38653         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38654         * modules/inet_ntop (Link): New section.
38655         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38656
38657 2009-11-02  Eric Blake  <ebb9@byu.net>
38658
38659         maint: avoid compiler warnings in m4 macros
38660         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38661         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38662
38663 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38664
38665         * m4/pmccabe2html.m4: Remove file.
38666         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38667         function.  Change maintainer.
38668         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38669         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38670         Courtès).
38671
38672 2009-10-31  Eric Blake  <ebb9@byu.net>
38673
38674         fseeko: fix m4 regression
38675         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38676         regression from 2009-10-27.
38677         Reported by Ralf Wildenhues.
38678
38679 2009-10-31  Jim Meyering  <meyering@redhat.com>
38680
38681         inttostr: aesthetics and improved (compile-time) safety
38682         Define inttype_is_signed rather than inttype_is_unsigned,
38683         since the sole use is via "#if inttype_is_signed".
38684         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38685         inttype_is_unsigned.
38686         * lib/offtostr.c (inttype_is_signed): Likewise.
38687         * lib/uinttostr.c (inttype_is_signed): Likewise.
38688         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38689         * lib/inttostr.c (inttostr): Use verify to cross-check the
38690         inttype_is_signed value and the signedness of the actual type.
38691         * modules/inttostr (Depends-on): Add verify.
38692
38693 2009-10-30  Eric Blake  <ebb9@byu.net>
38694
38695         build: avoid compiler warnings
38696         * lib/fchmodat.c (lchmod): Mark unused variables.
38697         * lib/getopt.c (_getopt_initialize): Likewise.
38698         * lib/mktime.c (__mktime_internal): Provide prototype.
38699         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38700         older gcc that do not understand #pragma GCC diagnostic.
38701         * lib/uinttostr.c (inttype_is_unsigned): Define.
38702         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38703
38704 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38705
38706         stat: fix compilation on AIX
38707         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38708         only see struct stat64.
38709
38710 2009-10-30  Eric Blake  <ebb9@byu.net>
38711
38712         exclude: make more robust
38713         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38714         rather than masking a coding bug.
38715         Suggested by Bruno Haible.
38716
38717 2009-10-30  Jim Meyering  <meyering@redhat.com>
38718
38719         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38720         Rather than putting #!/usr/bin/perl on the first line,
38721         start with a variant of what's recommended by "man perlrun" that
38722         invokes the first "perl" program from your shell's search path.
38723         * build-aux/gitlog-to-changelog: Replace #!... as above.
38724         Add a "Local Variables" perl mode setting.
38725         Prompted by a patch from Ludovic Courtès.
38726         Improved by Eric Blake.
38727         * build-aux/useless-if-before-free: Likewise.
38728         * build-aux/announce-gen: Likewise.
38729         * build-aux/update-copyright: Likewise.
38730
38731 2009-10-29  Eric Blake  <ebb9@byu.net>
38732
38733         filenamecat-lgpl: adjust clients
38734         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38735         filenamecat.
38736         * modules/renameat (Depends-on): Likewise.
38737
38738         filenamecat: split into filenamecat-lgpl
38739         * modules/filenamecat-lgpl: New module.
38740         * modules/filenamecat (Files): Move library-safe files into
38741         filenamecat-lgpl.
38742         (Depends-on): Add filenamecat-lgpl.
38743         (configure.ac): Declare witness.
38744         * lib/filenamecat.h (file_name_concat): Only declare when using
38745         GPL module.
38746         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38747         Move...
38748         * lib/filenamecat-lgpl.c: ...into new file.
38749         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38750         (gl_FILE_NAME_CONCAT): Use it.
38751         * MODULES.html.sh (File system functions): Mention new module.
38752
38753         argp: avoid memory leak
38754         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38755         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38756         base_name, since the latter malloc()s and can call exit().
38757         Leak introduced 2006-07-03.
38758
38759         dirname-lgpl: adjust clients that don't need full dirname
38760         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38761         * modules/filenamecat (Depends-on): Likewise.
38762         * modules/linkat (Depends-on): Likewise.
38763         * modules/mkancesdirs (Depends-on): Likewise.
38764         * modules/mkdir (Depends-on): Likewise.
38765         * modules/openat (Depends-on): Likewise.
38766         * modules/savewd (Depends-on): Likewise.
38767         * modules/rename (Depends-on): Likewise.
38768         (License): Relax license.
38769         * modules/mkdir-tests (Depends-on): Drop progname.
38770         (Makefile.am): Delete unneeded LDADD.
38771         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38772
38773         dirname: split into dirname-lgpl
38774         * modules/dirname-lgpl: New module.
38775         * modules/dirname (Files): Move library-safe files into
38776         dirname-lgpl.
38777         (Depends-on): Add dirname-lgpl.
38778         (configure.ac): Declare witness.
38779         * modules/double-slash-root (License): Relax license.
38780         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38781         module.
38782         * lib/dirname.c (dir_len, mdir_name): Move...
38783         * lib/dirname-lgpl.c: ...into new file.
38784         * lib/basename.c (last_component, base_len): Move...
38785         * lib/basename-lgpl.c: ...into new file.
38786         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38787         (gl_DIRNAME): Use it.
38788         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38789         Mention new module.
38790         * modules/dirname-tests (Depends-on): Add progname.
38791         * tests/test-dirname.c (program_name): Delete.
38792
38793         mkdir: make safe for libraries
38794         * modules/mkdir (Depends-on): Drop xalloc.
38795         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38796         exit.
38797
38798         tests: avoid some compiler warnings
38799         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38800         literals.
38801         * tests/test-memchr.c (main): Avoid type mismatch.
38802         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38803         * tests/test-base64.c (main): Likewise.
38804         * tests/test-getdelim.c (main): Likewise.
38805         * tests/test-gethostname.c (main): Likewise.
38806         * tests/test-getline.c (main): Likewise.
38807         * tests/test-netinet_in.c (main): Likewise.
38808         * tests/test-select.c (open_server_socket, main): Likewise.
38809         * tests/test-select-stdin.c (main): Likewise.
38810         * tests/test-sockets.c (main): Likewise.
38811         * tests/test-strsignal.c (main): Likewise.
38812         * tests/test-sys_select.c (main): Likewise.
38813         * tests/test-sys_socket.c (main): Likewise.
38814         * tests/test-u64.c (main): Likewise.
38815         * tests/test-xfprintf-posix.c (main): Likewise.
38816         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38817
38818         sockets: avoid compiler warning
38819         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38820
38821         maint: detect usage(1) and other suspicious exits
38822         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38823
38824 2009-10-29  Jim Meyering  <meyering@redhat.com>
38825
38826         timespec: long-to-int truncation could make timespec_cmp malfunction
38827         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38828         a multiple of 2^32 nanoseconds as no difference.
38829
38830 2009-10-28  Jim Meyering  <meyering@redhat.com>
38831
38832         fprintftime: wrap macro code argument in "do {...} while(0)"
38833         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38834         cpy macro must be a statement that can be followed by a semicolon.
38835         Now that the else clause contains a comment and is hence longer
38836         than one line, I require curly braces.  That in turn requires
38837         that we wrap this code block in the standard do...while(0).
38838
38839         fprintftime: remove stray semicolon from previous change
38840         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38841
38842         fprintftime: avoid a warning about ignored fwrite return value
38843         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38844         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38845         that is unsafe.
38846         * modules/fprintftime (Depends-on): Add ignore-value.
38847
38848         exclude: avoid an unwarranted warning
38849         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38850
38851 2009-10-27  Eric Blake  <ebb9@byu.net>
38852
38853         fseek: avoid compilation failure when fflush is replaced
38854         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38855         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38856         module is in use.
38857         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38858         module is not in use; since REPLACE_FSEEK worked otherwise.
38859         (GNULIB_FTELLO): Likewise for ftell.
38860         Reported by Ian Beckwith and others.
38861
38862 2009-10-27  Bruno Haible  <bruno@clisp.org>
38863
38864         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38865         Reported by Jim Meyering.
38866
38867 2009-10-27  Jim Meyering  <jim@meyering.net>
38868             Bruno Haible  <bruno@clisp.org>
38869
38870         Avoid warning despite dropping the return value of fwrite.
38871         * lib/unicodeio.c: Include ignore-value.h.
38872         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38873         * modules/unicodeio (Depends-on): Add ignore-value.
38874
38875 2009-10-26  Eric Blake  <ebb9@byu.net>
38876
38877         areadlinkat: fix fallback path
38878         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38879         pointer and zero.
38880
38881 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38882
38883         Use a better IO block size for modern systems
38884         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38885         * lib/md2.c: Likewise.
38886         * lib/md4.c: Likewise.
38887         * lib/md5.c: Likewise.
38888         * lib/sha1.c: Likewise.
38889         * lib/sha256.c: Likewise.
38890         * lib/sha512.c: Likewise.
38891
38892 2009-10-22  Eric Blake  <ebb9@byu.net>
38893
38894         tests: avoid several compiler warnings
38895         * tests/test-getcwd.c (main): Avoid buffer underflow.
38896         * tests/test-getdate.c (main): String literals are not safe with
38897         putenv, so use setenv.  Declare unused argument.
38898         * modules/getdate-tests (Depends-on): Add setenv.
38899         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38900         problems with string literals in char *.
38901         * tests/test-hash.c (main): Avoid shadowing declaration.
38902         (insert_new): Treat string literals as char const *.
38903         * tests/test-getopt.h (test_getopt): Likewise.
38904         (getopt_loop): Alter types to minimize casting elsewhere.
38905         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38906         (test_getopt_long_posix): Likewise.
38907         (do_getopt_long): Add wrapper to minimize casting.
38908         * tests/test-atexit.c (clear_temp_file): Use void.
38909         * tests/test-areadlink-with-size.c (main): Declare unused
38910         arguments.
38911         * tests/test-areadlink.c (main): Likewise.
38912         * tests/test-areadlinkat-with-size.c (main): Likewise.
38913         * tests/test-areadlinkat.c (main): Likewise.
38914         * tests/test-canonicalize-lgpl.c (main): Likewise.
38915         * tests/test-canonicalize.c (main): Likewise.
38916         * tests/test-dirent-safer.c (main): Likewise.
38917         * tests/test-dirname.c (main): Likewise.
38918         * tests/test-dup2.c (main): Likewise.
38919         * tests/test-fchdir.c (main): Likewise.
38920         * tests/test-fcntl-h.c (main): Likewise.
38921         * tests/test-fcntl-safer.c (main): Likewise.
38922         * tests/test-fdopendir.c (main): Likewise.
38923         * tests/test-fdutimensat.c (main): Likewise.
38924         * tests/test-fflush.c (main): Likewise.
38925         * tests/test-filenamecat.c (main): Likewise.
38926         * tests/test-filevercmp.c (main): Likewise.
38927         * tests/test-fopen-safer.c (main): Likewise.
38928         * tests/test-fopen.c (main): Likewise.
38929         * tests/test-fpending.c (main): Likewise.
38930         * tests/test-fpurge.c (main): Likewise.
38931         * tests/test-freading.c (main): Likewise.
38932         * tests/test-fstatat.c (main): Likewise.
38933         * tests/test-fsync.c (main): Likewise.
38934         * tests/test-futimens.c (main): Likewise.
38935         * tests/test-getndelim2.c (main): Likewise.
38936         * tests/test-gettimeofday.c (main): Likewise.
38937         * tests/test-getopt.c (main): Likewise.
38938         * tests/test-i-ring.c (main): Likewise.
38939         * tests/test-inttypes.c (main): Likewise.
38940         * tests/test-link.c (main): Likewise.
38941         * tests/test-lstat.c (main): Likewise.
38942         * tests/test-math.c (main): Likewise.
38943         * tests/test-md5.c (main): Likewise.
38944         * tests/test-memchr2.c (main): Likewise.
38945         * tests/test-memrchr.c (main): Likewise.
38946         * tests/test-mkdir.c (main): Likewise.
38947         * tests/test-mkdirat.c (main): Likewise.
38948         * tests/test-mkfifoat.c (main): Likewise.
38949         * tests/test-open.c (main): Likewise.
38950         * tests/test-openat-safer.c (main): Likewise.
38951         * tests/test-openat.c (main): Likewise.
38952         * tests/test-quotearg.c (main): Likewise.
38953         * tests/test-rawmemchr.c (main): Likewise.
38954         * tests/test-readlink.c (main): Likewise.
38955         * tests/test-remove.c (main): Likewise.
38956         * tests/test-rename.c (main): Likewise.
38957         * tests/test-renameat.c (main): Likewise.
38958         * tests/test-rmdir.c (main): Likewise.
38959         * tests/test-sha1.c (main): Likewise.
38960         * tests/test-signal.c (main): Likewise.
38961         * tests/test-sigaction.c (main): Likewise.
38962         * tests/test-stat.c (main): Likewise.
38963         * tests/test-stat-time.c (main): Likewise.
38964         * tests/test-stddef.c (main): Likewise.
38965         * tests/test-stdint.c (main): Likewise.
38966         * tests/test-stdio.c (main): Likewise.
38967         * tests/test-stdlib.c (main): Likewise.
38968         * tests/test-strchrnul.c (main): Likewise.
38969         * tests/test-strerror.c (main): Likewise.
38970         * tests/test-string.c (main): Likewise.
38971         * tests/test-strtod.c (main): Likewise.
38972         * tests/test-strverscmp.c (main): Likewise.
38973         * tests/test-symlink.c (main): Likewise.
38974         * tests/test-symlinkat.c (main): Likewise.
38975         * tests/test-sys_stat.c (main): Likewise.
38976         * tests/test-sys_time.c (main): Likewise.
38977         * tests/test-time.c (main): Likewise.
38978         * tests/test-unistd.c (main): Likewise.
38979         * tests/test-unlink.c (main): Likewise.
38980         * tests/test-unlinkat.c (main): Likewise.
38981         * tests/test-utimens.c (main): Likewise.
38982         * tests/test-utimensat.c (main): Likewise.
38983         * tests/test-version-etc.c (main): Likewise.
38984         * tests/test-wchar.c (main): Likewise.
38985         * tests/test-wctype.c (main): Likewise.
38986         * tests/test-xprintf-posix.c (main): Likewise.
38987         * tests/test-posixtm.c (main): Likewise.
38988         (STREQ): Delete unused macro.
38989         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38990         shadowed variables.
38991         * tests/test-memchr.c (main): Likewise.
38992
38993 2009-10-21  Eric Blake  <ebb9@byu.net>
38994
38995         areadlinkat: avoid failure on older glibc
38996         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38997         rather than mis-comparing 0 against FUNC_RESULT of char*.
38998
38999 2009-10-21  Bruno Haible  <bruno@clisp.org>
39000
39001         * modules/stpncpy (License): Relicense under LGPLv2+.
39002         Reported by David Lutterkort <lutter@redhat.com>.
39003
39004 2009-10-20  Eric Blake  <ebb9@byu.net>
39005
39006         utimensat: work around Solaris 9 bug
39007         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39008         has trailing slash bugs.
39009         * tests/test-lutimens.h (test_lutimens): Enhance test.
39010         * tests/test-utimens.h (test_utimens): Likewise.
39011         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39012         * doc/posix-functions/utimes.texi (utimes): Likewise.
39013         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39014         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39015         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39016         * doc/posix-functions/futimens.texi (futimens): Likewise.
39017
39018         fdutimensat: new module
39019         * modules/fdutimensat: New file.
39020         * lib/fdutimensat.c (fdutimensat): Likewise.
39021         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39022         * MODULES.html.sh (File system functions): Mention module.
39023         * modules/fdutimensat-tests: New test.
39024         * tests/test-fdutimensat.c: Likewise.
39025
39026         doc: regenerate INSTALL
39027         * doc/INSTALL: Reflect recent autoconf update.
39028         * doc/INSTALL.ISO: Likewise.
39029         * doc/INSTALL.UTF-8: Likewise.
39030
39031 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39032
39033         acl: warn if ACL support is not detected
39034         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39035
39036 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39037
39038         * lib/nproc.h: Add extern "C" block for C++.
39039
39040 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39041             Bruno Haible  <bruno@clisp.org>
39042
39043         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39044         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39045         * doc/posix-functions/isalpha.texi: Likewise.
39046         * doc/posix-functions/isblank.texi: Likewise.
39047         * doc/posix-functions/iscntrl.texi: Likewise.
39048         * doc/posix-functions/isdigit.texi: Likewise.
39049         * doc/posix-functions/isgraph.texi: Likewise.
39050         * doc/posix-functions/islower.texi: Likewise.
39051         * doc/posix-functions/isprint.texi: Likewise.
39052         * doc/posix-functions/ispunct.texi: Likewise.
39053         * doc/posix-functions/isspace.texi: Likewise.
39054         * doc/posix-functions/isupper.texi: Likewise.
39055         * doc/posix-functions/isxdigit.texi: Likewise.
39056
39057 2009-10-18  Bruno Haible  <bruno@clisp.org>
39058
39059         Tests for module 'isblank'.
39060         * modules/isblank-tests: New file.
39061         * tests/test-isblank.c: New file.
39062
39063         New module 'isblank'.
39064         * lib/isblank.c: New file.
39065         * m4/isblank.m4: New file.
39066         * modules/isblank: New file.
39067         * doc/posix-functions/isblank.texi: Mention the new module.
39068
39069 2009-10-18  Bruno Haible  <bruno@clisp.org>
39070
39071         New module 'ctype'.
39072         * lib/ctype.in.h: New file.
39073         * m4/ctype.m4: New file.
39074         * modules/ctype: New file.
39075         * doc/posix-headers/ctype.texi: Mention the new module.
39076
39077 2009-10-18  Jim Meyering  <meyering@redhat.com>
39078
39079         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39080         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39081         right after its initialization, rather than farther down.
39082         Keeping these in close proximity makes it easier to ensure
39083         that each such variable is initialized.  E.g.,
39084
39085             LIB_CLOCK_GETTIME=
39086             AC_SUBST([LIB_CLOCK_GETTIME])
39087
39088         This change also increments these serial numbers.
39089         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39090         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39091         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39092
39093 2009-10-18  Bruno Haible  <bruno@clisp.org>
39094
39095         Don't let environment variables perturb build.
39096         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39097         (gl_PREREQ_GETHRXTIME): ... not here.
39098
39099 2009-10-18  Bruno Haible  <bruno@clisp.org>
39100
39101         Avoid symlink attack in localcharset module.
39102         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39103         (O_NOFOLLOW): Define fallback.
39104         (get_charset_aliases): Don't open the file if it is a symbolic link.
39105         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39106         gl_FCNTL_H.
39107         (gl_FCNTL_H): Require it.
39108         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39109         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39110         Reported by Fergal Glynn <fglynn@veracode.com>.
39111
39112 2009-10-18  Bruno Haible  <bruno@clisp.org>
39113
39114         Implement nproc for mingw.
39115         * lib/nproc.c: Include <windows.h>
39116         (num_processors): On native Windows platforms, try GetSystemInfo.
39117
39118 2009-10-18  Bruno Haible  <bruno@clisp.org>
39119
39120         Implement nproc for IRIX.
39121         * lib/nproc.c: Include <sys/sysmp.h>.
39122         (num_processors): On IRIX systems, try sysmp.
39123         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39124
39125 2009-10-18  Bruno Haible  <bruno@clisp.org>
39126
39127         Implement nproc for HP-UX.
39128         * lib/nproc.c: Include <sys/pstat.h>
39129         (num_processors): On HP-UX systems, try pstat_getdynamic.
39130         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39131         pstat_getdynamic.
39132
39133 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39134             Bruno Haible  <bruno@clisp.org>
39135
39136         Implement nproc for NetBSD, OpenBSD.
39137         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39138         (ARRAY_SIZE): New macro.
39139         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39140         * m4/nproc.m4: New file.
39141         * modules/nproc (Files): Add m4/nproc.m4.
39142         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39143         (Makefile.am): Instead, augment lib_SOURCES.
39144
39145 2009-10-18  Bruno Haible  <bruno@clisp.org>
39146
39147         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39148         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39149         sys/param.h.
39150
39151 2009-10-16  Eric Blake  <ebb9@byu.net>
39152
39153         utimensat: new module
39154         * modules/utimensat: New file.
39155         * lib/utimensat.c (utimensat): Likewise.
39156         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39157         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39158         so we can work around Linux bugs.
39159         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39160         * modules/sys_stat (Makefile.am): Substitute them.
39161         * lib/sys_stat.in.h (utimensat): Declare it.
39162         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39163         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39164         * modules/utimensat-tests: New test.
39165         * tests/test-utimensat.c: Likewise.
39166
39167         utimens: let lutimens work on non-symlinks
39168         * lib/utimens.c (lutimens): Fall back to utimens rather than
39169         failing with ENOSYS, when file is not a symlink.
39170         (utimens): Reduce redirection.
39171         * tests/test-lutimens.h (test_lutimens): Update test to cover
39172         non-symlinks.
39173         * tests/test-utimens.h (test_utimens): Update test to cover
39174         symlinks.
39175         * tests/test-utimens.c (main): Update caller.
39176
39177         utimens: cache whether utimensat syscall works
39178         * lib/utimens.c (utimensat_works_really): New cache variable.
39179         (fdutimens, lutimens): Use it to avoid failing syscall.
39180
39181         test-stat-time, test-utimens: improve portability
39182         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39183         ext4 on alpha, and for cygwin.
39184         * tests/test-utimens-common.h: New file.
39185         (nap): Factor delays into single function.
39186         * tests/test-lutimens.h (test_lutimens): Use new header.
39187         * tests/test-futimens.h (test_futimens): Likewise.
39188         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39189         timestamps to occur from same machine, as was done previously for
39190         test_utimens.
39191         * modules/utimens-tests (Files): Ship new file.
39192         * modules/futimens-tests (Files): Likewise.
39193         Reported in part by Jim Meyering.
39194
39195         sys_stat: sort replacement declarations
39196         * lib/sys_stat.in.h: Sort declarations.
39197         * lib/futimens.c (futimens): Fix typo.
39198
39199 2009-10-15  Jim Meyering  <meyering@redhat.com>
39200
39201         don't let environment settings perturb build
39202         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39203         could cause a configure-time and/or build-time malfunction.
39204         Typically, a configure-time function-in-library test is performed
39205         via code like this:
39206
39207           LIB_VAR=
39208           AC_SUBST([LIB_VAR])
39209           prefix_saved_LIBS=$LIBS
39210             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39211                        [test "$ac_cv_search_FUNC" = "none required" ||
39212                         LIB_VAR=$ac_cv_search_FUNC])
39213           LIBS=$prefix_saved_LIBS
39214
39215         However, in each of the files affected by this change, the LIB_VAR=
39216         initialization was omitted.  Thus, when set in the environment, its
39217         value would propagate into generated Makefiles when FUNC is not found
39218         in LIB_NAME.
39219         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39220         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39221         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39222
39223 2009-10-14  Eric Blake  <ebb9@byu.net>
39224
39225         fchdir: avoid infinite recursion in mingw
39226         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39227         recursing.
39228
39229         test-stat-time: port to mingw
39230         * tests/test-stat-time.c (force_unlink): Return a value.
39231         (test_ctime) [W32]: Fix compilation error.
39232         (nap): Don't call usleep with too large an argument.  Use
39233         force_unlink.
39234         * doc/pastposix-functions/usleep.texi (usleep): Document the
39235         portability issue.
39236
39237 2009-10-13  Jim Meyering  <meyering@redhat.com>
39238
39239         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39240         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39241         * modules/pipe-filter-ii: Likewise.
39242         * modules/sys_socket-tests: Likewise.
39243         * modules/tsearch-tests: Likewise.
39244         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39245         (check): Depend on it.
39246
39247 2009-10-12  Eric Blake  <ebb9@byu.net>
39248
39249         utimens-tests: port to NFS file systems
39250         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39251         comparisons to avoid spurious failures from timestamp drift
39252         between NFS machines.
39253
39254 2009-10-12  Eric Blake  <ebb9@byu.net>
39255
39256         stat-time-tests: minor cleanups
39257         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39258         * tests/test-stat-time.c (nap): Separate assignment from call.
39259         Suggested by Paolo Bonzini and Bruno Haible.
39260
39261         sys_stat: guarantee struct timespec
39262         * lib/sys_stat.in.h (includes): Always include <time.h>
39263         * modules/sys_stat (Depends-on): Add time.
39264         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39265         mode_t permission values.
39266         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39267         get at subsecond timestamps.
39268
39269 2009-10-10  Eric Blake  <ebb9@byu.net>
39270
39271         futimens: new module
39272         * modules/futimens: New file.
39273         * lib/futimens.c (futimens): Likewise.
39274         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39275         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39276         we can work around Linux bugs.
39277         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39278         * modules/sys_stat (Makefile.am): Substitute them.
39279         * lib/sys_stat.in.h (futimens): Declare it.
39280         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39281         * doc/posix-functions/futimens.texi (futimens): Likewise.
39282         * modules/futimens-tests: New test.
39283         * tests/test-futimens.c: Likewise.
39284
39285         utimens: introduce fdutimens
39286         * lib/utimens.h (fdutimens): New prototype.
39287         * lib/utimens.c (gl_futimens): Move guts...
39288         (fdutimens): ...to new interface.
39289         * tests/test-utimens.c (do_fdutimens): Use it.
39290
39291         utimens: add UTIME_NOW and UTIME_OMIT support
39292         * lib/utimens.c (validate_timespec, update_timespec): New helper
39293         functions.
39294         (gl_futimens, lutimens): Use them.
39295         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39296         stdbool, sys_stat.
39297         (Link): Mention resulting library dependency.
39298         * modules/utimecmp (Link): Likewise.
39299         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39300         (Makefile.am): Pick up library dependency.
39301         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39302         definition.
39303         * tests/test-sys_stat.c: Test the definitions.
39304         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39305         * NEWS: Document library dependency.
39306
39307         utimecmp: support symlink timestamps
39308         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39309         hashing when possible.  Use pathconf when available.
39310         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39311         * modules/utimecmp (Depends-on): Add lstat.
39312
39313         utimens: add lutimens interface
39314         * lib/utimens.c (lutimens): New function.
39315         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39316         * lib/utimens.h (lutimens): Declare new interface.
39317         * tests/test-utimens.c (main): Enhance test.
39318         * tests/test-lutimens.h (test_lutimens): New file.
39319         * modules/utimens-tests (Files): Distribute it.
39320         (Depends-on): Add symlink.
39321         (configure.ac): Check for usleep.
39322
39323         utimens: validate futimens usage
39324         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39325         fewer syscalls on failure later on.  Avoid compiler warning on
39326         mingw.
39327         * modules/utimens (Depends-on): Add dup2.
39328
39329         utimens: add test
39330         * modules/utimens-tests: New test.
39331         * tests/test-utimens.h: New file.
39332         * tests/test-futimens.h: Likewise.
39333         * tests/test-utimens.c: Likewise.
39334
39335         doc: mention timestamp portability issues
39336         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39337         instead.
39338         * doc/posix-functions/utime.texi (utime): Likewise.
39339         * doc/posix-functions/utimes.texi (utimes): Likewise.
39340         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39341         instead.
39342         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39343         module.
39344         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39345         Mention weakness with symlink timestamps.
39346         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39347         to utimensat/futimens instead.
39348         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39349
39350         test-dup2: enhance test
39351         * tests/test-dup2.c (main): Also check AT_FDCWD.
39352
39353         test-stat-time: avoid more spurious failures
39354         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39355         xfs; and avoid race if the two timestamps cross quantization edge.
39356
39357         relocatable: prefer 'file system' over 'filesystem'
39358         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39359         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39360         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39361         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39362         * lib/relocatable.c (compute_curr_prefix): Likewise.
39363
39364 2009-10-10  Jim Meyering  <meyering@redhat.com>
39365
39366         stat-time-tests: check for the usleep function
39367         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39368
39369 2009-10-10  Bruno Haible  <bruno@clisp.org>
39370
39371         * modules/xnanosleep: Put the Link section after the Include section.
39372
39373 2009-10-09  Eric Blake  <ebb9@byu.net>
39374
39375         dup2: work around FreeBSD 6.1 bug
39376         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39377         * doc/posix-functions/dup2.texi (dup2): Document it.
39378         Reported by Nelson H. F. Beebe and Jim Meyering.
39379
39380         test-stat-time: port to buggy NFS clients
39381         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39382         (test_ctime): Also skip test if mtime and ctime are skewed.
39383
39384         maint: prefer 'file system' over 'filesystem'
39385         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39386         * doc/posix-functions/lstat.texi (lstat): Likewise.
39387         * lib/file-has-acl.c (file_has_acl): Likewise.
39388         * lib/fwriteerror.c [TEST]: Likewise.
39389         * tests/test-areadlink.h (test_areadlink): Likewise.
39390         * tests/test-areadlinkat-with-size.c (main): Likewise.
39391         * tests/test-areadlinkat.c (main): Likewise.
39392         * tests/test-canonicalize-lgpl.c (main): Likewise.
39393         * tests/test-canonicalize.c (main): Likewise.
39394         * tests/test-fstatat.c (main): Likewise.
39395         * tests/test-linkat.c (main): Likewise.
39396         * tests/test-lstat.h (test_lstat_func): Likewise.
39397         * tests/test-mkdir.h (test_mkdir): Likewise.
39398         * tests/test-readlink.h (test_readlink): Likewise.
39399         * tests/test-remove.c (main): Likewise.
39400         * tests/test-rename.h (test_rename): Likewise.
39401         * tests/test-renameat.c (main): Likewise.
39402         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39403         * tests/test-symlink.h (test_symlink): Likewise.
39404         * tests/test-symlinkat.c (main): Likewise.
39405         * tests/test-unlink.h (test_unlink_func): Likewise.
39406         * tests/test-unlinkat.c (main): Likewise.
39407
39408         maint: make realtime library usage explicit
39409         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39410         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39411         * modules/settime (Link): Likewise.
39412         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39413
39414         test-stat-time: speed up execution
39415         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39416         warning on mingw.
39417         (nap): New helper function.
39418         (prepare_test): Use it to reduce sleep time.
39419         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39420         execution.
39421         * modules/stat-time-tests (configure.ac): Check for usleep.
39422
39423 2009-10-09  Jim Meyering  <meyering@redhat.com>
39424
39425         selinux-h: always use getfilecon wrappers
39426         * lib/getfilecon.c: New file.
39427         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39428         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39429         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39430         (fgetfilecon): Provide a stub.
39431         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39432         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39433         file unconditionally.
39434         When <selinux/selinux.h> is found, arrange to use wrappers.
39435         * modules/selinux-h (Files): Add getfilecon.c.
39436         (Makefile.am): Substitute include-next-related bits
39437         into the now-always-generated selinux/selinux.h file.
39438         * doc/glibc-functions/lgetfilecon.texi: New file.
39439         * doc/glibc-functions/fgetfilecon.texi: New file.
39440         * doc/glibc-functions/getfilecon.texi: New file.
39441         * doc/glibc-functions/getfilecon-desc.texi: New file.
39442         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39443         which to pull in the new files.
39444         * MODULES.html.sh (Misc): Add selinux-h.
39445
39446 2009-10-08  Jim Meyering  <meyering@redhat.com>
39447
39448         unistd: fix comment typo
39449         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39450
39451 2009-10-08  Eric Blake  <ebb9@byu.net>
39452
39453         areadlink: use SIZE_MAX consistently
39454         * modules/areadlink (Depends-on): Add stdint.
39455         * modules/areadlink-with-size (Depends-on): Likewise.
39456         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39457         gives NULL; drop sys/types, since unistd gives size_t; and add
39458         stdint for SIZE_MAX.
39459         (SIZE_MAX): Rely on headers.
39460         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39461         and add stdint.
39462         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39463         (SIZE_MAX): Likewise.
39464         (INITIAL_BUF_SIZE): Turn into enum.
39465         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39466
39467 2009-10-08  Jim Meyering  <meyering@redhat.com>
39468
39469         areadlinkat: avoid compilation failure
39470         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39471         Fix typo in comment.
39472
39473 2009-10-07  Eric Blake  <ebb9@byu.net>
39474
39475         areadlinkat-with-size: new module
39476         * modules/areadlinkat-with-size: New module.
39477         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39478         * lib/areadlink.h (areadlinkat): Declare it.
39479         * MODULES.html.sh (File system functions): Mention it.
39480         * modules/areadlinkat-with-size-tests: New test.
39481         * tests/test-areadlinkat-with-size.c: New file.
39482
39483         xreadlinkat: new module
39484         * modules/xreadlinkat: New module.
39485         * lib/xreadlinkat.c (xreadlinkat): New file.
39486         * lib/xreadlink.h (xreadlinkat): Declare it.
39487         * MODULES.html.sh (File system functions): Mention it.
39488
39489         areadlinkat: new module
39490         * lib/at-func.c (FUNC_FAIL): New define.
39491         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39492         * modules/areadlinkat: New module.
39493         * lib/linkat.c (areadlinkat): Move...
39494         * lib/areadlinkat.c (areadlinkat): ...to new file.
39495         * lib/areadlink.h (areadlinkat): Declare it.
39496         * modules/linkat (Depends-on): Add areadlinkat.
39497         * MODULES.html.sh (File system functions): Mention it.
39498         * modules/areadlinkat-tests: New test.
39499         * tests/test-areadlinkat.c: New file.
39500
39501         areadlink, areadlink-with-size: add tests
39502         * modules/areadlink-tests: New test.
39503         * modules/areadlink-with-size-tests: Likewise.
39504         * tests/test-areadlink.h: New file.
39505         * tests/test-areadlink.c: Likewise.
39506         * tests/test-areadlink-with-size.c: Likewise.
39507
39508         maint: minor cleanups
39509         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39510         _UNUSED_PARAMETER_ instead.
39511         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39512         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39513         * modules/linkat-tests (Files): Distribute test-link.h.
39514
39515         openat, utimens: whitespace cleanup
39516         * lib/openat.c: Prefer space throughout, rather than mix of 8
39517         spaces vs. tabs.
39518         * lib/at-func.c: Likewise.
39519         * lib/utimens.c: Likewise.
39520
39521         openat: avoid using wrong fd
39522         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39523         working directory chooses same fd.
39524         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39525
39526         mkdir, mkdirat: fix cygwin 1.5.x bug
39527         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39528         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39529         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39530         bug.
39531         (gl_PREREQ_MKDIR): Delete unused macro.
39532         * modules/mkdir (Files): Track file rename.
39533         (configure.ac): Update macro name.
39534         * modules/openat (Depends-on): Add mkdir.
39535         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39536
39537         mkdir, mkdirat: add tests
39538         * modules/mkdir-tests: New test.
39539         * tests/test-mkdir.h: New file.
39540         * tests/test-mkdir.c: Likewise.
39541         * tests/test-mkdirat.c: Likewise.
39542         * modules/openat-tests (Files): Add new files.
39543         (Makefile.am): Run new test.
39544
39545 2009-10-06  Eric Blake  <ebb9@byu.net>
39546
39547         doc: tweak *at function documentation
39548         * doc/posix-functions/faccessat.texi (faccessat): Mention
39549         known issue with replacement.
39550         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39551         * doc/posix-functions/linkat.texi (linkat): Likewise.
39552         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39553         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39554         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39555         * doc/posix-functions/renameat.texi (renameat): Likewise.
39556         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39557
39558         openat: fix GNU/Hurd bug in unlinkat
39559         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39560         broken.
39561         * doc/posix-functions/unlink.texi (unlink): Document this.
39562         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39563
39564         fdopendir: fix GNU/Hurd bug
39565         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39566         allowing non-directory fds.
39567         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39568         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39569         * modules/dirent (Makefile.am): Substitute it.
39570         * lib/dirent.in.h (fdopendir): Declare replacement.
39571         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39572         * tests/test-fdopendir.c (main): Test something other than
39573         /dev/null, since on Hurd that behaves like a directory.
39574
39575         test-symlink: port to GNU/Hurd
39576         * tests/test-symlink.h (test_symlink): Relax expected errno.
39577
39578         doc: tweak more cygwin information
39579         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39580         now compatible with glibc.
39581         * doc/posix-functions/getopt.texi (getopt): Likewise.
39582
39583         getopt-gnu: add another test
39584         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39585         guarantee behavior relied on by m4.
39586         * tests/test-getopt.c (main): Use it.
39587         * modules/getopt-posix-tests (Depends-on): Add setenv.
39588         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39589
39590         getopt: fix compilation on darwin
39591         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39592         include.
39593         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39594         Reported by Ludovic Courtès.
39595
39596 2009-10-06  Bruno Haible  <bruno@clisp.org>
39597
39598         * modules/size_max (Description): Discourage its use.
39599         Reported by Simon Josefsson.
39600
39601 2009-10-06  Jim Meyering  <meyering@redhat.com>
39602
39603         linkat: avoid compilation failure
39604         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39605
39606 2009-10-05  Eric Blake  <ebb9@byu.net>
39607
39608         linkat: support Linux 2.6.17
39609         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39610         linkat on Linux, but allow cache variable override.
39611         * lib/linkat.c (rpl_linkat): Define override.
39612         * modules/linkat (Depends-on): Add symlinkat.
39613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39614         * modules/unistd (Makefile.am): Substitute it.
39615         * lib/unistd.in.h (linkat): Declare replacement.
39616         Reported by Pádraig Brady.
39617
39618         quotearg: port test to systems with C.UTF-8 locale
39619         * tests/test-quotearg.c (struct result_strings): Add another
39620         member, differentiating between C.ASCII and C.UTF-8 handling.
39621         (compare_strings): Add parameter.
39622         (main): Adjust all callers.
39623
39624         getopt: avoid clash with FreeBSD _getopt_internal
39625         * lib/getopt.in.h (_getopt_internal): Override the name.
39626         * lib/getopt_int.h (includes): Pick up any overrides.
39627         Reported by Reuben Thomas.
39628
39629         hash: allow C89 compilation
39630         * lib/hash.c (check_tuning): Move declaration before statement.
39631         Reported by Reuben Thomas.
39632
39633 2009-10-05  Karl Berry  <karl@gnu.org>
39634
39635         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39636
39637 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39638             Bruno Haible  <bruno@clisp.org>
39639
39640         * lib/uname.c (uname): Use a table-driven algorithm to compute
39641         Windows NT versions.
39642
39643 2009-10-04  Bruno Haible  <bruno@clisp.org>
39644
39645         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39646         program_invocation_short_name.
39647         * modules/progname (configure.ac): Test for presence of
39648         program_invocation_short_name.
39649         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39650
39651 2009-10-04  Bruno Haible  <bruno@clisp.org>
39652
39653         * lib/progname.c (set_program_name): Fix comment.
39654         Reported by Jim Meyering.
39655
39656 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39657             Bruno Haible  <bruno@clisp.org>
39658
39659         * lib/uname.c: Include <string.h>.
39660         (uname): Do only one call to GetVersionEx in the common case.
39661
39662 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39663             Bruno Haible  <bruno@clisp.org>
39664
39665         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39666         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39667         (uname): Add support for Windows CE and various non-x86 CPU types.
39668
39669 2009-10-03  Bruno Haible  <bruno@clisp.org>
39670
39671         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39672         invocation to tests/configure.ac.
39673         Reported by Ian Beckwith <ianb@erislabs.net>.
39674
39675 2009-10-02  Eric Blake  <ebb9@byu.net>
39676
39677         fchdir: avoid compiler warning
39678         * lib/fchdir.c (canonicalize_file_name)
39679         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39680
39681         test-open: support mingw errno values
39682         * tests/test-open.h (test_open): Relax test.
39683         * tests/test-fopen.h (test_fopen): Likewise.
39684         * tests/test-openat-safer.c (main): Likewise.
39685
39686         open: fix opening directory on mingw
39687         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39688
39689         test-open: on GNU/Hurd, /dev/null is a directory
39690         * tests/test-fopen.h (main): Rename...
39691         (test_fopen): ...to this.  Use a guaranteed non-directory when
39692         confirming open behavior on trailing slash.
39693         * tests/test-openat-safer.c (main): Likewise.
39694         * tests/test-open.h (main): Likewise....
39695         (test_open): ...to this.
39696         * tests/test-fopen.c (main): Adjust caller.
39697         * tests/test-fopen-safer.c (main): Likewise.
39698         * tests/test-open.c (main): Likewise.
39699         * tests/test-fcntl-safer.c (main): Likewise.
39700         Reported by Samuel Thibault.
39701
39702         rename, fchdir: don't ignore chdir failure
39703         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39704         * lib/rename.c (rpl_rename) [W32]: Likewise.
39705         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39706         an empty destination directory if source cannot be renamed,
39707         although there is still possibility for failure.
39708         * doc/posix-functions/rename.texi (rename): Document the race.
39709         Reported by Jim Meyering.
39710
39711         maint: cleanup whitespace in recent commits
39712         * lib/rename.c (rpl_rename): Remove tabs.
39713         * tests/test-link.h (test_link): Likewise.
39714         * lib/fchdir.c (get_name): Likewise.
39715         Reported by Jim Meyering.
39716
39717 2009-10-02  Ben Pfaff  <blp@gnu.org>
39718
39719         relocatable-prog-wrapper: Add missing dependency on
39720         double-slash-root.
39721         * modules/relocatable-prog-wrapper: Add dependency.
39722         Reported by Ian Beckwith <ianb@erislabs.net>.
39723
39724 2009-10-02  Eric Blake  <ebb9@byu.net>
39725
39726         renameat: fix Solaris bugs
39727         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39728         needed fixing.
39729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39730         * modules/stdio (Makefile.am): Substitute it.
39731         * lib/stdio.in.h (renameat): Declare replacement.
39732         * lib/renameat.c (rpl_renameat): Implement fix.
39733
39734         renameat: new module
39735         * modules/renameat: New file.
39736         * lib/renameat.c (renameat): Likewise.
39737         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39739         * modules/stdio (Makefile.am): Substitute them.
39740         * lib/stdio.in.h (renameat): Declare it.
39741         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39742         * doc/posix-functions/renameat.texi (renameat): Likewise.
39743         * modules/renameat-tests: New test.
39744         * tests/test-renameat.c: Likewise.
39745
39746         rename: fix mingw bugs
39747         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39748         directory overwrite bugs.
39749
39750         rename: fix another cygwin 1.5 bug
39751         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39752         checks.
39753         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39754         unnecessary cygwin workarounds.  Also work around bug with moving
39755         full directory onto an empty one.
39756         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39757
39758         rename-dest-slash: merge into rename module
39759         * modules/rename-dest-slash (Status): Mark obsolete.
39760         (Depends-on): Add rename.
39761         (Files): Let rename do it all.
39762         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39763         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39764         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39765         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39766         * lib/rename.c (rpl_rename): Update comments.
39767
39768         rename: fix cygwin 1.5.x bugs
39769         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39770         * lib/rename.c (rpl_rename): Work around them.
39771         * modules/rename (Depends-on): Add same-inode.
39772
39773         rename: fix Solaris 10 bug
39774         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39775         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39776         was the only bug.
39777
39778         rename: fix Solaris 9 bug
39779         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39780         on non-directory.  Avoid calling exit.
39781         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39782         strdup.
39783         * modules/rename-tests (Depends-on): Drop lstat.
39784         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39785         (gl_PREREQ_RENAME): Delete unused macro.
39786
39787         rename-dest-slash: fix NetBSD bug
39788         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39789         links.
39790         * modules/rename-dest-slash (Depends-on): Add same-inode.
39791
39792         rename-tests: new test, exposes several platform bugs
39793         * modules/rename-tests: New file.
39794         * tests/test-rename.h: Likewise.
39795         * tests/test-rename.c: Likewise.
39796         * doc/posix-functions/rename.texi (rename): Improve documentation,
39797         including bugs that will eventually be fixed in gnulib.
39798
39799 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39800
39801         * lib/uname.c: Include <stdlib.h>
39802         (uname): Assume version info is available.
39803
39804 2009-10-02  Jim Meyering  <meyering@redhat.com>
39805
39806         gnu-web-doc-update: correct --help output
39807         * build-aux/gnu-web-doc-update: Make --help output relevant.
39808
39809         gnu-web-doc-update: add standard options
39810         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39811
39812         gnu-web-doc-update: New module.
39813         Use this script to automatically update the on-line web documentation
39814         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39815         * modules/gnu-web-doc-update: New file, from coreutils.
39816         * build-aux/gnu-web-doc-update: New script.
39817
39818 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39819
39820         link: LoadLibrary is not needed.
39821         * lib/link.c: Use GetModuleHandle.
39822
39823 2009-10-01  Eric Blake  <ebb9@byu.net>
39824
39825         getopt: bump serial number
39826         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39827         change.
39828
39829         tests: tighten link, rmdir, and remove tests
39830         * tests/test-link.h (includes): No need to use <config.h> here.
39831         Clean up if directory hard link was created, otherwise test for
39832         trailing '.'.
39833         * tests/test-linkat.c (main): Simplify.
39834         * tests/test-remove.c (main): Enhance test for trailing '.'.
39835         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39836
39837 2009-10-01  Jim Meyering  <meyering@redhat.com>
39838
39839         maint.mk: requiring "make major" was annoying, for a "minor" release.
39840         What is intended is "stable", to contrast with alpha and beta,
39841         so require "make stable", not "make major".
39842         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39843         (get_tool_versions): Likewise.
39844         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39845
39846 2009-09-30  Ben Pfaff  <blp@gnu.org>
39847
39848         Fix broken build of replacement for Windows tmpfile().
39849         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39850         flags argument added along with the 'mkostemp' module.
39851
39852 2009-09-28  Bruno Haible  <bruno@clisp.org>
39853
39854         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39855         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39856         to 'remove_elt'.
39857         (gl_list_remove): Update.
39858         * lib/gl_list.c (gl_list_remove): Update.
39859         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39860         to 'remove_elt'.
39861         (gl_oset_remove): Update.
39862         * lib/gl_list.c (gl_oset_remove): Update.
39863         Reported by Eric Blake.
39864
39865 2009-09-28  Eric Blake  <ebb9@byu.net>
39866
39867         doc: mention yet more cygwin 1.7 status
39868         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39869         cygwin.
39870         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39871         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39872
39873         argp: fix test failure
39874         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39875         that are not upper-case.  Pass correct range to tolower.
39876
39877 2009-09-27  Jim Meyering  <meyering@redhat.com>
39878
39879         test-yesno: work around sparc-dash here-document infelicity
39880         Without this change, the literal \177 byte in a here document
39881         would make dash 0.5.5.1-3 access uninitialized memory.
39882         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39883         Instead, use a marker, "@", and filter through tr to create the desired
39884         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39885
39886 2009-09-27  Bruno Haible  <bruno@clisp.org>
39887
39888         Disable untested support for new flavours of ACLs on AIX.
39889         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39890         progress.
39891         * lib/set-mode-acl.c (qset_acl): Likewise.
39892
39893 2008-12-07  Bruno Haible  <bruno@clisp.org>
39894
39895         Add support for new flavours of ACLs on AIX. (Untested.)
39896         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39897         (file_has_acl): Add support for newer AIX.
39898         * lib/set-mode-acl.c (qset_acl): Likewise.
39899         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39900         Rainer Tammer <tammer@tammer.net>.
39901
39902 2009-09-26  Eric Blake  <ebb9@byu.net>
39903
39904         argp: fix compilation of getopt
39905         * lib/getopt.in.h (includes): Use different guard than glibc.
39906         Reported by Sergey Poznyakoff.
39907
39908         doc: mention more cygwin 1.7 status
39909         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39910         bug.
39911         * doc/posix-functions/execl.texi (execl): Likewise.
39912         * doc/posix-functions/execle.texi (execle): Likewise.
39913         * doc/posix-functions/execlp.texi (execlp): Likewise.
39914         * doc/posix-functions/execv.texi (execv): Likewise.
39915         * doc/posix-functions/execve.texi (execve): Likewise.
39916         * doc/posix-functions/execvp.texi (execvp): Likewise.
39917         * doc/glibc-functions/canonicalize_file_name.texi
39918         (canonicalize_file_name): Cygwin 1.7 now provides this.
39919         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39920         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39921         on AT_SYMLINK_NOFOLLOW.
39922
39923 2009-09-24  Eric Blake  <ebb9@byu.net>
39924
39925         test-linkat: make test more robust
39926         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39927
39928         getopt: fix inclusion guards for cygwin
39929         * modules/getopt-posix (Depends-on): Add include-next.
39930         (Makefile.am): Substitute more items in replacement header.
39931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39932         <getopt.h>.
39933         * lib/getopt.in.h (includes): Use split inclusion guard, and
39934         prefer <getopt.h> over include <unistd.h> when one is present.
39935         (option): Also override name of 'struct option'.
39936
39937         same-inode: revert prior change; it is not yet ready
39938         * NEWS: Undo mention of this change.
39939         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39940         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39941         * lib/cycle-check.c (cycle_check): Likewise.
39942         * lib/same.c (same_name): Likewise.
39943         * lib/at-func2.c (at_func2): Likewise.
39944
39945 2009-09-23  Eric Blake  <ebb9@byu.net>
39946
39947         linkat: new module
39948         * modules/linkat: New file.
39949         * lib/at-func2.c (at_func2): Likewise.
39950         * lib/linkat.c (linkat): Likewise.
39951         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39952         * lib/openat-priv.h (at_func2): Add declaration.
39953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39954         * modules/unistd (Makefile.am): Substitute them.
39955         * lib/unistd.in.h (linkat): Declare it.
39956         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39957         * doc/posix-functions/linkat.texi (linkat): Likewise.
39958         * doc/posix-functions/link.texi (link): Tweak wording.
39959         * tests/test-link.c (main): Move guts...
39960         * tests/test-link.h (test_link): ...into new file.
39961         * modules/linkat-tests: New test.
39962         * tests/test-linkat.c: Likewise.
39963         * modules/link-tests (Files): Ship new file.
39964         (Depends-on): Add stdbool.
39965
39966         dirname: add library-safe mdir_name
39967         * lib/dirname.h (mdir_name): New prototype.
39968         * lib/dirname.c (dir_name): Move guts...
39969         (mdir_name): ...to new function that avoids xalloc_die.
39970
39971         fchdir: another mingw fix
39972         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39973         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39974         on mingw (where it has not yet been ported), and make it optional
39975         elsewhere.
39976         (_gl_register_fd): Use it.
39977
39978         same-inode: make SAME_INODE tri-state, to port to mingw
39979         * NEWS: Mention this change.
39980         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39981         st_ino always being 0.
39982         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39983         * lib/cycle-check.c (cycle_check): Likewise.
39984         * lib/same.c (same_name): Likewise.
39985
39986         lstat: avoid mingw compilation error
39987         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39988         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39989         lstat ourselves.
39990         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39991         was adequate.
39992         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39993         the checks for lstat.
39994         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39995
39996         link: fix test failure on Solaris 9
39997         * lib/link.c (rpl_link): Don't assume link will catch bogus
39998         trailing slash on source.
39999
40000         test-symlinkat: enhance test
40001         * tests/test-readlink.c (main): Move guts...
40002         * tests/test-readlink.h (test_readlink): ...into new file.
40003         * tests/test-symlink.c (main): Move guts...
40004         * tests/test-symlink.h (test_symlink): ...into new file.
40005         * tests/test-symlinkat.c (main): Use new files for further
40006         coverage.
40007         (do_symlink, do_readlink): New helper functions.
40008         * modules/symlink-tests (Files): Ship new file.
40009         (Depends-on): Add stdbool.
40010         * modules/readlink-tests (Files): Ship new file.
40011         (Depends-on): Add stdbool.
40012         * modules/symlinkat-tests (Files): Use new files.
40013
40014 2009-09-23  Eric Blake  <ebb9@byu.net>
40015
40016         readlink: document portability issue with symlink length
40017         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40018         systems have bogus st_size on symlinks, and mention the
40019         areadlink-with-size module.
40020         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40021         * doc/posix-functions/readlink.texi (readlink): Mention the
40022         areadlink module, and ERANGE failure.
40023         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40024         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40025
40026         readlink: fix Solaris 9 bug with trailing slash
40027         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40028         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40029         * doc/posix-functions/readlink.texi (readlink): Document this.
40030         * modules/readlink-tests: New test.
40031         * tests/test-readlink.c: Likewise.
40032
40033         readlink: fix cygwin 1.5.x bug with return type
40034         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40035         * lib/unistd.in.h (readlink): Use ssize_t.
40036         * lib/readlink.c (readlink): Likewise.
40037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40038         * modules/unistd (Makefile.am): Substitute it.
40039         * lib/unistd.in.h (readlink): Declare replacement.
40040         * doc/posix-functions/readlink.texi (readlink): Document this.
40041
40042         symlink: use throughout gnulib
40043         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40044         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40045         symlink is not used.
40046         * modules/symlinkat (Depends-on): Add symlink.
40047         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40048         * modules/canonicalize-tests (Depends-on): Likewise.
40049         * modules/lstat-tests (Depends-on): Likewise.
40050         * modules/openat-tests (Depends-on): Likewise.
40051         * modules/remove-tests (Depends-on): Likewise.
40052         * modules/rmdir-tests (Depends-on): Likewise.
40053         * modules/unlink-tests (Depends-on): Likewise.
40054         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40055         * tests/test-canonicalize.c (symlink): Likewise.
40056         * tests/test-fstatat.c (symlink): Likewise.
40057         * tests/test-lstat.c (symlink): Likewise.
40058         * tests/test-remove.c (symlink): Likewise.
40059         * tests/test-rmdir.c (symlink): Likewise.
40060         * tests/test-unlink.c (symlink): Likewise.
40061         * tests/test-unlinkat.c (symlink): Likewise.
40062
40063         symlink: new module, for Solaris 9 bug
40064         * modules/symlink: New file.
40065         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40066         * lib/symlink.c: Likewise.
40067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40068         * modules/unistd (Makefile.am): Substitute them.
40069         * lib/unistd.in.h (symlink): Declare replacement.
40070         * MODULES.html.sh (File system functions): Mention it.
40071         * doc/posix-functions/symlink.texi (symlink): Likewise.
40072         * modules/symlink-tests: New test.
40073         * tests/test-symlink.c: Likewise.
40074
40075 2009-09-23  Bruno Haible  <bruno@clisp.org>
40076
40077         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40078         when needed.
40079         Test case: gnulib-tool --import --with-tests atexit inttypes.
40080         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40081
40082 2009-09-23  Bruno Haible  <bruno@clisp.org>
40083
40084         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40085         subcommand, not in a subshell.
40086
40087 2009-09-22  Eric Blake  <ebb9@byu.net>
40088
40089         unistd: sort replacement declarations
40090         * lib/unistd.in.h: Sort declarations.
40091
40092         open, openat: minor optimization
40093         * lib/open.c (open): If open succeeded, len is non-zero.
40094         * lib/openat.c (rpl_openat): Likewise.
40095
40096         link-follow: ensure correct result
40097         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40098         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40099         distinguish between possible failures.
40100
40101 2009-09-21  Eric Blake  <ebb9@byu.net>
40102
40103         fts: avoid compiler warning
40104         * lib/fts.c (dirent_inode_sort_may_be_useful)
40105         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40106
40107 2009-09-19  Bruno Haible  <bruno@clisp.org>
40108
40109         * lib/progreloc.c (canonicalize_file_name): New declaration.
40110
40111 2009-09-19  Eric Blake  <ebb9@byu.net>
40112
40113         link: fix quoting
40114         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40115
40116         openat: fix openat bugs on Solaris 9
40117         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40118         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40119         * modules/openat (Depends-on): Add open.
40120         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40121         * modules/fcntl-h (Makefile.am): Substitute it.
40122         * lib/fcntl.in.h (openat): Declare replacement.
40123         * doc/posix-functions/openat.texi (openat): Document this.
40124
40125         openat: move fstatat and unlinkat into correct files
40126         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40127         compiled.
40128         * lib/openat.c (fstatat, unlinkat): Move...
40129         * lib/fstatat.c (fstatat): ...into correct files.
40130         * lib/unlinkat.c (unlinkat): Likewise.
40131
40132         openat: fix unlinkat bugs on Solaris 9
40133         * lib/unlinkat.c (unlinkat): New file.
40134         * modules/openat (Depends-on): Add unlink.
40135         (Files): Distribute it.
40136         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40137         trailing slash behavior is broken.
40138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40139         * modules/unistd (Makefile.am): Substitute it.
40140         * lib/unistd.in.h (unlinkat): Declare replacement.
40141         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40142
40143         openat: fix fstatat bugs on Solaris 9
40144         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40145         stat.
40146         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40147
40148         test-unlinkat: enhance test, to expose Solaris 9 bug
40149         * tests/test-unlink.c (main): Factor guts...
40150         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40151         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40152         * tests/test-rmdir.c (main): Adjust caller.
40153         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40154         (unlinker): New helper function.
40155         (rmdirat): Enhance check.
40156         * modules/rmdir-tests (Depends-on): Add stdbool.
40157         * modules/unlink-tests (Depends-on): Likewise.
40158         (Files): Add test-unlink.h.
40159         * modules/openat-tests (Files): Likewise.
40160         (Depends-on): Add unlinkdir.
40161
40162         test-fstatat: new test, to expose Solaris 9 bugs
40163         * tests/test-stat.c (main): Factor guts...
40164         * tests/test-stat.h (test_stat_func): ...into new file.
40165         * tests/test-lstat.c (main): Factor guts...
40166         * tests/test-lstat.h (test_lstat_func): ...into new file.
40167         * tests/test-fstatat.c: New file.
40168         * modules/stat-tests (Files): Add test-stat.h.
40169         * modules/lstat-tests (Files): Add test-lstat.h.
40170         (Depends-on): Add stdbool.
40171         * modules/openat-tests (Depends-on): Add pathmax.
40172         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40173         (Makefile.am): Run new test.
40174
40175         remove: new module, for mingw and Solaris 9 bugs
40176         * modules/remove: New file.
40177         * lib/remove.c: Likewise.
40178         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40180         * modules/stdio (Makefile.am): Use them.
40181         * lib/stdio.in.h (remove): Declare replacement.
40182         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40183         * doc/posix-functions/remove.texi (remove): Likewise.
40184         * modules/remove-tests: New test.
40185         * tests/test-remove.c: Likewise.
40186
40187         unlink: new module, for Solaris 9 bug
40188         * modules/unlink: New file.
40189         * lib/unlink.c: Likewise.
40190         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40192         * modules/unistd (Makefile.am): Use them.
40193         * lib/unistd.in.h (stat): Declare replacement.
40194         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40195         * doc/posix-functions/unlink.texi (unlink): Likewise.
40196         * modules/unlink-tests: New test.
40197         * tests/test-unlink.c: Likewise.
40198
40199         lstat: fix Solaris 9 bug
40200         * lib/lstat.c (lstat): Also check for trailing slash on
40201         non-symlink, non-directories.  Use stat module to simplify logic.
40202         * doc/posix-functions/lstat.texi (lstat): Document it.
40203         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40204         (configure.ac): Check for symlink.
40205         * tests/test-lstat.c (main): Add more tests.
40206
40207         stat: add as dependency to other modules
40208         * modules/chown (Depends-on): Add stat.
40209         * modules/euidaccess (Depends-on): Likewise.
40210         * modules/fchdir (Depends-on): Likewise.
40211         * modules/isdir (Depends-on): Likewise.
40212         * modules/link (Depends-on): Likewise.
40213         * modules/lstat (Depends-on): Likewise.
40214         * modules/mkdir-p (Depends-on): Likewise.
40215         * modules/modechange (Depends-on): Likewise.
40216         * modules/open (Depends-on): Likewise.
40217         * modules/readlink (Depends-on): Likewise.
40218         * modules/same (Depends-on): Likewise.
40219
40220         stat: fix Solaris 9 bug
40221         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40222         slash.
40223         * lib/stat.c (rpl_stat): Work around it.
40224         * doc/posix-functions/stat.texi (stat): Update documentation.
40225
40226         stat: new module, for mingw bug
40227         * modules/stat: New file.
40228         * lib/stat.c: Likewise.
40229         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40230         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40231         * modules/sys_stat (Makefile.am): Use them.
40232         * lib/sys_stat.in.h (stat): Declare replacement.
40233         * lib/openat.c (fstatat): Deal with lstat and stat being function
40234         macros.
40235         * modules/openat (Depends-on): Add inline.
40236         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40237         * doc/posix-functions/stat.texi (stat): Likewise.
40238         * modules/stat-tests: New test.
40239         * tests/test-stat.c: Likewise.
40240
40241 2009-09-19  Jim Meyering  <meyering@redhat.com>
40242
40243         syntax-check: detect unnecessary inclusion of canonicalize.h
40244         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40245
40246 2009-09-19  Eric Blake  <ebb9@byu.net>
40247
40248         canonicalize-lgpl: adjust clients to use correct header
40249         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40250         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40251         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40252         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40253         * lib/progreloc.c (includes): Likewise.
40254
40255 2009-09-19  Jim Meyering  <meyering@redhat.com>
40256
40257         test-posixtm.c: correct a comment
40258         * tests/test-posixtm.c: Correct first-line comment.
40259         Spotted by Eric Blake.
40260
40261 2009-09-16  Jim Meyering  <meyering@redhat.com>
40262
40263         posixtm-tests: make T const-correct; add a test case
40264         * tests/test-posixtm.c (T): Declare const.
40265         Add a test for -(2^31+1).
40266         Remove useless can-succeed-only-in-2002 test.
40267
40268         posixtm-tests: adjust the sole failing test
40269         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40270         expected output matches what mktime now produces.  Cross-checked via
40271         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40272
40273         posixtm: move #ifdef'd tests into a new module
40274         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40275         * tests/test-posixtm.c: ... this new file.
40276         * modules/posixtm-tests: New module.
40277
40278 2009-09-19  Eric Blake  <ebb9@byu.net>
40279
40280         openat: simplify use of at-func.c
40281         * lib/at-func.c (includes): Include prerequisites here, to
40282         simplify requirements on client files.
40283         * lib/openat-priv.h: Add double-inclusion guard.
40284         * lib/faccessat.c (includes): Simplify.
40285         * lib/fchmodat.c (includes): Likewise.
40286         * lib/fchownat.c (includes): Likewise.
40287         * lib/mkdirat.c (includes): Likewise.
40288         * lib/mkfifoat.c (includes): Likewise.
40289         * lib/symlinkat.c (includes): Likewise.
40290
40291         openat: allow return of fd 0
40292         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40293         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40294         unistd-safer.
40295         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40296         <fcntl.h>; this module does not leak fds.
40297         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40298         must be allowed to return 0, leaving openat_safer to add the
40299         safety.
40300         (openat_permissive): Avoid writing to just-opened fd 2 if
40301         restoring the current directory fails.
40302         * lib/openat-die.c (openat_restore_fail): Add comment.
40303         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40304         (save_cwd): Guarantee safe fd, but without use of open_safer.
40305         * tests/test-openat.c: New test.
40306         * modules/openat-tests (Files, Makefile.am): Distribute and build
40307         new file.
40308
40309         relocatable-prog-wrapper: fix build
40310         * modules/relocatable-prog-wrapper (Files): Update name of
40311         canonicalize m4 file, broken on 2009-09-17.
40312         Reported by emad hajjar <aleppos@hotmail.com>.
40313
40314 2009-09-19  Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40317         * lib/safe-alloc.c: Likewise.
40318         Reported by Ian Beckwith <ianb@erislabs.net>.
40319
40320 2009-09-18  Bruno Haible  <bruno@clisp.org>
40321
40322         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40323         Reported by <erobles@sensacd.com.mx>.
40324
40325 2009-09-17  Eric Blake  <ebb9@byu.net>
40326
40327         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40328         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40329         slashes when checking if last component is missing.
40330         * tests/test-canonicalize.c (main): Test this.
40331
40332         canonicalize, canonicalize-lgpl: honor // if distinct from /
40333         * modules/canonicalize (Files): Add double-slash-root.m4.
40334         * modules/canonicalize-lgpl (Files): Likewise.
40335         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40336         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40337         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40338         fallback definition.
40339         (canonicalize_filename_mode): Use it to protect //.
40340         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40341         (__realpath): Likewise.
40342         * tests/test-canonicalize.c (main): Test this.
40343         * tests/test-canonicalize-lgpl.c (main): Likewise.
40344         * modules/canonicalize-tests (Depends-on): Add same-inode.
40345         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40346
40347         canonicalize-lgpl: fix glibc bug with trailing slash
40348         * m4/canonicalize-lgpl.m4: Move contents...
40349         * m4/canonicalize.m4: ...here.
40350         (gl_CANONICALIZE_LGPL): Factor realpath check...
40351         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40352         glibc 2.3.5 bug, fixed 2005-04-27.
40353         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40354         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40355         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40356         * modules/canonicalize-lgpl (Files): Manage file rename.
40357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40358         * modules/stdlib (Makefile.am): Substitute witness.
40359         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40360         is needed.
40361         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40362         replacement is required.
40363         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40364         * doc/glibc-functions/canonicalize_file_name.texi
40365         (canonicalize_file_name): Document this.
40366         * doc/posix-functions/realpath.texi (realpath): Likewise.
40367
40368         canonicalize-lgpl: reject non-directory with trailing slash
40369         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40370         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40371         catches failures in glibc 2.3.5.
40372         * tests/test-canonicalize.c (main): Likewise.
40373
40374         canonicalize-lgpl: use native realpath if it works
40375         * lib/canonicalize-lgpl.c (realpath): Guard with
40376         FUNC_REALPATH_WORKS.
40377         * lib/stdlib.in.h (realpath): Make declaration optional based on
40378         HAVE_REALPATH.
40379         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40380         native realpath works.
40381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40382         * modules/stdlib (Makefile.am): Substitute witness.
40383
40384         canonicalize, canonicalize-lgpl: use <stdlib.h>
40385         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40386         (Include): Mention <stdlib.h>.
40387         (configure.ac): Mention functions we provide.
40388         * modules/canonicalize (configure.ac): Likewise.
40389         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40390         realpath if canonicalize_file_name is missing.
40391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40392         * modules/stdlib (Makefile.am): Substitute witnesses.
40393         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40394         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40395         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40396         * NEWS: Document this.
40397         * doc/glibc-functions/canonicalize_file_name.texi
40398         (canonicalize_file_name): Likewise.
40399         * doc/posix-functions/realpath.texi (realpath): Likewise.
40400         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40401
40402         test-canonicalize: consolidate into single C program
40403         * tests/test-canonicalize.sh: Delete; move setup into...
40404         * tests/test-canonicalize.c (main): ...the program, making it
40405         easier to run in debugger.  Add some tests.
40406         * modules/canonicalize-tests (Files): Remove unused file.
40407         (Depends-on): Add progname.
40408         (configure.ac, Makefile.am): Simplify.
40409
40410         test-canonicalize-lgpl: consolidate into single C program
40411         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40412         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40413         easier to run in debugger.  Add some tests.
40414         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40415         (configure.ac, Makefile.am): Simplify.
40416
40417         canonicalize: avoid resolvepath
40418         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40419         unnecessary checks.
40420         * lib/canonicalize.c (includes): Simplify.
40421         (canonicalize_file_name): Drop resolvepath implementation.
40422         * modules/canonicalize (Depends-on): Drop filenamecat.
40423
40424         canonicalize: don't lose errno
40425         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40426         over calls to free.
40427
40428         canonicalize: simplify errno handling
40429         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40430         assignment.
40431
40432         canonicalize, canonicalize-lgpl: update module dependencies
40433         * modules/canonicalize (Depends-on): Add extensions, lstat,
40434         pathmax, stdlib.
40435         (Files): Drop pathmax.h.
40436         (configure.ac): Adjust macro name.
40437         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40438         lstat, stdlib, sys_stat.
40439         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40440         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40441         extensions.
40442         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40443         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40444         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40445         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40446         declaration, if available.
40447         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40448         we can rely on the readlink module.
40449         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40450         (includes): Use <unistd.h> unconditionally.
40451
40452 2009-09-17  Eric Blake  <ebb9@byu.net>
40453
40454         maint: make Include sections of modules consistent
40455         * modules/alloca: Use only header name; no need to list #include.
40456         * modules/alloca-opt: Likewise.
40457         * modules/arpa_inet: Likewise.
40458         * modules/canon-host: Likewise.
40459         * modules/configmake: Likewise.
40460         * modules/dirent: Likewise.
40461         * modules/eealloc: Likewise.
40462         * modules/environ: Likewise.
40463         * modules/fchdir: Likewise.
40464         * modules/fcntl: Likewise.
40465         * modules/fcntl-h: Likewise.
40466         * modules/gethrxtime: Likewise.
40467         * modules/gettime: Likewise.
40468         * modules/ignore-value: Likewise.
40469         * modules/inet_ntop: Likewise.
40470         * modules/inet_pton: Likewise.
40471         * modules/inttypes: Likewise.
40472         * modules/isnand-nolibm: Likewise.
40473         * modules/isnanf-nolibm: Likewise.
40474         * modules/mbchar: Likewise.
40475         * modules/mbfile: Likewise.
40476         * modules/mbiter: Likewise.
40477         * modules/mbuiter: Likewise.
40478         * modules/netdb: Likewise.
40479         * modules/netinet_in: Likewise.
40480         * modules/nproc: Likewise.
40481         * modules/pagealign_alloc: Likewise.
40482         * modules/poll: Likewise.
40483         * modules/printf-frexp: Likewise.
40484         * modules/pthread: Likewise.
40485         * modules/putenv: Likewise.
40486         * modules/random_r: Likewise.
40487         * modules/relocatable-prog: Likewise.
40488         * modules/search: Likewise.
40489         * modules/select: Likewise.
40490         * modules/selinux-h: Likewise.
40491         * modules/settime: Likewise.
40492         * modules/signal: Likewise.
40493         * modules/size_max: Likewise.
40494         * modules/socklen: Likewise.
40495         * modules/ssize_t: Likewise.
40496         * modules/stdarg: Likewise.
40497         * modules/stdbool: Likewise.
40498         * modules/stddef: Likewise.
40499         * modules/stdint: Likewise.
40500         * modules/stdio: Likewise.
40501         * modules/stdlib: Likewise.
40502         * modules/string: Likewise.
40503         * modules/strings: Likewise.
40504         * modules/sys_file: Likewise.
40505         * modules/sys_ioctl: Likewise.
40506         * modules/sys_select: Likewise.
40507         * modules/sys_socket: Likewise.
40508         * modules/sys_stat: Likewise.
40509         * modules/sys_time: Likewise.
40510         * modules/sys_times: Likewise.
40511         * modules/sys_utsname: Likewise.
40512         * modules/sys_wait: Likewise.
40513         * modules/sysexits: Likewise.
40514         * modules/time: Likewise.
40515         * modules/times: Likewise.
40516         * modules/tmpfile: Likewise.
40517         * modules/trim: Likewise.
40518         * modules/unistd: Likewise.
40519         * modules/wchar: Likewise.
40520         * modules/wctype: Likewise.
40521
40522 2009-09-17  Bruno Haible  <bruno@clisp.org>
40523
40524         Make getdate.y compile on QNX and NetBSD 5 / i386.
40525         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40526         TIME_T_FITS_IN_LONG_INT.
40527         * lib/getdate.y (long_time_t): New type.
40528         (relative_time): Change type of 'seconds' field to long_time_t.
40529         (get_date): Update types of local variables. Check against overflow
40530         during conversion from long_time_t to time_t.
40531         Reported by Matt Kraai <kraai@ftbfs.org>
40532         and Hasso Tepper <hasso@netbsd.org>.
40533
40534 2009-09-17  Bruno Haible  <bruno@clisp.org>
40535
40536         * modules/COPYING: Update copyright years.
40537         * modules/README: Likeiwse.
40538         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40539         Reported by Ian Beckwith <ianb@erislabs.net>.
40540
40541 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40542
40543         * users.txt: Update references for gnuit package.
40544
40545 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40546
40547         * m4/getdelim.m4: Fix typo in copyright line.
40548
40549 2009-09-17  Bruno Haible  <bruno@clisp.org>
40550
40551         * lib/atoll.c: Use the standard header with GPL copyright.
40552         * lib/argz.in.h: Likewise.
40553         * lib/glob.c: Likewise.
40554         * lib/glob-libc.h: Likewise.
40555         * lib/random_r.c: Likewise.
40556         * lib/siglist.h: Likewise.
40557         * lib/strsignal.c: Likewise.
40558         Reported by Ian Beckwith <ianb@erislabs.net>.
40559
40560 2009-09-17  Eric Blake  <ebb9@byu.net>
40561
40562         rmdir: ensure correct dependency order
40563         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40564
40565 2009-09-17  Bruno Haible  <bruno@clisp.org>
40566
40567         Disable assertion that fails on NetBSD 5 / i386.
40568         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40569         Reported by Sam Steingold <sds@gnu.org>
40570         and Hasso Tepper <hasso@netbsd.org>.
40571
40572 2009-09-16  Eric Blake  <ebb9@byu.net>
40573
40574         unlinkdir: port to mingw
40575         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40576         on which no one can unlink a directory.
40577
40578         stdlib: sort witness names
40579         * modules/stdlib (Makefile.am): Sort replacements.
40580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40581         * lib/stdlib.in.h: Likewise.
40582
40583         parse-duration-tests: avoid link failure
40584         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40585         LIBINTL.
40586         Reported by Tom G. Christensen.
40587
40588         openat-tests: ensure unlinkat behaves like rmdir
40589         * tests/test-rmdir.c (main): Factor guts...
40590         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40591         * modules/rmdir-tests (Files): Ship new file.
40592         * modules/openat-tests: New test.
40593         * tests/test-unlinkat.c: Likewise.
40594
40595         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40596         * modules/rmdir-errno (Status, Notice): Now obsolete.
40597
40598         rmdir: work around cygwin 1.5.x and mingw bugs
40599         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40600         * lib/rmdir.c (rmdir): Work around it.
40601         * modules/rmdir (Status, Notice): No longer obsolete.
40602         (Files): Add dos.m4.
40603         (Depends-on): Add unistd.
40604         (configure.ac): Set witnesses.
40605         (License): Relax to LGPLv2+.
40606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40607         * modules/unistd (Makefile.am): Substitute witnesses.
40608         * lib/unistd.in.h (rmdir): Declare replacement.
40609         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40610         * modules/rmdir-tests: New tests.
40611         * tests/test-rmdir.c: Likewise.
40612
40613 2009-09-15  Eric Blake  <ebb9@byu.net>
40614
40615         fchdir: improve use of replacement functions
40616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40617         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40618         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40619         REPLACE_CLOSEDIR.
40620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40621         * modules/sys_stat (Makefile.am): Substitute correct witness.
40622         * modules/dirent (Makefile.am): Likewise.
40623         * modules/unistd (Makefile.am): Likewise.
40624         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40625         * lib/unistd.in.h (dup): Likewise.
40626         * lib/sys_stat.in.h (fstat): Likewise.
40627
40628         maint: ignore gnulib-tool temp files
40629         * .gitignore: Ignore files created during gnulib-tool --test.
40630
40631 2009-09-13  Jim Meyering  <meyering@redhat.com>
40632
40633         posixtm: don't reject a time that specify "60" as the number of seconds
40634         * lib/posixtm.c (posixtime): The code to reject invalid dates
40635         would also reject a time specified with the .60 suffix.
40636         But POSIX allows that, in order to accommodate leap seconds.
40637         So don't reject it.
40638         (main): Adjust tests accordingly.
40639         * modules/posixtm (Depends-on): Add stpcpy.
40640
40641 2009-09-11  Jim Meyering  <meyering@redhat.com>
40642
40643         announce-gen: include [$release_type] in emitted Subject:
40644         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40645         e.g., [stable] in the emitted Subject: line.
40646
40647 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40648
40649         Remove obsolete macros from several modules.
40650         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40651         obsolete Autoconf macros with their modern counterparts.
40652         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40653         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40655         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40656         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40657         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40659         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40660         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40661         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40662         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40663         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40664         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40665         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40666         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40667         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40668         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40669         * m4/time_r.m4 (gl_TIME_R): Likewise.
40670         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40671         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40672         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40673
40674         Fix copyright header in build-aux scripts.
40675         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40676         recommendation.
40677         * build-aux/ncftpput-ftp: Likewise.
40678         * build-aux/update-copyright: Likewise.
40679
40680 2009-09-09  Eric Blake  <ebb9@byu.net>
40681
40682         test-link: allow Linux choice of errno
40683         * tests/test-link.c (main): Relax test for alternate error.
40684
40685         strndup: fix improper m4 caching
40686         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40687         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40688         (gl_PREREQ_STRNDUP): Delete.
40689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40690         * modules/string (Makefile.am): Substitute it.
40691         * lib/string.in.h (strndup): Modernize prototype.
40692
40693         getcwd: port to mingw
40694         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40695         different from the POSIX assumptions made throughout the getcwd
40696         module; fortunately, the mingw getcwd does not need replacement.
40697         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40698         * modules/getcwd-tests: New test.
40699         * tests/test-getcwd.c: Likewise.
40700
40701         link: fix platform bugs
40702         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40703         * lib/link.c (link): Work around them.  Fix related mingw bug.
40704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40705         * modules/unistd (Makefile.am): Substitute it.
40706         * lib/unistd.in.h (link): Declare replacement.
40707         * doc/posix-functions/link.texi (link): Document this.
40708         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40709
40710         test-link: consolidate into single C program, test more cases
40711         * tests/test-link.sh: Delete.
40712         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40713         at least Cygwin and Solaris.
40714         * modules/link-tests (Files): Remove unused file.
40715         (Depends-on): Add errno, sys_stat.
40716         (Makefile.am): Simplify.
40717
40718 2009-09-08  Bruno Haible  <bruno@clisp.org>
40719
40720         Work around towlower, towupper bug on mingw.
40721         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40722         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40723         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40724         * doc/posix-functions/towupper.texi: Likewise.
40725         Reported by Eric Blake.
40726
40727 2009-09-08  Jim Meyering  <meyering@redhat.com>
40728
40729         build: don't try to run autoheader if we don't use it
40730         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40731         is not used in configure.ac.
40732
40733 2009-09-08  Eric Blake  <ebb9@byu.net>
40734
40735         euidaccess: fix compilation error
40736         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40737
40738         rawmemchr: relax license
40739         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40740         okay.
40741         Reported by Jim Meyering.
40742
40743         mkfifoat: new module
40744         * modules/mkfifoat: New file.
40745         * lib/mkfifoat.c: Likewise.
40746         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40747         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40748         * modules/sys_stat (Makefile.am): Use them.
40749         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40750         * MODULES.html.sh (File system functions): Mention module.
40751         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40752         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40753         * modules/mkfifoat-tests: New test.
40754         * tests/test-mkfifoat.c: Likewise.
40755
40756         strchrnul: relax license
40757         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40758         okay.
40759         Reported by Jim Meyering.
40760
40761 2009-09-08  Eric Blake  <ebb9@byu.net>
40762
40763         fstatat: fix compilation on Solaris
40764         * lib/fstatat.c (includes): Add fcntl.h.
40765         Reported by Pádraig Brady.
40766
40767 2009-09-07  Eric Blake  <ebb9@byu.net>
40768
40769         rename: modernize replacement
40770         * modules/rename (Depends-on): Add stdio.
40771         (configure.ac): Declare witness.
40772         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40773         stdio take care of replacement.
40774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40775         * modules/stdio (Makefile.am): Substitute them.
40776         * lib/stdio.in.h (rename): Declare replacement.
40777         * lib/rename.c (includes): Allow cross-compilation to non-windows
40778         machines.
40779         * doc/posix-functions/rename.texi (rename): Improve
40780         documentation.
40781
40782         stdio: sort witness names
40783         * modules/stdio (Makefile.am): Sort replacements.
40784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40785         * lib/stdio.in.h: Likewise.
40786
40787         getcwd: minor cleanups
40788         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40789         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40790
40791         openat: provide more convenience names
40792         * modules/faccessat (configure.ac): Add C witness.
40793         * lib/unistd.in.h (readlinkat): Fix typo.
40794         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40795         convenience wrappers.
40796         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40797         wrappers in syntax checks.
40798
40799 2009-09-06  Eric Blake  <ebb9@byu.net>
40800
40801         doc: fix comments in recent patches
40802         * lib/faccessat.c: Mention correct function.
40803         * lib/fchmodat.c: Likewise.
40804         * lib/fchownat.c: Likewise.
40805         * lib/symlinkat.c: Likewise.
40806         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40807         constants.
40808
40809         faccessat, symlinkat: continue cleanup of previous patch
40810         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40811         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40812         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40814         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40815         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40816         set.
40817
40818 2009-09-06  Bruno Haible  <bruno@clisp.org>
40819
40820         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40821         (fstatat): Declare if GNULIB_FSTATAT is set.
40822         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40823         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40824         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40825         * modules/fcntl-h (Files): Remove m4/openat.m4.
40826         * modules/sys_stat (Files): Remove m4/openat.m4.
40827         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40828         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40829         * modules/unistd (Files): Remove m4/openat.m4.
40830         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40831         GNULIB_OPENAT.
40832         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40833         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40834         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40835         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40836         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40837         gl_OPENAT_DEFAULTS.
40838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40839         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40840         Don't require gl_OPENAT_DEFAULTS.
40841         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40842         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40843         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40844         (gl_OPENAT_DEFAULTS): Remove macro.
40845
40846 2009-09-06  Bruno Haible  <bruno@clisp.org>
40847
40848         * modules/openat (configure.ac): Remove unneeded witness.
40849
40850 2009-09-06  Bruno Haible  <bruno@clisp.org>
40851
40852         Set errno to ENOSYS when a function is entirely unsupported.
40853         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40854         EOPNOTSUPP.
40855         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40856         * modules/chown (Depends-on): Remove errno.
40857
40858 2009-09-06  Bruno Haible  <bruno@clisp.org>
40859
40860         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40861
40862 2009-09-06  Bruno Haible  <bruno@clisp.org>
40863
40864         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40865
40866 2009-09-06  Ben Pfaff  <blp@gnu.org>
40867             Bruno Haible  <bruno@clisp.org>
40868
40869         Work around a glibc bug in strtok_r.
40870         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40871         Undefine if UNDEFINE_STRTOK_R is set.
40872         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40874         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40875         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40876         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40877         UNDEFINE_STRTOK_R.
40878         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40879
40880 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40881
40882         exclude: minor fix
40883         * lib/exclude.c: Include wctype.h
40884
40885 2009-09-06  Akim Demaille  <demaille@gostai.com>
40886
40887         bootstrap: improve error message
40888         * build-aux/bootstrap (find_tool): Upon failure, report the list
40889         of candidates.
40890         Honor the initial value of the envvar.
40891
40892 2009-09-05  Eric Blake  <ebb9@byu.net>
40893
40894         symlinkat: new module
40895         * modules/symlinkat: New file.
40896         * lib/symlinkat.c: Likewise.
40897         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40899         * modules/unistd (Makefile.am): Use them.
40900         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40901         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40902         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40903         * MODULES.html.sh (File system functions): Mention module.
40904         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40905         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40906         * modules/symlinkat-tests: New test.
40907         * tests/test-symlinkat.c: Likewise.
40908
40909         test-openat-safer: add more checks
40910         * tests/test-openat-safer.c (main): Check more code paths.
40911
40912 2009-09-05  Jim Meyering  <meyering@redhat.com>
40913
40914         syntax-check: detect unnecessary inclusion of openat.h
40915         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40916
40917 2009-09-05  Bruno Haible  <bruno@clisp.org>
40918
40919         Support towlower, towupper.
40920         * doc/posix-functions/towlower.texi: Mention module wctype.
40921         * doc/posix-functions/towupper.texi: Likewise.
40922         * lib/wctype.in.h (towlower, towupper): New functions.
40923         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40924         (ASSERT): New macro.
40925         (e): New variable.
40926         (main): Test also towlower, towupper. Test WEOF argument.
40927         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40928
40929 2009-09-05  Bruno Haible  <bruno@clisp.org>
40930
40931         Fix conversion behaviour when the input is invalid.
40932         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40933         mark occurring in first pass of indirect conversion.
40934         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40935         input.
40936         Found by clang's static analyzer.
40937
40938 2009-09-05  Bruno Haible  <bruno@clisp.org>
40939
40940         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40941         where direct conversion is possible.
40942
40943 2009-09-04  Eric Blake  <ebb9@byu.net>
40944
40945         openat: fail with ENOENT on empty name
40946         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40947         buffer.
40948
40949         link-follow: fix logic bug in prior patch
40950         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40951         reversed sense of yes and no in prior patch.  Avoid confusing
40952         compilation failure with desired semantics.
40953
40954         link-follow: accomodate mingw and cross-compilation
40955         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40956         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40957         cross-compilation results to -1, to make linkat easier to
40958         implement when cross-compiling.  Trivially support mingw.
40959         * modules/link-follow (configure.ac): Call new name.
40960         * NEWS: Mention this.
40961
40962 2009-09-03  Eric Blake  <ebb9@byu.net>
40963
40964         faccessat: compile replacement
40965         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40966         needed.
40967
40968         fts: fix compilation error
40969         * lib/fts.c (includes): Re-add "openat.h", for
40970         openat_needs_fchdir.
40971
40972         faccessat: new module
40973         * modules/faccessat: New file.
40974         * lib/faccessat.c: Likewise.
40975         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40977         * modules/unistd (Makefile.am): Use it.
40978         * lib/unistd.in.h (faccessat): Declare it.
40979         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40980         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40981         * MODULES.html.sh (File system functions): Mention it.
40982         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40983         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40984
40985         euidaccess: prefer POSIX over non-standard implementation
40986         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40987         * lib/euidaccess.c (euidaccess): Use it if available.
40988
40989         openat: make template easier to use
40990         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40991         AT_FUNC_F2 to be undefined.
40992         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40993         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40994         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40995         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40996         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40997         Likewise.
40998         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40999         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41000         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41001         Likewise.
41002
41003         openat: declare in POSIX headers
41004         * NEWS: Mention this.
41005         * modules/openat (configure.ac): Declare witnesses.
41006         (Depends-on): Add fcntl-h, sys_stat, unistd.
41007         (Include): Mention correct headers.
41008         * modules/fcntl-h (Depends-on): Add link-warning.
41009         (Files): Add openat.m4.
41010         (Makefile.am): Substitute witnesses.
41011         * modules/sys_stat (Files, Makefile.am): Likewise.
41012         * modules/unistd (Files, Makefile.am): Likewise.
41013         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41014         (gl_OPENAT_DEFAULTS): New macro.
41015         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41017         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41018         (SYS_STAT_H): Remove unused variable.
41019         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41020         * lib/fcntl--.h (includes): Remove unneeded header.
41021         * lib/openat-safer.c (includes): Likewise.
41022         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41023         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41024         appropriate headers.
41025         (__OPENAT_PREFIX): Delete.
41026         * lib/fcntl.in.h (openat): Provide declaration.
41027         (AT_FDCWD): Fix Solaris bug.
41028         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41029         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41030         * lib/fchmodat.c (includes):  Adjust to find declaration.
41031         * lib/fchownat.c (includes): Likewise.
41032         * lib/mkdirat.c (includes): Likewise.
41033         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41034         still visible.
41035
41036 2009-09-02  Eric Blake  <ebb9@byu.net>
41037
41038         errno: use consistently
41039         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41040         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41041         * lib/canonicalize.c (ELOOP): Likewise.
41042         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41043         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41044         * lib/lchown.c (EOPNOTSUPP): Likewise.
41045         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41046         * lib/savewd.c (ESTALE): Likewise.
41047         * lib/settime.c (ENOSYS): Likewise.
41048         * lib/utimens.c (ENOSYS): Likewise.
41049         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41050         * lib/chdir-safer.c (ELOOP): Likewise.
41051         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41052         * modules/c-stack (Depends-on): Add errno.
41053         * modules/canonicalize (Depends-on): Likewise.
41054         * modules/chdir-safer (Depends-on): Likewise.
41055         * modules/fdopendir (Depends-on): Likewise.
41056         * modules/inet_ntop (Depends-on): Likewise.
41057         * modules/inet_pton (Depends-on): Likewise.
41058         * modules/lchown (Depends-on): Likewise.
41059         * modules/openat (Depends-on): Likewise.
41060         * modules/savewd (Depends-on): Likewise.
41061         * modules/settime (Depends-on): Likewise.
41062         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41063
41064         fts: avoid leaking fds
41065         * modules/fts (Depends-on): Add cloexec.
41066         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41067         flag.
41068
41069         fts: make directory fds more robust
41070         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41071         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41072
41073         backupfile, chdir-long, fts, savedir: make safer
41074         * lib/backupfile.c (includes): Use "dirent--.h", since
41075         numbered_backup can write to stderr during readdir.
41076         * lib/savedir.c (includes): Likewise.
41077         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41078         emulation can write to stderr on failure.
41079         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41080         * lib/getcwd.c: Document why opendir_safer is unused.
41081         * lib/glob.c: Likewise.
41082         * lib/scandir.c: Likewise.
41083         * lib/openat-proc.c: Likewise, for open_safer.
41084         * modules/backupfile (Depends-on): Add dirent-safer.
41085         * modules/savedir (Depends-on): Likewise.
41086         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41087         * modules/chdir-long (Depends-on): Add openat-safer.
41088
41089         openat-safer: new module
41090         * modules/openat-safer: New file.
41091         * lib/openat-safer.c: Likewise.
41092         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41093         * lib/fcntl-safer.h (openat_safer): Declare.
41094         * lib/fcntl--.h (openat): Override.
41095         * MODULES.html.sh (File descriptor based I/O): Mention it.
41096         * lib/openat.h: Add double-inclusion guards.
41097         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41098         "fcntl--.h", so we can implement openat.
41099         * modules/openat-safer-tests: New test.
41100         * tests/test-openat-safer.c: New file.
41101
41102         dirent-safer: new module
41103         * modules/dirent-safer: New file.
41104         * lib/dirent--.h: Likewise.
41105         * lib/dirent-safer.h: Likewise.
41106         * lib/opendir-safer.c: Likewise.
41107         * m4/dirent-safer.m4: Likewise.
41108         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41109         * modules/dirent-safer-tests: New test.
41110         * tests/test-dirent-safer.c: New file.
41111         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41112
41113         fdopendir: optimize on mingw
41114         * lib/unistd.in.h (_gl_directory_name): New prototype.
41115         * lib/fchdir.c (_gl_directory_name): Implement it.
41116         (fchdir): Use it to simplify implementation.
41117         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41118         fchdir, when available, to avoid calling [f]chdir().
41119
41120         fdopendir: split into its own module
41121         * lib/openat.c (fdopendir): Move...
41122         * lib/fdopendir.c: ...into new file.
41123         * modules/fdopendir: New module.
41124         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41125         * modules/openat (Depends-on): Add fdopendir.
41126         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41127         fdopendir here.
41128         * modules/savedir (Depends-on): Only need fdopendir, not full
41129         openat.
41130         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41131         * lib/openat.h (fdopendir): Drop prototype.
41132         * lib/dirent.in.h (fdopendir): Provide prototype.
41133         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41134         * modules/dirent (Makefile.am): Substitute them.
41135         * MODULES.html.sh (File system functions): Mention it.
41136         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41137         * modules/fdopendir-tests: New file.
41138         * tests/test-fdopendir.c: Likewise.
41139
41140         fchdir: use more consistent macro convention
41141         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41142         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41143         REPLACE_FCHDIR, rather than relying on config.h macros.
41144         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41145         inside a single make-time REPLACE_FCHDIR block, rather than using
41146         the config.h FCHDIR_REPLACEMENT.
41147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41148         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41149         Manage fstat replacement.
41150         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41151         REPLACE_FCHDIR.
41152         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41153         (Makefile.am): Substitute REPLACE_FCHDIR.
41154         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41155         FCHDIR_REPLACEMENT.
41156         * lib/dup-safer.c (dup_safer): Likewise.
41157         * lib/dup2.c (rpl_dup2): Likewise.
41158         * lib/dup3.c (rpl_dup3): Likewise.
41159         * lib/open.c (rpl_open): Likewise.
41160
41161         fchdir: simplify error handling, and support dup3
41162         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41163         stdbool, malloc-posix, realloc-posix.
41164         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41165         (ensure_dirs_slot): Return false on allocation failure.
41166         (rpl_dup2): Delete.
41167         (_gl_register_dup): New function.
41168         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41169         (_gl_register_fd): Close fd on allocation failure.
41170         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41171         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41172         prototype.
41173         (rpl_dup2_fchdir): Delete prototype.
41174         * lib/open.c (open): Update caller.
41175         * lib/dup2.c (dup2): Track fchdir metadata.
41176         * lib/dup3.c (dup3): Likewise.
41177         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41179
41180 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41181
41182         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41183         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41184         don't pass arguments to AC_OUTPUT.
41185
41186 2009-09-02  Bruno Haible  <bruno@clisp.org>
41187
41188         * modules/mkdtemp (License): Relicense under LGPLv2+.
41189         Reported by Paolo Bonzini.
41190
41191 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41192
41193         Replace uses of obsolete autoconf macros in Jim's modules.
41194         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41195         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41196         can evoke a warning from autoconf when run with -Wobsolete
41197         enabled.  They were declared obsolete for good reasons (see
41198         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41199         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41200         should not continue using the deprecated macros.
41201         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41202         obsolete Autoconf macros with modern counterparts.
41203         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41204         * m4/dos.m4 (gl_AC_DOS): Likewise.
41205         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41206         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41207         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41208         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41209         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41210         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41211         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41212         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41213         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41214         Likewise.
41215         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41216         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41217         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41218         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41219         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41220         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41221
41222 2009-09-01  Eric Blake  <ebb9@byu.net>
41223
41224         fchdir: fix off-by-one bug in previous patch
41225         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41226         (_gl_unregister_fd): Delete useless if.
41227
41228 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41229
41230         maint.mk: sort the list of syntax-check rules
41231         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41232         easier to get a sense of progress when the rules are run sequentially
41233         and take a long time.
41234
41235 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41236
41237         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41238         * modules/netinet_in: Likewise.
41239         * modules/sys_file: Likewise.
41240         * modules/sys_ioctl: Likewise.
41241         * modules/sys_select: Likewise.
41242         * modules/sys_socket: Likewise.
41243         * modules/sys_stat: Likewise.
41244         * modules/sys_time: Likewise.
41245         * modules/sys_times: Likewise.
41246         * modules/sys_utsname: Likewise.
41247         * modules/sys_wait: Likewise.
41248
41249 2009-09-01  Jim Meyering  <meyering@redhat.com>
41250
41251         fts: help ensure that return values are not ignored
41252         * lib/fts_.h (__GNUC_PREREQ): Define.
41253         (__attribute_warn_unused_result__): Define.
41254         (fts_children, fts_close, fts_open, fts_read): Declare with
41255         __attribute_warn_unused_result__.
41256
41257         fts: fts_close now fails also when closing a dir file descriptor fails
41258         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41259         and propagate to caller, along with errno.
41260
41261         announce-gen: correct formatting in --help output
41262         * build-aux/announce-gen (usage): Move the one-line description in
41263         --help output "up", to where it belongs, just after Usage:.
41264
41265 2009-08-31  Eric Blake  <ebb9@byu.net>
41266
41267         fchdir: port to mingw
41268         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41269         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41270         opened, then use a substitute.
41271         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41272         replacement.
41273         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41274         (_gl_register_fd): No need to check stat if open already filters
41275         all directories.
41276         (fchdir): Fix error condition to match POSIX.
41277         * modules/fchdir (Depends-on): Add sys_stat.
41278         * doc/posix-functions/open.texi (open): Document the limitation.
41279         * modules/fchdir-tests: New file.
41280         * tests/test-fchdir.c: Likewise.
41281
41282         canonicalize: allow cross-testing from cygwin to mingw
41283         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41284         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41285         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41286         Likewise.
41287         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41288         target does not support symlinks.
41289         * tests/test-canonicalize-lgpl.sh: Likewise.
41290
41291         chown: avoid compilation warning on mingw
41292         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41293         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41294         mingw.
41295         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41296         * modules/chown (Depends-on): Add errno.
41297
41298 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41299
41300         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41301         command.
41302
41303 2009-08-31  Jim Meyering  <meyering@redhat.com>
41304
41305         canonicalize: remove useless initialization
41306         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41307         initialization of local, "end".
41308
41309 2009-08-30  Bruno Haible  <bruno@clisp.org>
41310
41311         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41312         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41313         ENOSYS.
41314
41315 2009-08-30  Bruno Haible  <bruno@clisp.org>
41316
41317         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41318         /usr/xpg4/bin/tr when it exists.
41319         * tests/test-pipe-filter-gi1.sh: Likewise.
41320
41321 2009-08-30  Bruno Haible  <bruno@clisp.org>
41322
41323         Work around deficient /usr/bin/id program on Solaris.
41324         * tests/test-file-has-acl.sh (ID): New variable.
41325         * tests/test-set-mode-acl.sh (ID): Likewise.
41326         * tests/test-copy-acl.sh (ID): Likewise.
41327         * tests/test-copy-file.sh (ID): Likewise.
41328
41329 2009-08-30  Bruno Haible  <bruno@clisp.org>
41330
41331         New module 'xstriconveh'.
41332         * lib/xstriconveh.h: New file.
41333         * lib/xstriconveh.c: New file.
41334         * modules/xstriconveh: New file.
41335
41336 2009-08-30  Bruno Haible  <bruno@clisp.org>
41337
41338         Make it easier to use mem_cd_iconveh.
41339         * lib/striconveh.h (iconveh_t): New type.
41340         (iconveh_open, iconveh_close): New declarations.
41341         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41342         with a single 'const iconveh_t *' argument.
41343         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41344         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41345         with a single 'const iconveh_t *' argument.
41346         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41347         * tests/test-striconveh.c (main): Update.
41348         * NEWS: Mention the change.
41349
41350 2009-08-30  Bruno Haible  <bruno@clisp.org>
41351
41352         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41353         problem.
41354
41355 2009-08-30  Bruno Haible  <bruno@clisp.org>
41356
41357         Work around iconv_open problem on Solaris.
41358         * lib/iconv_open-solaris.gperf: New file.
41359         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41360         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41361         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41362         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41363         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41364         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41365
41366 2009-08-29  Jim Meyering  <meyering@redhat.com>
41367
41368         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41369         * top/maint.mk (cvs-check): Remove target; it was just an alias
41370         to the better-named vc-diff-check.
41371         (maintainer-distcheck): Remove rule.  It was used only from
41372         the (alpha/beta/major) target, and all of its commands but one
41373         were coreutils-specific.
41374         (vc-dist): Remove rule.
41375         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41376         Run vc-diff-check, not vc-dist.
41377         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41378
41379 2009-08-27  Bruno Haible  <bruno@clisp.org>
41380
41381         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41382         of 0.
41383
41384 2009-08-27  Bruno Haible  <bruno@clisp.org>
41385
41386         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41387         compilers.
41388         * doc/func.texi: Document the SunPRO C bug.
41389
41390 2009-08-27  Bruno Haible  <bruno@clisp.org>
41391
41392         Fix link error on Solaris.
41393         * tests/test-parse-duration.c (xstrdup): Remove function.
41394
41395 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41396
41397         ignore-value: handle pointer types, too
41398         * lib/ignore-value.h (__attribute__): Remove definition.
41399         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41400         of a more concise and more-often effective "(void) i" statement.
41401         (ignore_ptr): New function to suppress warnings from functions that
41402         return pointers, and to make it explicit that one function doesn't
41403         handle all cases.
41404
41405 2009-08-25  Bruno Haible  <bruno@clisp.org>
41406
41407         dup2: work around a Linux bug.
41408         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41409         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41410         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41411         Reported by Simon Josefsson.
41412
41413 2009-08-25  Jim Meyering  <meyering@redhat.com>
41414
41415         libguestfs uses gnulib
41416         * users.txt: Add libguestfs.
41417
41418 2009-08-24  Eric Blake  <ebb9@byu.net>
41419
41420         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41421         * lib/pipe2.c (includes): Add binary-io.h.
41422         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41423
41424 2009-08-24  Bruno Haible  <bruno@clisp.org>
41425
41426         Tolerate declared but missing accept4 syscall.
41427         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41428         available.
41429         * lib/sys_socket.in.h (accept4): If the function is already present,
41430         override it.
41431         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41432         * modules/accept4 (Makefile.am): Compile accept4.c always.
41433         Reported by Paolo Bonzini and Eric Blake.
41434
41435 2009-08-23  Bruno Haible  <bruno@clisp.org>
41436
41437         New module 'accept4'.
41438         * lib/sys_socket.in.h (accept4): New declaration.
41439         * lib/accept4.c: New file.
41440         * m4/accept4.m4: New file.
41441         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41442         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41443         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41444         HAVE_ACCEPT4.
41445         * modules/accept4: New file.
41446         * doc/glibc-functions/accept4.texi: Mention the new module.
41447
41448 2009-08-24  Jim Meyering  <meyering@redhat.com>
41449
41450         progname: also set global program_invocation_name, when possible
41451         Before this change, a libtool-enabled program that calls glibc's
41452         error function would report the program name as
41453         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41454         * modules/progname (configure.ac): Check for a declaration of
41455         program_invocation_name.
41456         * lib/progname.c:  Include <errno.h>.
41457         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41458         Set program_invocation_name.
41459
41460 2009-08-23  Bruno Haible  <bruno@clisp.org>
41461
41462         * lib/dup3.c: Include <string.h>.
41463
41464 2009-08-23  Bruno Haible  <bruno@clisp.org>
41465
41466         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41467         * lib/pipe2.c (pipe2): Likewise.
41468         Suggested by Eric Blake.
41469
41470 2009-08-23  Bruno Haible  <bruno@clisp.org>
41471
41472         Tolerate declared but missing dup3 syscall.
41473         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41474         * lib/unistd.in.h (dup3): If the function is already present,
41475         override it.
41476         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41477         * modules/dup3 (Makefile.am): Compile dup3.c always.
41478         Reported by Paolo Bonzini.
41479
41480 2009-08-23  Bruno Haible  <bruno@clisp.org>
41481
41482         Tolerate declared but missing pipe2 syscall.
41483         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41484         available.
41485         * lib/unistd.in.h (pipe2): If the function is already present,
41486         override it.
41487         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41488         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41489         Reported by Paolo Bonzini.
41490
41491 2009-08-23  Bruno Haible  <bruno@clisp.org>
41492
41493         * lib/pipe2.c (pipe2): Move #ifs inside function.
41494
41495 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41496
41497         quotearg: document limitations of quote_these_too
41498         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41499         those limitations are created.
41500         * lib/quotearg.h (set_char_quoting): Document that digits and
41501         letters that are special after backslash are not permitted.
41502         (quotearg_char): Cross-reference set_char_quoting documentation.
41503
41504 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41505
41506         quotearg: implement custom_quoting_style
41507         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41508         right_quote fields.
41509         (set_custom_quoting): New public function.
41510         (quotearg_buffer_restyled): Add left_quote and right_quote
41511         arguments, handle them very much like locale quoting, and update
41512         all uses.
41513         (quotearg_n_custom): New public function.
41514         (quotearg_n_custom_mem): New public function.
41515         (quotearg_custom): New public function.
41516         (quotearg_custom_mem): New public function.
41517         * lib/quotearg.h: Prototype and document new public functions.
41518         (enum quoting_style): For escape_quoting_style and
41519         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41520         ignored even though they're otherwise like c_quoting_style.
41521         Add custom_quoting_style member and document with comparison to
41522         clocale_quoting_style.
41523         * tests/test-quotearg.c (custom_quotes): New array.
41524         (custom_results): New array.
41525         (main): Extend to test custom quoting.
41526
41527 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41528
41529         quotearg: fix right quote escaping when it's in quote_these_too
41530         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41531         quote, be sure to prepend only one backslash.
41532         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41533         (main): Test it.
41534
41535 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41536
41537         quotearg-tests: test escaping of embedded locale quotes
41538         * tests/test-quotearg.c (struct result_strings): Add member for
41539         new input.
41540         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41541         (inputs): Add new input.
41542         (results_g): Add expected results.
41543         (flag_results): Likewise.
41544         (locale_results): Likewise.
41545         (compare_strings): Check those.
41546
41547 2009-08-23  Bruno Haible  <bruno@clisp.org>
41548
41549         Tests for module 'dup3'.
41550         * modules/dup3-tests: New file.
41551         * tests/test-dup3.c: New file.
41552
41553         New module 'dup3'.
41554         * lib/unistd.in.h (dup3): New declaration.
41555         * lib/dup3.c: New file.
41556         * m4/dup3.m4: New file.
41557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41558         HAVE_DUP3.
41559         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41560         * modules/dup3: New file.
41561         * doc/glibc-functions/dup3.texi: Mention the new module.
41562
41563 2009-08-23  Bruno Haible  <bruno@clisp.org>
41564
41565         Tweak the dup2 test.
41566         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41567         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41568         the test file is still empty. Fix argument order of lseek.
41569
41570 2009-08-23  Bruno Haible  <bruno@clisp.org>
41571
41572         Avoid test link errors when the modules getopt-gnu, gettext are used.
41573         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41575
41576 2009-08-23  Bruno Haible  <bruno@clisp.org>
41577
41578         Fix getdtablesize() on mingw.
41579         * lib/getdtablesize.c (getdtablesize): Implement differently.
41580         * lib/unistd.in.h (getdtablesize): Improve comment.
41581
41582 2009-08-23  Bruno Haible  <bruno@clisp.org>
41583
41584         New module 'mkostemp'.
41585         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41586         * lib/stdlib.in.h (mksotemp): New declaration.
41587         * lib/mkostemp.c: New file, from glibc with modifications.
41588         * lib/tempname.h (GT_FILE): Remove outdated comment.
41589         (gen_tempname): Add flags argument.
41590         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41591         (__GT_FILE): Map to 1.
41592         (small_open, large_open): Remove macros.
41593         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41594         * lib/mkstemp.c (mkstemp): Update.
41595         * lib/mkdtemp.c (mkdtemp): Likewise.
41596         * m4/mkostemp.m4: New file.
41597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41598         HAVE_MKOSTEMP.
41599         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41600         HAVE_MKOSTEMP.
41601         * modules/mkostemp: New file, based on modules/mkstemp.
41602         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41603         * NEWS: Mention the change.
41604
41605 2009-08-23  Bruno Haible  <bruno@clisp.org>
41606
41607         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41608         Reported by Eric Blake.
41609
41610 2009-08-23  Bruno Haible  <bruno@clisp.org>
41611
41612         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41613         Reported by Eric Blake.
41614
41615 2009-08-23  Bruno Haible  <bruno@clisp.org>
41616
41617         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41618         * modules/pipe2 (Depends-on): Likewise.
41619
41620 2009-08-23  Eric Blake  <ebb9@byu.net>
41621
41622         fcntl-h: add O_TTY_INIT support
41623         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41624         * tests/test-fcntl-h.c (o): Test it.
41625         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41626
41627         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41628         * modules/fcntl: Move <fcntl.h> header replacement...
41629         * modules/fcntl-h: ...to new name, so as not to collide with
41630         like-named function.
41631         * tests/test-fcntl.c: Rename...
41632         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41633         * modules/fcntl-tests: Rename...
41634         * modules/fcntl-h-tests: ...to this.  Update test file name.
41635         * modules/chdir-long (Depends-on): Update clients.
41636         * modules/chdir-safer (Depends-on): Likewise.
41637         * modules/fcntl-safer (Depends-on): Likewise.
41638         * modules/fts (Depends-on): Likewise.
41639         * modules/mkancesdirs (Depends-on): Likewise.
41640         * modules/mkdir-p (Depends-on): Likewise.
41641         * modules/open (Depends-on): Likewise.
41642         * modules/savewd (Depends-on): Likewise.
41643         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41644         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41645
41646 2009-08-22  Bruno Haible  <bruno@clisp.org>
41647
41648         * modules/binary-io (License): Relicense under LGPL.
41649         * modules/pipe2 (License): Likewise.
41650
41651 2009-08-22  Bruno Haible  <bruno@clisp.org>
41652
41653         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41654         return value.
41655         * lib/pipe-filter-gi.c (filter_init): Likewise.
41656         Reported by Eric Blake.
41657
41658 2009-08-22  Bruno Haible  <bruno@clisp.org>
41659
41660         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41661         * modules/pipe (Depends-on): Add pipe2.
41662
41663 2009-08-22  Bruno Haible  <bruno@clisp.org>
41664
41665         Tests for module 'pipe2'.
41666         * modules/pipe2-tests: New file.
41667         * tests/test-pipe2.c: New file.
41668
41669         New module 'pipe2'.
41670         * lib/unistd.in.h (pipe2): New declaration.
41671         * lib/pipe2.c: New file.
41672         * m4/pipe2.m4: New file.
41673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41674         HAVE_PIPE2.
41675         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41676         * modules/pipe2: New file.
41677         * doc/glibc-functions/pipe2.texi: Mention the new module.
41678
41679 2009-08-22  Bruno Haible  <bruno@clisp.org>
41680
41681         Reference some new glibc functions.
41682         * doc/glibc-functions/accept4.texi: New file.
41683         * doc/glibc-functions/dup3.texi: New file.
41684         * doc/glibc-functions/mkostemp.texi: New file.
41685         * doc/glibc-functions/pipe2.texi: New file.
41686         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41687         (Glibc sys/socket.h): Refer to accept4.
41688         (Glibc unistd.h): Refer to dup3, pipe2.
41689         Reported by Eric Blake.
41690
41691 2009-08-22  Jim Meyering  <meyering@redhat.com>
41692             Bruno Haible  <bruno@clisp.org>
41693
41694         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41695         This makes it so packages using automake-1.11's silent-rules option
41696         can print e.g., a single "GEN    configmake.h" line, rather than
41697         the 30+ statements that perform the job.  If you want to see the
41698         actual commands, you can still run "make V=1".
41699         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41700         so that make output is abbreviated when those variables are defined
41701         appropriately.
41702         * modules/argz: Likewise.
41703         * modules/arpa_inet: Likewise.
41704         * modules/byteswap: Likewise.
41705         * modules/configmake: Likewise.
41706         * modules/dirent: Likewise.
41707         * modules/errno: Likewise.
41708         * modules/fcntl: Likewise.
41709         * modules/float: Likewise.
41710         * modules/fnmatch: Likewise.
41711         * modules/getopt-posix: Likewise.
41712         * modules/glob: Likewise.
41713         * modules/iconv_open: Likewise.
41714         * modules/inttypes: Likewise.
41715         * modules/localcharset: Likewise.
41716         * modules/locale: Likewise.
41717         * modules/math: Likewise.
41718         * modules/netdb: Likewise.
41719         * modules/netinet_in: Likewise.
41720         * modules/poll: Likewise.
41721         * modules/posix_spawnp-tests: Likewise.
41722         * modules/sched: Likewise.
41723         * modules/search: Likewise.
41724         * modules/selinux-h: Likewise.
41725         * modules/signal: Likewise.
41726         * modules/spawn: Likewise.
41727         * modules/stdarg: Likewise.
41728         * modules/stdbool: Likewise.
41729         * modules/stddef: Likewise.
41730         * modules/stdint: Likewise.
41731         * modules/stdio: Likewise.
41732         * modules/stdlib: Likewise.
41733         * modules/string: Likewise.
41734         * modules/strings: Likewise.
41735         * modules/sys_file: Likewise.
41736         * modules/sys_ioctl: Likewise.
41737         * modules/sys_select: Likewise.
41738         * modules/sys_socket: Likewise.
41739         * modules/sys_stat: Likewise.
41740         * modules/sys_time: Likewise.
41741         * modules/sys_times: Likewise.
41742         * modules/sys_utsname: Likewise.
41743         * modules/sys_wait: Likewise.
41744         * modules/sysexits: Likewise.
41745         * modules/time: Likewise.
41746         * modules/unistd: Likewise.
41747         * modules/wchar: Likewise.
41748         * modules/wctype: Likewise.
41749
41750 2009-08-22  Jim Meyering  <meyering@redhat.com>
41751
41752         announce-gen: detect write failure
41753         * build-aux/announce-gen: Add Coda at end.
41754         Remove equivalent-but-more-verbose block at top.
41755
41756 2009-08-19  Akim Demaille  <demaille@gostai.com>
41757
41758         bootstrap: --help to stdout.
41759         * bootstrap (usage): Don't send --help to stderr.
41760         Use a here doc instead of a long string.
41761
41762 2009-08-21  Eric Blake  <ebb9@byu.net>
41763
41764         test-popen-safer: split from test-popen
41765         * tests/test-popen.c (main): Move...
41766         * tests/test-popen.h: ...into new file.
41767         * tests/test-popen-safer2.c: New file.
41768         * modules/popen-tests (Files): Add test-popen.h.
41769         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41770         Suggested by Bruno Haible.
41771
41772         test-fcntl-safer: split from test-open
41773         * tests/test-open.c (main): Move...
41774         * tests/test-open.h: ...into new file.
41775         * tests/test-fcntl-safer.c: New file.
41776         * modules/open-tests (Files): Add test-open.h.
41777         * modules/fcntl-safer-tests: New file.
41778         Suggested by Bruno Haible.
41779
41780         test-fopen-safer: split from test-fopen
41781         * tests/test-fopen.c (main): Move...
41782         * tests/test-fopen.h: ...into new file.
41783         * tests/test-fopen-safer.c: New file.
41784         * modules/fopen-tests (Files): Add test-fopen.h.
41785         * modules/fopen-safer-tests: New file.
41786         Suggested by Bruno Haible.
41787
41788 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41789
41790         popen-safer: test O_CLOEXEC at run-time.
41791         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41792
41793 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41794
41795         fcntl: move more flags to the header
41796         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41797         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41798         * lib/fcntl.in.h: Do both things here.
41799
41800 2009-08-21  Jim Meyering  <meyering@redhat.com>
41801
41802         consistently remove $@-t before redirecting to it
41803         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41804         * modules/alloca-opt: Likewise.
41805         * modules/byteswap: Likewise.
41806         * modules/fnmatch: Likewise.
41807         * modules/getopt-posix: Likewise.
41808         * modules/glob: Likewise.
41809         * modules/poll: Likewise.
41810         * modules/posix_spawnp-tests: Likewise.
41811         * modules/sys_socket: Likewise.
41812         * modules/sysexits: Likewise.
41813
41814 2009-08-21  Eric Blake  <ebb9@byu.net>
41815
41816         popen: simplify access to original popen
41817         * lib/popen.c (rpl_popen): No need to worry about popen being a
41818         macro.
41819         Reported by Bruno Haible.
41820
41821 2009-08-20  Eric Blake  <ebb9@byu.net>
41822
41823         build: avoid some compiler warnings
41824         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41825         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41826         type.
41827         (new_exclude_segment, excluded_file_pattern_p)
41828         (excluded_file_name_p): Reduce scope.
41829         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41830         old-style declaration.
41831
41832 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41833
41834         * tests/test-exclude1.sh: Handle Windows EOL.
41835         * tests/test-exclude2.sh: Likewise.
41836         * tests/test-exclude3.sh: Likewise.
41837         * tests/test-exclude4.sh: Likewise.
41838         * tests/test-exclude5.sh: Likewise.
41839         * tests/test-exclude6.sh: Likewise.
41840         * tests/test-exclude7.sh: Likewise.
41841
41842 2009-08-19  Akim Demaille  <demaille@gostai.com>
41843
41844         bootstrap: find sha1sum when named gsha1sum.
41845         * bootstrap (find_tool): New.
41846         ($SHA1SUM): New.
41847         Use it.
41848
41849 2009-08-20  Jim Meyering  <meyering@redhat.com>
41850
41851         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41852         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41853         expression that converts "." in a file name to "\." in the resulting
41854         regexp.  Start with a dummy statement, so that prior shell variable
41855         definitions are expanded portably.  Reported by Simon Josefsson.
41856
41857 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41858
41859         Fix polling for writeability of a screen buffer.
41860         * lib/poll.c: Distinguish input and screen buffers for the
41861         Win32 implementation.
41862         * lib/select.c: Likewise.
41863
41864 2009-08-19  Eric Blake  <ebb9@byu.net>
41865
41866         popen-safer: prevent popen from clobbering std descriptors
41867         * modules/popen-safer: New file.
41868         * lib/popen-safer.c: Likewise.
41869         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41870         * lib/stdio--.h (popen): Provide override.
41871         * lib/stdio-safer.h (popen_safer): Provide declaration.
41872         * tests/test-popen.c (includes): Partially test this.
41873         * modules/popen-safer-tests: New file, for more tests.
41874         * tests/test-popen-safer.c: Likewise.
41875         * MODULES.html.sh (file stream based Input/Output): Mention it.
41876
41877         tests: test some of the *-safer modules
41878         * modules/fopen-safer (Depends-on): Add fopen.
41879         * modules/fcntl-safer (Depends-on): Add fcntl.
41880         * modules/stdlib-safer (Depends-on): Add stdlib.
41881         (configure.ac): Set indicator.
41882         * modules/unistd-safer (configure.ac): Likewise.
41883         * modules/tmpfile-safer (configure.ac): Likewise.
41884         (Depends-on): Add tmpfile.
41885         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41886         active.
41887         * tests/test-fopen.c (includes): Test safer versions when they are
41888         in use.
41889         * tests/test-open.c (includes): Likewise.
41890
41891         popen: fix cygwin 1.5 bug when stdin closed
41892         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41893         * modules/popen: New file.
41894         * modules/popen-tests: Likewise.
41895         * tests/test-popen.c: Likewise.
41896         * m4/popen.m4: Likewise.
41897         * lib/popen.c: Likewise.
41898         * lib/stdio.in.h (popen): New declaration.
41899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41900         * modules/stdio (Makefile.am): Likewise.
41901         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41902
41903 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41904
41905         maint.mk: give full control over update-copyright exclusions
41906         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41907         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41908         (update-copyright): Don't force inclusion of top-level
41909         ChangeLog.  Don't force exclusion of all COPYING files, but make
41910         them the default exclusion instead.
41911
41912 2009-08-16  Bruno Haible  <bruno@clisp.org>
41913
41914         Fix test failures on Solaris 10.
41915         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41916         tests when Solaris iconv() is used.
41917         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41918         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41919         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41920         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41921         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41922
41923 2009-08-16  Bruno Haible  <bruno@clisp.org>
41924
41925         Fix test failures on Solaris 10.
41926         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41927         'tr' program and pass it as first argument.
41928         * tests/test-pipe-filter-gi1.sh: Likewise.
41929         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41930         program as first argument.
41931         * tests/test-pipe-filter-gi1.c (main): Likewise.
41932
41933 2009-08-16  Eric Blake  <ebb9@byu.net>
41934
41935         fpurge: fix previous commits
41936         * modules/fpurge (Makefile.am): Make replacement conditional,
41937         partially reverting 2007-04-29 change; missed in previous
41938         attempt.
41939         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41940         is missing.
41941
41942 2009-08-16  Bruno Haible  <bruno@clisp.org>
41943
41944         Clarify fpurge's effect on the file position.
41945         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41946         * tests/test-fpurge.c (main): Make a second pass for checking the file
41947         position.
41948
41949 2009-08-16  Bruno Haible  <bruno@clisp.org>
41950
41951         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41952         declaration of fpurge is missing.
41953         * tests/test-fpurge.c (main): Check that the file has not more contents
41954         than expected. Close the file before removing it.
41955
41956 2009-08-15  Eric Blake  <ebb9@byu.net>
41957
41958         fpurge: don't wrap working cygwin implementation
41959         * lib/fpurge.c (fpurge): Fix comment typo.
41960         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41961         1.7 to avoid replacement.
41962         * tests/test-fpurge.c (main): Enhance test.
41963
41964 2009-08-15  Eric Blake  <ebb9@byu.net>
41965         and Jim Meyering  <meyering@redhat.com>
41966
41967         test-update-copyright: skip if perl is insufficient
41968         * tests/test-update-copyright.sh: Failure to run maintainer tool
41969         should not cause testsuite failure on cygwin 1.5.
41970
41971 2009-08-14  Eric Blake  <ebb9@byu.net>
41972
41973         doc: mention more functions added in cygwin 1.7.0
41974         * doc/posix-headers/limits.texi (limits.h): Update for recent
41975         cygwin additions.
41976         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41977         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41978         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41979         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41980         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41981
41982 2009-08-14  Eric Blake  <ebb9@byu.net>
41983
41984         maint.mk: simplify update-copyright rule
41985         * top/maint.mk (update-copyright-local): Delete, and document how
41986         to do it in cfg.mk instead.
41987         (update-copyright-exclude-regexp): Delete, and document how to do
41988         it in .x-update-copyright instead.
41989         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41990         exclude ChangeLog.
41991
41992 2009-08-14  Bruno Haible  <bruno@clisp.org>
41993
41994         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41995
41996 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41997
41998         maint.mk: support update-copyright-env
41999         * top/maint.mk (update-copyright-env): Define place-holder.
42000         (update-copyright): Expand $(update-copyright-env) before
42001         invoking update-copyright.
42002
42003 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42004
42005         update-copyright: implement forced reformatting
42006         * build-aux/update-copyright: Implement and document
42007         UPDATE_COPYRIGHT_FORCE.
42008         * tests/test-update-copyright.sh: Test it.
42009
42010 2009-08-14  Eric Blake  <ebb9@byu.net>
42011         and Bruno Haible  <bruno@clisp.org>
42012
42013         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42014         * tests/test-locale.c: Revert previous patch related to NULL.
42015         * tests/test-stdio.c: Likewise.
42016         * tests/test-stdlib.c: Likewise.
42017         * tests/test-string.c: Likewise.
42018         * tests/test-unistd.c: Likewise.
42019         * modules/time-tests (Depends-on): Add verify.
42020         * modules/wchar-tests (Depends-on): Likewise.
42021         * tests/test-time.c: Test for NULL compliance.
42022         * tests/test-wchar.c: Likewise.
42023         * modules/locale (Depends-on): Add stddef.
42024         * modules/stdio (Depends-on): Likewise.
42025         * modules/stdlib (Depends-on): Likewise.
42026         * modules/string (Depends-on): Likewise.
42027         * modules/time (Depends-on): Likewise.
42028         * modules/unistd (Depends-on): Likewise.
42029         * modules/wchar (Depends-on): Likewise.
42030         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42031         * lib/stdlib.in.h (includes): Likewise.
42032         * lib/string.in.h (includes): Likewise.
42033         * lib/time.in.h (includes): Likewise.
42034         * lib/unistd.in.h (includes): Likewise.
42035         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42036         replaced.
42037         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42038         * m4/stddef_h.m4: New file.
42039         * modules/stddef: Likewise.
42040         * lib/stddef.in.h: Likewise.
42041         * modules/stddef-tests: Likewise.
42042         * tests/test-stddef.c: Likewise.
42043         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42044         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42045         * doc/posix-headers/locale.texi (locale.h): Likewise.
42046         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42047         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42048         * doc/posix-headers/string.texi (string.h): Likewise.
42049         * doc/posix-headers/time.texi (time.h): Likewise.
42050         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42051         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42052
42053 2009-08-14  Eric Blake  <ebb9@byu.net>
42054
42055         doc: improve git diff of texinfo files
42056         * .gitattributes: Add rule for *.texi files, with hint on how to
42057         use it.
42058         Copied from m4, and based on a report by Bruno Haible.
42059
42060 2009-08-14  Bruno Haible  <bruno@clisp.org>
42061
42062         Disable multithread support by default on Cygwin 1.5.x for real.
42063         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42064
42065 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42066
42067         update-copyright: much ado about intervals
42068         * build-aux/update-copyright: Implement and document
42069         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42070         of copyright year intervals.
42071         Also, document UPDATE_COPYRIGHT_YEAR.
42072         * tests/test-update-copyright.sh: Test it.
42073
42074         update-copyright: convert 2-digit to 4-digit years
42075         * build-aux/update-copyright: Implement and document.
42076         * tests/test-update-copyright.sh: Update.
42077
42078 2009-08-14  Jim Meyering  <meyering@redhat.com>
42079
42080         test-exclude: avoid coreutils "make check" failure
42081         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42082         just as in test-argmatch.c.
42083
42084 2009-08-13  Eric Blake  <ebb9@byu.net>
42085
42086         test-dup2: fix bad assumption
42087         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42088         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42089
42090         test-version-etc: fix CRLF portability issue
42091         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42092         recognize \r.
42093         * tests/test-argp-version-etc-1.sh: Likewise.
42094
42095         getopt: update client modules
42096         * modules/argp (Depends-on): Use getopt-gnu.
42097         * modules/git-merge-changelog (Depends-on): Likewise.
42098         * modules/long-options (Depends-on): Likewise.
42099         * modules/xstrtol (Depends-on): Likewise.
42100
42101 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42102
42103         * tests/test-version-etc.sh: Don't fail on different
42104         project/version.  Don't fail on CRLF differences.  Rewrite to use
42105         multiple -e instead of multiple sed forks, suggested by Eric Blake
42106         <ebb9@byu.net>.
42107         * tests/test-argp-version-etc-1.sh: 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.
42113
42114 2009-08-12  Bruno Haible  <bruno@clisp.org>
42115
42116         Tests for modules 'getopt-posix', 'getopt-gnu'.
42117         * modules/getopt-posix-tests: New file.
42118         * tests/test-getopt.c: New file.
42119         * tests/test-getopt.h: New file.
42120         * tests/test-getopt_long.h: New file.
42121
42122         New modules 'getopt-posix', 'getopt-gnu'.
42123         * modules/getopt-gnu: New file, renamed from modules/getopt.
42124         * modules/getopt-posix: New file.
42125         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42126         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42127         (gl_GETOPT): Remove macro.
42128         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42129         Disable the test against BSD systems that declare optreset. Test
42130         against mingw bug. Test against lack of support of optional arguments
42131         on many platforms.
42132         * doc/glibc-headers/getopt.texi: Update module name and list of
42133         relevant platforms.
42134         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42135         'getopt-gnu' and more portability problems.
42136         * NEWS: Mention the changes.
42137
42138 2009-08-12  Bruno Haible  <bruno@clisp.org>
42139
42140         Ensure that optarg etc. get declared by <unistd.h>.
42141         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42142         AC_USE_SYSTEM_EXTENSIONS.
42143         * modules/getopt (Depends-on): Add 'extensions'.
42144
42145 2009-08-12  Bruno Haible  <bruno@clisp.org>
42146
42147         Avoid test link errors.
42148         * modules/pipe-filter-ii-tests (Makefile.am): Define
42149         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42150         * modules/pipe-filter-gi-tests (Makefile.am): Define
42151         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42153
42154 2009-08-12  Bruno Haible  <bruno@clisp.org>
42155
42156         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42157         gl_GETOPT_SUBSTITUTE before.
42158         (gl_GETOPT): Use it.
42159         * m4/argp.m4 (gl_ARGP): Update.
42160         Reported by Sergey Poznyakoff.
42161
42162         * m4/getopt.m4: Reorder macros.
42163         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42164         (gl_GETOPT_SUBSTITUTE): Remove macro.
42165
42166 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42167
42168         Minor improvement in gitlog-to-changelog
42169
42170         * build-aux/gitlog-to-changelog: New option `--format' makes
42171         output format string configurable.
42172
42173 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42174
42175         Optimize exclude: use hash tables for non-wildcard patterns.
42176
42177         * lib/exclude.c: Include hash.h and mbuiter.h
42178         (struct exclude_pattern, exclude_segment): New data types.
42179         (struct exclude): Rewrite.
42180         (fnmatch_pattern_has_wildcards): New function.
42181         (new_exclude_segment, free_exclude_segment): New functions.
42182         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42183         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42184         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42185         * modules/exclude: Depend on hash and mbuiter.
42186
42187         * modules/exclude-tests: New file.
42188         * tests/test-exclude.c: New file.
42189         * tests/test-exclude1.sh: New file.
42190         * tests/test-exclude2.sh: New file.
42191         * tests/test-exclude3.sh: New file.
42192         * tests/test-exclude4.sh: New file.
42193         * tests/test-exclude5.sh: New file.
42194         * tests/test-exclude6.sh: New file.
42195         * tests/test-exclude7.sh: New file.
42196
42197 2009-08-12  Bruno Haible  <bruno@clisp.org>
42198
42199         Ensure that getopt() gets declared by <unistd.h>.
42200         * lib/unistd.in.h: Conditionally include getopt.h.
42201         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42202         Set GNULIB_UNISTD_H_GETOPT.
42203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42204         GNULIB_UNISTD_H_GETOPT.
42205         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42206
42207 2009-08-12  Bruno Haible  <bruno@clisp.org>
42208
42209         Clarify logic.
42210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42211         gl_replace_getopt instead of GETOPT_H.
42212
42213 2009-08-12  Bruno Haible  <bruno@clisp.org>
42214
42215         * m4/getopt.m4: Add comments.
42216
42217 2009-08-12  Bruno Haible  <bruno@clisp.org>
42218
42219         Disable multithread support by default on Cygwin 1.5.x.
42220         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42221         set gl_use_threads=no if not specified otherwise.
42222
42223 2009-08-11  Bruno Haible  <bruno@clisp.org>
42224
42225         Avoid compilation error on NetBSD 5.0.
42226         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42227         * tests/test-stdio.c: Likewise.
42228         * tests/test-stdlib.c: Likewise.
42229         * tests/test-string.c: Likewise.
42230         * tests/test-unistd.c: Likewise.
42231         Reported by Greg Troxel <gdt@ir.bbn.com>
42232         at <https://savannah.gnu.org/support/?106973>.
42233
42234 2009-08-11  Bruno Haible  <bruno@clisp.org>
42235
42236         * modules/dup2-tests (Depends-on): Remove close.
42237
42238         Undo 2009-07-19 commit.
42239         * modules/acl-tests (Depends-on): Remove close.
42240         * modules/binary-io-tests (Depends-on): Likewise.
42241         * modules/closein-tests (Depends-on): Likewise.
42242         * modules/flock-tests (Depends-on): Likewise.
42243         * modules/fsync-tests (Depends-on): Likewise.
42244         * modules/lseek-tests (Depends-on): Likewise.
42245         * modules/pipe-tests (Depends-on): Likewise.
42246         * modules/posix_spawn-tests (Depends-on): Likewise.
42247         * modules/posix_spawnp-tests (Depends-on): Likewise.
42248         * modules/stat-time-tests (Depends-on): Likewise.
42249         * modules/yesno-tests (Depends-on): Likewise.
42250
42251 2009-08-10  Bruno Haible  <bruno@clisp.org>
42252
42253         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42254
42255 2009-08-10  Bruno Haible  <bruno@clisp.org>
42256
42257         Fix a gcc warning.
42258         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42259
42260 2009-08-10  Bruno Haible  <bruno@clisp.org>
42261
42262         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42263         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42264         not only the first time.
42265         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42266         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42267         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42268         is 1, not only the the first time.
42269
42270 2009-08-10  Bruno Haible  <bruno@clisp.org>
42271
42272         Make it possible to use module 'gethostname' without module 'close'.
42273         * lib/unistd.in.h (close): Evoke a link error only if
42274         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42276         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42277         * modules/unistd (Makefile.am): Substitute
42278         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42279         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42280         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42281         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42282         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42283         * modules/sys_ioctl (Makefile.am): Substitute
42284         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42285         * modules/socket (configure.ac): On native Windows, set
42286         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42287         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42288         Reported by Sam Steingold <sds@gnu.org>.
42289
42290 2009-08-10  Bruno Haible  <bruno@clisp.org>
42291
42292         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42293         * modules/ioctl (configure.ac): Likewise.
42294
42295 2009-08-10  Bruno Haible  <bruno@clisp.org>
42296
42297         Avoid collision between gnulib wrapper and libintl wrapper.
42298         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42299         already defined in intl/printf.c.
42300         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42301         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42302
42303 2009-08-09  Bruno Haible  <bruno@clisp.org>
42304
42305         Make <sys/select.h> really self-contained, also on Solaris 10.
42306         * lib/sys_select.in.h: Include <string.h>.
42307         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42308         Solaris 10 problem.
42309         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42310         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42311         Reported by Jim Meyering.
42312
42313 2009-08-09  Bruno Haible  <bruno@clisp.org>
42314
42315         Avoid warnings from 'aclocal' that are due to a use of macro name
42316         AM_XGETTEXT_OPTION that is not defined in automake.
42317         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42318         automake.
42319         * modules/error (configure.ac): Likewise.
42320         * modules/propername (configure.ac): Likewise.
42321         * modules/vasprintf (configure.ac): Likewise.
42322         * modules/verror (configure.ac): Likewise.
42323         * modules/xprintf (configure.ac): Likewise.
42324         * modules/xvasprintf (configure.ac): Likewise.
42325
42326 2009-08-08  Bruno Haible  <bruno@clisp.org>
42327
42328         Avoid compilation error in C++ mode.
42329         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42330         Reported by Sam Steingold <sds@gnu.org>.
42331
42332 2009-08-08  Bruno Haible  <bruno@clisp.org>
42333
42334         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42335         for the various Unix platforms.
42336         * doc/posix-headers/limits.texi: Update platforms list regarding
42337         HOST_NAME_MAX.
42338         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42339
42340 2009-08-07  Jim Meyering  <meyering@redhat.com>
42341
42342         selinux-at: fix typo in a comment
42343         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42344         Spotted by Paolo Bonzini.
42345
42346         selinux-at: remove redundant m4 code, add documentation
42347         * modules/selinux-at (configure.ac): Remove redundant code.
42348         LIB_SELINUX is already set via the dependent module, selinux-h.
42349         (Include): Add quotes around selinux-at.h.
42350         * lib/selinux-at.h: Add documentation.
42351         Reported by Bruno Haible in
42352         http://marc.info/?l=gnulib-bug&m=124958988300749
42353
42354 2009-08-07  Bruno Haible  <bruno@clisp.org>
42355
42356         Avoid link error on MacOS X 10.3 and 10.4.
42357         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42358         on non-ELF systems.
42359         * lib/argp-pv.c (argp_program_version): Likewise.
42360         Reported by Simon Josefsson.
42361
42362 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42363
42364         * tests/test-version-etc.sh: Use $EXEEXT.
42365
42366 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42367
42368         update-copyright: update documentation to point to maint.mk
42369         * build-aux/update-copyright: Here.
42370
42371 2009-08-06  Jim Meyering  <meyering@redhat.com>
42372
42373         maint.mk: support update-copyright-local
42374         * top/maint.mk (update-copyright-local): Define place-holder.
42375         (update-copyright): Depend on $(update-copyright-local).
42376
42377 2009-08-06  Jim Meyering  <meyering@redhat.com>
42378
42379         selinux-at: new module
42380         Initially written for coreutils, this module will soon be
42381         used by findutils, too.
42382         * MODULES.html.sh [Misc]: Add selinux-at.
42383         * lib/selinux-at.h: New file, from coreutils.
42384         * lib/selinux-at.c: Likewise.
42385         * modules/selinux-at: Likewise.
42386         (License): Change from LGPL to GPL, since it depends
42387         on the GPL'd openat module.
42388
42389         doc: update README
42390         * README: Remove references to cogito.
42391         Remove cvs-repo-updating instructions from 2007.
42392         Don't imply that CVS is better if you have limited disk space.
42393
42394 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42395
42396         update-copyright: support C-style comments
42397         * build-aux/update-copyright: Implement and document.
42398         * tests/test-update-copyright.sh: Test.
42399
42400 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42401
42402         update-copyright: support omitted "(C)"
42403         * build-aux/update-copyright: Implement and document.  Also,
42404         allow variable whitespace before "(C)".
42405         * tests/test-update-copyright.sh: Test.
42406
42407 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42408
42409         update-copyright: don't trip on non-FSF copyright statements
42410         * build-aux/update-copyright: Fix so that the first correctly
42411         formatted FSF copyright statement is recognized no matter what
42412         appears before it.  Update documentation.
42413         * tests/test-update-copyright.sh: Test that.
42414
42415 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42416
42417         update-copyright: clean up code a little
42418         * build-aux/update-copyright: Append "_re" to the name of any
42419         variable holding a regular expression.
42420         Replace "old" and "new" with "stmt" in variable names.
42421         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42422         handled correctly.
42423         Format code more consistently.
42424
42425 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42426
42427         update-copyright-tests: improve portability
42428         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42429         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42430
42431 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42432
42433         update-copyright: support @copyright{} and &copy;
42434         * build-aux/update-copyright: Implement and document.
42435         * tests/test-update-copyright.sh: Test.
42436
42437 2009-08-04  Jim Meyering  <meyering@redhat.com>
42438
42439         update-copyright-tests: correctly test EOL=\r\n handling
42440         * tests/test-update-copyright.sh: Put \r at the end of some lines
42441         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42442
42443         maint.mk: make update-copyright exclusion list more configurable
42444         * top/maint.mk (update-copyright): Default to excluding COPYING,
42445         but allow an override, in case someone does want to update that file.
42446
42447         maint.mk: don't update copyright date in COPYING
42448         * top/maint.mk (update-copyright): Exclude COPYING.
42449
42450         maint.mk: add a copyright-updating rule
42451         * top/maint.mk (update-copyright): New rule.
42452         Derived from coreutils/Makefile.am.
42453
42454         update-copyright: rename some variables
42455         * build-aux/update-copyright: Rename a few variables for clarity.
42456         Tweak syntax.  List Joel E. Denny as coauthor.
42457
42458 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42459
42460         update-copyright: fix bug for 2-digit last year and add tests
42461         * build-aux/update-copyright: Fix bug.
42462         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42463         specified.
42464         * modules/update-copyright-tests: New
42465         * tests/test-update-copyright.sh: New.
42466
42467 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42468
42469         update-copyright: handle leading tabs in line prefix
42470         * build-aux/update-copyright: Count leading tabs as 8 spaces
42471         when computing margin.  This helps with the formatting of
42472         ChangeLogs, for example.
42473         Fix documentation a little.
42474
42475 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42476
42477         update-copyright: support EOL=\r\n
42478         * build-aux/update-copyright: Implement that.
42479
42480 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42481
42482         update-copyright: automatically format copyright statements
42483         * build-aux/update-copyright: Implement that.
42484         Also, be a little more predictable and safer by always failing
42485         when the full copyright format is not perfectly recognized as an
42486         unbroken whole.  Discussed at
42487         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42488         Rewrite documentation.
42489
42490 2009-08-03  Bruno Haible  <bruno@clisp.org>
42491
42492         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42493
42494 2009-08-02  Bruno Haible  <bruno@clisp.org>
42495
42496         Tests for module 'uname'.
42497         * modules/uname-tests: New file.
42498         * tests/test-uname.c: New file.
42499
42500         New module 'uname'.
42501         * lib/uname.c: New file.
42502         * m4/uname.m4: New file.
42503         * modules/uname: New file.
42504         * doc/posix-functions/uname.texi: Mention the new module.
42505
42506 2009-08-02  Bruno Haible  <bruno@clisp.org>
42507
42508         Tests for module 'sys_utsname'.
42509         * modules/sys_utsname-tests: New file.
42510         * tests/test-sys_utsname.c: New file.
42511
42512         New module 'sys_utsname'.
42513         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42514         * m4/sys_utsname_h.m4: New file.
42515         * modules/sys_utsname: New file.
42516         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42517
42518 2009-08-02  Bruno Haible  <bruno@clisp.org>
42519
42520         Implicitly initialize the sockets library.
42521         * lib/gethostname.c: Include sockets.h.
42522         (rpl_gethostname): Invoke gl_sockets_startup.
42523         * lib/socket.c: Include sockets.h.
42524         (rpl_socket): Invoke gl_sockets_startup.
42525         * modules/gethostname (Depends-on): Add sockets.
42526         * modules/socket (Depends-on): Likewise.
42527         * tests/test-poll.c: Don't include sockets.h.
42528         (main): Don't invoke gl_sockets_startup.
42529         * tests/test-select.c: Don't include sockets.h.
42530         (main): Don't invoke gl_sockets_startup.
42531
42532 2009-08-02  Bruno Haible  <bruno@clisp.org>
42533
42534         Allow multiple calls to gl_sockets_startup.
42535         * lib/sockets.c (initialized_sockets_version): New variable.
42536         (gl_sockets_startup): Do nothing if already called for this or a higher
42537         version.
42538         (gl_sockets_cleanup): Reset initialized_sockets_version.
42539
42540 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42541
42542         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42543         different project/version.
42544
42545 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42546             Bruno Haible  <bruno@clisp.org>
42547
42548         Tests for module 'pipe-filter-gi'.
42549         * modules/pipe-filter-gi-tests: New file.
42550         * tests/test-pipe-filter-gi1.sh: New file.
42551         * tests/test-pipe-filter-gi1.c: New file.
42552         * tests/test-pipe-filter-gi2.sh: New file.
42553         * tests/test-pipe-filter-gi2-main.c: New file.
42554         * tests/test-pipe-filter-gi2-child.c: New file.
42555
42556         New module 'pipe-filter-gi'.
42557         * lib/pipe-filter-gi.c: New file.
42558         * modules/pipe-filter-gi: New file.
42559
42560 2009-08-02  Bruno Haible  <bruno@clisp.org>
42561             Paolo Bonzini  <bonzini@gnu.org>
42562
42563         Tests for module 'pipe-filter-ii'.
42564         * modules/pipe-filter-ii-tests: New file.
42565         * tests/test-pipe-filter-ii1.sh: New file.
42566         * tests/test-pipe-filter-ii1.c: New file.
42567         * tests/test-pipe-filter-ii2.sh: New file.
42568         * tests/test-pipe-filter-ii2-main.c: New file.
42569         * tests/test-pipe-filter-ii2-child.c: New file.
42570
42571         New module 'pipe-filter-ii'.
42572         * lib/pipe-filter.h: New file.
42573         * lib/pipe-filter-ii.c: New file.
42574         * lib/pipe-filter-aux.h: New file.
42575         * modules/pipe-filter-ii: New file.
42576
42577 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42578
42579         * lib/gc-libgcrypt.c: Change copyright to FSF.
42580         * lib/gc-gnulib.c: Likewise.
42581
42582 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42583
42584         * lib/gethostname.c: Include limits.h.
42585
42586 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42587             Bruno Haible  <bruno@clisp.org>
42588
42589         Ensure HOST_NAME_MAX as part of the gethostname module.
42590         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42591         define also HOST_NAME_MAX.
42592         * tests/test-gethostname.c: Include <limits.h>.
42593         (main): Check also HOST_NAME_MAX.
42594         * doc/posix-headers/limits.texi: Document the mingw problem.
42595
42596 2009-08-02  Bruno Haible  <bruno@clisp.org>
42597
42598         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42599         Add comments.
42600
42601 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42602
42603         * lib/gethostname.c: Add Windows wrapper.
42604         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42605         * modules/gethostname: Depend on sys_socket & errno, for also
42606         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42607         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42608
42609 2009-07-31  Jim Meyering  <meyering@redhat.com>
42610
42611         getloadavg: fix symbol name in comment
42612         * lib/getloadavg.c: Correct a typo I introduced when adding
42613         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42614         Matt Kraai spotted the problem.
42615
42616 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42617
42618         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42619         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42620         code also if ! defined N_NAME_POINTER.
42621         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42622         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42623         but the n_name member is a 12-byte array.
42624
42625 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42626
42627         update-copyright: generalize comment handling
42628         * build-aux/update-copyright: Handle copyright statements
42629         within more comment styles.
42630         Document usage.
42631         Report any file with an external copyright holder or parse failure.
42632
42633 2009-07-29  Jim Meyering  <meyering@redhat.com>
42634
42635         mktime: correct setting of REPLACE_MKTIME
42636         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42637
42638         update-copyright: new module
42639         * modules/update-copyright: New file.
42640         * build-aux/update-copyright: New file.
42641         * MODULES.html.sh (maint+release support): Add update-copyright.
42642
42643 2009-07-27  Bruno Haible  <bruno@clisp.org>
42644
42645         Fix compilation error when <ctime> is used and mktime is replaced.
42646         * lib/time.in.h (mktime): New declaration.
42647         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42648         REPLACE_MKTIME instead of defining mktime in config.h.
42649         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42650         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42651         Reported by Ross McFarland <rwmcfa1@neces.com>.
42652
42653 2009-07-27  Bruno Haible  <bruno@clisp.org>
42654
42655         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42656         Reported by Matt Kraai <mkraai@beckman.com>.
42657
42658 2009-07-25  Jim Meyering  <meyering@redhat.com>
42659
42660         maint.mk: avoid warnings about missing files
42661         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42662         diagnostic when .prev-version does not exist.
42663         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42664         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42665         nonexistent cfg.mk.
42666         Suggestions from Simon Josefsson.
42667
42668 2009-07-25  Bruno Haible  <bruno@clisp.org>
42669
42670         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42671         defined as macros. Needed on QNX 6.4.1.
42672         Reported by Matt Kraai <mkraai@beckman.com>.
42673
42674 2009-07-23  Jim Meyering  <meyering@redhat.com>
42675
42676         maint.mk: invoke "make dist" with a working value of XZ_OPT
42677         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42678
42679 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42680
42681         Make fseeko.c compile on QNX.
42682         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42683
42684 2009-07-22  Peter Simons  <simons@cryp.to>
42685
42686         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42687         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42688         * lib/md4.h: Likewise.
42689         * lib/md5.h: Likewise.
42690         * lib/sha1.h: Likewise.
42691         * lib/sha256.h: Likewise.
42692         * lib/sha512.h: Likewise.
42693
42694         tests-sha1: don't assign literal string to 'char *' variable
42695         * tests/test-sha1.c (main): Declare locals with "const" to match
42696         attributes of the right hand side.
42697
42698 2009-07-21  Eric Blake  <ebb9@byu.net>
42699
42700         dup2: fix more mingw problems
42701         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42702         fd to itself.
42703         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42704         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42705         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42706         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42707         care of mingw bugs.
42708
42709 2009-07-21  Jim Meyering  <meyering@redhat.com>
42710
42711         vc-list-files: avoid failure when /bin/sh is dash
42712         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42713         On some Debian based systems, /bin/sh is a symlink to dash, and running
42714         this command would omit the "/" following each 'tests' prefix:
42715           dash -x build-aux/vc-list-files -C . tests
42716         That is because bash and dash work differently:
42717           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42718           bash ok
42719           dash odd
42720
42721 2009-07-21  Eric Blake  <ebb9@byu.net>
42722
42723         dup2-tests: test previous patch
42724         * modules/dup2-tests: New file.
42725         * tests/test-dup2.c: Likewise.
42726         * tests/test-open.c (main): Avoid unspecified behavior.
42727         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42728         test.
42729
42730         dup2: work around mingw and cygwin 1.5 bug
42731         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42733         * modules/unistd (Makefile.am): Substitute it.
42734         * lib/unistd.in.h (dup2): Declare the replacement.
42735         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42736         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42737         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42738         * modules/execute (Depends-on): Add dup2.
42739         * modules/fseterr (Depends-on): Likewise.
42740         * modules/pipe (Depends-on): Likewise.
42741         * modules/posix_spawn-internal (Depends-on): Likewise.
42742
42743 2009-07-21  Bruno Haible  <bruno@clisp.org>
42744
42745         * modules/.gitattributes: New file.
42746
42747 2009-07-20  Bruno Haible  <bruno@clisp.org>
42748
42749         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42750         (main): Use it.
42751
42752 2009-07-20  Eric Blake  <ebb9@byu.net>
42753
42754         test-pipe: make a bit more robust.
42755         * tests/test-pipe.c (myerr): Allow error messages regardless of
42756         what we do to stderr.
42757         (test_pipe): Rearrange to avoid deadlock.
42758         (child_main): Try a larger read, to ensure we avoided deadlock.
42759         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42760         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42761         if misused.
42762
42763 2009-07-19  Jim Meyering  <meyering@redhat.com>
42764
42765         fts: avoid false-positive cycle-detection
42766         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42767         for each new command line argument.
42768
42769 2009-07-19  Bruno Haible  <bruno@clisp.org>
42770
42771         Fix build error on mingw with the modules sys_select and unistd.
42772         * modules/acl-tests (Depends-on): Add close.
42773         * modules/binary-io-tests (Depends-on): Likewise.
42774         * modules/closein-tests (Depends-on): Likewise.
42775         * modules/flock-tests (Depends-on): Likewise.
42776         * modules/fsync-tests (Depends-on): Likewise.
42777         * modules/lseek-tests (Depends-on): Likewise.
42778         * modules/pipe-tests (Depends-on): Likewise.
42779         * modules/posix_spawn-tests (Depends-on): Likewise.
42780         * modules/posix_spawnp-tests (Depends-on): Likewise.
42781         * modules/stat-time-tests (Depends-on): Likewise.
42782         * modules/yesno-tests (Depends-on): Likewise.
42783
42784 2009-07-19  Bruno Haible  <bruno@clisp.org>
42785
42786         Unify conditionals.
42787         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42788         macros, not at the compiler macros.
42789         * lib/pipe.c: Likewise.
42790         * lib/execute.c: Likewise.
42791         * lib/spawni.c: Likewise.
42792
42793 2009-07-19  Bruno Haible  <bruno@clisp.org>
42794
42795         Fix handling of closed stdin/stdout/stderr on mingw.
42796         * lib/w32spawn.h: Include unistd.h.
42797         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42798         file descriptor with O_NOINHERIT flag.
42799         (fd_safer_noinherit): New function, based on fd-safer.c.
42800         (dup_safer_noinherit): New function, based on dup-safer.c.
42801         (undup_safer_noinherit): New function.
42802         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42803         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42804         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42805         instead of fd_safer.
42806         * tests/test-pipe.c: Include <windows.h>.
42807         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42808         result.
42809
42810         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42811         from main.
42812         (test_pipe): Pass an extra argument for disambiguation.
42813         (main): Invoke parent_main or child_main.
42814
42815         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42816         consistently.
42817
42818 2009-07-18  Eric Blake  <ebb9@byu.net>
42819
42820         test-pipe: fix mingw build
42821         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42822
42823 2009-07-18  Bruno Haible  <bruno@clisp.org>
42824
42825         * modules/pipe-tests (Makefile.am): Fix typo.
42826
42827 2009-07-18  Eric Blake  <ebb9@byu.net>
42828
42829         error: fix mingw build
42830         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42831         Reported by Bruno Haible.
42832
42833         error: avoid undefined use of stdout
42834         * lib/error.c (error, error_at_line): Check that fd 1 is open
42835         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42836         is handling faults and the close_stdout module wants to report the
42837         detection of closed stdout as an error.
42838
42839 2009-07-17  Eric Blake  <ebb9@byu.net>
42840
42841         pipe: be robust in face of closed fds
42842         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42843         should cause child to misbehave.
42844         * modules/pipe-tests: New module.
42845         * tests/test-pipe.c: New file.
42846         * tests/test-pipe.sh: New file.
42847         Reported by Akim Demaille.
42848
42849 2009-07-14  Bruno Haible  <bruno@clisp.org>
42850
42851         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42852         Reported by anonymous kc.
42853
42854 2009-07-07  Jim Meyering  <meyering@redhat.com>
42855
42856         maint.mk: don't look for translatable strings in *.m4 or *.mk
42857         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42858         when searching for translatable strings.
42859
42860 2009-07-05  Jim Meyering  <meyering@redhat.com>
42861
42862         remove superfluous parentheses in STREQ definition
42863         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42864         * lib/getugroups.c (STREQ): Likewise.
42865         * lib/fnmatch.c (STREQ): Likewise.
42866         Spotted by Bruno Haible.
42867
42868 2009-07-04  Jim Meyering  <meyering@redhat.com>
42869
42870         argv-iter: new module
42871         * MODULES.html.sh: Add argv-iter.
42872         * lib/argv-iter.c, lib/argv-iter.h: New files.
42873         * modules/argv-iter: New file.
42874         * modules/argv-iter-tests: New file.
42875         * tests/test-argv-iter.c: Test it.
42876
42877 2009-07-04  Bruno Haible  <bruno@clisp.org>
42878
42879         Fix assertion.
42880         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42881         contains more exact copies of a given entry than file2, leave the extra
42882         copies unpaired rather than aborting.
42883         Reported by Eric Blake.
42884
42885 2009-07-02  Bruno Haible  <bruno@clisp.org>
42886
42887         Speedup git-merge-changelog for git cherry-pick.
42888         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42889         (entries_mapping_get): New function, extracted from compute_mapping.
42890         (entries_mapping_reverse_get): New function.
42891         (compute_mapping): Add a 'full' argument. Return the result in a
42892         'struct entries_mapping'.
42893         (main): Update. Access the mappings through entries_mapping_get.
42894         Reported by Eric Blake.
42895
42896 2009-07-02  Bruno Haible  <bruno@clisp.org>
42897
42898         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42899         best_i.
42900
42901 2009-07-02  Bruno Haible  <bruno@clisp.org>
42902
42903         Speed up approximate search for matching ChangeLog entries.
42904         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42905         argument. Call fstrcmp_bounded instead of fstrcmp.
42906         (compute_mapping, try_split_merged_entry, main): Update callers.
42907
42908 2009-07-02  Bruno Haible  <bruno@clisp.org>
42909
42910         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42911
42912 2009-06-30  Bruno Haible  <bruno@clisp.org>
42913
42914         Reduce the number of uc_is_cased calls.
42915         * lib/unicase.h (casing_suffix_context_t): Add
42916         'first_char_except_ignorable' field.
42917         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42918         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42919         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42920         Update initializer.
42921         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42922         case-ignorable characters.
42923         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42924         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42925         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42926         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42927         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42928
42929 2009-06-30  Bruno Haible  <bruno@clisp.org>
42930
42931         Tests for module 'unicase/ignorable'.
42932         * modules/unicase/ignorable-tests: New file.
42933         * tests/unicase/test-ignorable.c: New file, generated by
42934         gen-uni-tables.
42935
42936         Tests for module 'unicase/cased'.
42937         * modules/unicase/cased-tests: New file.
42938         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42939         * tests/unicase/test-predicate-part1.h: New file, derived from
42940         tests/unictype/test-predicate-part1.h.
42941         * tests/unicase/test-predicate-part2.h: New file, same as
42942         tests/unictype/test-predicate-part2.h.
42943
42944         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42945         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42946         (output_casing_properties): New function.
42947         (main): Call it.
42948         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42949         * lib/unicase/cased.c: Include unictype/bitmap.h.
42950         (uc_is_cased): Define through a bitmap lookup.
42951         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42952         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42953         (uc_is_case_ignorable): Define through a bitmap lookup.
42954         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42955         lib/unictype/bitmap.h.
42956         (Depends-on): Add inline. Clean up.
42957         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42958         lib/unictype/bitmap.h.
42959         (Depends-on): Add inline. Clean up.
42960         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42961         recognition.
42962         * tests/unicase/test-u16-tolower.c (main): Likewise.
42963         * tests/unicase/test-u32-tolower.c (main): Likewise.
42964
42965 2009-06-30  Bruno Haible  <bruno@clisp.org>
42966
42967         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42968         * lib/unicase/u16-casemap.c: Likewise.
42969         * lib/unicase/u32-casemap.c: Likewise.
42970
42971 2009-06-29  Bruno Haible  <bruno@clisp.org>
42972
42973         Define u32_casefold as a wrapper around u32_ct_casefold.
42974         * lib/unicase/u32-casefold.c: Update.
42975         * modules/unicase/u32-casefold (Depends-on): Add
42976         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42977         unicase/empty-suffix-context. Clean up.
42978
42979         Define u16_casefold as a wrapper around u16_ct_casefold.
42980         * lib/unicase/u16-casefold.c: Update.
42981         * modules/unicase/u16-casefold (Depends-on): Add
42982         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42983         unicase/empty-suffix-context. Clean up.
42984
42985         Define u8_casefold as a wrapper around u8_ct_casefold.
42986         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42987         * lib/unicase/u8-casefold.c: Update.
42988         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42989         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42990
42991         Define u32_totitle as a wrapper around u32_ct_totitle.
42992         * lib/unicase/u32-totitle.c: Update.
42993         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42994         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42995
42996         Define u16_totitle as a wrapper around u16_ct_totitle.
42997         * lib/unicase/u16-totitle.c: Update.
42998         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42999         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43000
43001         Define u8_totitle as a wrapper around u8_ct_totitle.
43002         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43003         functions.
43004         (FUNC): Delegate to U_CT_TOTITLE.
43005         * lib/unicase/u8-totitle.c: Update.
43006         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43007         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43008
43009         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43010         invocation.
43011         * modules/unicase/u32-tolower (Depends-on): Add
43012         unicase/empty-prefix-context, unicase/empty-suffix-context.
43013
43014         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43015         invocation.
43016         * modules/unicase/u16-tolower (Depends-on): Add
43017         unicase/empty-prefix-context, unicase/empty-suffix-context.
43018
43019         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43020         * modules/unicase/u8-tolower (Depends-on): Add
43021         unicase/empty-prefix-context, unicase/empty-suffix-context.
43022
43023         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43024         invocation.
43025         * modules/unicase/u32-toupper (Depends-on): Add
43026         unicase/empty-prefix-context, unicase/empty-suffix-context.
43027
43028         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43029         invocation.
43030         * modules/unicase/u16-toupper (Depends-on): Add
43031         unicase/empty-prefix-context, unicase/empty-suffix-context.
43032
43033         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43034         * modules/unicase/u8-toupper (Depends-on): Add
43035         unicase/empty-prefix-context, unicase/empty-suffix-context.
43036
43037         New module 'unicase/u32-ct-casefold'.
43038         * lib/unicase/u32-ct-casefold.c: New file.
43039         * modules/unicase/u32-ct-casefold: New file.
43040
43041         New module 'unicase/u16-ct-casefold'.
43042         * lib/unicase/u16-ct-casefold.c: New file.
43043         * modules/unicase/u16-ct-casefold: New file.
43044
43045         New module 'unicase/u8-ct-casefold'.
43046         * lib/unicase/u8-ct-casefold.c: New file.
43047         * lib/unicase/u-ct-casefold.h: New file, derived from
43048         lib/unicase/u-casefold.h.
43049         * modules/unicase/u8-ct-casefold: New file.
43050
43051         New module 'unicase/u32-ct-totitle'.
43052         * lib/unicase/u32-ct-totitle.c: New file.
43053         * modules/unicase/u32-ct-totitle: New file.
43054
43055         New module 'unicase/u16-ct-totitle'.
43056         * lib/unicase/u16-ct-totitle.c: New file.
43057         * modules/unicase/u16-ct-totitle: New file.
43058
43059         New module 'unicase/u8-ct-totitle'.
43060         * lib/unicase/u8-ct-totitle.c: New file.
43061         * lib/unicase/u-ct-totitle.h: New file, derived from
43062         lib/unicase/u-totitle.h.
43063         * modules/unicase/u8-ct-totitle: New file.
43064
43065         New module 'unicase/u32-ct-tolower'.
43066         * lib/unicase/u32-ct-tolower.c: New file.
43067         * modules/unicase/u32-ct-tolower: New file.
43068
43069         New module 'unicase/u16-ct-tolower'.
43070         * lib/unicase/u16-ct-tolower.c: New file.
43071         * modules/unicase/u16-ct-tolower: New file.
43072
43073         New module 'unicase/u8-ct-tolower'.
43074         * lib/unicase/u8-ct-tolower.c: New file.
43075         * modules/unicase/u8-ct-tolower: New file.
43076
43077         New module 'unicase/u32-ct-toupper'.
43078         * lib/unicase/u32-ct-toupper.c: New file.
43079         * modules/unicase/u32-ct-toupper: New file.
43080
43081         New module 'unicase/u16-ct-toupper'.
43082         * lib/unicase/u16-ct-toupper.c: New file.
43083         * modules/unicase/u16-ct-toupper: New file.
43084
43085         New module 'unicase/u8-ct-toupper'.
43086         * lib/unicase/u8-ct-toupper.c: New file.
43087         * modules/unicase/u8-ct-toupper: New file.
43088
43089         Add context arguments to u*_casemap functions.
43090         * lib/unicase/unicasemap.h: Include unicase.h.
43091         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43092         suffix_context arguments.
43093         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43094         functions.
43095         (FUNC): Add prefix_context and suffix_context arguments. Use
43096         uc_is_cased and uc_is_case_ignorable.
43097         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43098         * lib/unicase/u16-casemap.c: Likewise.
43099         * lib/unicase/u32-casemap.c: Likewise.
43100         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43101         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43102         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43103         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43104         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43105         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43106
43107         New module 'unicase/u32-suffix-context'.
43108         * lib/unicase/u32-suffix-context.c: New file.
43109         * modules/unicase/u32-suffix-context: New file.
43110
43111         New module 'unicase/u16-suffix-context'.
43112         * lib/unicase/u16-suffix-context.c: New file.
43113         * modules/unicase/u16-suffix-context: New file.
43114
43115         New module 'unicase/u8-suffix-context'.
43116         * lib/unicase/u8-suffix-context.c: New file.
43117         * lib/unicase/u-suffix-context.h: New file.
43118         * modules/unicase/u8-suffix-context: New file.
43119
43120         New module 'unicase/empty-suffix-context'.
43121         * lib/unicase/empty-suffix-context.c: New file.
43122         * modules/unicase/empty-suffix-context: New file.
43123
43124         New module 'unicase/u32-prefix-context'.
43125         * lib/unicase/u32-prefix-context.c: New file.
43126         * modules/unicase/u32-prefix-context: New file.
43127
43128         New module 'unicase/u16-prefix-context'.
43129         * lib/unicase/u16-prefix-context.c: New file.
43130         * modules/unicase/u16-prefix-context: New file.
43131
43132         New module 'unicase/u8-prefix-context'.
43133         * lib/unicase/u8-prefix-context.c: New file.
43134         * lib/unicase/u-prefix-context.h: New file.
43135         * lib/unicase/context.h: New file.
43136         * modules/unicase/u8-prefix-context: New file.
43137
43138         New module 'unicase/empty-prefix-context'.
43139         * lib/unicase/empty-prefix-context.c: New file.
43140         * modules/unicase/empty-prefix-context: New file.
43141
43142         New module 'unicase/ignorable'.
43143         * lib/unicase/ignorable.c: New file.
43144         * modules/unicase/ignorable: New file.
43145
43146         New module 'unicase/cased'.
43147         * lib/unicase/caseprop.h: New file.
43148         * lib/unicase/cased.c: New file.
43149         * modules/unicase/cased: New file.
43150
43151         New functions for case mapping of substrings.
43152         * lib/unicase.h (casing_prefix_context_t): New type.
43153         (unicase_empty_prefix_context): New variable.
43154         (u8_casing_prefix_context, u16_casing_prefix_context,
43155         u32_casing_prefix_context, u8_casing_prefixes_context,
43156         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43157         declarations.
43158         (casing_suffix_context_t): New type.
43159         (unicase_empty_suffix_context): New variable.
43160         (u8_casing_suffix_context, u16_casing_suffix_context,
43161         u32_casing_suffix_context, u8_casing_suffixes_context,
43162         u16_casing_suffixes_context, u32_casing_suffixes_context,
43163         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43164         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43165         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43166         declarations.
43167
43168 2009-06-28  Jim Meyering  <meyering@redhat.com>
43169
43170         boostrap: indent only with spaces
43171         * build-aux/bootstrap: Indent only with spaces, never TABs.
43172
43173         bootstrap: split long lines
43174         * build-aux/bootstrap: Keep line length < 80.
43175
43176         bootstrap: sync from coreutils
43177         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43178         just as autoreconf does.  Verify a list of prerequisite
43179         package-name,version-number pairs if defined in bootstrap.conf.
43180         Refer to README-prereq, if prerequisites are not satisfied.
43181
43182 2009-06-27  Eric Blake  <ebb9@byu.net>
43183
43184         tests: add test for bogus NULL definition
43185         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43186         * tests/test-stdlib.c: Likewise.
43187         * tests/test-string.c: Likewise.
43188         * tests/test-locale.c: Likewise.
43189         * tests/test-unistd.c: Likewise.
43190         * modules/stdio-tests (Depends-on): Add verify.
43191         * modules/stdlib-tests (Depends-on): Likewise.
43192         * modules/string-tests (Depends-on): Likewise.
43193         * modules/locale-tests (Depends-on): Likewise.
43194         * modules/unistd-tests (Depends-on): Likewise.
43195
43196 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43197
43198         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43199         self-explaining comment.
43200         * m4/selinux-selinux-h: Update serial.
43201         (gl_LIBSELINUX): New macro, adding a warning for missing development
43202         packages to code extracted from...
43203         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43204         Add warning for missing development packages here, too.
43205
43206 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43207
43208         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43209
43210 2009-06-25  Eric Blake  <ebb9@byu.net>
43211
43212         version-etc: fix regression
43213         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43214         gcc.
43215         (version_etc): Use it, to catch bugs with trailing NULL.
43216         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43217         (version_etc_va): Fix logic bug.
43218         * modules/version-etc-tests: Add test.
43219         * tests/test-version-etc.c: New file.
43220         * tests/test-version-etc.sh: Likewise.
43221
43222 2009-06-25  Sam Steingold  <sds@gnu.org>
43223
43224         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43225         mbtowc declaration.
43226
43227 2009-06-25  Eric Blake  <ebb9@byu.net>
43228
43229         fpurge: migrate into <stdio.h>
43230         * lib/fpurge.h: Delete...
43231         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43232         * lib/fpurge.c (fpurge): Change declaring header.
43233         * modules/fpurge (Files): Drop deleted file.
43234         (Depends-on): Add stdio.
43235         (configure.ac): Set witness.
43236         * modules/stdio (Makefile.am): Support fpurge macros.
43237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43238         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43239         * lib/fflush.c: Update client.
43240         * tests/test-fpurge.c: Likewise.
43241         * NEWS: Mention the change.
43242
43243 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43244
43245         * lib/argp-version-etc.c (program_authors): Add const
43246         qualifier.
43247         * lib/version-etc.c: Fix typos in the comments.
43248         * modules/argp-version-etc: Depends on version-etc.
43249
43250 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43251
43252         argp-version-etc: new module.
43253
43254         * lib/argp-version-etc.c: New file.
43255         * lib/argp-version-etc.h: New file.
43256         * modules/argp-version-etc: New file.
43257         * modules/argp-version-etc-tests: New file.
43258         * tests/test-argp-version-etc.c: New test.
43259         * tests/test-argp-version-etc-1.sh: New test.
43260
43261 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43262
43263         Provide additional interfaces and documentation for version-etc
43264         module.
43265
43266         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43267         interfaces.
43268         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43269         prototypes.
43270
43271 2009-06-24  Bruno Haible  <bruno@clisp.org>
43272
43273         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43274         HAVE_LIB${NAME} macro.
43275         Reported by Sam Steingold <sds@gnu.org>.
43276
43277 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43278
43279         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43280         needed.
43281
43282 2009-06-21  Bruno Haible  <bruno@clisp.org>
43283
43284         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43285         work.
43286         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43287         together with LIB${NAME}, LTLIB${NAME}.
43288         Reported by Sam Steingold <sds@gnu.org>.
43289
43290 2009-06-20  Jim Meyering  <meyering@redhat.com>
43291
43292         tests: make sc_require_test_exit_idiom more generic
43293         * top/maint.mk (Exit_witness_file): New overridable variable.
43294         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43295         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43296
43297 2009-06-19  Jim Meyering  <meyering@redhat.com>
43298
43299         hash: reverse order of src/dst parameters in an internal interface
43300         * lib/hash.c (transfer_entries): Reverse order of parameters to
43301         put DST before SRC.  Adjust callers.
43302
43303         tests: test-hash: avoid wholesale duplication
43304         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43305         Instead, use a loop and add a single conditional.
43306
43307         tests: test-hash: allow seed selection via a command line argument
43308         * tests/test-hash.c (get_seed): New function.
43309         (main): Use it.
43310
43311 2009-06-19  Eric Blake  <ebb9@byu.net>
43312
43313         hash: avoid memory leak on allocation failure
43314         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43315         failure.  Factor repeated algorithm...
43316         (transfer_entries): ...into new helper routine.
43317         (hash_delete): React to hash_rehash return value.
43318
43319         hash: reduce memory pressure in hash_rehash no-op case
43320         * lib/hash.c (next_prime): Avoid overflow.
43321         (hash_initialize): Factor bucket size computation...
43322         (compute_bucket_size): ...into new helper function.
43323         (hash_rehash): Use new function and open coding to reduce memory
43324         pressure, and avoid a memory leak in USE_OBSTACK code.
43325         Reported by Jim Meyering.
43326
43327 2009-06-18  Eric Blake  <ebb9@byu.net>
43328
43329         hash: make rotation more obvious
43330         * modules/hash (Depends-on): Add bitrotate and stdint.
43331         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43332         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43333         (SIZE_MAX): Rely on headers for definition.
43334         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43335         (raw_hasher): Use rotr_sz.
43336         Suggested by Jim Meyering.
43337
43338         hash: fix memory leak in last patch
43339         * lib/hash.c (hash_rehash): Avoid memory leak.
43340
43341         hash: avoid no-op rehashing
43342         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43343
43344         hash: provide default callback functions
43345         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43346         (hash_initialize): Use them as defaults.
43347         * tests/test-hash.c (main): Test this.
43348
43349         hash: minor optimization
43350         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43351         when possible.
43352         (hash_initialize): Document this promise.
43353         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43354         * tests/test-hash.c (hash_compare_strings): Test this.
43355
43356 2009-06-18  Bruno Haible  <bruno@clisp.org>
43357
43358         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43359         going to be replaced anyway.
43360
43361 2009-06-18  Bruno Haible  <bruno@clisp.org>
43362
43363         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43364         in one place.
43365         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43366         be replaced anyway.
43367
43368 2009-06-18  Eric Blake  <ebb9@byu.net>
43369
43370         hash: check for resize before insertion
43371         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43372         threshold before insertion, so that a pathological hash_rehash
43373         that fills every bucket can still trigger another rehash.
43374
43375 2009-06-18  Jim Meyering  <meyering@redhat.com>
43376
43377         hash-tests: add a loop around the small tests
43378         * tests/test-hash.c (main): Repeat small tests with selected
43379         small initial table sizes.
43380
43381 2009-06-17  Eric Blake  <ebb9@byu.net>
43382
43383         hash: minor cleanups
43384         * lib/hash.h (hash_entry): Make opaque, by moving...
43385         * lib/hash.c (hash_entry): ...here.
43386         (hash_insert): Clarify restrictions on what can be inserted.
43387         (hash_get_next): Clarify when it is safe to remove an element
43388         during traversal.
43389         (check_tuning): Skip verification when tuning is known safe.
43390         (hash_initialize): Clarify restrictions on tuning.
43391
43392 2009-06-17  Jim Meyering  <jim@meyering.net>
43393         and Eric Blake  <ebb9@byu.net>
43394
43395         hash-tests: new module
43396         * modules/hash-tests: New file.
43397         * tests/test-hash.c: New file.
43398
43399 2009-06-17  Eric Blake  <ebb9@byu.net>
43400
43401         strstr-simple: document new module
43402         * MODULES.html.sh: Document new module.
43403
43404         strstr, strcasestr: replace on platforms with broken memchr
43405         * modules/strstr: Split into...
43406         * modules/strstr-simple: ...new module that does not care about
43407         performance, but does care about glibc bug.
43408         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43409         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43410         if platform memchr is broken, per Debian bug 521737.
43411         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43412         memchr.
43413         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43414         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43415         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43416         * modules/mountlist (Depends-on): Add strstr-simple.
43417         * modules/gen-uni-tables (Depends-on): Likewise.
43418         * modules/argz (Depends-on): Add strstr.
43419
43420 2009-06-17  Bruno Haible  <bruno@clisp.org>
43421
43422         * modules/posix_spawn-internal (Depends-on): Add errno.
43423
43424 2009-06-17  Bruno Haible  <bruno@clisp.org>
43425
43426         Define missing ESTALE on Interix 3.5.
43427         * lib/errno.in.h (ESTALE): Assign a value if missing.
43428         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43429         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43430         missing.
43431         * doc/posix-headers/errno.texi: Mention the Interix bug.
43432         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43433
43434 2009-06-15  Eric Blake  <ebb9@byu.net>
43435
43436         memchr, memchr2: add valgrind exception
43437         * lib/memchr.valgrind: New file.
43438         * lib/memchr2.valgrind: New file.
43439         * modules/memchr (Files): Distribute valgrind file.
43440         * modules/memchr2 (Files): Likewise.
43441
43442         docs: memchr is no longer obsolete
43443         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43444         * lib/string.in.h (memchr): Simplify logic.
43445
43446 2009-06-14  Jim Meyering  <meyering@redhat.com>
43447
43448         link-follow: fix the "checking..." message to not mention trailing slash
43449         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43450         never considered trailing slashes.
43451
43452 2009-06-14  Bruno Haible  <bruno@clisp.org>
43453
43454         * m4/memchr.m4: Mention also the bug on IA-64.
43455         * doc/posix-functions/memchr.texi: Likewise.
43456
43457 2009-06-12  Eric Blake  <ebb9@byu.net>
43458
43459         memchr: detect broken x86_64 and alpha implementations
43460         * modules/memchr-tests (Depends-on): Move mmap detection...
43461         * modules/memchr (Depends-on): ...here.
43462         (configure.ac): Set indicator.
43463         * lib/string.in.h (memchr): Declare replacement.
43464         * modules/string (Makefile.am): Trigger replacement.
43465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43466         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43467         bugs.
43468         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43469         * modules/getpagesize (License): Relax license.
43470
43471 2009-06-11  Bruno Haible  <bruno@clisp.org>
43472
43473         * lib/idpriv.h: Add more references.
43474
43475 2009-06-08  Bruno Haible  <bruno@clisp.org>
43476
43477         Tests for module 'idpriv-droptemp'.
43478         * modules/idpriv-droptemp-tests: New file.
43479         * tests/test-idpriv-droptemp.sh: New file.
43480         * tests/test-idpriv-droptemp.su.sh: New file.
43481         * tests/test-idpriv-droptemp.c: New file.
43482
43483         New module 'idpriv-droptemp'.
43484         * lib/idpriv-droptemp.c: New file.
43485         * modules/idpriv-droptemp: New file.
43486
43487 2009-06-08  Bruno Haible  <bruno@clisp.org>
43488
43489         Tests for module 'idpriv-drop'.
43490         * modules/idpriv-drop-tests: New file.
43491         * tests/test-idpriv-drop.sh: New file.
43492         * tests/test-idpriv-drop.su.sh: New file.
43493         * tests/test-idpriv-drop.c: New file.
43494
43495         New module 'idpriv-drop'.
43496         * lib/idpriv.h: New file.
43497         * lib-idpriv-drop.c: New file.
43498         * m4/idpriv.m4: New file.
43499         * modules/idpriv-drop: New file.
43500
43501 2009-06-08  Bruno Haible  <bruno@clisp.org>
43502
43503         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43504         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43505         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43506         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43507         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43508         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43509         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43510
43511 2009-06-08  Eric Blake  <ebb9@byu.net>
43512
43513         test-strstr: use memory fence, when possible
43514         * tests/test-strstr.c (main): Use memory fence, in order to be
43515         more likely to trigger Debian bug 521737.
43516         * modules/strstr-tests (Files): Pull in additional files.
43517
43518         memchr: no longer obsolete, for wider field testing
43519         * modules/memchr (Status, Notice): Delete, this module is no
43520         longer obsolete.
43521         * modules/vasnprintf (Depends-on): Add memchr.
43522
43523 2009-06-07  Jim Meyering  <meyering@redhat.com>
43524
43525         hash: declare some functions with the warn_unused_result attribute
43526         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43527
43528 2009-06-07  Bruno Haible  <bruno@clisp.org>
43529
43530         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43531         Reported by Eric Blake.
43532
43533 2009-06-06  Eric Blake  <ebb9@byu.net>
43534
43535         test-alignof: fix typo with long double
43536         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43537         compiler error.
43538
43539 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43540
43541         Escape non-texinfo { and }s.
43542         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43543         markup error.
43544
43545 2009-06-04  Jim Meyering  <meyering@redhat.com>
43546
43547         gitlog-to-changelog: don't infloop on an empty commit log
43548         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43549         Reported by Boris Petersen <transacid@centerim.org>.
43550
43551 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43552
43553         version-etc: extend for packagers
43554         Add three new configure options, intended for packagers:
43555           --with-packager="packager name"
43556           --with-packager-version="packager-specific version"
43557           --with-packager-bug-reports="packager bug reporting"
43558         An example with coreutils:
43559           $ ./configure \
43560             --with-packager=Gentoo \
43561             --with-packager-bug-report=http://bugs.gentoo.org/ \
43562             --with-packager-version="patchset 1.6"
43563           $ ./src/ls --version | head -n2
43564           ls (GNU coreutils) 7.1-dirty
43565           Packaged by Gentoo (patchset 1.6)
43566         Note that the bug reporting info via --help doesn't show up because
43567         coreutils uses its own custom emit_bug_reporting_address() implementation
43568         in src/system.h.  If it didn't, it'd look like:
43569           $ ./src/ls --help | tail -n4
43570           Report bugs to <bug-coreutils@gnu.org>.
43571           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43572           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43573           General help using GNU software: <http://www.gnu.org/gethelp/>.
43574         * lib/version-etc.c: Print new information, if provided.
43575         * m4/version-etc.m4: New file.
43576         * modules/version-etc (Files): Add m4/version-etc.m4.
43577         (configure.ac): Add gl_VERSION_ETC.
43578
43579 2009-05-31  Bruno Haible  <bruno@clisp.org>
43580
43581         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43582         and 'int64_t'.
43583         * modules/alignof-tests (Dependencies): Add stdint.
43584         Reported by Eric Blake.
43585
43586 2009-05-31  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43589         restriction due to compiler bugs.
43590         Reported by Eric Blake.
43591
43592 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43593             Bruno Haible  <bruno@clisp.org>
43594
43595         Fix test-alignof failure.
43596         * lib/alignof.h (alignof_slot): New macro.
43597         (alignof_type): New macro, with the same semantics as the previous
43598         'alignof'.
43599         (alignof): Alias to alignof_slot.
43600         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43601         check that the results are usable as constant expressions.
43602
43603 2009-05-31  Bruno Haible  <bruno@clisp.org>
43604
43605         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43606         * tests/test-memchr.c (main): Check that memchr does not read past the
43607         first occurrence of the byte.
43608         * tests/test-strstr.c (main): Update comment.
43609         Suggested by Eric Blake.
43610
43611 2009-05-30  Bruno Haible  <bruno@clisp.org>
43612
43613         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43614         detail how to use dumpbin.
43615         Reported by David Byron <dbyron@dbyron.com>.
43616
43617 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43618
43619         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43620
43621 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43622
43623         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43624
43625 2009-05-28  Bruno Haible  <bruno@clisp.org>
43626
43627         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43628         build-aux/ files.
43629
43630 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43631
43632         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43633
43634 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43635
43636         * gnulib-tool (sed_transform_main_lib_file)
43637         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43638         regexps.
43639
43640 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43641
43642         * tests/test-strstr.c: Add another self-test.
43643         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43644         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43645
43646 2009-05-23  Bruno Haible  <bruno@clisp.org>
43647
43648         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43649         change.
43650
43651 2009-05-21  Bruno Haible  <bruno@clisp.org>
43652
43653         Simplify use of mode_t varargs.
43654         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43655         uses 'mode_t' or 'int'.
43656         * lib/openat.c (openat): Likewise.
43657         * lib/open-safer.c (open_safer): Likewise.
43658         * m4/mode_t.m4: New file.
43659         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43660         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43661         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43662         * modules/open (Files): Add m4/mode_t.m4.
43663         * modules/openat (Files): Likewise.
43664         * modules/fcntl-safer (Files): Likewise.
43665         Suggested by Eric Blake.
43666
43667 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43668
43669         * doc/glibc-functions/fallocate.texi: New file.
43670         * doc/gnulib.texi: Include it.
43671
43672 2009-05-21  Eric Blake  <ebb9@byu.net>
43673             Bruno Haible  <bruno@clisp.org>
43674
43675         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43676         invocations.
43677         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43678
43679 2009-05-21  Eric Blake  <ebb9@byu.net>
43680             Bruno Haible  <bruno@clisp.org>
43681
43682         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43683         include_next. Fix of 2008-11-20 commit.
43684         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43685         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43686         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43687         NEXT_MATH_H.
43688         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43689         instead of NEXT_MATH_H.
43690
43691 2009-05-21  Bruno Haible  <bruno@clisp.org>
43692
43693         Avoid redefinition warnings for SIZE_MAX.
43694         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43695         Reported by Simon Josefsson.
43696
43697 2009-05-21  Bruno Haible  <bruno@clisp.org>
43698
43699         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43700         AC_CACHE_VAL.
43701
43702 2009-05-20  Bruno Haible  <bruno@clisp.org>
43703
43704         Make zeroptr.h work on mingw.
43705         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43706         mprotect.
43707         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43708         * modules/memchr2-tests (configure.ac): Likewise.
43709         * modules/memcmp-tests (configure.ac): Likewise.
43710         * modules/memmem-tests (configure.ac): Likewise.
43711         * modules/memrchr-tests (configure.ac): Likewise.
43712         Reported by Simon Josefsson.
43713
43714 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43715
43716         * tests/test-glob.c: Include string.h for strcmp prototype.
43717
43718 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43719
43720         * modules/getdelim (Depends-on): Add explicit stdint, although it
43721         was implicitly already pulled in via realloc-posix.
43722         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43723
43724 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43725
43726         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43727         G. Christensen" <tgc@jupiterrise.com>.
43728         * m4/sys_socket_h.m4: Check for sa_family_t.
43729         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43730         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43731         * tests/test-sys_socket.c: Check that sa_family_t works.
43732
43733 2009-05-18  Eric Blake  <ebb9@byu.net>
43734
43735         maint.mk: allow gnulib_dir in VPATH build
43736         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43737
43738 2009-05-15  Jim Meyering  <meyering@redhat.com>
43739
43740         maint.mk: Give gnulib_dir a default definition.
43741         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43742         Thus, most packages no longer need to specify this variable in cfg.mk
43743
43744 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43745
43746         rename.m4: fix typos that would make non-mingw cross-configure fail
43747         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43748
43749 2009-05-13  Eric Blake  <ebb9@byu.net>
43750
43751         mmap-anon: avoid out-of-order autoconf expansion
43752         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43753         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43754         * modules/memchr-tests (Depends-on): Add extensions.
43755         * modules/memchr2-tests (Depends-on): Add extensions.
43756         * modules/memcmp-tests (Depends-on): Add extensions.
43757         * modules/memmem-tests (Depends-on): Add extensions.
43758         * modules/memrchr-tests (Depends-on): Add extensions.
43759
43760 2009-05-13  Bruno Haible  <bruno@clisp.org>
43761
43762         Make some tests ISO C 99 compliant.
43763         * tests/zerosize-ptr.h: New file.
43764         * tests/test-memchr.c: Include zerosize-ptr.h.
43765         (main): Use a zero-size object pointer instead of NULL.
43766         * tests/test-memchr2.c: Include zerosize-ptr.h.
43767         (main): Use a zero-size object pointer instead of NULL.
43768         * tests/test-memcmp.c: Include zerosize-ptr.h.
43769         (main): Use a zero-size object pointer instead of NULL.
43770         * tests/test-memmem.c: Include zerosize-ptr.h.
43771         (main): Use a zero-size object pointer instead of NULL.
43772         * tests/test-memrchr.c: Include zerosize-ptr.h.
43773         (main): Use a zero-size object pointer instead of NULL.
43774         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43775         m4/mmap-anon.m4.
43776         (Depends-on): Add getpagesize.
43777         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43778         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43779         m4/mmap-anon.m4.
43780         (Depends-on): Add getpagesize.
43781         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43782         * modules/memcmp-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/memmem-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/memrchr-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
43795 2009-05-12  Bruno Haible  <bruno@clisp.org>
43796
43797         Tests for module 'alignof'.
43798         * modules/alignof-tests: New file.
43799         * tests/test-alignof.c: New file.
43800
43801 2009-05-12  Bruno Haible  <bruno@clisp.org>
43802
43803         Fix alignof macro.
43804         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43805         vendor compilers that are always correct.
43806
43807 2009-05-12  Bruno Haible  <bruno@clisp.org>
43808
43809         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43810         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43811         not whether its fully works.
43812
43813 2009-05-12  Bruno Haible  <bruno@clisp.org>
43814
43815         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43816
43817 2009-05-12  Jim Meyering  <meyering@redhat.com>
43818
43819         * top/maint.mk: Adjust backslash alignment.
43820
43821 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43822
43823         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43824
43825 2009-05-11  Eric Blake  <ebb9@byu.net>
43826
43827         argp: avoid undefined behavior
43828         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43829         macros.
43830
43831 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43832
43833         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43834         user.name to prevent git commit from complaining.
43835
43836 2009-05-10  Bruno Haible  <bruno@clisp.org>
43837
43838         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43839         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43840         it rewrites every file name only once.
43841         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43842
43843 2009-05-08  Bruno Haible  <bruno@clisp.org>
43844
43845         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43846         instead of 'max'.
43847
43848 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43849
43850         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43851         sockaddr_storage test.
43852
43853 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43854
43855         * modules/sys_socket (Makefile.am): Substitute
43856         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43857         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43858         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43859         * tests/test-sys_socket.c: Check sockaddr_storage.
43860
43861 2009-05-08  Bruno Haible  <bruno@clisp.org>
43862
43863         New module 'alignof'.
43864         * lib/alignof.h: New file.
43865         * modules/alignof: New file.
43866
43867 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43868             Bruno Haible  <bruno@clisp.org>
43869
43870         Fix test-file-has-acl on FreeBSD.
43871         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43872         mask is implicitly added.
43873         * tests/test-file-has-acl.c: Include <signal.h>.
43874         (main): Terminate the test after 5 seconds.
43875         * modules/acl-tests (configure.ac): Check for alarm function.
43876
43877 2009-05-04  Bruno Haible  <bruno@clisp.org>
43878
43879         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43880         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43881         * modules/errno (configure.ac): Drop AC_REQUIRE.
43882         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43883         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43884
43885 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43886
43887         * modules/glob-tests: New module.
43888         * tests/test-glob.c: Add.
43889
43890 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43891
43892         * modules/fnmatch-tests: New module.
43893         * tests/test-fnmatch.c: Add.
43894
43895 2009-05-04  Eric Blake  <ebb9@byu.net>
43896
43897         maint: make the new no-submodule-changes rule VPATH-safe
43898         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43899
43900 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43901             Bruno Haible  <bruno@clisp.org>
43902
43903         acl: Fix infinite loop on FreeBSD.
43904         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43905         of return value from acl_get_entry.
43906         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43907         Likewise.
43908
43909 2009-05-03  Bruno Haible  <bruno@clisp.org>
43910
43911         * lib/acl-internal.h (acl_entries): Clarify return value.
43912         * lib/acl_entries.c (acl_entries): Likewise.
43913
43914 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43915
43916         Bug fix in acl module.
43917         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43918
43919 2009-05-03  Bruno Haible  <bruno@clisp.org>
43920
43921         Create gperf-generated file in the source dir, not in the build dir.
43922         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43923         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43924         * modules/unicase/locale-language (unicase/locale-languages.h):
43925         Likewise.
43926         * modules/unicase/special-casing (unicase/special-casing-table.h):
43927         Likewise.
43928         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43929         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43930         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43931         Reported by Ralf Wildenhues.
43932
43933 2009-05-03  Bruno Haible  <bruno@clisp.org>
43934
43935         * modules/fnmatch (Description, configure.ac): Taken from
43936         fnmatch-posix.
43937         * modules/fnmatch-posix: Turn into a symbolic reference to the
43938         'fnmatch' module, and deprecate.
43939         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43940
43941 2009-05-03  Bruno Haible  <bruno@clisp.org>
43942
43943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43944         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43945         Reported by Ralf Wildenhues.
43946
43947 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43948
43949         * m4/fnmatch.m4: Fix fnmatch re-define.
43950
43951 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43952
43953         priv-set: new module and tests; adapt write-any-file
43954         * lib/priv-set.c: New file.
43955         * lib/priv-set.h: New file.
43956         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43957         * lib/write-any-file.c: Simplify by using priv-set module.
43958         * m4/priv-set.m4: New file.
43959         * modules/priv-set: New file.
43960         * modules/unlinkdir: Add dependency on priv-set module.
43961         * modules/write-any-file: Likewise.
43962
43963         Tests for module 'priv-set'.
43964         * modules/priv-set-tests: New file.
43965         * tests/test-priv-set.c: New file.
43966
43967 2009-05-03  Jim Meyering  <meyering@redhat.com>
43968             Bruno Haible  <bruno@clisp.org>
43969
43970         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43971         use the converted UTF-8 variant of the name instead.
43972
43973 2009-05-03  Jim Meyering  <meyering@redhat.com>
43974
43975         tests: tighten some getdate tests
43976         * tests/test-getdate.c (main): Tighten tests: require equality,
43977         not just greater than.  Set TZ envvar to UTC0.
43978
43979 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43980
43981         getdate: correctly interpret "next monday" when run on a Monday
43982         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43983         that e.g., "next tues" (when run on a tuesday) results in a date
43984         that is one week in the future, and not today's date.
43985         I.e., add a week when the wday is the same as the current one.
43986         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43987         and earlier by Martin Bernreuther and Jan Minář.
43988         * tests/test-getdate.c (main): Check that "next DAY" is always in
43989         the future and that "last DAY" is always in the past.
43990
43991 2009-05-02  Jim Meyering  <meyering@redhat.com>
43992
43993         build: ensure that a release build fails when a submodule is unclean
43994         * top/maint.mk (no-submodule-changes): New rule.
43995         (alpha beta major): Depend on it.
43996
43997 2009-05-02  Bruno Haible  <bruno@clisp.org>
43998
43999         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44000         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44001         shell variable gl_fnmatch_required to detect which variant is
44002         requested.
44003         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44004         gl_FUNC_FNMATCH_POSIX.
44005         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44006         exclude fnmatch-posix.
44007
44008 2009-05-02  Bruno Haible  <bruno@clisp.org>
44009
44010         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44011         * modules/mbsrtowcs (License): Change to LGPLv2+.
44012         * modules/strnlen1 (License): Likewise.
44013         Reported by Simon Josefsson.
44014
44015 2009-05-02  Bruno Haible  <bruno@clisp.org>
44016
44017         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44018         "cross".
44019         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44020         gnulib-tool was called with option --source-base=lib.
44021
44022 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44023
44024         Use automake *-local hooks without commands, for extensibility.
44025         * modules/localcharset (Makefile.am): Rename install-exec-local
44026         rule to install-exec-localcharset, and make it a prerequisite of
44027         install-exec-local.  Likewise, rename the uninstall-local rule to
44028         uninstall-localcharset, and make it a prerequisite of the former.
44029
44030 2009-05-01  Bruno Haible  <bruno@clisp.org>
44031
44032         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44033         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44034         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44035         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44036         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44037         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44038         m4/locale-zh.m4, m4/codeset.m4.
44039
44040         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44041         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44042         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44043         m4/locale-zh.m4.
44044
44045         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44046         REPLACE_WCRTOMB if mbstate_t must be replaced.
44047         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44048         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44049
44050 2009-05-01  Bruno Haible  <bruno@clisp.org>
44051
44052         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44053         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44054         dngettext, dcngettext, textdomain, bindtextdomain,
44055         bind_textdomain_codeset): Undefine before redefining.
44056
44057 2009-04-30  Bruno Haible  <bruno@clisp.org>
44058
44059         Fix bug introduced on 2009-04-25.
44060         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44061         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44062         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44063         is defined.
44064         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44065         is defined.
44066         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44067         is defined.
44068         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44069
44070 2009-04-28  Bruno Haible  <bruno@clisp.org>
44071
44072         Comment tweaks.
44073         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44074         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44075         * lib/unicase.h (u*_casexfrm): Likewise.
44076         Reported by Paolo Bonzini.
44077
44078 2009-04-28  Bruno Haible  <bruno@clisp.org>
44079
44080         Fix a compilation error.
44081         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44082         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44083         Reported by Jim Meyering.
44084
44085 2009-04-27  Bruno Haible  <bruno@clisp.org>
44086
44087         New module 'libunistring'.
44088         * modules/libunistring: New file.
44089         * m4/libunistring.m4: New file.
44090         * MODULES.html.sh (Unicode string functions): Add it.
44091
44092 2009-04-27  Eric Blake  <ebb9@byu.net>
44093
44094         maint.mk: allow package-specific header to provide <config.h>
44095         * top/maint.mk (sc_require_config_h): New variable.
44096         (sc_require_config_h, sc_require_config_h_first): Use it.
44097
44098 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44099
44100         * top/maint.mk (sc_avoid_if_before_free): Except
44101         useless-if-before-free script.
44102
44103 2009-04-27  Eric Blake  <ebb9@byu.net>
44104
44105         maintainer-makefile: depend on all required helper scripts
44106         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44107         useless-if-before-free.
44108         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44109         version, rather than assuming gnulib checkout is available.
44110         Reported by Simen Josefsson.
44111
44112 2009-04-26  Bruno Haible  <bruno@clisp.org>
44113
44114         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44115         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44116         "../" or "..".
44117
44118 2009-04-26  Bruno Haible  <bruno@clisp.org>
44119
44120         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44121         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44122         AC_LIB_HAVE_LINKFLAGS.
44123
44124 2009-04-26  Bruno Haible  <bruno@clisp.org>
44125
44126         Simplify calling convention of u*_conv_from_encoding.
44127         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44128         u32_conv_from_encoding): Expect a resultbuf argument and return the
44129         result directly as a pointer.
44130         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44131         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44132         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44133         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44134         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44135         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44136         Update.
44137         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44138         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44139         * lib/vasnprintf.c (VASNPRINTF): Update.
44140         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44141         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44142         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44143         * NEWS: Mention the change.
44144
44145 2009-04-26  Bruno Haible  <bruno@clisp.org>
44146
44147         Simplify calling convention of u*_conv_to_encoding.
44148         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44149         u32_conv_to_encoding): Expect a resultbuf argument and return the
44150         result directly as a pointer.
44151         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44152         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44153         freeing scaled_offsets if mem_iconveha failed.
44154         * lib/unicase/u-casexfrm.h (FUNC): Update.
44155         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44156         * lib/vasnprintf.c (VASNPRINTF): Update.
44157         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44158         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44159         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44160         * NEWS: Mention the change.
44161
44162 2009-04-26  Bruno Haible  <bruno@clisp.org>
44163
44164         Avoid test failures on AIX and OSF/1.
44165         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44166         malloc(0).
44167         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44168         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44169         Likewise.
44170         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44171         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44172         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44173         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44174         * doc/posix-functions/malloc.texi: Document the portability problem
44175         related to malloc(0).
44176
44177 2009-04-26  Bruno Haible  <bruno@clisp.org>
44178
44179         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44180         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44181         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44182
44183 2009-04-25  Bruno Haible  <bruno@clisp.org>
44184
44185         Avoid link error when creating a namespace clean library.
44186         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44187         as macro with arguments if already defined as an alias.
44188         * lib/signbitf.c (gl_signbitf): Don't undefine.
44189         * lib/signbitd.c (gl_signbitd): Don't undefine.
44190         * lib/signbitl.c (gl_signbitl): Don't undefine.
44191
44192 2009-04-25  Jim Meyering  <meyering@redhat.com>
44193
44194         vc-list-files: fix another quoting bug
44195         * build-aux/vc-list-files: Avoid sed backslash expansion
44196         of pathological directory names.
44197
44198 2009-04-25  Eric Blake  <ebb9@byu.net>
44199
44200         vc-list-files: fix shell quoting error
44201         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44202         timestamp.
44203
44204 2009-04-25  Jim Meyering  <meyering@redhat.com>
44205
44206         vc-list-files: restore lost functionality with subdir argument
44207         * build-aux/vc-list-files: When given a non-"." sub-directory
44208         argument, substitute the $dir/ prefix back onto each resulting name.
44209         Otherwise, coreutils' root_tests check would fail.
44210
44211 2009-04-24  Eric Blake  <ebb9@byu.net>
44212
44213         vc-list-files: ignore git symlinks
44214         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44215         than ls-files, to ignore git symlinks.
44216
44217         maint.mk: import improvements from m4
44218         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44219         (move_if_change): Delete unused macro.
44220         (news-date-check, vc-diff-check): Support VPATH builds.
44221         (announcement): Likewise.  Split --bootstrap-tools list...
44222         (boostrap-tools): ...into separate list, which can be overridden
44223         in cfg.mk.
44224         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44225         requiring dependency on useless-if-before-free module.
44226         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44227         Support VPATH builds.
44228
44229 2009-04-24  Jim Meyering  <meyering@redhat.com>
44230
44231         maint.mk: remove coreutils-specific rules and variables
44232         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44233         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44234         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44235
44236         maint.mk: remove obsolete rule
44237         * top/maint.mk (rel-check): Remove rule.
44238         (WGET, WGETFLAGS): Remove now-unused variables.
44239
44240 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44241
44242         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44243         consistency.
44244
44245         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44246         '$(PATH_SEPARATOR)' instead of ':'.
44247
44248 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44249
44250         * lib/getopt1.c (main): Use 'const' for static array.
44251
44252 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44253
44254         * top/maint.mk: Sync with coreutils.
44255         * NEWS: Explain incompatibilities.
44256
44257 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44258             Bruno Haible  <bruno@clisp.org>
44259
44260         Fix cross-compilation results.
44261         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44262         statement, as third argument of AC_TRY_RUN.
44263         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44264         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44265         Likewise.
44266         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44267         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44268         Likewise.
44269         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44270         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44271         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44272
44273 2009-04-20  Bruno Haible  <bruno@clisp.org>
44274
44275         Avoid test failure on mingw.
44276         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44277
44278 2009-04-20  Bruno Haible  <bruno@clisp.org>
44279
44280         Avoid compilation error on mingw.
44281         * modules/localename-tests (Depends-on): Add locale.
44282
44283 2009-04-19  Bruno Haible  <bruno@clisp.org>
44284
44285         Support for building a shared library on Windows platforms.
44286         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44287         (main): Test the presence of UNINORM_NFC here.
44288         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44289         (main): Test the presence of UNINORM_NFD here.
44290         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44291         (main): Test the presence of UNINORM_NFKC here.
44292         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44293         (main): Test the presence of UNINORM_NFKD here.
44294
44295 2009-04-19  Bruno Haible  <bruno@clisp.org>
44296
44297         Avoid a compiler warning.
44298         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44299         Change type of variable 'sequence'.
44300
44301 2009-04-19  Bruno Haible  <bruno@clisp.org>
44302
44303         * modules/configmake (Makefile.am): When the contents of configmake.h
44304         does not change, arrange to preserve its modification time.
44305
44306 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44307
44308         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44309         gettext domain.
44310
44311 2009-04-16  Jim Meyering  <meyering@redhat.com>
44312
44313         useless-if-before-free: improve conversion code
44314         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44315         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44316
44317 2009-04-14  Bruno Haible  <bruno@clisp.org>
44318
44319         * modules/fcntl (Depends-on): Add extensions.
44320         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44321
44322 2009-04-12  Ben Pfaff  <blp@gnu.org>
44323
44324         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44325         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44326
44327 2009-03-20  Ben Pfaff  <blp@gnu.org>
44328
44329         Make rename replace existing destinations on Windows.
44330         * m4/rename.m4: Add test for Mingw.
44331         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44332         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44333         * doc/posix-functions/rename.texi: Document.
44334
44335 2009-04-10  Bruno Haible  <bruno@clisp.org>
44336
44337         New include file "iconveh.h".
44338         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44339         * lib/striconveh.h: Include it.
44340         (enum iconv_ilseq_handler): Remove definition.
44341         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44342         striconveh.h.
44343         * lib/striconveha.c: Include striconveh.h.
44344         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44345         * modules/striconveh (Files): Add lib/iconveh.h.
44346         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44347         lib/striconveh.h.
44348
44349 2009-04-10  Bruno Haible  <bruno@clisp.org>
44350
44351         * lib/uniconv.h: Update comment.
44352
44353 2009-04-10  Bruno Haible  <bruno@clisp.org>
44354
44355         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44356         always.
44357         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44358         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44359         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44360         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44361         "unistring-notinline.h", so that the function gets defined always.
44362         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44363         * lib/unistr/u8-uctomb.c: Likewise.
44364         * lib/unistr/u16-mbtouc.c: Likewise.
44365         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44366         * lib/unistr/u16-uctomb.c: Likewise.
44367         * lib/unistr/u32-mbtouc.c: Likewise.
44368         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44369         * lib/unistr/u32-uctomb.c: Likewise.
44370
44371 2009-04-10  Bruno Haible  <bruno@clisp.org>
44372
44373         Mark 'utime' obsolete.
44374         * modules/utime (Status, Notice): New sections.
44375         Suggested by Jim Meyering.
44376
44377         Fix cross-compile guess for utime test.
44378         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44379         autoconf.
44380         * doc/posix-functions/utime.texi: Give more precisions.
44381         Reported by Jan <ipif@ymail.com>.
44382
44383 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44384
44385         filevercmp: correct today's change
44386         * lib/filevercmp.c: Also handle coreutils' test inputs.
44387         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44388
44389         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44390         for reporting it.
44391         * lib/filevercmp.c: Special handle for "", "." and "..".
44392         * tests/test-filevercmp.c: Enlarge the set suite.
44393
44394 2009-04-07  Jim Meyering  <meyering@redhat.com>
44395
44396         useless-if-before-free: show how to remove braced useless free, too
44397         * build-aux/useless-if-before-free: still only in a comment, though.
44398
44399 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44400
44401         maint.mk: import changes to syntax-check macros from coreutils
44402         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44403         Use them in the relevant macros.
44404
44405 2009-04-06  Bruno Haible  <bruno@clisp.org>
44406
44407         Fix unportable use of bit-fields.
44408         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44409         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44410         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44411
44412 2009-04-06  Bruno Haible  <bruno@clisp.org>
44413
44414         Avoid test failures on AIX and OSF/1.
44415         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44416         that malloc(0) = NULL.
44417         * tests/unicase/test-u8-tolower.c (check): Likewise.
44418         * tests/unicase/test-u8-totitle.c (check): Likewise.
44419         * tests/unicase/test-u8-toupper.c (check): Likewise.
44420         * tests/unicase/test-u16-casefold.c (check): Likewise.
44421         * tests/unicase/test-u16-tolower.c (check): Likewise.
44422         * tests/unicase/test-u16-totitle.c (check): Likewise.
44423         * tests/unicase/test-u16-toupper.c (check): Likewise.
44424         * tests/unicase/test-u32-casefold.c (check): Likewise.
44425         * tests/unicase/test-u32-tolower.c (check): Likewise.
44426         * tests/unicase/test-u32-totitle.c (check): Likewise.
44427         * tests/unicase/test-u32-toupper.c (check): Likewise.
44428         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44429         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44430         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44431         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44432         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44433         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44434         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44435         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44436         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44437         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44438         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44439         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44440
44441 2009-04-05  Bruno Haible  <bruno@clisp.org>
44442
44443         Work around an autoconf limitation.
44444         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44445         comment line if it would be longer than 3 KB.
44446
44447 2009-04-05  Bruno Haible  <bruno@clisp.org>
44448
44449         Avoid test failure with libiconv-1.13.
44450         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44451         of the expected test results.
44452
44453 2009-04-05  Bruno Haible  <bruno@clisp.org>
44454
44455         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44456         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44457         that it should be installed.
44458
44459 2009-04-05  Bruno Haible  <bruno@clisp.org>
44460
44461         * gnulib-tool: New option --copy-file.
44462         (func_usage): Document it.
44463         (func_dest_tmpfilename): Moved out of func_import.
44464         (func_add_file, func_update_file): New functions, extracted from
44465         func_import.
44466         (func_import): Update.
44467
44468 2009-04-05  Karl Berry  <karl@gnu.org>
44469
44470         * README: prominently mention gnulib-tool.
44471         Rearrange sections so getting the code is near the top.
44472
44473 2009-04-05  Bruno Haible  <bruno@clisp.org>
44474
44475         * lib/unicase.h: Mention u*_cmp2.
44476         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44477         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44478         * lib/unicase/ulc-casecmp.c: Likewise.
44479         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44480         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44481         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44482         unistr/u8-cmp.
44483         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44484         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44485         unistr/u16-cmp.
44486         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44487         unistr/u32-cmp.
44488
44489         * lib/uninorm.h: Mention u*_cmp2.
44490         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44491         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44492         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44493         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44494         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44495         unistr/u8-cmp.
44496         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44497         unistr/u16-cmp.
44498         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44499         unistr/u32-cmp.
44500
44501         New module 'unistr/u32-cmp2'.
44502         * lib/unistr/u32-cmp2.c: New file.
44503         * modules/unistr/u32-cmp2: New file.
44504
44505         New module 'unistr/u16-cmp2'.
44506         * lib/unistr/u16-cmp2.c: New file.
44507         * modules/unistr/u16-cmp2: New file.
44508
44509         New module 'unistr/u8-cmp2'.
44510         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44511         * lib/unistr/u8-cmp2.c: New file.
44512         * lib/unistr/u-cmp2.h: New file.
44513         * modules/unistr/u8-cmp2: New file.
44514
44515 2009-04-05  Bruno Haible  <bruno@clisp.org>
44516
44517         * lib/unictype.h (uc_property_is_valid): New macro.
44518         * tests/unictype/test-pr_byname.c (main): Use it.
44519
44520         * lib/unistr.h: Doc fixes.
44521         * lib/uniconv.h: Doc fixes.
44522         * lib/unictype.h: Doc fixes.
44523
44524 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44525
44526         Port coreutils 7.2 to Solaris 8.
44527
44528         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44529         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44530         for Solaris 8.  This is a bit of a hack, as it means it's the
44531         caller's responsibility to add -lnsl if needed, but most likely it
44532         won't be needed since only getaddrinfo uses this and getaddrinfo
44533         isn't needed on Solaris 8.
44534
44535         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44536         problem to Solaris 8 encountered with coreutils 7.2, which
44537         resulted in a message "fnmatch.c:292: warning: passing argument 4
44538         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44539         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44540
44541 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44542
44543         * m4/ld-version-script.m4: Add FIXME comment.
44544
44545 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44546
44547         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44548         SOVERSION variable.
44549
44550 2009-04-02  Bruno Haible  <bruno@clisp.org>
44551
44552         * Makefile (info, html, dvi, pdf): Combine the rules.
44553         Suggested by Jim Meyering.
44554
44555 2009-04-01  Bruno Haible  <bruno@clisp.org>
44556
44557         * Makefile (info, html, dvi, pdf): New targets.
44558         Reported by Reuben Thomas <rrt@sc3d.org>.
44559
44560 2009-04-01  Bruno Haible  <bruno@clisp.org>
44561
44562         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44563         can be put into PATH.
44564         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44565
44566 2009-04-01  Bruno Haible  <bruno@clisp.org>
44567
44568         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44569
44570 2009-04-01  Bruno Haible  <bruno@clisp.org>
44571
44572         Rename module 'visibility'.
44573         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44574         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44575         * doc/gnulib.texi: Update.
44576         * MODULES.html.sh (Misc): Update.
44577         * NEWS: Mention the change.
44578
44579 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44580
44581         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44582         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44583         Eric Blake <ebb9@byu.net> for review.
44584         * MODULES.html.sh: Add lib-msvc-compat.
44585         * doc/gnulib.texi: Link to new section.
44586         * m4/ld-output-def.m4: New file.
44587         * doc/ld-output-def.texi: New file.
44588
44589 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44590
44591         Rename ld-version-script to lib-symbol-versions.  Suggested by
44592         Bruno Haible <bruno@clisp.org>.
44593         * modules/ld-version-script: Renamed to lib-symbol-versions.
44594         * doc/ld-version-script.texi: Fix module name.
44595         * MODULES.html.sh: Add lib-symbol-versions.
44596
44597 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44598
44599         * modules/u64-tests: New file.
44600         * tests/test-u64.c: New file.
44601
44602 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44603
44604         * MODULES.html.sh: Mention u64.
44605         * modules/u64: New module.
44606         * modules/crypto/sha512: Depend on u64 module instead of providing
44607         u64.h.
44608
44609 2009-03-27  Eric Blake  <ebb9@byu.net>
44610
44611         test-strerror: make debugging EAI_SYSTEM easier
44612         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44613         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44614         failure was EAI_SYSTEM.
44615
44616 2009-03-25  Bruno Haible  <bruno@clisp.org>
44617
44618         Fix a problem with --enable-relocatable on Solaris 7.
44619         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44620         since 2008-02-24.
44621
44622 2009-03-25  Eric Blake  <ebb9@byu.net>
44623
44624         test-sockets: avoid gcc warning
44625         * tests/test-sockets.c (main): Silence compiler warning.
44626
44627 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44628
44629         New modules nproc, pthread, contributed by Glen Lenker.
44630
44631         * MODULES.html.sh: Add pthread, nproc.
44632         * lib/nproc.c: New file.
44633         * lib/nproc.h: New file.
44634         * lib/pthread.in.h: New file.
44635         * m4/pthread.m4: New file.
44636         * modules/nproc: New file.
44637         * modules/pthread: New file.
44638
44639 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44640
44641         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44642         New variable.
44643
44644 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44645
44646         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44647         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44648         * tests/test-filevercmp.c: Add tests for backup suffixes.
44649
44650 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44651
44652         * modules/stdlib (Depends-on): Add stdint, needed when defining
44653         struct random_data on, for example, HP-UX 10.20.  Reported by
44654         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44655
44656 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44657
44658         * lib/readline.c (readline): Call fflush on stdout after printing
44659         prompt.
44660
44661 2009-03-20  Bruno Haible  <bruno@clisp.org>
44662
44663         Remove dependency from 'close' module to -lws2_32 on native Windows.
44664         * lib/close-hook.h: New file.
44665         * lib/close-hook.c: New file.
44666         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44667         w32sock.h.
44668         (_gl_close_fd_maybe_socket): Remove function.
44669         (rpl_close): Invoke execute_all_close_hooks instead of
44670         _gl_close_fd_maybe_socket.
44671         * lib/sockets.c: Include close-hook.h, w32sock.h.
44672         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44673         (close_sockets_hook): New variable.
44674         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44675         (gl_sockets_cleanup): Unregister it.
44676         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44677         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44678         * modules/close-hook: New file.
44679         * modules/close (Files): Remove lib/w32sock.h.
44680         (Depends-on): Add close-hook.
44681         (Link): Remove section.
44682         * modules/sockets (Files): Add lib/w32sock.h.
44683         (Depends-on): Add close-hook.
44684         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44685         invocation.
44686         * NEWS: Mention that LIB_CLOSE is gone.
44687
44688 2009-03-23  Eric Blake  <ebb9@byu.net>
44689
44690         signal-tests: test previous patch
44691         * tests/test-signal.c: New file.
44692         * modules/signal-tests: Likewise.
44693
44694         signal.h: always support 'volatile sig_atomic_t'
44695         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44696         (gl_SIGNAL_H_DEFAULTS): Add a default.
44697         * modules/signal (Makefile.am): Substitute if needed.
44698         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44699         users can blindly add volatile.
44700         * doc/posix-headers/signal.texi (signal.h): Document it.
44701         Reported by Matthew Woehlke.
44702
44703 2009-03-23  Jim Meyering  <meyering@redhat.com>
44704
44705         pathmax: PATH_MAX: use pathconf only when available
44706         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44707         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44708         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44709         This avoids a link failure in a PSP cross-compilation environment
44710         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44711
44712         * lib/vasnprintf.c (divide): Fix typo in comment.
44713
44714 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44715
44716         * gnulib-tool (func_filter_filelist): Fix comment.
44717
44718 2009-03-20  Bruno Haible  <bruno@clisp.org>
44719
44720         Make sockets.h self-contained.
44721         * lib/sockets.c: Include sockets.h first.
44722         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44723
44724 2009-03-19  Eric Blake  <ebb9@byu.net>
44725
44726         doc: mention more functions added in cygwin 1.7.0
44727         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44728         addition.
44729         * doc/posix-functions/log2f.texi: Likewise.
44730
44731 2009-03-19  Jim Meyering  <meyering@redhat.com>
44732
44733         fsusage: avoid syntax error due to statement-before-declaration
44734         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44735         after all declarations.  Reported by Matthew Woehlke in
44736         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44737
44738 2009-03-18  Eric Blake  <ebb9@byu.net>
44739
44740         build-aux/compile: sync from automake
44741         * build-aux/compile: New file, from automake.
44742         * config/srclist.txt: Mention build-aux/compile.
44743
44744 2009-03-17  Bruno Haible  <bruno@clisp.org>
44745
44746         * lib/git-merge-changelog.c: Fix typo in comment.
44747         Reported by Reuben Thomas <rrt@sc3d.org>.
44748
44749 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44750
44751         * m4/regex.m4: update and improve help for
44752         --without-included-regex.
44753
44754 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44755
44756         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44757         failure on missing include files.
44758
44759 2009-03-17  Eric Blake  <ebb9@byu.net>
44760
44761         doc: mention more functions added in cygwin 1.7.0
44762         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44763         addition.
44764         * doc/posix-functions/fwscanf.texi: Likewise.
44765         * doc/posix-functions/swprintf.texi: Likewise.
44766         * doc/posix-functions/swscanf.texi: Likewise.
44767         * doc/posix-functions/vfwprintf.texi: Likewise.
44768         * doc/posix-functions/vfwscanf.texi: Likewise.
44769         * doc/posix-functions/vswprintf.texi: Likewise.
44770         * doc/posix-functions/vswscanf.texi: Likewise.
44771         * doc/posix-functions/vwprintf.texi: Likewise.
44772         * doc/posix-functions/vwscanf.texi: Likewise.
44773         * doc/posix-functions/wcscasecmp.texi: Likewise.
44774         * doc/posix-functions/wcsdup.texi: Likewise.
44775         * doc/posix-functions/wcsftime.texi: Likewise.
44776         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44777         * doc/posix-functions/wprintf.texi: Likewise.
44778         * doc/posix-functions/wscanf.texi: Likewise.
44779         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44780
44781 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44782
44783         maint.mk: really add $(AM_MAKEFLAGS)
44784         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44785         was inadvertently omitted in the last commit.
44786         Spotted by Bruno Haible.
44787
44788         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44789         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44790         $(AM_MAKEFLAGS)' rather than plain `make'.
44791
44792         gnulib-tool: execute $MAKE not make
44793         * gnulib-tool: Default $MAKE to 'make'.
44794         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44795         than make.  Initialize $MAKE in the do-autobuild script.
44796
44797         gnulib-tool: use $MAKE not make in generated files
44798         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44799         make, in generated files.  Initialize $MAKE in the do-autobuild
44800         script.
44801
44802         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44803
44804         GNUmakefile: disable parallelism only for multiple, recursive targets
44805         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44806         additions in the Makefile.
44807         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44808         by Automake.
44809         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44810         are listed on the command line and at least one of them is
44811         listed in $(ALL_RECURSIVE_TARGETS).
44812
44813 2009-03-14  Bruno Haible  <bruno@clisp.org>
44814
44815         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44816         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44817         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44818         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44819         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44820         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44821         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44822         unistr/u8-uctomb.
44823         * modules/unistr/u8-strchr (Depends-on): Likewise.
44824         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44825         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44826         unistr/u16-uctomb.
44827         * modules/unistr/u16-strchr (Depends-on): Likewise.
44828         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44829
44830 2009-03-12  Bruno Haible  <bruno@clisp.org>
44831
44832         Work around select() bug on Interix 3.5.
44833         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44834         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44835         * m4/select.m4: New file.
44836         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44837         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44838         * modules/select (Files): Add m4/select.m4.
44839         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44840         * modules/nanosleep (Depends-on): Add select.
44841         * modules/poll (Depends-on): Likewise.
44842         * doc/posix-functions/select.texi: Mention the Interix bug.
44843         Reported by Markus Duft <mduft@gentoo.org>.
44844
44845         * lib/select.c: Renamed from lib/winsock-select.c.
44846         * modules/select (Files): Add lib/select.c, remove
44847         lib/winsock-select.c.
44848         (configure.ac): Update.
44849
44850 2009-03-12  Jim Meyering  <meyering@redhat.com>
44851
44852         avoid gcc warnings about unused macro definitions
44853         * lib/readtokens.c (STREQ): Remove unused definition.
44854         * lib/xmalloc.c (SIZE_MAX): Likewise.
44855         * lib/openat-die.c (N_): Likewise.
44856         * lib/mountlist.c (SIZE_MAX): Remove definition.
44857         Instead, include <stdint.h>.
44858         * lib/readutmp.c: Likewise.
44859         * modules/readutmp (Depends-on): Add stdint.
44860         * modules/mountlist (Depends-on): Add stdint.
44861         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44862
44863 2009-03-10  Bruno Haible  <bruno@clisp.org>
44864
44865         Tests for module 'mbmemcasecoll'.
44866         * modules/mbmemcasecoll-tests: New file.
44867         * tests/test-mbmemcasecoll1.sh: New file.
44868         * tests/test-mbmemcasecoll2.sh: New file.
44869         * tests/test-mbmemcasecoll3.sh: New file.
44870         * tests/test-mbmemcasecoll.c: New file.
44871
44872         New module 'mbmemcasecoll'.
44873         * lib/mbmemcasecoll.h: New file.
44874         * lib/mbmemcasecoll.c: New file.
44875         * modules/mbmemcasecoll: New file.
44876
44877         * tests/test-mbmemcasecmp.h: New file, extracted from
44878         tests/test-mbmemcasecmp.c.
44879         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44880         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44881         (main): Update.
44882         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44883
44884 2009-03-09  Bruno Haible  <bruno@clisp.org>
44885
44886         Tests for module 'mbmemcasecmp'.
44887         * modules/mbmemcasecmp-tests: New file.
44888         * tests/test-mbmemcasecmp1.sh: New file.
44889         * tests/test-mbmemcasecmp2.sh: New file.
44890         * tests/test-mbmemcasecmp3.sh: New file.
44891         * tests/test-mbmemcasecmp.c: New file.
44892
44893         New module 'mbmemcasecmp'.
44894         * lib/mbmemcasecmp.h: New file.
44895         * lib/mbmemcasecmp.c: New file.
44896         * modules/mbmemcasecmp: New file.
44897
44898 2009-03-09  Bruno Haible  <bruno@clisp.org>
44899
44900         Tests for module 'unicase/ulc-casecoll'.
44901         * modules/unicase/ulc-casecoll-tests: New file.
44902         * tests/unicase/test-ulc-casecoll1.sh: New file.
44903         * tests/unicase/test-ulc-casecoll2.sh: New file.
44904         * tests/unicase/test-ulc-casecoll.c: New file.
44905
44906         New module 'unicase/ulc-casecoll'.
44907         * lib/unicase.h (ulc_casecoll): New declaration.
44908         * lib/unicase/ulc-casecoll.c: New file.
44909         * modules/unicase/ulc-casecoll: New file.
44910
44911         New module 'unicase/ulc-casexfrm'.
44912         * lib/unicase.h (ulc_casexfrm): New declaration.
44913         * lib/unicase/ulc-casexfrm.c: New file.
44914         * modules/unicase/ulc-casexfrm: New file.
44915
44916 2009-03-09  Bruno Haible  <bruno@clisp.org>
44917
44918         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44919         invocations.
44920
44921         * m4/mbscasecmp.m4: Remove file.
44922         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44923         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44924
44925         * m4/mbscasestr.m4: Remove file.
44926         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44927         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44928
44929         * m4/mbschr.m4: Remove file.
44930         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44931         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44932
44933         * m4/mbscspn.m4: Remove file.
44934         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44935         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44936
44937         * m4/mbslen.m4: Remove file.
44938         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44939         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44940
44941         * m4/mbsncasecmp.m4: Remove file.
44942         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44943         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44944
44945         * m4/mbsnlen.m4: Remove file.
44946         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44947         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44948
44949         * m4/mbspbrk.m4: Remove file.
44950         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44951         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44952
44953         * m4/mbspcasecmp.m4: Remove file.
44954         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44955         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44956
44957         * m4/mbsrchr.m4: Remove file.
44958         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44959         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44960
44961         * m4/mbssep.m4: Remove file.
44962         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44963         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44964
44965         * m4/mbsspn.m4: Remove file.
44966         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44967         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44968
44969         * m4/mbsstr.m4: Remove file.
44970         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44971         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44972
44973         * m4/mbstok_r.m4: Remove file.
44974         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44975         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44976
44977         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44978
44979         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44980         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44981
44982         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44983
44984 2009-03-08  Bruno Haible  <bruno@clisp.org>
44985
44986         Tests for module 'unicase/ulc-casecmp'.
44987         * modules/unicase/ulc-casecmp-tests: New file.
44988         * tests/unicase/test-ulc-casecmp1.sh: New file.
44989         * tests/unicase/test-ulc-casecmp2.sh: New file.
44990         * tests/unicase/test-ulc-casecmp.c: New file.
44991
44992         New module 'unicase/ulc-casecmp'.
44993         * lib/unicase.h (ulc_casecmp): New declaration.
44994         * lib/unicase/ulc-casecmp.c: New file.
44995         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44996         'const SRC_UNIT *'.
44997         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44998         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44999         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45000         * modules/unicase/ulc-casecmp: New file.
45001
45002         Tests for module 'unicase/u32-is-cased'.
45003         * modules/unicase/u32-is-cased-tests: New file.
45004         * tests/unicase/test-u32-is-cased.c: New file.
45005
45006         Tests for module 'unicase/u16-is-cased'.
45007         * modules/unicase/u16-is-cased-tests: New file.
45008         * tests/unicase/test-u16-is-cased.c: New file.
45009
45010         Tests for module 'unicase/u8-is-cased'.
45011         * modules/unicase/u8-is-cased-tests: New file.
45012         * tests/unicase/test-u8-is-cased.c: New file.
45013         * tests/unicase/test-is-cased.h: New file.
45014
45015         New module 'unicase/u32-is-cased'.
45016         * lib/unicase/u32-is-cased.c: New file.
45017         * modules/unicase/u32-is-cased: New file.
45018
45019         New module 'unicase/u16-is-cased'.
45020         * lib/unicase/u16-is-cased.c: New file.
45021         * modules/unicase/u16-is-cased: New file.
45022
45023         New module 'unicase/u8-is-cased'.
45024         * lib/unicase/u8-is-cased.c: New file.
45025         * lib/unicase/u-is-cased.h: New file.
45026         * modules/unicase/u8-is-cased: New file.
45027
45028         Tests for module 'unicase/u32-is-casefolded'.
45029         * modules/unicase/u32-is-casefolded-tests: New file.
45030         * tests/unicase/test-u32-is-casefolded.c: New file.
45031
45032         Tests for module 'unicase/u16-is-casefolded'.
45033         * modules/unicase/u16-is-casefolded-tests: New file.
45034         * tests/unicase/test-u16-is-casefolded.c: New file.
45035
45036         Tests for module 'unicase/u8-is-casefolded'.
45037         * modules/unicase/u8-is-casefolded-tests: New file.
45038         * tests/unicase/test-u8-is-casefolded.c: New file.
45039         * tests/unicase/test-is-casefolded.h: New file.
45040
45041         New module 'unicase/u32-is-casefolded'.
45042         * lib/unicase/u32-is-casefolded.c: New file.
45043         * modules/unicase/u32-is-casefolded: New file.
45044
45045         New module 'unicase/u16-is-casefolded'.
45046         * lib/unicase/u16-is-casefolded.c: New file.
45047         * modules/unicase/u16-is-casefolded: New file.
45048
45049         New module 'unicase/u8-is-casefolded'.
45050         * lib/unicase/u8-is-casefolded.c: New file.
45051         * modules/unicase/u8-is-casefolded: New file.
45052
45053         Tests for module 'unicase/u32-is-titlecase'.
45054         * modules/unicase/u32-is-titlecase-tests: New file.
45055         * tests/unicase/test-u32-is-titlecase.c: New file.
45056
45057         Tests for module 'unicase/u16-is-titlecase'.
45058         * modules/unicase/u16-is-titlecase-tests: New file.
45059         * tests/unicase/test-u16-is-titlecase.c: New file.
45060
45061         Tests for module 'unicase/u8-is-titlecase'.
45062         * modules/unicase/u8-is-titlecase-tests: New file.
45063         * tests/unicase/test-u8-is-titlecase.c: New file.
45064         * tests/unicase/test-is-titlecase.h: New file.
45065
45066         New module 'unicase/u32-is-titlecase'.
45067         * lib/unicase/u32-is-titlecase.c: New file.
45068         * modules/unicase/u32-is-titlecase: New file.
45069
45070         New module 'unicase/u16-is-titlecase'.
45071         * lib/unicase/u16-is-titlecase.c: New file.
45072         * modules/unicase/u16-is-titlecase: New file.
45073
45074         New module 'unicase/u8-is-titlecase'.
45075         * lib/unicase/u8-is-titlecase.c: New file.
45076         * modules/unicase/u8-is-titlecase: New file.
45077
45078         Tests for module 'unicase/u32-is-lowercase'.
45079         * modules/unicase/u32-is-lowercase-tests: New file.
45080         * tests/unicase/test-u32-is-lowercase.c: New file.
45081
45082         Tests for module 'unicase/u16-is-lowercase'.
45083         * modules/unicase/u16-is-lowercase-tests: New file.
45084         * tests/unicase/test-u16-is-lowercase.c: New file.
45085
45086         Tests for module 'unicase/u8-is-lowercase'.
45087         * modules/unicase/u8-is-lowercase-tests: New file.
45088         * tests/unicase/test-u8-is-lowercase.c: New file.
45089         * tests/unicase/test-is-lowercase.h: New file.
45090
45091         New module 'unicase/u32-is-lowercase'.
45092         * lib/unicase/u32-is-lowercase.c: New file.
45093         * modules/unicase/u32-is-lowercase: New file.
45094
45095         New module 'unicase/u16-is-lowercase'.
45096         * lib/unicase/u16-is-lowercase.c: New file.
45097         * modules/unicase/u16-is-lowercase: New file.
45098
45099         New module 'unicase/u8-is-lowercase'.
45100         * lib/unicase/u8-is-lowercase.c: New file.
45101         * modules/unicase/u8-is-lowercase: New file.
45102
45103         Tests for module 'unicase/u32-is-uppercase'.
45104         * modules/unicase/u32-is-uppercase-tests: New file.
45105         * tests/unicase/test-u32-is-uppercase.c: New file.
45106
45107         Tests for module 'unicase/u16-is-uppercase'.
45108         * modules/unicase/u16-is-uppercase-tests: New file.
45109         * tests/unicase/test-u16-is-uppercase.c: New file.
45110
45111         Tests for module 'unicase/u8-is-uppercase'.
45112         * modules/unicase/u8-is-uppercase-tests: New file.
45113         * tests/unicase/test-u8-is-uppercase.c: New file.
45114         * tests/unicase/test-is-uppercase.h: New file.
45115
45116         New module 'unicase/u32-is-uppercase'.
45117         * lib/unicase/u32-is-uppercase.c: New file.
45118         * modules/unicase/u32-is-uppercase: New file.
45119
45120         New module 'unicase/u16-is-uppercase'.
45121         * lib/unicase/u16-is-uppercase.c: New file.
45122         * modules/unicase/u16-is-uppercase: New file.
45123
45124         New module 'unicase/u8-is-uppercase'.
45125         * lib/unicase/u8-is-uppercase.c: New file.
45126         * modules/unicase/u8-is-uppercase: New file.
45127
45128         New module 'unicase/u32-is-invariant'.
45129         * lib/unicase/u32-is-invariant.c: New file.
45130         * modules/unicase/u32-is-invariant: New file.
45131
45132         New module 'unicase/u16-is-invariant'.
45133         * lib/unicase/u16-is-invariant.c: New file.
45134         * modules/unicase/u16-is-invariant: New file.
45135
45136         New module 'unicase/u8-is-invariant'.
45137         * lib/unicase/u8-is-invariant.c: New file.
45138         * lib/unicase/invariant.h: New file.
45139         * lib/unicase/u-is-invariant.h: New file.
45140         * modules/unicase/u8-is-invariant: New file.
45141
45142         Tests for module 'unicase/u32-casecoll'.
45143         * modules/unicase/u32-casecoll-tests: New file.
45144         * tests/unicase/test-u32-casecoll.c: New file.
45145
45146         Tests for module 'unicase/u16-casecoll'.
45147         * modules/unicase/u16-casecoll-tests: New file.
45148         * tests/unicase/test-u16-casecoll.c: New file.
45149
45150         Tests for module 'unicase/u8-casecoll'.
45151         * modules/unicase/u8-casecoll-tests: New file.
45152         * tests/unicase/test-u8-casecoll.c: New file.
45153
45154         New module 'unicase/u32-casecoll'.
45155         * lib/unicase/u32-casecoll.c: New file.
45156         * modules/unicase/u32-casecoll: New file.
45157
45158         New module 'unicase/u16-casecoll'.
45159         * lib/unicase/u16-casecoll.c: New file.
45160         * modules/unicase/u16-casecoll: New file.
45161
45162         New module 'unicase/u8-casecoll'.
45163         * lib/unicase/u8-casecoll.c: New file.
45164         * lib/unicase/u-casecoll.h: New file.
45165         * modules/unicase/u8-casecoll: New file.
45166
45167         New module 'unicase/u32-casexfrm'.
45168         * lib/unicase/u32-casexfrm.c: New file.
45169         * modules/unicase/u32-casexfrm: New file.
45170
45171         New module 'unicase/u16-casexfrm'.
45172         * lib/unicase/u16-casexfrm.c: New file.
45173         * modules/unicase/u16-casexfrm: New file.
45174
45175         New module 'unicase/u8-casexfrm'.
45176         * lib/unicase/u8-casexfrm.c: New file.
45177         * lib/unicase/u-casexfrm.h: New file.
45178         * modules/unicase/u8-casexfrm: New file.
45179
45180         Tests for module 'unicase/u32-casecmp'.
45181         * modules/unicase/u32-casecmp-tests: New file.
45182         * tests/unicase/test-u32-casecmp.c: New file.
45183
45184         Tests for module 'unicase/u16-casecmp'.
45185         * modules/unicase/u16-casecmp-tests: New file.
45186         * tests/unicase/test-u16-casecmp.c: New file.
45187
45188         Tests for module 'unicase/u8-casecmp'.
45189         * modules/unicase/u8-casecmp-tests: New file.
45190         * tests/unicase/test-u8-casecmp.c: New file.
45191         * tests/unicase/test-casecmp.h: New file.
45192
45193         New module 'unicase/u32-casecmp'.
45194         * lib/unicase/u32-casecmp.c: New file.
45195         * modules/unicase/u32-casecmp: New file.
45196
45197         New module 'unicase/u16-casecmp'.
45198         * lib/unicase/u16-casecmp.c: New file.
45199         * modules/unicase/u16-casecmp: New file.
45200
45201         New module 'unicase/u8-casecmp'.
45202         * lib/unicase/u8-casecmp.c: New file.
45203         * lib/unicase/u-casecmp.h: New file.
45204         * modules/unicase/u8-casecmp: New file.
45205
45206         Tests for module 'unicase/u32-casefold'.
45207         * modules/unicase/u32-casefold-tests: New file.
45208         * tests/unicase/test-u32-casefold.c: New file.
45209
45210         Tests for module 'unicase/u16-casefold'.
45211         * modules/unicase/u16-casefold-tests: New file.
45212         * tests/unicase/test-u16-casefold.c: New file.
45213
45214         Tests for module 'unicase/u8-casefold'.
45215         * modules/unicase/u8-casefold-tests: New file.
45216         * tests/unicase/test-u8-casefold.c: New file.
45217
45218         New module 'unicase/u32-casefold'.
45219         * lib/unicase/u32-casefold.c: New file.
45220         * modules/unicase/u32-casefold: New file.
45221
45222         New module 'unicase/u16-casefold'.
45223         * lib/unicase/u16-casefold.c: New file.
45224         * modules/unicase/u16-casefold: New file.
45225
45226         New module 'unicase/u8-casefold'.
45227         * lib/unicase/u8-casefold.c: New file.
45228         * lib/unicase/u-casefold.h: New file.
45229         * modules/unicase/u8-casefold: New file.
45230
45231         New module 'unicase/tocasefold'.
45232         * lib/unicase/casefold.h: New file.
45233         * lib/unicase/tocasefold.c: New file.
45234         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45235         * modules/unicase/tocasefold: New file.
45236
45237         Tests for module 'unicase/u32-totitle'.
45238         * modules/unicase/u32-totitle-tests: New file.
45239         * tests/unicase/test-u32-totitle.c: New file.
45240
45241         Tests for module 'unicase/u16-totitle'.
45242         * modules/unicase/u16-totitle-tests: New file.
45243         * tests/unicase/test-u16-totitle.c: New file.
45244
45245         Tests for module 'unicase/u8-totitle'.
45246         * modules/unicase/u8-totitle-tests: New file.
45247         * tests/unicase/test-u8-totitle.c: New file.
45248
45249         New module 'unicase/u32-totitle'.
45250         * lib/unicase/u32-totitle.c: New file.
45251         * modules/unicase/u32-totitle: New file.
45252
45253         New module 'unicase/u16-totitle'.
45254         * lib/unicase/u16-totitle.c: New file.
45255         * modules/unicase/u16-totitle: New file.
45256
45257         New module 'unicase/u8-totitle'.
45258         * lib/unicase/u8-totitle.c: New file.
45259         * lib/unicase/u-totitle.h: New file.
45260         * modules/unicase/u8-totitle: New file.
45261
45262         Tests for module 'unicase/u32-tolower'.
45263         * modules/unicase/u32-tolower-tests: New file.
45264         * tests/unicase/test-u32-tolower.c: New file.
45265
45266         Tests for module 'unicase/u16-tolower'.
45267         * modules/unicase/u16-tolower-tests: New file.
45268         * tests/unicase/test-u16-tolower.c: New file.
45269
45270         Tests for module 'unicase/u8-tolower'.
45271         * modules/unicase/u8-tolower-tests: New file.
45272         * tests/unicase/test-u8-tolower.c: New file.
45273
45274         New module 'unicase/u32-tolower'.
45275         * lib/unicase/u32-tolower.c: New file.
45276         * modules/unicase/u32-tolower: New file.
45277
45278         New module 'unicase/u16-tolower'.
45279         * lib/unicase/u16-tolower.c: New file.
45280         * modules/unicase/u16-tolower: New file.
45281
45282         New module 'unicase/u8-tolower'.
45283         * lib/unicase/u8-tolower.c: New file.
45284         * modules/unicase/u8-tolower: New file.
45285
45286         Tests for module 'unicase/u32-toupper'.
45287         * modules/unicase/u32-toupper-tests: New file.
45288         * tests/unicase/test-u32-toupper.c: New file.
45289
45290         Tests for module 'unicase/u16-toupper'.
45291         * modules/unicase/u16-toupper-tests: New file.
45292         * tests/unicase/test-u16-toupper.c: New file.
45293
45294         Tests for module 'unicase/u8-toupper'.
45295         * modules/unicase/u8-toupper-tests: New file.
45296         * tests/unicase/test-u8-toupper.c: New file.
45297
45298         New module 'unicase/u32-toupper'.
45299         * lib/unicase/u32-toupper.c: New file.
45300         * modules/unicase/u32-toupper: New file.
45301
45302         New module 'unicase/u16-toupper'.
45303         * lib/unicase/u16-toupper.c: New file.
45304         * modules/unicase/u16-toupper: New file.
45305
45306         New module 'unicase/u8-toupper'.
45307         * lib/unicase/u8-toupper.c: New file.
45308         * modules/unicase/u8-toupper: New file.
45309
45310         New module 'unicase/u32-casemap'.
45311         * lib/unicase/u32-casemap.c: New file.
45312         * modules/unicase/u32-casemap: New file.
45313
45314         New module 'unicase/u16-casemap'.
45315         * lib/unicase/u16-casemap.c: New file.
45316         * modules/unicase/u16-casemap: New file.
45317
45318         New module 'unicase/u8-casemap'.
45319         * lib/unicase/unicasemap.h: New file.
45320         * lib/unicase/u8-casemap.c: New file.
45321         * lib/unicase/u-casemap.h: New file.
45322         * modules/unicase/u8-casemap: New file.
45323
45324         New module 'unicase/special-casing'.
45325         * lib/unicase/special-casing.h: New file.
45326         * lib/unicase/special-casing.c: New file.
45327         * lib/unicase/special-casing-table.gperf: New file, generated by
45328         gen-uni-tables.c.
45329         * modules/unicase/special-casing: New file.
45330
45331         Tests for module 'unicase/locale-language'.
45332         * modules/unicase/locale-language-tests: New file.
45333         * tests/unicase/test-locale-language.sh: New file.
45334         * tests/unicase/test-locale-language.c: New file.
45335
45336         New module 'unicase/locale-language'.
45337         * lib/unicase/locale-language.c: New file.
45338         * lib/unicase/locale-languages.gperf: New file.
45339         * modules/unicase/locale-language: New file.
45340
45341         Generate more tables for case conversion and case folding.
45342         * lib/gen-uni-tables.c (SCC_*): New enum items.
45343         (struct special_casing_rule): New type.
45344         (casing_rules, num_casing_rules, allocated_casing_rules): New
45345         variables.
45346         (add_casing_rule, fill_casing_rules): New functions.
45347         (struct casefold_rule): New type.
45348         (casefolding_rules, num_casefolding_rules,
45349         allocated_casefolding_rules): New variables.
45350         (fill_casefolding_rules): New function.
45351         (unicode_casefold): New variable.
45352         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45353         sort_casing_rules, output_casing_rules): New functions.
45354         (main): Accept to more arguments: SpecialCasing.txt and
45355         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45356         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45357         Output mapping for casefolding.
45358
45359         * lib/unicase.h: Include stdbool.h, uninorm.h.
45360         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45361         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45362         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45363         arguments.
45364         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45365         resultp arguments.
45366         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45367         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45368         resultp arguments.
45369         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45370         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45371         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45372         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45373         declarations.
45374         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45375
45376 2009-03-08  Bruno Haible  <bruno@clisp.org>
45377
45378         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45379         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45380         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45381         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45382
45383 2009-03-07  Bruno Haible  <bruno@clisp.org>
45384
45385         Adjust u*_normcmp, u*_normcoll API.
45386         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45387         u16_normcoll, u32_normcoll): Change failure conventions.
45388         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45389         errno and return -1.
45390         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45391
45392 2009-03-07  Bruno Haible  <bruno@clisp.org>
45393
45394         Tests for module 'uninorm/u32-normcoll'.
45395         * modules/uninorm/u32-normcoll-tests: New file.
45396         * tests/uninorm/test-u32-normcoll.c: New file.
45397
45398         Tests for module 'uninorm/u16-normcoll'.
45399         * modules/uninorm/u16-normcoll-tests: New file.
45400         * tests/uninorm/test-u16-normcoll.c: New file.
45401
45402         Tests for module 'uninorm/u8-normcoll'.
45403         * modules/uninorm/u8-normcoll-tests: New file.
45404         * tests/uninorm/test-u8-normcoll.c: New file.
45405
45406 2009-03-07  Bruno Haible  <bruno@clisp.org>
45407
45408         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45409         tests/uninorm/test-u32-normcmp.c.
45410         * tests/uninorm/test-u32-normcmp.c: Include it.
45411         (test_nonascii): New function, extracted from main. Add some more
45412         tests.
45413         (main): Invoke test_ascii and test_nonascii.
45414         * modules/uninorm/u32-normcmp-tests (Files): Add
45415         tests/uninorm/test-u32-normcmp.h.
45416         (Depends-on): Remove uninorm/u32-normcmp.
45417
45418         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45419         tests/uninorm/test-u16-normcmp.c.
45420         * tests/uninorm/test-u16-normcmp.c: Include it.
45421         (test_nonascii): New function, extracted from main. Add some more
45422         tests.
45423         (main): Invoke test_ascii and test_nonascii.
45424         * modules/uninorm/u16-normcmp-tests (Files): Add
45425         tests/uninorm/test-u16-normcmp.h.
45426         (Depends-on): Remove uninorm/u16-normcmp.
45427
45428         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45429         tests/uninorm/test-u8-normcmp.c.
45430         * tests/uninorm/test-u8-normcmp.c: Include it.
45431         (test_nonascii): New function, extracted from main. Add some more
45432         tests.
45433         (main): Invoke test_ascii and test_nonascii.
45434         * modules/uninorm/u8-normcmp-tests (Files): Add
45435         tests/uninorm/test-u8-normcmp.h.
45436         (Depends-on): Remove uninorm/u8-normcmp.
45437
45438 2009-03-07  Bruno Haible  <bruno@clisp.org>
45439
45440         New module 'uninorm/u32-normcoll'.
45441         * lib/uninorm/u32-normcoll.c: New file.
45442         * modules/uninorm/u32-normcoll: New file.
45443
45444         New module 'uninorm/u16-normcoll'.
45445         * lib/uninorm/u16-normcoll.c: New file.
45446         * modules/uninorm/u16-normcoll: New file.
45447
45448         New module 'uninorm/u8-normcoll'.
45449         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45450         declarations.
45451         * lib/uninorm/u8-normcoll.c: New file.
45452         * lib/uninorm/u-normcoll.h: New file.
45453         * modules/uninorm/u8-normcoll: New file.
45454
45455         New module 'uninorm/u32-normxfrm'.
45456         * lib/uninorm/u32-normxfrm.c: New file.
45457         * modules/uninorm/u32-normxfrm: New file.
45458
45459         New module 'uninorm/u16-normxfrm'.
45460         * lib/uninorm/u16-normxfrm.c: New file.
45461         * modules/uninorm/u16-normxfrm: New file.
45462
45463         New module 'uninorm/u8-normxfrm'.
45464         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45465         declarations.
45466         * lib/uninorm/u8-normxfrm.c: New file.
45467         * lib/uninorm/u-normxfrm.h: New file.
45468         * modules/uninorm/u8-normxfrm: New file.
45469
45470 2009-03-07  Bruno Haible  <bruno@clisp.org>
45471
45472         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45473         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45474         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45475
45476 2009-03-07  Bruno Haible  <bruno@clisp.org>
45477
45478         New module 'memxfrm'.
45479         * lib/memxfrm.h: New file.
45480         * lib/memxfrm.c: New file.
45481         * modules/memxfrm: New file.
45482
45483 2009-03-07  Bruno Haible  <bruno@clisp.org>
45484
45485         New module 'memcmp2'.
45486         * lib/memcmp2.h: New file.
45487         * lib/memcmp2.c: New file.
45488         * modules/memcmp2: New file.
45489
45490 2009-03-07  Bruno Haible  <bruno@clisp.org>
45491
45492         Tests for module 'uninorm/decomposing-form'.
45493         * modules/uninorm/decomposing-form-tests: New file.
45494         * tests/uninorm/test-decomposing-form.c: New file.
45495
45496         New module 'uninorm/decomposing-form'.
45497         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45498         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45499         Add 'decomposing_variant' field.
45500         * lib/uninorm/decomposing-form.c: New file.
45501         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45502         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45503         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45504         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45505         * modules/uninorm/decomposing-form: New file.
45506         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45507         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45508
45509 2009-03-07  Bruno Haible  <bruno@clisp.org>
45510
45511         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45512         strings.
45513
45514 2009-03-06  Bruno Haible  <bruno@clisp.org>
45515
45516         Tests for module 'uninorm/u32-normcmp'.
45517         * tests/uninorm/test-u32-normcmp.c: New file.
45518         * modules/uninorm/u32-normcmp-tests: New file.
45519
45520         Tests for module 'uninorm/u16-normcmp'.
45521         * tests/uninorm/test-u16-normcmp.c: New file.
45522         * modules/uninorm/u16-normcmp-tests: New file.
45523
45524         Tests for module 'uninorm/u8-normcmp'.
45525         * tests/uninorm/test-u8-normcmp.c: New file.
45526         * modules/uninorm/u8-normcmp-tests: New file.
45527
45528         New module 'uninorm/u32-normcmp'.
45529         * lib/uninorm/u32-normcmp.c: New file.
45530         * modules/uninorm/u32-normcmp: New file.
45531
45532         New module 'uninorm/u16-normcmp'.
45533         * lib/uninorm/u16-normcmp.c: New file.
45534         * modules/uninorm/u16-normcmp: New file.
45535
45536         New module 'uninorm/u8-normcmp'.
45537         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45538         declarations.
45539         * lib/uninorm/u8-normcmp.c: New file.
45540         * lib/uninorm/u-normcmp.h: New file.
45541         * modules/uninorm/u8-normcmp: New file.
45542
45543 2009-03-06  Bruno Haible  <bruno@clisp.org>
45544
45545         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45546         Reported by Eric Blake.
45547
45548 2009-03-06  Eric Blake  <ebb9@byu.net>
45549             Bruno Haible  <bruno@clisp.org>
45550
45551         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45552         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45553         condition.
45554         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45555         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45556         condition.
45557         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45558
45559 2009-03-06  Eric Blake  <ebb9@byu.net>
45560
45561         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45562         to avoid compiler warnings.
45563         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45564
45565 2009-03-05  Bruno Haible  <bruno@clisp.org>
45566
45567         * tests/test-ftell.c (main): Disable test beyond end of file on
45568         FreeMiNT.
45569         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45570
45571 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45572
45573         * lib/filevercmp.c: Move hidden files up in ordering.
45574         * tests/test-filevercmp.c: Add tests for hidden files.
45575
45576 2009-03-04  Bruno Haible  <bruno@clisp.org>
45577
45578         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45579         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45580         AM_CFLAGS.
45581         Reported by Simon Josefsson.
45582
45583 2009-03-03  Bruno Haible  <bruno@clisp.org>
45584
45585         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45586         Reported by Simon Josefsson.
45587
45588         * doc/ld-version-script.texi: Update node reference.
45589
45590 2009-03-03  Bruno Haible  <bruno@clisp.org>
45591
45592         * modules/visibility (License): Change to 'unlimited'.
45593         Suggested by Simon Josefsson.
45594
45595 2009-03-03  Jim Meyering  <meyering@redhat.com>
45596
45597         unlinkdir: cannot_unlink_dir may modify process state
45598         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45599         it's neither thread-safe nor appropriate for use in a library.
45600
45601 2009-03-03  Eric Blake  <ebb9@byu.net>
45602
45603         test-closein: silence test under Darwin
45604         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45605         care if it dies from EPIPE or EBADF.
45606
45607 2009-03-03  Bruno Haible  <bruno@clisp.org>
45608
45609         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45610         earlier.
45611         * doc/visibility.texi: Fix @node and @section.
45612
45613 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45614
45615         * doc/gnulib.texi: Link to sections for ld version script and
45616         visibility.
45617         * doc/visibility.texi: Add @node and @section.
45618         * modules/ld-version-script: New module.
45619         * m4/ld-version-script.m4: New file.
45620         * doc/ld-version-script.texi: New file.
45621
45622 2009-03-02  David Lutterkort  <lutter@redhat.com>
45623
45624         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45625         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45626
45627 2009-03-02  Bruno Haible  <bruno@clisp.org>
45628
45629         * doc/visibility.texi: Mention libtool's -export-symbols option.
45630
45631 2009-03-02  Jim Meyering  <meyering@redhat.com>
45632
45633         announce-gen: new option: --no-print-checksums
45634         * build-aux/announce-gen (usage): Describe it.
45635         (print_checksums): Print a newline here, not in the [*] footnote.
45636         (main): Honor it.
45637
45638 2009-03-01  Bruno Haible  <bruno@clisp.org>
45639
45640         Use socklen_t in the native Windows replacements prototypes.
45641         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45642         instead of 'int'.
45643         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45644         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45645         * modules/getsockopt (Depends-on): Add socklen.
45646         * modules/setsockopt (Depends-on): Add socklen.
45647
45648 2009-03-01  Bruno Haible  <bruno@clisp.org>
45649
45650         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45651         least 4.2.
45652
45653 2009-03-01  Eric Blake  <ebb9@byu.net>
45654             Bruno Haible  <bruno@clisp.org>
45655
45656         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45657         error messages.
45658         * lib/wait-process.c (wait_subprocess): Omit error message about
45659         deadly signal sent to the child of termsigp != NULL.
45660
45661 2009-03-01  Eric Blake  <ebb9@byu.net>
45662
45663         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45664
45665 2009-03-01  Bruno Haible  <bruno@clisp.org>
45666
45667         Avoid a gcc warning.
45668         * tests/test-sched.c (b): Make global.
45669         Reported by Eric Blake.
45670
45671 2009-01-19  Martin Lambers  <marlam@marlam.de>
45672
45673         Provide POSIX semantics for socket timeout options on W32.
45674         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45675         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45676         * modules/setsockopt: Depend on sys_time module for struct timeval.
45677         * modules/getsockopt: Depend on sys_time module for struct timeval.
45678
45679 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45680
45681         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45682         __USE_GNU, for consistency with netdb.in.h.
45683         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45684
45685 2009-03-01  Bruno Haible  <bruno@clisp.org>
45686
45687         More support for FreeMiNT.
45688         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45689         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45690
45691 2009-03-01  Bruno Haible  <bruno@clisp.org>
45692
45693         More support for FreeMiNT.
45694         * lib/fpurge.c (fpurge): Correct last commit.
45695         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45696
45697 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45698
45699         Fix unportable awk script in vc-list-files.
45700         * build-aux/vc-list-files: In the replacement awk script, use
45701         substr with a second argument of 1, not zero.
45702         Report by Simon Josefsson.
45703
45704 2009-02-28  Bruno Haible  <bruno@clisp.org>
45705
45706         More support for FreeMiNT.
45707         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45708         to FreeMiNT today.
45709         * lib/fwriting.c (fwriting): Likewise.
45710         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45711
45712 2009-02-28  Bruno Haible  <bruno@clisp.org>
45713
45714         * tests/test-freadseek.c (main): Disable test beyond end of file on
45715         FreeMiNT.
45716         * tests/test-ftello.c (main): Likewise.
45717         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45718
45719 2009-02-28  Bruno Haible  <bruno@clisp.org>
45720
45721         Add tentative support for FreeMiNT.
45722         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45723         * lib/fpurge.c (fpurge): Likewise.
45724         * lib/freadable.c (freadable): Likewise.
45725         * lib/freading.c (freading): Likewise.
45726         * lib/freadptr.c (freadptr): Likewise.
45727         * lib/freadseek.c (freadptrinc): Likewise.
45728         * lib/fseeko.c (rpl_fseeko): Likewise.
45729         * lib/fseterr.c (fseterr): Likewise.
45730         * lib/fwritable.c (fwritable): Likewise.
45731         * lib/fwriting.c (fwriting): Likewise.
45732         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45733         Hourihane.
45734         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45735
45736 2009-02-28  Bruno Haible  <bruno@clisp.org>
45737
45738         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45739         SIGCHLD.
45740         Reported by Jim Meyering.
45741
45742 2009-02-28  Bruno Haible  <bruno@clisp.org>
45743
45744         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45745         Mention the results of these tests on various platforms.
45746         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45747         order.
45748         * doc/posix-functions/printf.texi: Likewise.
45749         * doc/posix-functions/snprintf.texi: Likewise.
45750         * doc/posix-functions/sprintf.texi: Likewise.
45751         * doc/posix-functions/vfprintf.texi: Likewise.
45752         * doc/posix-functions/vprintf.texi: Likewise.
45753         * doc/posix-functions/vsnprintf.texi: Likewise.
45754         * doc/posix-functions/vsprintf.texi: Likewise.
45755         * doc/glibc-functions/obstack_printf.texi: Likewise.
45756         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45757
45758 2009-02-28  Bruno Haible  <bruno@clisp.org>
45759
45760         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45761         Reported by Loïc Minier <lool@dooz.org>.
45762
45763 2009-02-27  Bruno Haible  <bruno@clisp.org>
45764
45765         * gnulib-tool (func_import): Make the sed expression used to create the
45766         sed script for updating the .gitignore file POSIX compliant.
45767         Reported by Eric Blake.
45768
45769 2009-02-27  Bruno Haible  <bruno@clisp.org>
45770
45771         * gnulib-tool (sed): Don't alias as "sed --posix".
45772         Reported by Eric Blake.
45773
45774 2009-02-27  Bruno Haible  <bruno@clisp.org>
45775
45776         Avoid test link errors.
45777         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45778         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45779         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45780         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45781         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45782
45783 2009-02-27  Bruno Haible  <bruno@clisp.org>
45784
45785         Avoid spurious "(cached)" in configure output.
45786         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45787         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45788         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45789         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45790         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45791         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45792         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45793         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45794         Reported by Eric Blake.
45795
45796 2009-02-27  Eric Blake  <ebb9@byu.net>
45797
45798         printf: fix regression in previous patch
45799         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45800
45801 2009-02-27  Bruno Haible  <bruno@clisp.org>
45802
45803         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45804         value.
45805         * lib/stdint.in.h: Likewise.
45806         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45807
45808 2009-02-27  Eric Blake  <ebb9@byu.net>
45809
45810         doc: mention more functions added in cygwin 1.7.0
45811         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45812         addition.
45813         * doc/posix-functions/open_wmemstream.texi: Likewise.
45814         * doc/posix-functions/wcsnlen.texi: Likewise.
45815         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45816         * doc/posix-functions/wcstod.texi: Likewise.
45817         * doc/posix-functions/wcstof.texi: Likewise.
45818         * doc/posix-functions/wcstoimax.texi: Likewise.
45819         * doc/posix-functions/wcstok.texi: Likewise.
45820         * doc/posix-functions/wcstoumax.texi: Likewise.
45821
45822         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45823         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45824         * doc/posix-functions/fprintf.texi: Update.
45825         * doc/posix-functions/printf.texi: Update.
45826         * doc/posix-functions/snprintf.texi: Update.
45827         * doc/posix-functions/sprintf.texi: Update.
45828         * doc/posix-functions/vfprintf.texi: Update.
45829         * doc/posix-functions/vprintf.texi: Update.
45830         * doc/posix-functions/vsnprintf.texi: Update.
45831         * doc/posix-functions/vsprintf.texi: Update.
45832         * doc/glibc-functions/obstack_printf.texi: Update.
45833         * doc/glibc-functions/obstack_vprintf.texi: Update.
45834
45835 2009-02-26  Eric Blake  <ebb9@byu.net>
45836
45837         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45838         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45839         compilation bug by using runtime conversion.
45840         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45841         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45842         * modules/ceill-tests (Files): Use nan.h.
45843         * modules/floorl-tests (Files): Likewise.
45844         * modules/frexpl-tests (Files): Likewise.
45845         * modules/isnanl-tests (Files): Likewise.
45846         * modules/ldexpl-tests (Files): Likewise.
45847         * modules/roundl-tests (Files): Likewise.
45848         * modules/truncl-tests (Files): Likewise.
45849         * tests/test-ceill.c (main): Use a working NaN.
45850         * tests/test-floorl.c (main): Likewise.
45851         * tests/test-frexpl.c (main): Likewise.
45852         * tests/test-isnan.c (test_long_double): Likewise.
45853         * tests/test-isnanl.h (main): Likewise.
45854         * tests/test-ldexpl.h (main): Likewise.
45855         * tests/test-roundl.h (main): Likewise.
45856         * tests/test-truncl.h (main): Likewise.
45857         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45858
45859 2009-02-26  Eric Blake  <ebb9@byu.net>
45860             Bruno Haible  <bruno@clisp.org>
45861
45862         Work around a *printf bug with %ls on Solaris.
45863         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45864         precision is specified, sprintf stops converting the wide string
45865         argument when the number of bytes that have been produced by this
45866         conversion equals or exceeds the precision.
45867         * doc/posix-functions/fprintf.texi: Update.
45868         * doc/posix-functions/printf.texi: Update.
45869         * doc/posix-functions/snprintf.texi: Update.
45870         * doc/posix-functions/sprintf.texi: Update.
45871         * doc/posix-functions/vfprintf.texi: Update.
45872         * doc/posix-functions/vprintf.texi: Update.
45873         * doc/posix-functions/vsnprintf.texi: Update.
45874         * doc/posix-functions/vsprintf.texi: Update.
45875         * doc/glibc-functions/obstack_printf.texi: Update.
45876         * doc/glibc-functions/obstack_vprintf.texi: Update.
45877
45878 2009-02-26  Eric Blake  <ebb9@byu.net>
45879
45880         stdlib: favor compiler check of random.h
45881         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45882         to avoid an ObjC random.h installed by Swarm.
45883
45884 2009-02-26  Bruno Haible  <bruno@clisp.org>
45885
45886         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45887         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45888         Reported by Gary V. Vaughan <gary@gnu.org>.
45889
45890 2009-02-26  Bruno Haible  <bruno@clisp.org>
45891
45892         Fix *printf behaviour regarding the %ls directive.
45893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45894         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45895         NEED_PRINTF_DIRECTIVE_LS.
45896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45897         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45898         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45899         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45900         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45901         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45902         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45904         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45905         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45906         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45907         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45908         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45909         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45910         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45911         * doc/posix-functions/fprintf.texi: Update.
45912         * doc/posix-functions/printf.texi: Update.
45913         * doc/posix-functions/snprintf.texi: Update.
45914         * doc/posix-functions/sprintf.texi: Update.
45915         * doc/posix-functions/vfprintf.texi: Update.
45916         * doc/posix-functions/vprintf.texi: Update.
45917         * doc/posix-functions/vsnprintf.texi: Update.
45918         * doc/posix-functions/vsprintf.texi: Update.
45919         * doc/glibc-functions/obstack_printf.texi: Update.
45920         * doc/glibc-functions/obstack_vprintf.texi: Update.
45921         Reported by Eric Blake.
45922
45923 2009-02-25  Bruno Haible  <bruno@clisp.org>
45924
45925         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45926         with known value.
45927         Reported by Gary V. Vaughan <gary@gnu.org>.
45928
45929 2009-02-25  Bruno Haible  <bruno@clisp.org>
45930
45931         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45932         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45933         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45934         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45935         Reported by Gary V. Vaughan <gary@gnu.org>.
45936
45937 2009-02-25  Bruno Haible  <bruno@clisp.org>
45938
45939         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45940         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45941         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45942         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45943         Reported by Gary V. Vaughan <gary@gnu.org>.
45944
45945 2009-02-25  Eric Blake  <ebb9@byu.net>
45946
45947         tests: skip fseek/ftell tests if ungetc is broken
45948         * m4/ungetc.m4: New file.
45949         * modules/fseek-tests: Split test, so ungetc dependency is
45950         separate from rest of test.
45951         * modules/fseeko-tests: Likewise.
45952         * modules/ftell-tests: Likewise.
45953         * modules/ftello-tests: Likewise.
45954         * tests/test-fseek.c (main): Isolate ungetc dependency.
45955         * tests/test-fseeko.c (main): Likewise.
45956         * tests/test-ftell.c (main): Likewise.
45957         * tests/test-ftello.c (main): Likewise.
45958         * tests/test-fseek2.sh: New file.
45959         * tests/test-fseeko2.sh: Likewise.
45960         * tests/test-ftell2.sh: Likewise.
45961         * tests/test-ftello2.sh: Likewise.
45962
45963 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45964
45965         test-getaddrinfo: fix usage of skip return code 77
45966         * tests/test-gettaddrinfo.c: Return skip code 77 only
45967         for first occurance of skip (4x77 is not 77)
45968
45969 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45970
45971         strtod: avoid C99 decl-after-statement
45972         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45973
45974 2009-02-24  Eric Blake  <ebb9@byu.net>
45975
45976         strtod: detect HP-UX 11.31 bug
45977         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45978         Reported by Gary V. Vaughan.
45979
45980 2009-02-23  Bruno Haible  <bruno@clisp.org>
45981
45982         Fix invalid read past end of memory block.
45983         * lib/vasnprintf.c (DCHAR_SET): Define.
45984         (local_wcslen): Define only when needed.
45985         (local_strnlen, local_wcsnlen): New functions.
45986         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45987         directives that involve a conversion ourselves.
45988         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45989         wcsnlen, mbrtowc, wcrtomb.
45990         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45991         * tests/test-vasprintf-posix.c (test_function): Likewise.
45992         * tests/test-snprintf-posix.h (test_function): Likewise.
45993         * tests/test-sprintf-posix.h (test_function): Likewise.
45994         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45995
45996 2009-02-22  Bruno Haible  <bruno@clisp.org>
45997
45998         Implement new clarified decomposition of Hangul syllables.
45999         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46000         of type LTV, return only a pairwise decomposition.
46001         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46002         Likewise.
46003         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46004         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46005         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46006
46007 2009-02-22  Bruno Haible  <bruno@clisp.org>
46008
46009         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46010         zero-length results and shrink excess allocated memory.
46011         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46012         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46013         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46014         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46015         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46016         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46017         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46018         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46019         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46020         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46021         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46022         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46023
46024 2009-02-21  Bruno Haible  <bruno@clisp.org>
46025
46026         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46027         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46028         spaces after a period. Put a space between a macro name and its
46029         argument list. Trivial rewordings.
46030         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46031         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46032         (main): Return 0 explicitly.
46033
46034 2009-02-21  Bruno Haible  <bruno@clisp.org>
46035
46036         Tests for module 'uninorm/filter'.
46037         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46038         * modules/uninorm/filter-tests: New file.
46039
46040         New module 'uninorm/filter'.
46041         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46042         uninorm_filter_flush, uninorm_filter_free): New declarations.
46043         * lib/uninorm/uninorm-filter.c: New file.
46044         * modules/uninorm/filter: New file.
46045
46046 2009-02-21  Bruno Haible  <bruno@clisp.org>
46047
46048         Tests for module 'uninorm/nfkc'.
46049         * tests/uninorm/test-nfkc.c: New file.
46050         * tests/uninorm/test-u8-nfkc.c: New file.
46051         * tests/uninorm/test-u16-nfkc.c: New file.
46052         * tests/uninorm/test-u32-nfkc.c: New file.
46053         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46054         * tests/uninorm/test-u32-nfkc-big.c: New file.
46055         * modules/uninorm/nfkc-tests: New file.
46056
46057         New module 'uninorm/nfkc'.
46058         * lib/uninorm/nfkc.c: New file.
46059         * modules/uninorm/nfkc: New file.
46060
46061         Tests for module 'uninorm/nfkd'.
46062         * tests/uninorm/test-nfkd.c: New file.
46063         * tests/uninorm/test-u8-nfkd.c: New file.
46064         * tests/uninorm/test-u16-nfkd.c: New file.
46065         * tests/uninorm/test-u32-nfkd.c: New file.
46066         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46067         * tests/uninorm/test-u32-nfkd-big.c: New file.
46068         * modules/uninorm/nfkd-tests: New file.
46069
46070         New module 'uninorm/nfkd'.
46071         * lib/uninorm/nfkd.c: New file.
46072         * modules/uninorm/nfkd: New file.
46073
46074         Tests for module 'uninorm/nfc'.
46075         * tests/uninorm/test-nfc.c: New file.
46076         * tests/uninorm/test-u8-nfc.c: New file.
46077         * tests/uninorm/test-u16-nfc.c: New file.
46078         * tests/uninorm/test-u32-nfc.c: New file.
46079         * tests/uninorm/test-u32-nfc-big.sh: New file.
46080         * tests/uninorm/test-u32-nfc-big.c: New file.
46081         * modules/uninorm/nfc-tests: New file.
46082
46083         New module 'uninorm/nfc'.
46084         * lib/uninorm/nfc.c: New file.
46085         * modules/uninorm/nfc: New file.
46086
46087         Tests for module 'uninorm/nfd'.
46088         * tests/uninorm/test-nfd.c: New file.
46089         * tests/uninorm/test-u8-nfd.c: New file.
46090         * tests/uninorm/test-u16-nfd.c: New file.
46091         * tests/uninorm/test-u32-nfd.c: New file.
46092         * tests/uninorm/test-u32-nfd-big.sh: New file.
46093         * tests/uninorm/test-u32-nfd-big.c: New file.
46094         * tests/uninorm/test-u32-normalize-big.h: New file.
46095         * tests/uninorm/test-u32-normalize-big.c: New file.
46096         * tests/uninorm/NormalizationTest.txt: New file, created from
46097         Unicode 5.1.0 NormalizationTest.txt.
46098         * modules/uninorm/nfd-tests: New file.
46099
46100         New module 'uninorm/nfd'.
46101         * lib/uninorm/nfd.c: New file.
46102         * modules/uninorm/nfd: New file.
46103
46104         New module 'uninorm/u32-normalize'.
46105         * lib/uninorm/u32-normalize.c: New file.
46106         * modules/uninorm/u32-normalize: New file.
46107
46108         New module 'uninorm/u16-normalize'.
46109         * lib/uninorm/u16-normalize.c: New file.
46110         * modules/uninorm/u16-normalize: New file.
46111
46112         New module 'uninorm/u8-normalize'.
46113         * lib/uninorm/u8-normalize.c: New file.
46114         * lib/uninorm/normalize-internal.h: New file.
46115         * lib/uninorm/u-normalize-internal.h: New file.
46116         * modules/uninorm/u8-normalize: New file.
46117
46118         New module 'uninorm/decompose-internal'.
46119         * lib/uninorm/decompose-internal.c: New file.
46120         * modules/uninorm/decompose-internal: New file.
46121
46122         Tests for module 'uninorm/composition'.
46123         * tests/uninorm/test-composition.c: New file.
46124         * modules/uninorm/composition-tests: New file.
46125
46126         New module 'uninorm/composition'.
46127         * lib/uninorm/composition.c: New file.
46128         * lib/uninorm/composition-table.gperf: New file, generated by
46129         gen-uni-tables.
46130         * modules/uninorm/composition: New file.
46131
46132         Tests for module 'uninorm/compat-decomposition'.
46133         * tests/uninorm/test-compat-decomposition.c: New file.
46134         * modules/uninorm/compat-decomposition-tests: New file.
46135
46136         New module 'uninorm/compat-decomposition'.
46137         * lib/uninorm/decompose-internal.h: New file.
46138         * lib/uninorm/compat-decomposition.c: New file.
46139         * modules/uninorm/compat-decomposition: New file.
46140
46141         Tests for module 'uninorm/canonical-decomposition'.
46142         * tests/uninorm/test-canonical-decomposition.c: New file.
46143         * modules/uninorm/canonical-decomposition-tests: New file.
46144
46145         New module 'uninorm/canonical-decomposition'.
46146         * lib/uninorm/canonical-decomposition.c: New file.
46147         * modules/uninorm/canonical-decomposition: New file.
46148
46149         Tests for module 'uninorm/decomposition'.
46150         * tests/uninorm/test-decomposition.c: New file.
46151         * modules/uninorm/decomposition-tests: New file.
46152
46153         New module 'uninorm/decomposition'.
46154         * lib/uninorm/decomposition.c: New file.
46155         * modules/uninorm/decomposition: New file.
46156
46157         New module 'uninorm/decomposition-table'.
46158         * lib/uninorm/decomposition-table.h: New file.
46159         * lib/uninorm/decomposition-table.c: New file.
46160         * lib/uninorm/decomposition-table1.h: New file, generated by
46161         gen-uni-tables.
46162         * lib/uninorm/decomposition-table2.h: New file, generated by
46163         gen-uni-tables.
46164         * modules/uninorm/decomposition-table: New file.
46165
46166         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46167         (UC_DECOMP_*): New enumeration items.
46168         (get_decomposition): New function.
46169         (struct decomp_table): New type.
46170         (output_decomposition, output_decomposition_tables): New functions.
46171         (unicode_composition_exclusions): New variable.
46172         (fill_composition_exclusions, debug_output_composition_tables): New
46173         functions.
46174         (main): Accept one more argument. Invoke fill_composition_exclusions.
46175         Output decomposition and composition tables.
46176
46177         New module 'uninorm/base'.
46178         * lib/uninorm.h: New file.
46179         * lib/unictype.h: Update comment.
46180         * modules/uninorm/base: New file.
46181
46182 2009-02-21  David Lutterkort  <lutter@redhat.com>
46183
46184         Tests for module 'safe-alloc'.
46185         * tests/test-safe-alloc.c: New file.
46186         * modules/safe-alloc-tests: New file.
46187
46188         New module 'safe-alloc'.
46189         * lib/safe-alloc.h: New file.
46190         * lib/safe-alloc.c: New file.
46191         * m4/safe-alloc.m4: New file.
46192         * modules/safe-alloc: New file.
46193         * doc/safe-alloc.texi: New file.
46194         * doc/gnulib.texi: Include it.
46195         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46196         safe-alloc.
46197
46198 2009-02-18  Bruno Haible  <bruno@clisp.org>
46199
46200         Fix link error on non-glibc systems.
46201         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46202         variable.
46203         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46204
46205 2009-02-18  Jim Meyering  <meyering@redhat.com>
46206
46207         fts: avoid used-uninitialized error due to recent change
46208         * lib/fts.c (fts_read): Guard uses of the new member,
46209         parent->fts_n_dirs_remaining, since it's not relevant for
46210         the parent of a directory specified on the command-line.
46211
46212 2009-02-17  James Youngman  <jay@gnu.org>
46213             Bruno Haible  <bruno@clisp.org>
46214
46215         * m4/include_next.m4: Reformulate comment.
46216
46217 2009-02-16  Jim Meyering  <meyering@redhat.com>
46218
46219         fts: add #if guards so that the fts_lgpl module still builds
46220         * lib/fts.c: Guard just-added hash-table-using parts with
46221         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46222         Reported by Simon Josefsson.
46223
46224 2009-02-15  Bruno Haible  <bruno@clisp.org>
46225
46226         * modules/array-mergesort-tests: New file.
46227         * tests/test-array-mergesort.c: New file.
46228
46229         New module 'array-mergesort'.
46230         * modules/array-mergesort: New file.
46231         * lib/array-mergesort.h: New file.
46232
46233 2009-02-15  Bruno Haible  <bruno@clisp.org>
46234
46235         Fix 2009-02-07 commit.
46236         * lib/gen-uni-tables.c (output_predicate, output_category,
46237         output_combclass, output_bidi_category, output_decimal_digit,
46238         output_digit, output_numeric, output_mirror, output_scripts,
46239         output_ident_category, output_simple_mapping): Fix format directives.
46240         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46241
46242 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46243
46244         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46245         fixes are available from IBM.
46246
46247 2009-02-13  Jim Meyering  <meyering@redhat.com>
46248
46249         fts: arrange not to stat non-directories in more cases
46250         This makes GNU find (when it doesn't need to stat each file)
46251         *much* more efficient at traversing reiserfs file systems.
46252         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46253         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46254         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46255         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46256         (leaf_optimization_applies): New function.
46257         (LCO_hash, LCO_compare): New helper functions.
46258         (link_count_optimize_ok): New function.
46259         (fts_stat): Initialize new member (if dir).
46260         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46261         we've just stat'ed a directory.  Skip the stat call when possible.
46262         ---
46263         Note this AFS-related exchange:
46264         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46265         and note find's pioctl call in find/fstype.c.
46266         But that is necessary only if you want to enable the
46267         optimization for AFS, and for now, I don't.
46268
46269         fts: move a function definition "up" (no semantic change)
46270         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46271         "up" to precede upcoming use of a related function.
46272
46273 2009-02-11  Jim Meyering  <meyering@redhat.com>
46274
46275         fts: correct internal computation of nlinks (optimization-related)
46276         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46277         whether the current entry is a directory, so don't test it.
46278
46279 2009-02-10  Bruno Haible  <bruno@clisp.org>
46280
46281         Tests for module 'uniwbrk/ulc-wordbreaks'.
46282         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46283         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46284         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46285
46286         Tests for module 'uniwbrk/u32-wordbreaks'.
46287         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46288         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46289
46290         Tests for module 'uniwbrk/u16-wordbreaks'.
46291         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46292         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46293
46294         Tests for module 'uniwbrk/u8-wordbreaks'.
46295         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46296         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46297
46298 2009-02-10  Bruno Haible  <bruno@clisp.org>
46299
46300         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46301         property.
46302         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46303         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46304         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46305
46306 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46307
46308         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46309         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46310
46311 2009-02-10  Bruno Haible  <bruno@clisp.org>
46312
46313         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46314         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46315         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46316         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46317         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46318         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46319
46320 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46321
46322         * lib/sockets.h (gl_fd_to_handle): New function.
46323
46324         * tests/test-sockets.c: Call gl_fd_to_handle.
46325
46326 2009-02-09  Bruno Haible  <bruno@clisp.org>
46327
46328         * doc/havelib.texi: Document the conventions on bi-arch systems.
46329
46330 2009-02-08  Bruno Haible  <bruno@clisp.org>
46331
46332         Document the AC_LIB_LINKFLAGS macro.
46333         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46334         * doc/gnulib.texi: Include it.
46335
46336 2009-02-08  Bruno Haible  <bruno@clisp.org>
46337
46338         Fix wrong order of sections, compared to TOC.
46339         * doc/gnulib.texi: Include relocatable-maint.texi after the
46340         "Regular expressions" node, not before.
46341
46342 2009-02-08  Bruno Haible  <bruno@clisp.org>
46343
46344         Tests for module 'unicase/totitle'.
46345         * modules/unicase/totitle-tests: New file.
46346
46347         Tests for module 'unicase/tolower'.
46348         * modules/unicase/tolower-tests: New file.
46349
46350         Tests for module 'unicase/toupper'.
46351         * modules/unicase/toupper-tests: New file.
46352         * tests/unicase/test-mapping-part1.h: New file.
46353         * tests/unicase/test-mapping-part2.h: New file.
46354
46355         New module 'unicase/totitle'.
46356         * modules/unicase/totitle: New file.
46357         * lib/unicase/totitle.c: New file.
46358
46359         New module 'unicase/tolower'.
46360         * modules/unicase/tolower: New file.
46361         * lib/unicase/tolower.c: New file.
46362
46363         New module 'unicase/toupper'.
46364         * modules/unicase/toupper: New file.
46365         * lib/unicase/toupper.c: New file.
46366         * lib/unicase/simple-mapping.h: New file.
46367
46368         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46369         (mapping_table): New structure.
46370         (output_simple_mapping): New function.
46371         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46372         * modules/gen-uni-tables (Description): Update.
46373         * lib/unicase/toupper.h: New file, automatically generated by
46374         gen-uni-tables.
46375         * lib/unicase/tolower.h: New file, automatically generated by
46376         gen-uni-tables.
46377         * lib/unicase/totitle.h: New file, automatically generated by
46378         gen-uni-tables.
46379         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46380         gen-uni-tables.
46381         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46382         gen-uni-tables.
46383         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46384         gen-uni-tables.
46385
46386         New module 'unicase/base'.
46387         * modules/unicase/base: New file.
46388         * lib/unicase.h: New file.
46389
46390 2009-02-08  Bruno Haible  <bruno@clisp.org>
46391
46392         New module 'uniwbrk/ulc-wordbreaks'.
46393         * modules/uniwbrk/ulc-wordbreaks: New file.
46394         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46395
46396         New module 'uniwbrk/u32-wordbreaks'.
46397         * modules/uniwbrk/u32-wordbreaks: New file.
46398         * lib/uniwbrk/u32-wordbreaks.c: New file.
46399
46400         New module 'uniwbrk/u16-wordbreaks'.
46401         * modules/uniwbrk/u16-wordbreaks: New file.
46402         * lib/uniwbrk/u16-wordbreaks.c: New file.
46403
46404         New module 'uniwbrk/u8-wordbreaks'.
46405         * modules/uniwbrk/u8-wordbreaks: New file.
46406         * lib/uniwbrk/u8-wordbreaks.c: New file.
46407         * lib/uniwbrk/u-wordbreaks.h: New file.
46408
46409         New module 'uniwbrk/table'.
46410         * modules/uniwbrk/table: New file.
46411         * lib/uniwbrk/wbrktable.h: New file.
46412         * lib/uniwbrk/wbrktable.c: New file.
46413
46414         New module 'uniwbrk/wordbreak-property'.
46415         * modules/uniwbrk/wordbreak-property: New file.
46416         * lib/uniwbrk/wordbreak-property.c: New file.
46417
46418         * lib/gen-uni-tables.c (WBP_*): New enum items.
46419         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46420         (unicode_org_wbp): New variable.
46421         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46422         New functions.
46423         (wbp_table): New structure.
46424         (output_wbp, output_wbrk_tables): New functions.
46425         (main): Accept additional argument. Invoke fill_org_wbp,
46426         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46427         output_wbrk_tables.
46428         * modules/gen-uni-tables (Description): Update.
46429         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46430         gen-uni-tables.
46431
46432         New module 'uniwbrk/base'.
46433         * modules/uniwbrk/base: New file.
46434         * lib/uniwbrk.h: New file.
46435
46436 2009-02-08  Bruno Haible  <bruno@clisp.org>
46437
46438         Update to Unicode 5.1.0.
46439         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46440         U+2185..U+2188.
46441         (is_property_default_ignorable_code_point): Don't include characters
46442         of category Cc or Cs and not-a-characters.
46443         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46444         U+0D79, U+109E, U+109F, U+A60C.
46445         * lib/unictype/bidi_of.h: Regenerated.
46446         * lib/unictype/blocks.h: Regenerated.
46447         * lib/unictype/categ_C.h: Regenerated.
46448         * lib/unictype/categ_Cf.h: Regenerated.
46449         * lib/unictype/categ_Cn.h: Regenerated.
46450         * lib/unictype/categ_L.h: Regenerated.
46451         * lib/unictype/categ_Ll.h: Regenerated.
46452         * lib/unictype/categ_Lm.h: Regenerated.
46453         * lib/unictype/categ_Lo.h: Regenerated.
46454         * lib/unictype/categ_Lu.h: Regenerated.
46455         * lib/unictype/categ_M.h: Regenerated.
46456         * lib/unictype/categ_Mc.h: Regenerated.
46457         * lib/unictype/categ_Me.h: Regenerated.
46458         * lib/unictype/categ_Mn.h: Regenerated.
46459         * lib/unictype/categ_N.h: Regenerated.
46460         * lib/unictype/categ_Nd.h: Regenerated.
46461         * lib/unictype/categ_Nl.h: Regenerated.
46462         * lib/unictype/categ_No.h: Regenerated.
46463         * lib/unictype/categ_P.h: Regenerated.
46464         * lib/unictype/categ_Pd.h: Regenerated.
46465         * lib/unictype/categ_Pe.h: Regenerated.
46466         * lib/unictype/categ_Pf.h: Regenerated.
46467         * lib/unictype/categ_Pi.h: Regenerated.
46468         * lib/unictype/categ_Po.h: Regenerated.
46469         * lib/unictype/categ_Ps.h: Regenerated.
46470         * lib/unictype/categ_S.h: Regenerated.
46471         * lib/unictype/categ_Sk.h: Regenerated.
46472         * lib/unictype/categ_Sm.h: Regenerated.
46473         * lib/unictype/categ_So.h: Regenerated.
46474         * lib/unictype/categ_of.h: Regenerated.
46475         * lib/unictype/combining.h: Regenerated.
46476         * lib/unictype/ctype_alnum.h: Regenerated.
46477         * lib/unictype/ctype_alpha.h: Regenerated.
46478         * lib/unictype/ctype_graph.h: Regenerated.
46479         * lib/unictype/ctype_lower.h: Regenerated.
46480         * lib/unictype/ctype_print.h: Regenerated.
46481         * lib/unictype/ctype_punct.h: Regenerated.
46482         * lib/unictype/ctype_upper.h: Regenerated.
46483         * lib/unictype/decdigit.h: Regenerated.
46484         * lib/unictype/digit.h: Regenerated.
46485         * lib/unictype/mirror.h: Regenerated.
46486         * lib/unictype/numeric.h: Regenerated.
46487         * lib/unictype/pr_alphabetic.h: Regenerated.
46488         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46489         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46490         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46491         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46492         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46493         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46494         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46495         * lib/unictype/pr_combining.h: Regenerated.
46496         * lib/unictype/pr_dash.h: Regenerated.
46497         * lib/unictype/pr_decimal_digit.h: Regenerated.
46498         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46499         * lib/unictype/pr_deprecated.h: Regenerated.
46500         * lib/unictype/pr_diacritic.h: Regenerated.
46501         * lib/unictype/pr_extender.h: Regenerated.
46502         * lib/unictype/pr_format_control.h: Regenerated.
46503         * lib/unictype/pr_grapheme_base.h: Regenerated.
46504         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46505         * lib/unictype/pr_grapheme_link.h: Regenerated.
46506         * lib/unictype/pr_id_continue.h: Regenerated.
46507         * lib/unictype/pr_id_start.h: Regenerated.
46508         * lib/unictype/pr_ideographic.h: Regenerated.
46509         * lib/unictype/pr_ignorable_control.h: Regenerated.
46510         * lib/unictype/pr_lowercase.h: Regenerated.
46511         * lib/unictype/pr_math.h: Regenerated.
46512         * lib/unictype/pr_numeric.h: Regenerated.
46513         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46514         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46515         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46516         * lib/unictype/pr_other_id_continue.h: Regenerated.
46517         * lib/unictype/pr_other_lowercase.h: Regenerated.
46518         * lib/unictype/pr_other_math.h: Regenerated.
46519         * lib/unictype/pr_punctuation.h: Regenerated.
46520         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46521         * lib/unictype/pr_soft_dotted.h: Regenerated.
46522         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46523         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46524         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46525         * lib/unictype/pr_uppercase.h: Regenerated.
46526         * lib/unictype/pr_xid_continue.h: Regenerated.
46527         * lib/unictype/pr_xid_start.h: Regenerated.
46528         * lib/unictype/pr_zero_width.h: Regenerated.
46529         * lib/unictype/scripts.h: Regenerated.
46530         * lib/unictype/scripts_byname.gperf: Regenerated.
46531         * lib/unictype/sy_java_ident.h: Regenerated.
46532         * lib/unilbrk/lbrkprop1.h: Regenerated.
46533         * lib/unilbrk/lbrkprop2.h: Regenerated.
46534         * tests/unictype/test-categ_C.c: Regenerated.
46535         * tests/unictype/test-categ_Cf.c: Regenerated.
46536         * tests/unictype/test-categ_Cn.c: Regenerated.
46537         * tests/unictype/test-categ_L.c: Regenerated.
46538         * tests/unictype/test-categ_Ll.c: Regenerated.
46539         * tests/unictype/test-categ_Lm.c: Regenerated.
46540         * tests/unictype/test-categ_Lo.c: Regenerated.
46541         * tests/unictype/test-categ_Lu.c: Regenerated.
46542         * tests/unictype/test-categ_M.c: Regenerated.
46543         * tests/unictype/test-categ_Mc.c: Regenerated.
46544         * tests/unictype/test-categ_Me.c: Regenerated.
46545         * tests/unictype/test-categ_Mn.c: Regenerated.
46546         * tests/unictype/test-categ_N.c: Regenerated.
46547         * tests/unictype/test-categ_Nd.c: Regenerated.
46548         * tests/unictype/test-categ_Nl.c: Regenerated.
46549         * tests/unictype/test-categ_No.c: Regenerated.
46550         * tests/unictype/test-categ_P.c: Regenerated.
46551         * tests/unictype/test-categ_Pd.c: Regenerated.
46552         * tests/unictype/test-categ_Pe.c: Regenerated.
46553         * tests/unictype/test-categ_Pf.c: Regenerated.
46554         * tests/unictype/test-categ_Pi.c: Regenerated.
46555         * tests/unictype/test-categ_Po.c: Regenerated.
46556         * tests/unictype/test-categ_Ps.c: Regenerated.
46557         * tests/unictype/test-categ_S.c: Regenerated.
46558         * tests/unictype/test-categ_Sk.c: Regenerated.
46559         * tests/unictype/test-categ_Sm.c: Regenerated.
46560         * tests/unictype/test-categ_So.c: Regenerated.
46561         * tests/unictype/test-ctype_alnum.c: Regenerated.
46562         * tests/unictype/test-ctype_alpha.c: Regenerated.
46563         * tests/unictype/test-ctype_graph.c: Regenerated.
46564         * tests/unictype/test-ctype_lower.c: Regenerated.
46565         * tests/unictype/test-ctype_print.c: Regenerated.
46566         * tests/unictype/test-ctype_punct.c: Regenerated.
46567         * tests/unictype/test-ctype_upper.c: Regenerated.
46568         * tests/unictype/test-decdigit.h: Regenerated.
46569         * tests/unictype/test-digit.h: Regenerated.
46570         * tests/unictype/test-numeric.h: Regenerated.
46571         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46572         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46573         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46574         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46575         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46576         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46577         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46578         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46579         * tests/unictype/test-pr_combining.c: Regenerated.
46580         * tests/unictype/test-pr_dash.c: Regenerated.
46581         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46582         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46583         * tests/unictype/test-pr_deprecated.c: Regenerated.
46584         * tests/unictype/test-pr_diacritic.c: Regenerated.
46585         * tests/unictype/test-pr_extender.c: Regenerated.
46586         * tests/unictype/test-pr_format_control.c: Regenerated.
46587         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46588         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46589         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46590         * tests/unictype/test-pr_id_continue.c: Regenerated.
46591         * tests/unictype/test-pr_id_start.c: Regenerated.
46592         * tests/unictype/test-pr_ideographic.c: Regenerated.
46593         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46594         * tests/unictype/test-pr_lowercase.c: Regenerated.
46595         * tests/unictype/test-pr_math.c: Regenerated.
46596         * tests/unictype/test-pr_numeric.c: Regenerated.
46597         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46598         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46599         Regenerated.
46600         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46601         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46602         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46603         * tests/unictype/test-pr_other_math.c: Regenerated.
46604         * tests/unictype/test-pr_punctuation.c: Regenerated.
46605         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46606         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46607         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46608         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46609         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46610         * tests/unictype/test-pr_uppercase.c: Regenerated.
46611         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46612         * tests/unictype/test-pr_xid_start.c: Regenerated.
46613         * tests/unictype/test-pr_zero_width.c: Regenerated.
46614
46615         Update to Unicode 5.1.0.
46616         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46617         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46618         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46619         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46620         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46621         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46622         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46623         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46624         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46625         (nonspacing_table_ind): Update.
46626         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46627
46628         Update to Unicode 5.1.0.
46629         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46630         code transform.
46631         * lib/uniname/uniname.c (unicode_character_name,
46632         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46633         * lib/uniname/uninames.h: Regenerated.
46634         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46635
46636 2009-02-07  Bruno Haible  <bruno@clisp.org>
46637
46638         Merge gen-ctype and gen-lbrk into a single program.
46639         * lib/gen-uni-tables.c: New file, incorporating
46640         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46641         Add directory prefixes to the names of the generated files.
46642         * lib/unictype/gen-ctype.c: Remove file.
46643         * lib/unilbrk/gen-lbrk.c: Remove file.
46644         * modules/gen-uni-tables: New file.
46645         * modules/unictype/gen-ctype: Remove file.
46646         * modules/unilbrk/gen-lbrk: Remove file.
46647
46648 2009-02-07  Bruno Haible  <bruno@clisp.org>
46649
46650         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46651
46652         New module 'unistr/u32-strcoll'.
46653         * modules/unistr/u32-strcoll: New file.
46654         * lib/unistr/u32-strcoll.c: New file.
46655
46656         New module 'unistr/u16-strcoll'.
46657         * modules/unistr/u16-strcoll: New file.
46658         * lib/unistr/u16-strcoll.c: New file.
46659
46660         New module 'unistr/u8-strcoll'.
46661         * modules/unistr/u8-strcoll: New file.
46662         * lib/unistr/u8-strcoll.c: New file.
46663         * lib/unistr/u-strcoll.h: New file.
46664
46665 2009-02-07  Bruno Haible  <bruno@clisp.org>
46666
46667         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46668         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46669         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46670         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46671         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46672         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46673
46674 2009-02-07  Bruno Haible  <bruno@clisp.org>
46675
46676         Make 64-bit clean.
46677         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46678         output_combclass, output_bidi_category, output_decimal_digit,
46679         output_digit, output_numeric, output_mirror, output_scripts,
46680         output_ident_category): Use proper width specifier in format strings.
46681
46682 2009-02-07  Bruno Haible  <bruno@clisp.org>
46683
46684         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46685         failure behaviour.
46686
46687 2009-02-07  Jim Meyering  <meyering@redhat.com>
46688
46689         regex: avoid compilation failure with upcoming gcc-4.4
46690         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46691         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46692         "... error: integer overflow in preprocessor expression".
46693
46694 2009-02-05  Ben Pfaff  <blp@gnu.org>
46695
46696         Fix link errors on Windows when close module is used.
46697         * modules/close: Add $(LIB_CLOSE) to Link section.
46698         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46699         $(LIB_CLOSE) on Windows.
46700
46701 2009-02-05  Jim Meyering  <meyering@redhat.com>
46702
46703         still avoid unused-parameter warnings, but do it cleanly
46704         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46705         (get_fs_usage): Cast to void instead.
46706         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46707         (dev_from_mount_options, read_file_system_list): Cast to void.
46708         Prompted by Bruno Haible.
46709
46710 2009-02-04  Jim Meyering  <meyering@redhat.com>
46711
46712         fsusage.c: correct copyright year
46713         * lib/fsusage.c: Reflect year in which the change is pushed into
46714
46715         avoid misc. warnings
46716         * lib/fsusage.c (UNUSED_PARAM): Define.
46717         (get_fs_usage): Mark parameter "disk" as unused.
46718         * lib/getugroups.c (getgrent): Use "void" in prototype.
46719         * lib/mountlist.c: Mark unused parameters.
46720         (read_file_system_list): Declare a local with "const".
46721         * lib/nanosleep.c (getnow): Declare static.
46722         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46723
46724         dirfd: set errno upon failure
46725         * lib/dirfd.c: Include <errno.h>.
46726         Set errno to ENOTSUP when returning -1.
46727         * modules/dirfd (Depends-on): Add errno.
46728         Suggested by John Kodis <kodis@comcast.net>.
46729
46730 2009-02-01  Bruno Haible  <bruno@clisp.org>
46731
46732         Don't assume sizeof (long) >= sizeof (void *).
46733         * lib/memcmp.c: Include stdint.h.
46734         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46735         srcp2 to 'const byte *'.
46736         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46737         types to uintptr_t.
46738         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46739         * modules/memcmp (Depends-on): Add stdint.
46740         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46741
46742 2009-01-30  Eric Blake  <ebb9@byu.net>
46743
46744         fix more require-before-expand issues
46745         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46746         expand, AC_PROG_AWK.
46747         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46748
46749 2009-01-28  Eric Blake  <ebb9@byu.net>
46750
46751         version-etc: use consistent URL formatting
46752         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46753         Improve formatting.  Use fputs for string without %.
46754
46755 2009-01-28  Jim Meyering  <meyering@redhat.com>
46756
46757         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46758         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46759         "underquoted definition of NAME" from autoconf-2.59.
46760
46761 2009-01-28  Bruno Haible  <bruno@clisp.org>
46762
46763         * doc/gnulib.texi: Add "Obsolete modules" to index.
46764
46765 2009-01-28  Jim Meyering  <meyering@redhat.com>
46766
46767         useless-if-before-free: recognize more variants
46768         * build-aux/useless-if-before-free: Also recognize e.g.,
46769         if (NULL != p) free (p);
46770
46771 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46772
46773         test-getaddrinfo: skip (don't fail) this test when there's no network
46774         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46775         on the presumption that it means you lack network access.
46776
46777 2009-01-26  Jim Meyering  <meyering@redhat.com>
46778
46779         fflush: avoid warnings on modern systems
46780         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46781         pos and result, into scopes where they're used.
46782
46783 2009-01-26  Eric Blake  <ebb9@byu.net>
46784
46785         Silence warning reintroduced by recent extensions patch.
46786         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46787         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46788         autoconf.
46789
46790         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46791         * m4/00gnulib.m4: New file.
46792         * gnulib-tool (func_get_filelist): Always use it.
46793         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46794         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46795
46796 2009-01-25  Bruno Haible  <bruno@clisp.org>
46797
46798         Make test-quotearg work on MacOS X and AIX.
46799         * tests/test-quotearg.sh: New file.
46800         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46801         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46802         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46803         include <libintl.h>.
46804         (fake_locale): Remove variable.
46805         (gettext, dgettext, dcgettext): Remove functions.
46806         (main): Instead of setting a fake locale, set a real locale. Call
46807         textdomain and bindtextdomain.
46808         * modules/quotearg-tests (Files): Add the new files.
46809         (Depends-on): Add gettext, setenv, unsetenv.
46810         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46811         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46812         Augment TESTS_ENVIRONMENT.
46813
46814 2009-01-25  Bruno Haible  <bruno@clisp.org>
46815
46816         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46817         fr_FR.ISO8859-1 locale on MacOS X.
46818         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46819         ja_JP.eucJP locale on MacOS X.
46820         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46821         zh_CN.GB18030 locale on MacOS X.
46822
46823 2009-01-25  Bruno Haible  <bruno@clisp.org>
46824
46825         Avoid link errors on MacOS X 10.3.
46826         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46827         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46828
46829 2009-01-25  Bruno Haible  <bruno@clisp.org>
46830
46831         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46832         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46833         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46834         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46835         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46836         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46837         posix_spawnattr_init, posix_spawnattr_setsigmask,
46838         posix_spawnattr_setflags, posix_spawnattr_destroy.
46839
46840         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46841         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46842         * modules/execute (Files): Remove m4/posix_spawn.m4.
46843         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
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 2009-01-25  Bruno Haible  <bruno@clisp.org>
46849
46850         * lib/glthread/threadlib.c: Include <stdlib.h>.
46851
46852 2009-01-25  Bruno Haible  <bruno@clisp.org>
46853
46854         * lib/glthread/threadlib.c (dummy): New declaration.
46855
46856 2009-01-25  Bruno Haible  <bruno@clisp.org>
46857
46858         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46859         multibyte characters also for the GB18030 encoding. Don't crash when
46860         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46861
46862 2009-01-25  Bruno Haible  <bruno@clisp.org>
46863
46864         Avoid redefining 'struct random_data' on OSF/1 5.1.
46865         * lib/stdlib.in.h: Include <random.h> if it exists.
46866         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46867         HAVE_RANDOM_H. Include <random.h> when testing whether
46868         'struct random_data' exists.
46869         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46870
46871 2009-01-25  Bruno Haible  <bruno@clisp.org>
46872
46873         Don't install charset.alias on MacOS X >= 10.3.
46874         * lib/localcharset.c (DARWIN7): New macro.
46875         (get_charset_aliases): Hardcode the result for Darwin7.
46876         * modules/localcharset (install-exec-local): Don't install
46877         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46878
46879 2009-01-25  Bruno Haible  <bruno@clisp.org>
46880
46881         Don't install charset.alias on mingw and Cygwin.
46882         * modules/localcharset (install-exec-local): Don't install
46883         charset.alias on mingw and Cygwin, if the file does not yet exist.
46884         The result for these platforms is hardcoded in localcharset.c.
46885
46886 2009-01-25  Bruno Haible  <bruno@clisp.org>
46887
46888         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46889         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46890         before requiring AC_USE_SYSTEM_EXTENSIONS.
46891
46892 2009-01-25  Jim Meyering  <meyering@redhat.com>
46893
46894         c-strtod: avoid warnings
46895         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46896         "assignment discards qualifiers from pointer target type" warnings.
46897
46898 2009-01-24  Bruno Haible  <bruno@clisp.org>
46899
46900         Add support for non-UTF-8 locales on MacOS X.
46901         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46902         canonical encodings. For Darwin 7 and newer, don't map traditional
46903         encodings to UTF-8.
46904         Reported by Vincent Lefevre <vincent@vinc17.org>
46905         at <http://savannah.gnu.org/bugs/?25235>.
46906
46907 2009-01-24  Bruno Haible  <bruno@clisp.org>
46908
46909         * doc/gnulib.texi (Obsolete modules): New section.
46910         Reported by Mike Frysinger <vapier@gentoo.org>.
46911
46912 2009-01-24  Bruno Haible  <bruno@clisp.org>
46913
46914         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46915         (%.dvi): New rule.
46916
46917 2009-01-24  Bruno Haible  <bruno@clisp.org>
46918
46919         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46920         Reported by Eric Blake.
46921
46922 2009-01-24  Bruno Haible  <bruno@clisp.org>
46923
46924         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46925         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46926         Reported by Gary V. Vaughan <gary@gnu.org>.
46927
46928 2009-01-24  Bruno Haible  <bruno@clisp.org>
46929
46930         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46931
46932 2009-01-23  Bruno Haible  <bruno@clisp.org>
46933
46934         Make c-strtod, c-strtold usable in libraries.
46935         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46936         (C_STRTOD): Call strdup instead of xstrdup.
46937         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46938         * modules/c-strtold (Depends-on): Likewise.
46939         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46940         * NEWS: Mention the change.
46941         Reported by Michael Gold <mgold@ncf.ca>.
46942
46943 2009-01-23  Jim Meyering  <meyering@redhat.com>
46944
46945         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46946         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46947         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46948
46949 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46950
46951         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46952         GNU CoreUtils.
46953         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46954         * modules/version-etc (Description): Update.
46955
46956 2009-01-22  Bruno Haible  <bruno@clisp.org>
46957
46958         Cache the C locale object.
46959         * lib/c-strtod.c (c_locale_cache): New variable.
46960         (c_locale): New function.
46961         (C_STRTOD): Use it, and don't call freelocale.
46962         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46963         Suggested by Paolo Bonzini.
46964
46965 2009-01-21  Bruno Haible  <bruno@clisp.org>
46966
46967         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46968         conditions other than overflow.
46969
46970 2009-01-21  Bruno Haible  <bruno@clisp.org>
46971
46972         * lib/c-strtod.c: Include errno.h.
46973         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46974         value from STRTOD_L and STRTOD.
46975
46976 2009-01-21  Bruno Haible  <bruno@clisp.org>
46977         and Jim Meyering  <meyering@redhat.com>
46978
46979         nanosleep: skip configure test (fail it) for apple universal builds
46980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46981         universal builds, assume that nanosleep does not work.
46982         * modules/nanosleep (Depends-on): Add multiarch.
46983
46984         mktime: skip configure test (fail it) for apple universal builds
46985         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46986         universal builds, assume that mktime does not work.
46987         * modules/mktime (Depends-on): Add multiarch.
46988
46989 2009-01-21  Eric Blake  <ebb9@byu.net>
46990
46991         multiarch: avoid expand-before-require warning
46992         * modules/multiarch (configure.ac): Require, rather than expand,
46993         gl_MULTIARCH.
46994         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46995         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46996         enforce that all clients require it.  Partial reversion of
46997         2008-12-29 patch.
46998
46999         error: avoid expand-before-require warning
47000         * modules/errno (configure.ac): Require, rather than expand,
47001         gl_HEADER_ERRNO_H.
47002         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47003         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47004         enforce that all clients require it.
47005
47006         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47007         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47008         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47009         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47010
47011 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47012
47013         Revert:
47014         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47015
47016         regex: do not depend on obsolete modules.
47017         * modules/regex: Remove memcmp and memmove.
47018
47019 2009-01-20  Bruno Haible  <bruno@clisp.org>
47020
47021         Make the 'link' module link on Windows NT 4.
47022         * lib/link.c (_WIN32_WINNT): Don't define.
47023         (CreateHardLinkFuncType): New type.
47024         (CreateHardLinkFunc, initialized): New variables.
47025         (initialize): New function.
47026         (link): Invoke CreateHardLink indirectly through the function pointer.
47027
47028 2009-01-20  Bruno Haible  <bruno@clisp.org>
47029
47030         Fix compilation failure on mingw.
47031         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47032
47033 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47034
47035         * doc/c-strtod.texi: Mention a couple of restrictions.
47036
47037 2009-01-20  Jim Meyering  <meyering@redhat.com>
47038
47039         gettimeofday: move more declarations out of functions
47040         * lib/gettimeofday.c: Move extern declarations of tzset and
47041         gmtime out of containing functions.  Prompted by Bruno Haible.
47042
47043 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47044
47045         regex: do not depend on obsolete modules.
47046         * modules/regex: Remove memcmp and memmove.
47047
47048 2009-01-19  Bruno Haible  <bruno@clisp.org>
47049
47050         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47051         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47052         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47053         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47054         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47055
47056 2009-01-19  Bruno Haible  <bruno@clisp.org>
47057
47058         * tests/test-link.c: Include <errno.h>.
47059         (main): Exit with code 77 when a hard link cannot be created due to
47060         the file system.
47061         * tests/test-link.sh: Skip test when a hard link cannot be created due
47062         to the file system.
47063         Suggested by Eric Blake.
47064
47065 2009-01-19  Martin Lambers  <marlam@marlam.de>
47066
47067         * modules/link-tests: New file.
47068         * tests/test-link.sh: New file.
47069         * tests/test-link.c: New file.
47070
47071 2009-01-19  Eric Blake  <ebb9@byu.net>
47072
47073         doc: mention another function added in cygwin 1.7.0
47074         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47075         Another new function in cygwin 1.7.
47076
47077 2009-01-19  Bruno Haible  <bruno@clisp.org>
47078
47079         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47080         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47081         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47082         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47083         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47084         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47085         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47086         * m4/md4.m4 (gl_MD4): Likewise.
47087         * m4/md5.m4 (gl_MD5): Likewise.
47088         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47089         * m4/sha1.m4 (gl_SHA1): Likewise.
47090         * m4/sha256.m4 (gl_SHA256): Likewise.
47091         * m4/sha512.m4 (gl_SHA512): Likewise.
47092
47093 2009-01-19  Bruno Haible  <bruno@clisp.org>
47094
47095         * modules/uniname/uniname-tests (Depends-on): Add progname.
47096         * tests/uniname/test-uninames.c: Include progname.h.
47097         (main): Call set_program_name.
47098
47099         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47100         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47101         (main): Call set_program_name.
47102
47103         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47104         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47105         (main): Call set_program_name.
47106
47107         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47108         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47109         (main): Call set_program_name.
47110
47111         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47112         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47113         (main): Call set_program_name.
47114
47115         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47116         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47117         (main): Call set_program_name.
47118
47119         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47120         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47121         (main): Call set_program_name.
47122
47123         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47124         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47125         (main): Call set_program_name.
47126
47127         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47128         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47129         (main): Call set_program_name.
47130
47131 2009-01-19  Eric Blake  <ebb9@byu.net>
47132
47133         test-unistd: test previous patch
47134         * tests/test-unistd.c: Test *_FILENO macros.
47135
47136         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47137         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47138         Guarantee a definition.
47139         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47140         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47141         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47142         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47143         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47144         Likewise.
47145         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47146         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47147         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47148         Likewise.
47149         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47150         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47151         (STDERR_FILENO): Likewise.
47152         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47153         (STDERR_FILENO): Likewise.
47154         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47155         (STDERR_FILENO): Likewise.
47156         Reported by Elbert Pol.
47157
47158 2009-01-19  Eric Blake  <ebb9@byu.net>
47159
47160         doc: mention more functions added in cygwin 1.7.0
47161         * doc/posix-functions/abort.texi (abort): Update wording related
47162         to cygwin.
47163         * doc/posix-functions/daylight.texi (daylight): Likewise.
47164         * doc/posix-functions/optarg.texi (optarg): Likewise.
47165         * doc/posix-functions/optarg.texi (opterr): Likewise.
47166         * doc/posix-functions/optarg.texi (optind): Likewise.
47167         * doc/posix-functions/optarg.texi (optopt): Likewise.
47168         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47169         worked in 1.5.x, and was withdrawn in 1.7.
47170         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47171         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47172         cygwin versions.
47173         * doc/posix-functions/perror.texi (perror): Likewise.
47174         * doc/posix-functions/printf.texi (printf): Likewise.
47175         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47176         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47177         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47178         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47179         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47180         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47181         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47182         Likewise.
47183         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47184         Likewise.
47185         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47186         this function.
47187         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47188         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47189         Likewise.
47190         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47191         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47192         * doc/posix-functions/confstr.texi (confstr): Likewise.
47193         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47194         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47195         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47196         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47197         * doc/posix-functions/fputws.texi (fputws): Likewise.
47198         * doc/posix-functions/fwide.texi (fwide): Likewise.
47199         * doc/posix-functions/getwc.texi (getwc): Likewise.
47200         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47201         * doc/posix-functions/putwc.texi (putwc): Likewise.
47202         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47203         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47204         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47205         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47206         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47207         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47208         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47209         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47210         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47211         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47212         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47213
47214 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47215
47216         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47217         * lib/ioctl.c: Include <sys/ioctl.h>.
47218
47219 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47220
47221         * modules/getdate-tests (Depends-on): Add progname.
47222         * tests/test-getdate.c: Use progname module, to avoid link errors
47223         on non-glibc systems.
47224
47225 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47226
47227         * modules/filenamecat-tests (Depends-on): Add progname.
47228         * modules/fstrcmp-tests (Depends-on): Likewise.
47229
47230         * tests/test-filenamecat.c: Use progname module, to avoid link
47231         errors on non-glibc systems.
47232         * tests/test-fstrcmp.c: Likewise.
47233
47234 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47235
47236         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47237         * lib/gettimeofday.c: Move extern declaration out of function.
47238
47239 2009-01-18  Bruno Haible  <bruno@clisp.org>
47240
47241         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47242         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47243         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47244
47245 2009-01-18  Bruno Haible  <bruno@clisp.org>
47246
47247         * lib/strftime.c (MEMPCPY): Remove unused macro.
47248         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47249
47250 2009-01-18  Martin Lambers  <marlam@marlam.de>
47251
47252         New module 'link'.
47253         * lib/unistd.in.h (link): New declaration.
47254         * lib/link.c: New file.
47255         * m4/link.m4: New file.
47256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47257         HAVE_LINK.
47258         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47259         * modules/link: New file.
47260         * doc/posix-functions/link.texi: Mention the new module.
47261
47262 2009-01-18  Bruno Haible  <bruno@clisp.org>
47263
47264         * tests/test-avltree_list.c (main): Call set_program_name.
47265         * tests/test-avltree_oset.c (main): Likewise.
47266         * tests/test-obstack-printf.c: Include progname.h.
47267         (main): Call set_program_name.
47268         * tests/test-quotearg.c: Include progname.h.
47269         (main): Call set_program_name.
47270         * tests/test-xmemdup0.c: Include progname.h.
47271         (main): Call set_program_name.
47272
47273 2009-01-18  Bruno Haible  <bruno@clisp.org>
47274
47275         New module 'alphasort'.
47276         * lib/dirent.in.h (alphasort): New declaration.
47277         * lib/alphasort.c: New file, from glibc with modifications.
47278         * m4/alphasort.m4: New file.
47279         * modules/alphasort: New file.
47280         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47281         HAVE_ALPHASORT.
47282         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47283         HAVE_ALPHASORT.
47284         * doc/posix-functions/alphasort.texi: Mention the new module and the
47285         portability problems.
47286
47287 2009-01-18  Bruno Haible  <bruno@clisp.org>
47288
47289         New module 'scandir'.
47290         * lib/dirent.in.h (scandir): New declaration.
47291         * lib/scandir.c: New file, from glibc with modifications.
47292         * m4/scandir.m4: New file.
47293         * modules/scandir: New file.
47294         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47295         HAVE_SCANDIR.
47296         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47297         HAVE_SCANDIR.
47298         * doc/posix-functions/scandir.texi: Mention the new module and the
47299         portability problems.
47300
47301 2009-01-17  Bruno Haible  <bruno@clisp.org>
47302
47303         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47304         Update documentation.
47305         (func_remove_suffix): Escape all dots in the suffix. Update
47306         documentation.
47307         (func_filter_filelist): Update documentation.
47308         Reported by Ralf Wildenhues.
47309
47310 2009-01-17  Bruno Haible  <bruno@clisp.org>
47311
47312         * modules/dprintf-posix-tests: New file.
47313         * tests/test-dprintf-posix.sh: New file.
47314         * tests/test-dprintf-posix.c: New file.
47315
47316         New modules 'dprintf', 'dprintf-posix'.
47317         * lib/stdio.in.h (dprintf): New declaration.
47318         * lib/dprintf.c: New file.
47319         * m4/dprintf.m4: New file.
47320         * m4/dprintf-posix.m4: New file.
47321         * modules/dprintf: New file.
47322         * modules/dprintf-posix: New file.
47323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47324         HAVE_DPRINTF, REPLACE_DPRINTF.
47325         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47326         HAVE_DPRINTF, REPLACE_DPRINTF.
47327         * doc/posix-functions/dprintf.texi: Mention the new modules.
47328
47329 2009-01-17  Bruno Haible  <bruno@clisp.org>
47330
47331         * modules/vdprintf-posix-tests: New file.
47332         * tests/test-vdprintf-posix.sh: New file.
47333         * tests/test-vdprintf-posix.c: New file.
47334
47335         New modules 'vdprintf', 'vdprintf-posix'.
47336         * lib/stdio.in.h (vdprintf): New declaration.
47337         * lib/vdprintf.c: New file.
47338         * m4/vdprintf.m4: New file.
47339         * m4/vdprintf-posix.m4: New file.
47340         * modules/vdprintf: New file.
47341         * modules/vdprintf-posix: New file.
47342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47343         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47344         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47345         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47346         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47347
47348 2009-01-17  Bruno Haible  <bruno@clisp.org>
47349
47350         Fix replacement of fopen on mingw.
47351         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47352         mingw.
47353
47354 2009-01-17  Bruno Haible  <bruno@clisp.org>
47355
47356         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47357         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47358
47359 2009-01-17  Bruno Haible  <bruno@clisp.org>
47360
47361         Avoid test-fflush2.sh failure on mingw.
47362         * tests/test-fflush2.c: Include binary-io.h.
47363         (main): Put standard input into binary mode.
47364         * modules/fflush-tests (Depends-on): Add binary-io.
47365
47366 2009-01-17  Bruno Haible  <bruno@clisp.org>
47367
47368         * lib/wchar.in.h: In another particular situation, include only the
47369         system's <wchar.h> file.
47370         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47371         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47372         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47373
47374 2009-01-17  Bruno Haible  <bruno@clisp.org>
47375
47376         Support for stripping executables in --enable-relocatable.
47377         * build-aux/install-reloc: Expect one more argument, or an environment
47378         variable RELOC_STRIP_PROG. If set, strip the destination program and
47379         its wrapper.
47380         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47381         RELOC_STRIP_PROG.
47382         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47383         to set RELOCATABLE_STRIP.
47384         * NEWS: Mention the new Makefile requirement.
47385
47386 2009-01-17  Bruno Haible  <bruno@clisp.org>
47387
47388         * build-aux/install-reloc: Remove debugging information left over by
47389         C compiler on MacOS X.
47390
47391 2009-01-17  Bruno Haible  <bruno@clisp.org>
47392
47393         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47394         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47395         _NSGetExecutablePath.
47396
47397 2009-01-16  Jim Meyering  <meyering@redhat.com>
47398
47399         strerror: avoid warnings about discarding "const"
47400         * lib/strerror.c (rpl_strerror): Instead of returning a const
47401         string from each and every "case", use a variable, and add a single
47402         cast after the switch.
47403
47404 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47405
47406         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47407
47408 2009-01-16  Bruno Haible  <bruno@clisp.org>
47409
47410         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47411         array initializer syntax that also works in C++ mode.
47412         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47413
47414 2009-01-16  Jim Meyering  <meyering@redhat.com>
47415
47416         poll: suppress a warning
47417         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47418         to ignore "...unsigned expression < 0 is always false" warnings.
47419
47420 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47421
47422         poll: remove declarations of unused variables
47423         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47424         sockbuf and optlen.
47425
47426 2009-01-15  Bruno Haible  <bruno@clisp.org>
47427
47428         Make fflush-after-ungetc POSIX compliant on BSD systems.
47429         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47430         (clear_ungetc_buffer): Implement also for other systems.
47431         (rpl_fflush): On glibc systems, invoke
47432         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47433         clear_ungetc_buffer after fetching the stream's position, not before.
47434
47435 2009-01-15  Bruno Haible  <bruno@clisp.org>
47436
47437         Make fflush-after-ungetc POSIX compliant on glibc systems.
47438         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47439         after ungetc.
47440         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47441         (rpl_fflush): On glibc systems, simply call the system's fflush
47442         function after clearing the ungetc buffer.
47443         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47444         Instead, lseek only to the end of file, then use the system's fseeko
47445         for the rest. On glibc systems, reset the EOF indicator bit.
47446
47447 2009-01-15  Jim Meyering  <meyering@redhat.com>
47448
47449         openmp.m4: revert quote-adding change, for portability to older autoconf
47450         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47451         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47452         Simon Josefsson noticed the problem when using autoconf-2.61.
47453
47454 2009-01-15  Bruno Haible  <bruno@clisp.org>
47455
47456         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47457         * tests/test-fflush2.c (ASSERT): Always fail.
47458         (main): Add two tests for fflush() after ungetc(), taking into account
47459         the Austin Group's clarification.
47460         Suggested by Eric Blake.
47461
47462 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47463
47464         mktime.m4: remove K&R-style function prototypes
47465         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47466         for the Sun C++ compiler.
47467
47468 2009-01-14  Bruno Haible  <bruno@clisp.org>
47469
47470         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47471         while including <wchar.h>.
47472         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47473         the system's <wchar.h> file.
47474         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47475
47476 2009-01-14  Bruno Haible  <bruno@clisp.org>
47477
47478         * m4/csharp.m4: Don't mention gettext on the serial number line.
47479         * m4/csharpexec.m4: Likewise.
47480         * m4/eaccess.m4: Likewise.
47481         * m4/javaexec.m4: Likewise.
47482         * m4/sig_atomic_t.m4: Likewise.
47483         * m4/tmpdir.m4: Likewise.
47484         * m4/intldir.m4: Bump gettext version.
47485         * m4/lib-ld.m4: Likewise.
47486
47487 2009-01-14  Bruno Haible  <bruno@clisp.org>
47488
47489         * lib/progname.c (set_program_name): Add more comments.
47490         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47491
47492 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47493
47494         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47495         were sys/stat.h does not define it.
47496
47497 2009-01-14  Jim Meyering  <meyering@redhat.com>
47498
47499         many *.m4 files: improve m4 quoting
47500         99% of this change was performed by running the following commands:
47501         git ls-files | grep '\.m4$' | xargs perl -pi \
47502           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47503           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47504           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47505           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47506         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47507         The remainder were to add Copyright dates, increment serial numbers,
47508         undo some changes in comments, exclude m4/intl.m4, and add quotes
47509         around the "1" in ",1" where the unusual spacing prohibited the
47510         above regexps from doing the job.  For more details, see
47511         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47512         * m4/acl.m4: Modified.
47513         * m4/afs.m4: Likewise.
47514         * m4/alloca.m4: Likewise.
47515         * m4/argp.m4: Likewise.
47516         * m4/argz.m4: Likewise.
47517         * m4/atexit.m4: Likewise.
47518         * m4/bison-i18n.m4: Likewise.
47519         * m4/bison.m4: Likewise.
47520         * m4/byteswap.m4: Likewise.
47521         * m4/c-stack.m4: Likewise.
47522         * m4/c-strtod.m4: Likewise.
47523         * m4/calloc.m4: Likewise.
47524         * m4/canonicalize-lgpl.m4: Likewise.
47525         * m4/chown.m4: Likewise.
47526         * m4/clock_time.m4: Likewise.
47527         * m4/codeset.m4: Likewise.
47528         * m4/copy-file.m4: Likewise.
47529         * m4/csharp.m4: Likewise.
47530         * m4/csharpcomp.m4: Likewise.
47531         * m4/csharpexec.m4: Likewise.
47532         * m4/d-ino.m4: Likewise.
47533         * m4/d-type.m4: Likewise.
47534         * m4/dirfd.m4: Likewise.
47535         * m4/double-slash-root.m4: Likewise.
47536         * m4/eaccess.m4: Likewise.
47537         * m4/eealloc.m4: Likewise.
47538         * m4/environ.m4: Likewise.
47539         * m4/errno_h.m4: Likewise.
47540         * m4/euidaccess.m4: Likewise.
47541         * m4/execute.m4: Likewise.
47542         * m4/fatal-signal.m4: Likewise.
47543         * m4/fchdir.m4: Likewise.
47544         * m4/fcntl_h.m4: Likewise.
47545         * m4/fileblocks.m4: Likewise.
47546         * m4/filenamecat.m4: Likewise.
47547         * m4/findprog.m4: Likewise.
47548         * m4/flexmember.m4: Likewise.
47549         * m4/fnmatch.m4: Likewise.
47550         * m4/fopen.m4: Likewise.
47551         * m4/fpending.m4: Likewise.
47552         * m4/fprintf-posix.m4: Likewise.
47553         * m4/free.m4: Likewise.
47554         * m4/frexp.m4: Likewise.
47555         * m4/frexpl.m4: Likewise.
47556         * m4/fsusage.m4: Likewise.
47557         * m4/ftruncate.m4: Likewise.
47558         * m4/gc-camellia.m4: Likewise.
47559         * m4/gc-random.m4: Likewise.
47560         * m4/gc.m4: Likewise.
47561         * m4/getaddrinfo.m4: Likewise.
47562         * m4/getcwd-abort-bug.m4: Likewise.
47563         * m4/getcwd-path-max.m4: Likewise.
47564         * m4/getdate.m4: Likewise.
47565         * m4/getdomainname.m4: Likewise.
47566         * m4/getgroups.m4: Likewise.
47567         * m4/gethostname.m4: Likewise.
47568         * m4/gethrxtime.m4: Likewise.
47569         * m4/getline.m4: Likewise.
47570         * m4/getloadavg.m4: Likewise.
47571         * m4/getndelim2.m4: Likewise.
47572         * m4/getpass.m4: Likewise.
47573         * m4/gettext.m4: Likewise.
47574         * m4/gettime.m4: Likewise.
47575         * m4/gettimeofday.m4: Likewise.
47576         * m4/gnulib-common.m4: Likewise.
47577         * m4/group-member.m4: Likewise.
47578         * m4/host-os.m4: Likewise.
47579         * m4/iconv.m4: Likewise.
47580         * m4/iconv_open.m4: Likewise.
47581         * m4/inet_ntop.m4: Likewise.
47582         * m4/inet_pton.m4: Likewise.
47583         * m4/inline.m4: Likewise.
47584         * m4/intldir.m4: Likewise.
47585         * m4/intlmacosx.m4: Likewise.
47586         * m4/intmax.m4: Likewise.
47587         * m4/intmax_t.m4: Likewise.
47588         * m4/inttypes.m4: Likewise.
47589         * m4/inttypes_h.m4: Likewise.
47590         * m4/inttypes-pri.m4: Likewise.
47591         * m4/isapipe.m4: Likewise.
47592         * m4/isnand.m4: Likewise.
47593         * m4/isnanf.m4: Likewise.
47594         * m4/isnanl.m4: Likewise.
47595         * m4/javacomp.m4: Likewise.
47596         * m4/javaexec.m4: Likewise.
47597         * m4/jm-winsz1.m4: Likewise.
47598         * m4/jm-winsz2.m4: Likewise.
47599         * m4/lchown.m4: Likewise.
47600         * m4/lcmessage.m4: Likewise.
47601         * m4/ldexpl.m4: Likewise.
47602         * m4/lib-ld.m4: Likewise.
47603         * m4/lib-link.m4: Likewise.
47604         * m4/libsigsegv.m4: Likewise.
47605         * m4/link-follow.m4: Likewise.
47606         * m4/localcharset.m4: Likewise.
47607         * m4/locale-fr.m4: Likewise.
47608         * m4/locale-ja.m4: Likewise.
47609         * m4/locale-tr.m4: Likewise.
47610         * m4/locale-zh.m4: Likewise.
47611         * m4/lock.m4: Likewise.
47612         * m4/longlong.m4: Likewise.
47613         * m4/ls-mntd-fs.m4: Likewise.
47614         * m4/lstat.m4: Likewise.
47615         * m4/malloc.m4: Likewise.
47616         * m4/mathl.m4: Likewise.
47617         * m4/mbrtowc.m4: Likewise.
47618         * m4/mbstate_t.m4: Likewise.
47619         * m4/mbswidth.m4: Likewise.
47620         * m4/memchr.m4: Likewise.
47621         * m4/memcmp.m4: Likewise.
47622         * m4/memcpy.m4: Likewise.
47623         * m4/memmem.m4: Likewise.
47624         * m4/memmove.m4: Likewise.
47625         * m4/mempcpy.m4: Likewise.
47626         * m4/memrchr.m4: Likewise.
47627         * m4/memset.m4: Likewise.
47628         * m4/minmax.m4: Likewise.
47629         * m4/mkdir-slash.m4: Likewise.
47630         * m4/mkdtemp.m4: Likewise.
47631         * m4/mktime.m4: Likewise.
47632         * m4/mmap-anon.m4: Likewise.
47633         * m4/mountlist.m4: Likewise.
47634         * m4/nanosleep.m4: Likewise.
47635         * m4/nls.m4: Likewise.
47636         * m4/nocrash.m4: Likewise.
47637         * m4/open.m4: Likewise.
47638         * m4/openat.m4: Likewise.
47639         * m4/openmp.m4: Likewise.
47640         * m4/pathmax.m4: Likewise.
47641         * m4/perl.m4: Likewise.
47642         * m4/physmem.m4: Likewise.
47643         * m4/pipe.m4: Likewise.
47644         * m4/po.m4: Likewise.
47645         * m4/poll.m4: Likewise.
47646         * m4/posixtm.m4: Likewise.
47647         * m4/posixver.m4: Likewise.
47648         * m4/printf-frexp.m4: Likewise.
47649         * m4/printf-frexpl.m4: Likewise.
47650         * m4/printf-posix.m4: Likewise.
47651         * m4/printf-posix-rpl.m4: Likewise.
47652         * m4/printf.m4: Likewise.
47653         * m4/progtest.m4: Likewise.
47654         * m4/putenv.m4: Likewise.
47655         * m4/readline.m4: Likewise.
47656         * m4/readlink.m4: Likewise.
47657         * m4/readutmp.m4: Likewise.
47658         * m4/realloc.m4: Likewise.
47659         * m4/regex.m4: Likewise.
47660         * m4/relocatable.m4: Likewise.
47661         * m4/relocatable-lib.m4: Likewise.
47662         * m4/rename-dest-slash.m4: Likewise.
47663         * m4/rename.m4: Likewise.
47664         * m4/rmdir-errno.m4: Likewise.
47665         * m4/rmdir.m4: Likewise.
47666         * m4/roundf.m4: Likewise.
47667         * m4/roundl.m4: Likewise.
47668         * m4/rpmatch.m4: Likewise.
47669         * m4/save-cwd.m4: Likewise.
47670         * m4/selinux-selinux-h.m4: Likewise.
47671         * m4/setenv.m4: Likewise.
47672         * m4/settime.m4: Likewise.
47673         * m4/sig2str.m4: Likewise.
47674         * m4/sig_atomic_t.m4: Likewise.
47675         * m4/signalblocking.m4: Likewise.
47676         * m4/signbit.m4: Likewise.
47677         * m4/sigpipe.m4: Likewise.
47678         * m4/sockets.m4: Likewise.
47679         * m4/sockpfaf.m4: Likewise.
47680         * m4/st_dm_mode.m4: Likewise.
47681         * m4/stat-time.m4: Likewise.
47682         * m4/stdbool.m4: Likewise.
47683         * m4/stdint.m4: Likewise.
47684         * m4/stdint_h.m4: Likewise.
47685         * m4/stpcpy.m4: Likewise.
47686         * m4/stpncpy.m4: Likewise.
47687         * m4/strcase.m4: Likewise.
47688         * m4/strchrnul.m4: Likewise.
47689         * m4/strcspn.m4: Likewise.
47690         * m4/strdup.m4: Likewise.
47691         * m4/strftime.m4: Likewise.
47692         * m4/strndup.m4: Likewise.
47693         * m4/strnlen.m4: Likewise.
47694         * m4/strpbrk.m4: Likewise.
47695         * m4/strptime.m4: Likewise.
47696         * m4/strsep.m4: Likewise.
47697         * m4/strtod.m4: Likewise.
47698         * m4/strtoimax.m4: Likewise.
47699         * m4/strtok_r.m4: Likewise.
47700         * m4/strtol.m4: Likewise.
47701         * m4/strtoll.m4: Likewise.
47702         * m4/strtoul.m4: Likewise.
47703         * m4/strtoull.m4: Likewise.
47704         * m4/strtoumax.m4: Likewise.
47705         * m4/strverscmp.m4: Likewise.
47706         * m4/threadlib.m4: Likewise.
47707         * m4/timegm.m4: Likewise.
47708         * m4/tm_gmtoff.m4: Likewise.
47709         * m4/tmpdir.m4: Likewise.
47710         * m4/tmpfile.m4: Likewise.
47711         * m4/tzset.m4: Likewise.
47712         * m4/uintmax_t.m4: Likewise.
47713         * m4/unlinkdir.m4: Likewise.
47714         * m4/unlocked-io.m4: Likewise.
47715         * m4/uptime.m4: Likewise.
47716         * m4/userspec.m4: Likewise.
47717         * m4/utimbuf.m4: Likewise.
47718         * m4/utime.m4: Likewise.
47719         * m4/utimes-null.m4: Likewise.
47720         * m4/utimes.m4: Likewise.
47721         * m4/vararrays.m4: Likewise.
47722         * m4/vasnprintf.m4: Likewise.
47723         * m4/vfprintf-posix.m4: Likewise.
47724         * m4/vprintf-posix.m4: Likewise.
47725         * m4/wait-process.m4: Likewise.
47726         * m4/wchar_t.m4: Likewise.
47727         * m4/wint_t.m4: Likewise.
47728         * m4/write-any-file.m4: Likewise.
47729         * m4/yield.m4: Likewise.
47730
47731 2009-01-13  Bruno Haible  <bruno@clisp.org>
47732
47733         Avoid test-copy-file.sh failures when ACL support insufficient.
47734         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47735         TESTS_ENVIRONMENT.
47736         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47737         Reported by Jim Meyering.
47738
47739 2009-01-13  Bruno Haible  <bruno@clisp.org>
47740
47741         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47742         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47743         * modules/unistdio/u8-printf-parse (Files): Likewise.
47744         * modules/unistdio/u32-printf-parse (Files): Likewise.
47745         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47746
47747 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47748
47749         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47750         and m4/inttypes_h.m4 too.
47751
47752 2009-01-12  Eric Blake  <ebb9@byu.net>
47753
47754         tests: IRIX 6.2 cc can't compile -0.0 into .data
47755         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47756         rather than at compile-time.
47757         * tests/test-floorl.c (minus_zero): Likewise.
47758         * tests/test-frexpl.c (minus_zero): Likewise.
47759         * tests/test-isnan.c (minus_zerol): Likewise.
47760         * tests/test-isnanl.h (minus_zero): Likewise.
47761         * tests/test-ldexpl.c (minus_zero): Likewise.
47762         * tests/test-roundl.c (minus_zero): Likewise.
47763         * tests/test-signbit.c (minus_zerol): Likewise.
47764         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47765         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47766         * tests/test-truncl.c (minus_zero): Likewise.
47767         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47768         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47769         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47770
47771 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47772
47773         regex: fix glibc bug 9697
47774         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47775         handling.
47776
47777 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47778
47779         regex: fix glibc bug 697
47780         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47781         being NULL also if there are no backreferences.
47782
47783 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47784
47785         regex: merge glibc changes
47786         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47787         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47788         re_string_skip_chars, re_string_reconstruct): Likewise.
47789         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47790
47791 2009-01-07  Jim Meyering  <meyering@redhat.com>
47792
47793         poll: filter through cppi
47794         * lib/poll.c: Indent cpp directives to reflect nesting.
47795
47796 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47797
47798         poll: don't return uninitialized
47799         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47800
47801 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47802
47803         avoid compile failure on AIX 6.1
47804         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47805         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47806
47807 2009-01-04  Jim Meyering  <meyering@redhat.com>
47808
47809         remove duplicate inclusion of <stdio.h>
47810         * tests/test-fprintf-posix.c: Likewise.
47811         * tests/test-printf-posix.c: Likewise.
47812         * tests/test-snprintf-posix.c: Likewise.
47813         * tests/test-sprintf-posix.c: Likewise.
47814         * tests/test-vasprintf-posix.c: Likewise.
47815         * tests/test-vfprintf-posix.c: Likewise.
47816         * tests/test-vprintf-posix.c: Likewise.
47817         * tests/test-vsnprintf-posix.c: Likewise.
47818         * tests/test-vsprintf-posix.c: Likewise.
47819
47820 2009-01-03  Jim Meyering  <meyering@redhat.com>
47821
47822         gnulib-tool: fix sed-based filtering
47823         * gnulib-tool (func_filter_filelist): Remove extra backslash
47824         in sed_fff_filter definition.
47825
47826 2009-01-02  Jim Meyering  <meyering@redhat.com>
47827
47828         strftime: avoid compilation failure on Solaris 2.6
47829         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47830         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47831         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47832         be available.  Reported by Tom G. Christensen.  Details in
47833         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47834
47835 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47836             Bruno Haible  <bruno@clisp.org>
47837
47838         Speed up gnulib-tool by doing more string processing through shell
47839         built-ins.
47840         * gnulib-tool (fast_func_append): New variable.
47841         (func_remove_prefix, func_remove_suffix): New functions.
47842         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47843         (func_filter_filelist): New function.
47844         (func_get_dependencies): Use func_remove_suffix instead of sed.
47845         (func_get_automake_snippet): Use func_filter_filelist instead of a
47846         subshell and sed invocation.
47847
47848 2009-01-01  Bruno Haible  <bruno@clisp.org>
47849
47850         Fix a security bug.
47851         * gnulib-tool (func_import, import, update): Don't allow the characters
47852         '"', '$', '`', '\' in macro arguments that become part of commands that
47853         are evaluated.
47854
47855 2009-01-01  Bruno Haible  <bruno@clisp.org>
47856
47857         * gnulib-tool (func_reset_sigpipe): Add more comments.
47858
47859 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47860
47861         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47862         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47863         already know the answer.
47864
47865 2009-01-01  Jim Meyering  <meyering@redhat.com>
47866
47867         * lib/version-etc.c (version_etc_va): Update copyright year.
47868
47869 2008-12-30  Bruno Haible  <bruno@clisp.org>
47870
47871         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47872         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47873         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47874
47875 2008-12-29  Eric Blake  <ebb9@byu.net>
47876
47877         multiarch: avoid autoconf AC_REQUIRE bug
47878         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47879         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47880         2.63 and older.
47881         Reported by Bruno Haible, and analyzed in
47882         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47883
47884 2008-12-29  Bruno Haible  <bruno@clisp.org>
47885
47886         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47887         files in subdirectories correctly.
47888         Reported by Ralf Wildenhues.
47889
47890 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47891
47892         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47893         rather than 'join FILE -', for Solaris join.
47894
47895 2008-12-29  Bruno Haible  <bruno@clisp.org>
47896
47897         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47898         quoting.
47899         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47900         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47901         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47902         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47903         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47904         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47905         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47906         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47907         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47908         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47909         * m4/nls.m4 (AM_NLS): Likewise.
47910         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47911         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47912         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47913         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47914         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47915         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47916         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47917         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47918         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47919         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47920         * m4/xsize.m4 (gl_XSIZE): Likewise.
47921         Suggested by Jim Meyering.
47922
47923 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47924
47925         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47926         * lib/parse-duration.c: use a switch instead of cascading if's.
47927
47928 2008-12-29  Eric Blake  <ebb9@byu.net>
47929
47930         wchar.h: supply WEOF on Irix 5.3
47931         * lib/wchar.in.h (wint_t): Also supply WEOF.
47932         * lib/wctype.in.h (wint_t): Likewise.
47933         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47934         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47935         Reported by Tom G. Christensen.
47936
47937 2008-12-26  Bruno Haible  <bruno@clisp.org>
47938
47939         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47940         i486, i586, i686.
47941
47942 2008-12-26  Bruno Haible  <bruno@clisp.org>
47943
47944         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47945
47946 2008-12-26  Bruno Haible  <bruno@clisp.org>
47947
47948         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47949         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47950         not __STDC_CONSTANT_MACROS.
47951         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47952
47953 2008-12-25  Bruno Haible  <bruno@clisp.org>
47954
47955         Add support for universal builds to vasnprintf.
47956         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47957         universal builds, guess no.
47958         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47959         * modules/vasprintf-posix (Depends-on): Likewise.
47960         * modules/fprintf-posix (Depends-on): Likewise.
47961         * modules/vfprintf-posix (Depends-on): Likewise.
47962         * modules/snprintf-posix (Depends-on): Likewise.
47963         * modules/vsnprintf-posix (Depends-on): Likewise.
47964         * modules/sprintf-posix (Depends-on): Likewise.
47965         * modules/vsprintf-posix (Depends-on): Likewise.
47966         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47967         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47968         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47969         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47970         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47971         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47972         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47973
47974         Add support for universal builds to <inttypes.h>.
47975         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47976         _SCNu64_PREFIX): In Apple
47977         universal builds, define directly, using _LP64.
47978         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47979         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47980         * modules/inttypes (Depends-on): Add multiarch.
47981         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47982
47983         Add support for universal builds to <stdint.h>.
47984         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47985         universal builds, define directly, using _LP64.
47986         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47987         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47988         and size_t.
47989         * modules/stdint (Depends-on): Add multiarch.
47990         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47991
47992         New module 'multiarch'.
47993         * modules/multiarch: New file.
47994         * m4/multiarch.m4: New file.
47995
47996 2008-12-25  Bruno Haible  <bruno@clisp.org>
47997
47998         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47999
48000 2008-12-25  Bruno Haible  <bruno@clisp.org>
48001
48002         * modules/btowc (License): Relicense under LGPLv2+.
48003         * modules/mbsinit (License): Likewise.
48004         * modules/mbrtowc (License): Likewise.
48005         * modules/wcrtomb (License): Likewise.
48006         * modules/streq (License): Likewise.
48007         Reported by David Lutterkort <lutter@redhat.com>.
48008
48009 2008-12-23  Bruno Haible  <bruno@clisp.org>
48010
48011         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48012
48013 2008-12-23  Bruno Haible  <bruno@clisp.org>
48014
48015         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48016         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48017         GETADDRINFO_LIB, not in LIBS.
48018         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48019         * modules/canon-host (Link): Likewise.
48020         * NEWS: Mention the change.
48021         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48022         GETADDRINFO_LIB.
48023
48024 2008-12-22  Bruno Haible  <bruno@clisp.org>
48025
48026         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48027         * doc/posix-functions/iswalpha_l.texi: Likewise.
48028         * doc/posix-functions/iswblank_l.texi: Likewise.
48029         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48030         * doc/posix-functions/iswctype_l.texi: Likewise.
48031         * doc/posix-functions/iswdigit_l.texi: Likewise.
48032         * doc/posix-functions/iswgraph_l.texi: Likewise.
48033         * doc/posix-functions/iswlower_l.texi: Likewise.
48034         * doc/posix-functions/iswprint_l.texi: Likewise.
48035         * doc/posix-functions/iswpunct_l.texi: Likewise.
48036         * doc/posix-functions/iswspace_l.texi: Likewise.
48037         * doc/posix-functions/iswupper_l.texi: Likewise.
48038         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48039         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48040         * doc/posix-functions/open_wmemstream.texi: Likewise.
48041         * doc/posix-functions/swscanf.texi: Likewise.
48042         * doc/posix-functions/towctrans_l.texi: Likewise.
48043         * doc/posix-functions/towlower.texi: Likewise.
48044         * doc/posix-functions/towlower_l.texi: Likewise.
48045         * doc/posix-functions/towupper.texi: Likewise.
48046         * doc/posix-functions/towupper_l.texi: Likewise.
48047         * doc/posix-functions/vfwprintf.texi: Likewise.
48048         * doc/posix-functions/vfwscanf.texi: Likewise.
48049         * doc/posix-functions/vswscanf.texi: Likewise.
48050         * doc/posix-functions/vwprintf.texi: Likewise.
48051         * doc/posix-functions/vwscanf.texi: Likewise.
48052         * doc/posix-functions/wcpcpy.texi: Likewise.
48053         * doc/posix-functions/wcpncpy.texi: Likewise.
48054         * doc/posix-functions/wcscasecmp.texi: Likewise.
48055         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48056         * doc/posix-functions/wcscoll_l.texi: Likewise.
48057         * doc/posix-functions/wcsdup.texi: Likewise.
48058         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48059         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48060         * doc/posix-functions/wcsnlen.texi: Likewise.
48061         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48062         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48063         * doc/posix-functions/wctrans_l.texi: Likewise.
48064         * doc/posix-functions/wctype_l.texi: Likewise.
48065         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48066         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48067         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48068         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48069         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48070         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48071         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48072         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48073         * doc/glibc-functions/wcschrnul.texi: Likewise.
48074         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48075         * doc/glibc-functions/wcstod_l.texi: Likewise.
48076         * doc/glibc-functions/wcstof_l.texi: Likewise.
48077         * doc/glibc-functions/wcstol_l.texi: Likewise.
48078         * doc/glibc-functions/wcstold_l.texi: Likewise.
48079         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48080         * doc/glibc-functions/wcstoq.texi: Likewise.
48081         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48082         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48083         * doc/glibc-functions/wcstouq.texi: Likewise.
48084         * doc/glibc-functions/wmempcpy.texi: Likewise.
48085
48086 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48087             Eric Blake  <ebb9@byu.net>
48088             Paolo Bonzini  <bonzini@gnu.org>
48089             Bruno Haible  <bruno@clisp.org>
48090
48091         Make c-stack work on Haiku.
48092         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48093         (c_stack_action): Use SA_ONSTACK flag.
48094
48095 2008-12-22  Bruno Haible  <bruno@clisp.org>
48096
48097         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48098
48099 2008-12-22  Bruno Haible  <bruno@clisp.org>
48100
48101         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48102         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48103         being overridden.
48104         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48105         New macros.
48106         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48107         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48108         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48109         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48110
48111 2008-12-22  Bruno Haible  <bruno@clisp.org>
48112
48113         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48114         from test code.
48115
48116 2008-12-22  Eric Blake  <ebb9@byu.net>
48117
48118         Avoid gcc warnings on cygwin.
48119         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48120         Avoid unused variable.
48121         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48122         Likewise.
48123
48124 2008-12-22  Bruno Haible  <bruno@clisp.org>
48125
48126         Remove HAVE_MBRTOWC conditionals.
48127         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48128         (mbscasecmp): Assume mbrtowc function.
48129         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48130         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48131         * lib/mbschr.c: Include mbuiter.h unconditionally.
48132         (mbschr): Assume mbrtowc function.
48133         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48134         (mbscspn): Assume mbrtowc function.
48135         * lib/mbslen.c: Include mbuiter.h unconditionally.
48136         (mbslen): Assume mbrtowc function.
48137         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48138         (mbsncasecmp): Assume mbrtowc function.
48139         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48140         (mbsnlen): Assume mbrtowc function.
48141         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48142         (mbspbrk): Assume mbrtowc function.
48143         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48144         (mbspcasecmp): Assume mbrtowc function.
48145         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48146         (mbsrchr): Assume mbrtowc function.
48147         * lib/mbssep.c: Include mbuiter.h unconditionally.
48148         (mbssep): Assume mbrtowc function.
48149         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48150         (mbsspn): Assume mbrtowc function.
48151         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48152         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48153         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48154         (mbstok_r): Assume mbrtowc function.
48155         * lib/propername.c: Include mbuiter.h unconditionally.
48156         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48157         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48158         (trim2): Assume mbrtowc function.
48159         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48160         (mbsnwidth): Assume mbrtowc function.
48161         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48162         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48163         fallback definitions.
48164         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48165
48166 2008-12-22  Bruno Haible  <bruno@clisp.org>
48167
48168         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48169
48170 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48171
48172         * modules/regex: Request emulations for the mb*/wc* functions we need.
48173         * m4/regex.m4: Don't look for those functions here.
48174         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48175
48176 2008-12-22  Bruno Haible  <bruno@clisp.org>
48177
48178         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48179
48180 2008-12-21  Bruno Haible  <bruno@clisp.org>
48181
48182         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48183         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48184         (Include): Remove conditionalization.
48185         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48186         (Include): Remove conditionalization.
48187         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48188         (Include): Remove conditionalization.
48189         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48190         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48191         * NEWS: Mention the change.
48192         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48193         via Sergey Poznyakoff <gray@gnu.org.ua>.
48194
48195 2008-12-21  Bruno Haible  <bruno@clisp.org>
48196
48197         * MODULES.html.sh (Extended multibyte and wide character utilities
48198         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48199         wcrtomb, wcsrtombs.
48200         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48201         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48202         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48203         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48204
48205 2008-12-21  Bruno Haible  <bruno@clisp.org>
48206
48207         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48208
48209 2008-12-21  Bruno Haible  <bruno@clisp.org>
48210
48211         * modules/wcsnrtombs-tests: New file.
48212         * tests/test-wcsnrtombs1.sh: New file.
48213         * tests/test-wcsnrtombs2.sh: New file.
48214         * tests/test-wcsnrtombs3.sh: New file.
48215         * tests/test-wcsnrtombs4.sh: New file.
48216         * tests/test-wcsnrtombs.c: New file.
48217
48218         New module 'wcsnrtombs'.
48219         * lib/wchar.in.h (wcsnrtombs): New declaration.
48220         * lib/wcsnrtombs.c: New file.
48221         * lib/wcsrtombs-state.c: New file.
48222         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48223         (internal_state): Remove variable.
48224         * m4/wcsnrtombs.m4: New file.
48225         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48226         compilation units.
48227         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48228         HAVE_WCSNRTOMBS.
48229         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48230         HAVE_WCSNRTOMBS.
48231         * modules/wcsnrtombs: New file.
48232         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48233         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48234
48235 2008-12-21  Bruno Haible  <bruno@clisp.org>
48236
48237         * modules/wcsrtombs-tests: New file.
48238         * tests/test-wcsrtombs1.sh: New file.
48239         * tests/test-wcsrtombs2.sh: New file.
48240         * tests/test-wcsrtombs3.sh: New file.
48241         * tests/test-wcsrtombs4.sh: New file.
48242         * tests/test-wcsrtombs.c: New file.
48243
48244         New module 'wcsrtombs'.
48245         * lib/wchar.in.h (wcsrtombs): New declaration.
48246         * lib/wcsrtombs.c: New file.
48247         * m4/wcsrtombs.m4: New file.
48248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48249         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48250         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48251         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48252         * modules/wcsrtombs: New file.
48253         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48254         bugs.
48255
48256 2008-12-21  Bruno Haible  <bruno@clisp.org>
48257
48258         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48259         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48260         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48261         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48262         if not correct.
48263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48264         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48265         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48266         m4/locale-zh.m4, m4/codeset.m4.
48267         * doc/posix-functions/wcrtomb.texi: Document the bug.
48268
48269 2008-12-21  Bruno Haible  <bruno@clisp.org>
48270
48271         Work around a btowc() bug on IRIX 6.5.
48272         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48273         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48274         REPLACE_WTOBC if not.
48275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48276         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48277         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48278
48279 2008-12-21  Bruno Haible  <bruno@clisp.org>
48280
48281         * modules/wcrtomb-tests: New file.
48282         * tests/test-wcrtomb.sh: New file.
48283         * tests/test-wcrtomb.c: New file.
48284
48285         New module 'wcrtomb'.
48286         * lib/wchar.in.h (wcrtomb): New declaration.
48287         * lib/wcrtomb.c: New file.
48288         * m4/wcrtomb.m4: New file.
48289         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48290         HAVE_WCRTOMB.
48291         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48292         HAVE_WCRTOMB.
48293         * modules/wcrtomb: New file.
48294         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48295
48296 2008-12-21  Bruno Haible  <bruno@clisp.org>
48297
48298         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48299         * modules/mbsrtowcs (Files): Likewise.
48300         * modules/wctob (Files): Likewise.
48301         * modules/c-strcase-tests (Files): Likewise.
48302         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48303         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48304         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48305         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48306         * modules/vasnprintf-posix-tests (Files): Likewise.
48307
48308 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48309
48310         gitlog-to-changelog: pass all command-line arguments to git-log
48311         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48312         it is sometimes convenient to filter the commits in various ways.
48313         gitlog-to-changelog only allows --since to specify a start date,
48314         but git-log itself supports many other filtering mechanisms.
48315         At the moment, I want to filter by branch name.  Rather than
48316         adding a --branch option to gitlog-to-changelog, it seems more
48317         flexible to simply pass all options directly to git-log and let
48318         git do the work.  Notice that this effectively makes --since a
48319         redundant option for gitlog-to-changelog, but removing it would
48320         require current usage to change since calls would then require
48321         an additional '--'.
48322
48323 2008-12-21  Bruno Haible  <bruno@clisp.org>
48324
48325         * modules/mbsnrtowcs-tests: New file.
48326         * tests/test-mbsnrtowcs1.sh: New file.
48327         * tests/test-mbsnrtowcs2.sh: New file.
48328         * tests/test-mbsnrtowcs3.sh: New file.
48329         * tests/test-mbsnrtowcs4.sh: New file.
48330         * tests/test-mbsnrtowcs.c: New file.
48331
48332         New module 'mbsnrtowcs'.
48333         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48334         * lib/mbsnrtowcs.c: New file.
48335         * lib/mbsrtowcs-state.c: New file.
48336         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48337         (internal_state): Remove variable.
48338         * m4/mbsnrtowcs.m4: New file.
48339         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48340         compilation units.
48341         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48342         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48343         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48344         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48345         * modules/mbsnrtowcs: New file.
48346         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48347         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48348         portability problem.
48349
48350 2008-12-21  Bruno Haible  <bruno@clisp.org>
48351
48352         Work around mbsrtowcs bug.
48353         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48354         (gl_FUNC_MBSRTOWCS): Invoke it.
48355         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48356         m4/locale-zh.m4.
48357         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48358
48359 2008-12-21  Bruno Haible  <bruno@clisp.org>
48360
48361         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48362
48363 2008-12-21  Bruno Haible  <bruno@clisp.org>
48364
48365         Update doc for AIX.
48366         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48367         16-bit wchar_t type.
48368         * doc/posix-functions/btowc.texi: Likewise.
48369         * doc/posix-functions/fgetwc.texi: Likewise.
48370         * doc/posix-functions/fgetws.texi: Likewise.
48371         * doc/posix-functions/fputwc.texi: Likewise.
48372         * doc/posix-functions/fputws.texi: Likewise.
48373         * doc/posix-functions/fwide.texi: Likewise.
48374         * doc/posix-functions/fwprintf.texi: Likewise.
48375         * doc/posix-functions/fwscanf.texi: Likewise.
48376         * doc/posix-functions/getwchar.texi: Likewise.
48377         * doc/posix-functions/getwc.texi: Likewise.
48378         * doc/posix-functions/iswalnum.texi: Likewise.
48379         * doc/posix-functions/iswalpha.texi: Likewise.
48380         * doc/posix-functions/iswblank.texi: Likewise.
48381         * doc/posix-functions/iswcntrl.texi: Likewise.
48382         * doc/posix-functions/iswctype.texi: Likewise.
48383         * doc/posix-functions/iswdigit.texi: Likewise.
48384         * doc/posix-functions/iswgraph.texi: Likewise.
48385         * doc/posix-functions/iswlower.texi: Likewise.
48386         * doc/posix-functions/iswprint.texi: Likewise.
48387         * doc/posix-functions/iswpunct.texi: Likewise.
48388         * doc/posix-functions/iswspace.texi: Likewise.
48389         * doc/posix-functions/iswupper.texi: Likewise.
48390         * doc/posix-functions/iswxdigit.texi: Likewise.
48391         * doc/posix-functions/mbrtowc.texi: Likewise.
48392         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48393         * doc/posix-functions/mbstowcs.texi: Likewise.
48394         * doc/posix-functions/mbtowc.texi: Likewise.
48395         * doc/posix-functions/putwchar.texi: Likewise.
48396         * doc/posix-functions/putwc.texi: Likewise.
48397         * doc/posix-functions/swprintf.texi: Likewise.
48398         * doc/posix-functions/tolower.texi: Likewise.
48399         * doc/posix-functions/toupper.texi: Likewise.
48400         * doc/posix-functions/towctrans.texi: Likewise.
48401         * doc/posix-functions/ungetwc.texi: Likewise.
48402         * doc/posix-functions/vswprintf.texi: Likewise.
48403         * doc/posix-functions/wcrtomb.texi: Likewise.
48404         * doc/posix-functions/wcscat.texi: Likewise.
48405         * doc/posix-functions/wcschr.texi: Likewise.
48406         * doc/posix-functions/wcscmp.texi: Likewise.
48407         * doc/posix-functions/wcscoll.texi: Likewise.
48408         * doc/posix-functions/wcscpy.texi: Likewise.
48409         * doc/posix-functions/wcscspn.texi: Likewise.
48410         * doc/posix-functions/wcsftime.texi: Likewise.
48411         * doc/posix-functions/wcslen.texi: Likewise.
48412         * doc/posix-functions/wcsncat.texi: Likewise.
48413         * doc/posix-functions/wcsncmp.texi: Likewise.
48414         * doc/posix-functions/wcsncpy.texi: Likewise.
48415         * doc/posix-functions/wcspbrk.texi: Likewise.
48416         * doc/posix-functions/wcsrchr.texi: Likewise.
48417         * doc/posix-functions/wcsrtombs.texi: Likewise.
48418         * doc/posix-functions/wcsspn.texi: Likewise.
48419         * doc/posix-functions/wcsstr.texi: Likewise.
48420         * doc/posix-functions/wcstod.texi: Likewise.
48421         * doc/posix-functions/wcstof.texi: Likewise.
48422         * doc/posix-functions/wcstoimax.texi: Likewise.
48423         * doc/posix-functions/wcstok.texi: Likewise.
48424         * doc/posix-functions/wcstold.texi: Likewise.
48425         * doc/posix-functions/wcstoll.texi: Likewise.
48426         * doc/posix-functions/wcstol.texi: Likewise.
48427         * doc/posix-functions/wcstombs.texi: Likewise.
48428         * doc/posix-functions/wcstoull.texi: Likewise.
48429         * doc/posix-functions/wcstoul.texi: Likewise.
48430         * doc/posix-functions/wcstoumax.texi: Likewise.
48431         * doc/posix-functions/wcswidth.texi: Likewise.
48432         * doc/posix-functions/wcsxfrm.texi: Likewise.
48433         * doc/posix-functions/wctob.texi: Likewise.
48434         * doc/posix-functions/wctomb.texi: Likewise.
48435         * doc/posix-functions/wctrans.texi: Likewise.
48436         * doc/posix-functions/wctype.texi: Likewise.
48437         * doc/posix-functions/wcwidth.texi: Likewise.
48438         * doc/posix-functions/wmemchr.texi: Likewise.
48439         * doc/posix-functions/wmemcmp.texi: Likewise.
48440         * doc/posix-functions/wmemcpy.texi: Likewise.
48441         * doc/posix-functions/wmemmove.texi: Likewise.
48442         * doc/posix-functions/wmemset.texi: Likewise.
48443         * doc/posix-functions/wprintf.texi: Likewise.
48444         * doc/posix-functions/wscanf.texi: Likewise.
48445
48446 2008-12-21  Bruno Haible  <bruno@clisp.org>
48447
48448         Update doc for HP-UX 11.11.
48449         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48450         in HP-UX version 11.00, not in all versions of HP-UX 11.
48451         * doc/posix-functions/fwide.texi: Likewise.
48452         * doc/posix-functions/fwprintf.texi: Likewise.
48453         * doc/posix-functions/fwscanf.texi: Likewise.
48454         * doc/posix-functions/inet_ntop.texi: Likewise.
48455         * doc/posix-functions/inet_pton.texi: Likewise.
48456         * doc/posix-functions/mbrlen.texi: Likewise.
48457         * doc/posix-functions/mbrtowc.texi: Likewise.
48458         * doc/posix-functions/mbsinit.texi: Likewise.
48459         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48460         * doc/posix-functions/swprintf.texi: Likewise.
48461         * doc/posix-functions/swscanf.texi: Likewise.
48462         * doc/posix-functions/towctrans.texi: Likewise.
48463         * doc/posix-functions/vfwprintf.texi: Likewise.
48464         * doc/posix-functions/vswprintf.texi: Likewise.
48465         * doc/posix-functions/vwprintf.texi: Likewise.
48466         * doc/posix-functions/wcrtomb.texi: Likewise.
48467         * doc/posix-functions/wcsrtombs.texi: Likewise.
48468         * doc/posix-functions/wcsstr.texi: Likewise.
48469         * doc/posix-functions/wctob.texi: Likewise.
48470         * doc/posix-functions/wctrans.texi: Likewise.
48471         * doc/posix-functions/wmemchr.texi: Likewise.
48472         * doc/posix-functions/wmemcmp.texi: Likewise.
48473         * doc/posix-functions/wmemcpy.texi: Likewise.
48474         * doc/posix-functions/wmemmove.texi: Likewise.
48475         * doc/posix-functions/wmemset.texi: Likewise.
48476         * doc/posix-functions/wprintf.texi: Likewise.
48477         * doc/posix-functions/wscanf.texi: Likewise.
48478
48479 2008-12-21  Bruno Haible  <bruno@clisp.org>
48480
48481         Work around a portability problem.
48482         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48483         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48484
48485 2008-12-20  Bruno Haible  <bruno@clisp.org>
48486
48487         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48488         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48489         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48491         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48492
48493         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48494         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48495         set.
48496         (GNULIB_defined_mbstate_t): New macro.
48497         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48498         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48499         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48500         reuses the system's mbrtowc function but works around the bugs.
48501         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48502         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48503         macros.
48504         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48505         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48506         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48507         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48508         REPLACE_MBSINIT if mbsinit needs to be overridden.
48509         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48510         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48511         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48512         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48513         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48514         m4/locale-zh.m4.
48515         (Depends): Add mbsinit.
48516         * modules/mbsinit (Depends): Add mbrtowc.
48517         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48518
48519 2008-12-20  Bruno Haible  <bruno@clisp.org>
48520
48521         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48522         so that there are no conversion errors on AIX.
48523         * tests/test-mbsrtowcs.c (main): LIkewise.
48524
48525 2008-12-20  Bruno Haible  <bruno@clisp.org>
48526
48527         Work around wctob bug on Solaris <= 9.
48528         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48529         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48530         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48531         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48532         * modules/wctob (Files): Add m4/locale-fr.m4.
48533         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48534
48535 2008-12-20  Bruno Haible  <bruno@clisp.org>
48536
48537         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48538         /dev/null.
48539         * tests/test-select-in.sh: Likewise.
48540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48541
48542 2008-12-20  Bruno Haible  <bruno@clisp.org>
48543
48544         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48545         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48546         Cygwin 1.5.x.
48547
48548 2008-12-20  Bruno Haible  <bruno@clisp.org>
48549
48550         Ensure mbstate_t is defined on HP-UX 11.11.
48551         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48552         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48553         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48554         AC_USE_SYSTEM_EXTENSIONS.
48555         * modules/fnmatch (Depends-on): Add extensions.
48556         * modules/mbrlen (Depends-on): Likewise.
48557         * modules/mbrtowc (Depends-on): Likewise.
48558         * modules/mbsinit (Depends-on): Likewise.
48559         * modules/mbsrtowcs (Depends-on): Likewise.
48560         * modules/mbswidth (Depends-on): Likewise.
48561         * modules/quotearg (Depends-on): Likewise.
48562         * modules/strftime (Depends-on): Likewise.
48563
48564 2008-12-20  Bruno Haible  <bruno@clisp.org>
48565
48566         Ensure wctob is declared on IRIX 6.5.
48567         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48568         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48569         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48571         of HAVE_WCTOB.
48572         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48573         HAVE_WCTOB.
48574         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48575
48576 2008-12-19  Bruno Haible  <bruno@clisp.org>
48577
48578         * modules/mbsrtowcs-tests: New file.
48579         * tests/test-mbsrtowcs1.sh: New file.
48580         * tests/test-mbsrtowcs2.sh: New file.
48581         * tests/test-mbsrtowcs3.sh: New file.
48582         * tests/test-mbsrtowcs4.sh: New file.
48583         * tests/test-mbsrtowcs.c: New file.
48584
48585         New module 'mbsrtowcs'.
48586         * lib/wchar.in.h (mbsrtowcs): New declaration.
48587         * lib/mbsrtowcs.c: New file.
48588         * m4/mbsrtowcs.m4: New file.
48589         * modules/mbsrtowcs: New file.
48590         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48591         HAVE_MBSRTOWCS.
48592         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48593         HAVE_MBSRTOWCS.
48594         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48595
48596 2008-12-19  Bruno Haible  <bruno@clisp.org>
48597
48598         New module 'mbrlen'.
48599         * lib/wchar.in.h (mbrlen): New declaration.
48600         * lib/mbrlen.c: New file.
48601         * m4/mbrlen.m4: New file.
48602         * modules/mbrlen: New file.
48603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48604         HAVE_MBRLEN.
48605         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48606         HAVE_MBRLEN.
48607         * doc/posix-functions/mbrlen.texi: Document the new module.
48608
48609 2008-12-19  Bruno Haible  <bruno@clisp.org>
48610
48611         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48612         * modules/mbrtowc (Depends-on): Add verify.
48613         Suggested by Paul Eggert.
48614
48615 2008-12-18  Bruno Haible  <bruno@clisp.org>
48616
48617         * modules/mbsinit-tests: New file.
48618         * tests/test-mbsinit.sh: New file.
48619         * tests/test-mbsinit.c: New file.
48620
48621 2008-12-18  Bruno Haible  <bruno@clisp.org>
48622
48623         * modules/mbrtowc-tests: New file.
48624         * tests/test-mbrtowc1.sh: New file.
48625         * tests/test-mbrtowc2.sh: New file.
48626         * tests/test-mbrtowc3.sh: New file.
48627         * tests/test-mbrtowc4.sh: New file.
48628         * tests/test-mbrtowc.c: New file.
48629
48630         New module 'mbrtowc'.
48631         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48632         mbsinit and mbrtowc.
48633         (mbrtowc): New declaration.
48634         * lib/mbrtowc.c: New file.
48635         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48636         * modules/mbrtowc: New file.
48637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48638         HAVE_MBRTOWC.
48639         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48640         HAVE_MBRTOWC.
48641         * doc/posix-functions/mbrtowc.texi: Document the new module.
48642
48643 2008-12-18  Bruno Haible  <bruno@clisp.org>
48644
48645         New module 'wctob'.
48646         * lib/wchar.in.h (wctob): New declaration.
48647         * lib/wctob.c: New file.
48648         * m4/wctob.m4: New file.
48649         * modules/wctob: New file.
48650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48651         HAVE_WCTOB.
48652         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48653         * doc/posix-functions/wctob.texi: Document the new module.
48654
48655 2008-12-18  Bruno Haible  <bruno@clisp.org>
48656
48657         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48658         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48659
48660 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48661
48662         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48663         G. Christensen" <tgc@jupiterrise.com>.
48664
48665         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48666         G. Christensen" <tgc@jupiterrise.com>.
48667
48668         * lib/flock.c: Need to include string.h.  Reported by "Tom
48669         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48670         <ebb9@byu.net>.
48671
48672 2008-12-18  Bruno Haible  <bruno@clisp.org>
48673
48674         * m4/locale-ja.m4: New file, from GNU gettext.
48675
48676 2008-12-17  Bruno Haible  <bruno@clisp.org>
48677
48678         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48679         Suggested by Eric Blake.
48680
48681 2008-12-17  Bruno Haible  <bruno@clisp.org>
48682
48683         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48684
48685 2008-12-17  Bruno Haible  <bruno@clisp.org>
48686
48687         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48688         * modules/mbsinit (Depends-on): Add verify.
48689         Suggested by Paul Eggert.
48690
48691 2008-12-17  Bruno Haible  <bruno@clisp.org>
48692
48693         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48694         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48695         gl_FUNC_MBRTOWC.
48696         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48697         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48698         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48699         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48700         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48701         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48702         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48703         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48704         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48705         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48706         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48707         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48708         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48709         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48710         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48711         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48712         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48713         * modules/trim (configure.ac): Likewise.
48714
48715 2008-12-17  Bruno Haible  <bruno@clisp.org>
48716
48717         * modules/btowc-tests: New file.
48718         * tests/test-btowc1.sh: New file.
48719         * tests/test-btowc2.sh: New file.
48720         * tests/test-btowc.c: New file.
48721
48722         New module 'btowc'.
48723         * lib/wchar.in.h (btowc): New declaration.
48724         * lib/btowc.c: New file.
48725         * m4/btowc.m4: New file.
48726         * modules/btowc: New file.
48727         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48728         HAVE_BTOWC.
48729         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48730         * doc/posix-functions/btowc.texi: Document the new module.
48731
48732 2008-12-17  Bruno Haible  <bruno@clisp.org>
48733
48734         New module 'mbsinit'.
48735         * lib/wchar.in.h (mbsinit): New declaration.
48736         * lib/mbsinit.c: New file.
48737         * m4/mbsinit.m4: New file.
48738         * modules/mbsinit: New file.
48739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48740         HAVE_MBSINIT.
48741         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48742         HAVE_MBSINIT.
48743         * doc/posix-functions/mbsinit.texi: Document the new module.
48744
48745 2008-12-16  Bruno Haible  <bruno@clisp.org>
48746
48747         * lib/unistd.in.h: Add comment.
48748         * tests/test-environ.c: Don't include <stdlib.h>.
48749
48750 2008-12-16  Bruno Haible  <bruno@clisp.org>
48751
48752         * lib/parse-duration.h (parse_duration): Document return value
48753         convention.
48754         * lib/parse-duration.c: Include specification header first. Add
48755         comments.
48756         (_): Remove macro.
48757         (parse_year_month_day, parse_hour_minute_second): Move side effects
48758         outside of strchr call.
48759         (parse_non_iso8601): Move side effects outside of isspace call.
48760         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48761         call.
48762
48763 2008-12-16  Bruno Haible  <bruno@clisp.org>
48764
48765         * tests/test-parse-duration.sh: Produce no output when the test
48766         succeeds.
48767
48768 2008-12-16  Bruno Haible  <bruno@clisp.org>
48769
48770         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48771         expressions.
48772
48773 2008-12-15  Bruno Haible  <bruno@clisp.org>
48774
48775         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48776         * doc/glibc-functions/flistxattr.texi: Likewise.
48777         * doc/glibc-functions/fopencookie.texi: Likewise.
48778         * doc/glibc-functions/fremovexattr.texi: Likewise.
48779         * doc/glibc-functions/fsetxattr.texi: Likewise.
48780         * doc/glibc-functions/getxattr.texi: Likewise.
48781         * doc/glibc-functions/lgetxattr.texi: Likewise.
48782         * doc/glibc-functions/listxattr.texi: Likewise.
48783         * doc/glibc-functions/llistxattr.texi: Likewise.
48784         * doc/glibc-functions/lremovexattr.texi: Likewise.
48785         * doc/glibc-functions/lsetxattr.texi: Likewise.
48786         * doc/glibc-functions/removexattr.texi: Likewise.
48787         * doc/glibc-functions/setxattr.texi: Likewise.
48788         * doc/posix-functions/open_memstream.texi: Likewise.
48789
48790 2008-12-15  Eric Blake  <ebb9@byu.net>
48791
48792         Update doc for cygwin 1.7.
48793         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48794         functions.
48795         * doc/posix-functions/fchmodat.texi: Likewise.
48796         * doc/posix-functions/fchownat.texi: Likewise.
48797         * doc/posix-functions/fdopendir.texi: Likewise.
48798         * doc/posix-functions/fmemopen.texi: Likewise.
48799         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48800         * doc/posix-functions/fstatat.texi: Likewise.
48801         * doc/posix-functions/futimens.texi: Likewise.
48802         * doc/posix-functions/gai_strerror.texi: Likewise.
48803         * doc/posix-functions/getaddrinfo.texi: Likewise.
48804         * doc/posix-functions/getnameinfo.texi: Likewise.
48805         * doc/posix-functions/if_freenameindex.texi: Likewise.
48806         * doc/posix-functions/if_indextoname.texi: Likewise.
48807         * doc/posix-functions/if_nameindex.texi: Likewise.
48808         * doc/posix-functions/if_nametoindex.texi: Likewise.
48809         * doc/posix-functions/insque.texi: Likewise.
48810         * doc/posix-functions/linkat.texi: Likewise.
48811         * doc/posix-functions/llrint.texi: Likewise.
48812         * doc/posix-functions/llrintf.texi: Likewise.
48813         * doc/posix-functions/llrintl.texi: Likewise.
48814         * doc/posix-functions/lockf.texi: Likewise.
48815         * doc/posix-functions/lrintl.texi: Likewise.
48816         * doc/posix-functions/mkdirat.texi: Likewise.
48817         * doc/posix-functions/mkfifoat.texi: Likewise.
48818         * doc/posix-functions/mknodat.texi: Likewise.
48819         * doc/posix-functions/mq_close.texi: Likewise.
48820         * doc/posix-functions/mq_getattr.texi: Likewise.
48821         * doc/posix-functions/mq_notify.texi: Likewise.
48822         * doc/posix-functions/mq_open.texi: Likewise.
48823         * doc/posix-functions/mq_receive.texi: Likewise.
48824         * doc/posix-functions/mq_send.texi: Likewise.
48825         * doc/posix-functions/mq_setattr.texi: Likewise.
48826         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48827         * doc/posix-functions/mq_timedsend.texi: Likewise.
48828         * doc/posix-functions/mq_unlink.texi: Likewise.
48829         * doc/posix-functions/open_memstream.texi: Likewise.
48830         * doc/posix-functions/openat.texi: Likewise.
48831         * doc/posix-functions/posix_fadvise.texi: Likewise.
48832         * doc/posix-functions/posix_fallocate.texi: Likewise.
48833         * doc/posix-functions/posix_madvise.texi: Likewise.
48834         * doc/posix-functions/posix_memalign.texi: Likewise.
48835         * doc/posix-functions/posix_openpt.texi: Likewise.
48836         * doc/posix-functions/readlinkat.texi: Likewise.
48837         * doc/posix-functions/remque.texi: Likewise.
48838         * doc/posix-functions/renameat.texi: Likewise.
48839         * doc/posix-functions/rintl.texi: Likewise.
48840         * doc/posix-functions/sem_unlink.texi: Likewise.
48841         * doc/posix-functions/shm_open.texi: Likewise.
48842         * doc/posix-functions/shm_unlink.texi: Likewise.
48843         * doc/posix-functions/signgam.texi: Likewise.
48844         * doc/posix-functions/sigset.texi: Likewise.
48845         * doc/posix-functions/stpcpy.texi: Likewise.
48846         * doc/posix-functions/stpncpy.texi: Likewise.
48847         * doc/posix-functions/strerror.texi: Likewise.
48848         * doc/posix-functions/strtod.texi: Likewise.
48849         * doc/posix-functions/symlinkat.texi: Likewise.
48850         * doc/posix-functions/unlinkat.texi: Likewise.
48851         * doc/posix-functions/utimensat.texi: Likewise.
48852         * doc/glibc-functions/bindresvport.texi: Likewise.
48853         * doc/glibc-functions/dn_expand.texi: Likewise.
48854         * doc/glibc-functions/exp10.texi: Likewise.
48855         * doc/glibc-functions/exp10f.texi: Likewise.
48856         * doc/glibc-functions/fgetxattr.texi: Likewise.
48857         * doc/glibc-functions/flistxattr.texi: Likewise.
48858         * doc/glibc-functions/fopencookie.texi: Likewise.
48859         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48860         * doc/glibc-functions/fremovexattr.texi: Likewise.
48861         * doc/glibc-functions/fsetxattr.texi: Likewise.
48862         * doc/glibc-functions/getifaddrs.texi: Likewise.
48863         * doc/glibc-functions/getxattr.texi: Likewise.
48864         * doc/glibc-functions/lgetxattr.texi: Likewise.
48865         * doc/glibc-functions/listxattr.texi: Likewise.
48866         * doc/glibc-functions/llistxattr.texi: Likewise.
48867         * doc/glibc-functions/lremovexattr.texi: Likewise.
48868         * doc/glibc-functions/lsetxattr.texi: Likewise.
48869         * doc/glibc-functions/pow10.texi: Likewise.
48870         * doc/glibc-functions/pow10f.texi: Likewise.
48871         * doc/glibc-functions/rcmd_af.texi: Likewise.
48872         * doc/glibc-functions/removexattr.texi: Likewise.
48873         * doc/glibc-functions/res_init.texi: Likewise.
48874         * doc/glibc-functions/res_mkquery.texi: Likewise.
48875         * doc/glibc-functions/res_query.texi: Likewise.
48876         * doc/glibc-functions/res_querydomain.texi: Likewise.
48877         * doc/glibc-functions/res_send.texi: Likewise.
48878         * doc/glibc-functions/rresvport_af.texi: Likewise.
48879         * doc/glibc-functions/setxattr.texi: Likewise.
48880         * doc/glibc-functions/strcasestr.texi: Likewise.
48881
48882 2008-12-15  Bruno Haible  <bruno@clisp.org>
48883
48884         Fix compilation error on OSF/1 4.0.
48885         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48886         <sys/time.h>, simply delegate to the system header.
48887         Reported by Daniel Richard G. <oss@teragram.com>.
48888
48889 2008-12-15  Bruno Haible  <bruno@clisp.org>
48890
48891         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48892         * doc/posix-functions/fchmodat.texi: Likewise.
48893         * doc/posix-functions/fchownat.texi: Likewise.
48894         * doc/posix-functions/fdopendir.texi: Likewise.
48895         * doc/posix-functions/fstatat.texi: Likewise.
48896         * doc/posix-functions/mkdirat.texi: Likewise.
48897         * doc/posix-functions/unlinkat.texi: Likewise.
48898
48899 2008-12-14  Bruno Haible  <bruno@clisp.org>
48900
48901         Update doc for POSIX:2008.
48902         * doc/posix-functions/faccessat.texi: New file.
48903         * doc/posix-functions/fchmodat.texi: New file.
48904         * doc/posix-functions/fchownat.texi: New file.
48905         * doc/posix-functions/fdopendir.texi: New file.
48906         * doc/posix-functions/fstatat.texi: New file.
48907         * doc/posix-functions/futimens.texi: New file.
48908         * doc/posix-functions/linkat.texi: New file.
48909         * doc/posix-functions/mkdirat.texi: New file.
48910         * doc/posix-functions/mkfifoat.texi: New file.
48911         * doc/posix-functions/mknodat.texi: New file.
48912         * doc/posix-functions/open_wmemstream.texi: New file.
48913         * doc/posix-functions/openat.texi: New file.
48914         * doc/posix-functions/psiginfo.texi: New file.
48915         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48916         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48917         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48918         * doc/posix-functions/readlinkat.texi: New file.
48919         * doc/posix-functions/renameat.texi: New file.
48920         * doc/posix-functions/strerror_l.texi: New file.
48921         * doc/posix-functions/symlinkat.texi: New file.
48922         * doc/posix-functions/unlinkat.texi: New file.
48923         * doc/posix-functions/utimensat.texi: New file.
48924         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48925
48926 2008-12-14  Bruno Haible  <bruno@clisp.org>
48927
48928         Update doc for POSIX:2008.
48929         * doc/posix-functions/alphasort.texi: Renamed from
48930         doc/glibc-functions/alphasort.texi.
48931         * doc/posix-functions/dirfd.texi: Renamed from
48932         doc/glibc-functions/dirfd.texi.
48933         * doc/posix-functions/dprintf.texi: Renamed from
48934         doc/glibc-functions/dprintf.texi.
48935         * doc/posix-functions/duplocale.texi: Renamed from
48936         doc/glibc-functions/duplocale.texi.
48937         * doc/posix-functions/fexecve.texi: Renamed from
48938         doc/glibc-functions/fexecve.texi.
48939         * doc/posix-functions/fmemopen.texi: Renamed from
48940         doc/glibc-functions/fmemopen.texi.
48941         * doc/posix-functions/freelocale.texi: Renamed from
48942         doc/glibc-functions/freelocale.texi.
48943         * doc/posix-functions/getdate_err.texi: Renamed from
48944         doc/glibc-functions/getdate_err.texi.
48945         * doc/posix-functions/isalnum_l.texi: Renamed from
48946         doc/glibc-functions/isalnum_l.texi.
48947         * doc/posix-functions/isalpha_l.texi: Renamed from
48948         doc/glibc-functions/isalpha_l.texi.
48949         * doc/posix-functions/isblank_l.texi: Renamed from
48950         doc/glibc-functions/isblank_l.texi.
48951         * doc/posix-functions/iscntrl_l.texi: Renamed from
48952         doc/glibc-functions/iscntrl_l.texi.
48953         * doc/posix-functions/isdigit_l.texi: Renamed from
48954         doc/glibc-functions/isdigit_l.texi.
48955         * doc/posix-functions/isgraph_l.texi: Renamed from
48956         doc/glibc-functions/isgraph_l.texi.
48957         * doc/posix-functions/islower_l.texi: Renamed from
48958         doc/glibc-functions/islower_l.texi.
48959         * doc/posix-functions/isprint_l.texi: Renamed from
48960         doc/glibc-functions/isprint_l.texi.
48961         * doc/posix-functions/ispunct_l.texi: Renamed from
48962         doc/glibc-functions/ispunct_l.texi.
48963         * doc/posix-functions/isspace_l.texi: Renamed from
48964         doc/glibc-functions/isspace_l.texi.
48965         * doc/posix-functions/isupper_l.texi: Renamed from
48966         doc/glibc-functions/isupper_l.texi.
48967         * doc/posix-functions/iswalnum_l.texi: Renamed from
48968         doc/glibc-functions/iswalnum_l.texi.
48969         * doc/posix-functions/iswalpha_l.texi: Renamed from
48970         doc/glibc-functions/iswalpha_l.texi.
48971         * doc/posix-functions/iswblank_l.texi: Renamed from
48972         doc/glibc-functions/iswblank_l.texi.
48973         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48974         doc/glibc-functions/iswcntrl_l.texi.
48975         * doc/posix-functions/iswctype_l.texi: Renamed from
48976         doc/glibc-functions/iswctype_l.texi.
48977         * doc/posix-functions/iswdigit_l.texi: Renamed from
48978         doc/glibc-functions/iswdigit_l.texi.
48979         * doc/posix-functions/iswgraph_l.texi: Renamed from
48980         doc/glibc-functions/iswgraph_l.texi.
48981         * doc/posix-functions/iswlower_l.texi: Renamed from
48982         doc/glibc-functions/iswlower_l.texi.
48983         * doc/posix-functions/iswprint_l.texi: Renamed from
48984         doc/glibc-functions/iswprint_l.texi.
48985         * doc/posix-functions/iswpunct_l.texi: Renamed from
48986         doc/glibc-functions/iswpunct_l.texi.
48987         * doc/posix-functions/iswspace_l.texi: Renamed from
48988         doc/glibc-functions/iswspace_l.texi.
48989         * doc/posix-functions/iswupper_l.texi: Renamed from
48990         doc/glibc-functions/iswupper_l.texi.
48991         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48992         doc/glibc-functions/iswxdigit_l.texi.
48993         * doc/posix-functions/isxdigit_l.texi: Renamed from
48994         doc/glibc-functions/isxdigit_l.texi.
48995         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48996         doc/glibc-functions/mbsnrtowcs.texi.
48997         * doc/posix-functions/mkdtemp.texi: Renamed from
48998         doc/glibc-functions/mkdtemp.texi.
48999         * doc/posix-functions/newlocale.texi: Renamed from
49000         doc/glibc-functions/newlocale.texi.
49001         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49002         doc/glibc-functions/nl_langinfo_l.texi.
49003         * doc/posix-functions/open_memstream.texi: Renamed from
49004         doc/glibc-functions/open_memstream.texi.
49005         * doc/posix-functions/opterr.texi: Renamed from
49006         doc/glibc-functions/opterr.texi.
49007         * doc/posix-functions/optind.texi: Renamed from
49008         doc/glibc-functions/optind.texi.
49009         * doc/posix-functions/optopt.texi: Renamed from
49010         doc/glibc-functions/optopt.texi.
49011         * doc/posix-functions/psignal.texi: Renamed from
49012         doc/glibc-functions/psignal.texi.
49013         * doc/posix-functions/scandir.texi: Renamed from
49014         doc/glibc-functions/scandir.texi.
49015         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49016         doc/glibc-functions/sched_get_priority_min.texi.
49017         * doc/posix-functions/signgam.texi: Renamed from
49018         doc/glibc-functions/signgam.texi.
49019         * doc/posix-functions/stpcpy.texi: Renamed from
49020         doc/glibc-functions/stpcpy.texi.
49021         * doc/posix-functions/stpncpy.texi: Renamed from
49022         doc/glibc-functions/stpncpy.texi.
49023         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49024         doc/glibc-functions/strcasecmp_l.texi.
49025         * doc/posix-functions/strcoll_l.texi: Renamed from
49026         doc/glibc-functions/strcoll_l.texi.
49027         * doc/posix-functions/strfmon_l.texi: Renamed from
49028         doc/glibc-functions/strfmon_l.texi.
49029         * doc/posix-functions/strftime_l.texi: Renamed from
49030         doc/glibc-functions/strftime_l.texi.
49031         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49032         doc/glibc-functions/strncasecmp_l.texi.
49033         * doc/posix-functions/strndup.texi: Renamed from
49034         doc/glibc-functions/strndup.texi.
49035         * doc/posix-functions/strnlen.texi: Renamed from
49036         doc/glibc-functions/strnlen.texi.
49037         * doc/posix-functions/strsignal.texi: Renamed from
49038         doc/glibc-functions/strsignal.texi.
49039         * doc/posix-functions/strxfrm_l.texi: Renamed from
49040         doc/glibc-functions/strxfrm_l.texi.
49041         * doc/posix-functions/timer_gettime.texi: Renamed from
49042         doc/glibc-functions/timer_gettime.texi.
49043         * doc/posix-functions/tolower_l.texi: Renamed from
49044         doc/glibc-functions/tolower_l.texi.
49045         * doc/posix-functions/toupper_l.texi: Renamed from
49046         doc/glibc-functions/toupper_l.texi.
49047         * doc/posix-functions/towctrans_l.texi: Renamed from
49048         doc/glibc-functions/towctrans_l.texi.
49049         * doc/posix-functions/towlower_l.texi: Renamed from
49050         doc/glibc-functions/towlower_l.texi.
49051         * doc/posix-functions/towupper_l.texi: Renamed from
49052         doc/glibc-functions/towupper_l.texi.
49053         * doc/posix-functions/uselocale.texi: Renamed from
49054         doc/glibc-functions/uselocale.texi.
49055         * doc/posix-functions/vdprintf.texi: Renamed from
49056         doc/glibc-functions/vdprintf.texi.
49057         * doc/posix-functions/wcpcpy.texi:
49058         Renamed from doc/glibc-functions/wcpcpy.texi.
49059         * doc/posix-functions/wcpncpy.texi: Renamed from
49060         doc/glibc-functions/wcpncpy.texi.
49061         * doc/posix-functions/wcscasecmp.texi: Renamed from
49062         doc/glibc-functions/wcscasecmp.texi.
49063         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49064         doc/glibc-functions/wcscasecmp_l.texi.
49065         * doc/posix-functions/wcscoll_l.texi: Renamed from
49066         doc/glibc-functions/wcscoll_l.texi.
49067         * doc/posix-functions/wcsdup.texi: Renamed from
49068         doc/glibc-functions/wcsdup.texi.
49069         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49070         doc/glibc-functions/wcsncasecmp.texi.
49071         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49072         doc/glibc-functions/wcsncasecmp_l.texi.
49073         * doc/posix-functions/wcsnlen.texi: Renamed from
49074         doc/glibc-functions/wcsnlen.texi.
49075         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49076         doc/glibc-functions/wcsnrtombs.texi.
49077         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49078         doc/glibc-functions/wcsxfrm_l.texi.
49079         * doc/posix-functions/wctrans_l.texi: Renamed from
49080         doc/glibc-functions/wctrans_l.texi.
49081         * doc/posix-functions/wctype_l.texi: Renamed from
49082         doc/glibc-functions/wctype_l.texi.
49083         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49084         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49085         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49086         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49087         these subsections.
49088         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49089         Remove sections.
49090
49091 2008-12-14  Bruno Haible  <bruno@clisp.org>
49092
49093         Update doc for POSIX:2008.
49094         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49095
49096 2008-12-14  Bruno Haible  <bruno@clisp.org>
49097
49098         Update doc for POSIX:2008.
49099         * doc/pastposix-functions/bcmp.texi: Renamed from
49100         doc/posix-functions/bcmp.texi.
49101         * doc/pastposix-functions/bcopy.texi: Renamed from
49102         doc/posix-functions/bcopy.texi.
49103         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49104         doc/posix-functions/bsd_signal.texi.
49105         * doc/pastposix-functions/bzero.texi: Renamed from
49106         doc/posix-functions/bzero.texi.
49107         * doc/pastposix-functions/ecvt.texi: Renamed from
49108         doc/posix-functions/ecvt.texi.
49109         * doc/pastposix-functions/fcvt.texi: Renamed from
49110         doc/posix-functions/fcvt.texi.
49111         * doc/pastposix-functions/ftime.texi: Renamed from
49112         doc/posix-functions/ftime.texi.
49113         * doc/pastposix-functions/gcvt.texi: Renamed from
49114         doc/posix-functions/gcvt.texi.
49115         * doc/pastposix-functions/getcontext.texi: Renamed from
49116         doc/posix-functions/getcontext.texi.
49117         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49118         doc/posix-functions/gethostbyaddr.texi.
49119         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49120         doc/posix-functions/gethostbyname.texi.
49121         * doc/pastposix-functions/getwd.texi: Renamed from
49122         doc/posix-functions/getwd.texi.
49123         * doc/pastposix-functions/h_errno.texi: Renamed from
49124         doc/posix-functions/h_errno.texi.
49125         * doc/pastposix-functions/index.texi: Renamed from
49126         doc/posix-functions/index.texi.
49127         * doc/pastposix-functions/makecontext.texi: Renamed from
49128         doc/posix-functions/makecontext.texi.
49129         * doc/pastposix-functions/mktemp.texi: Renamed from
49130         doc/posix-functions/mktemp.texi.
49131         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49132         doc/posix-functions/pthread_attr_getstackaddr.texi.
49133         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49134         doc/posix-functions/pthread_attr_setstackaddr.texi.
49135         * doc/pastposix-functions/rindex.texi: Renamed from
49136         doc/posix-functions/rindex.texi.
49137         * doc/pastposix-functions/scalb.texi: Renamed from
49138         doc/posix-functions/scalb.texi.
49139         * doc/pastposix-functions/setcontext.texi: Renamed from
49140         doc/posix-functions/setcontext.texi.
49141         * doc/pastposix-functions/swapcontext.texi: Renamed from
49142         doc/posix-functions/swapcontext.texi.
49143         * doc/pastposix-functions/ualarm.texi: Renamed from
49144         doc/posix-functions/ualarm.texi.
49145         * doc/pastposix-functions/usleep.texi: Renamed from
49146         doc/posix-functions/usleep.texi.
49147         * doc/pastposix-functions/vfork.texi: Renamed from
49148         doc/posix-functions/vfork.texi.
49149         * doc/pastposix-functions/wcswcs.texi: Renamed from
49150         doc/posix-functions/wcswcs.texi.
49151         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49152         (Function Substitutes): Update.
49153
49154 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49155
49156         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49157         m4/strerror.m4.
49158
49159 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49160             Bruno Haible  <bruno@clisp.org>
49161
49162         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49163
49164 2008-12-13  Bruno Haible  <bruno@clisp.org>
49165
49166         * modules/strtoull (Depends-on): Remove unistd.
49167
49168 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49169
49170         * modules/strtoull (Depends-on): Add stdlib.
49171
49172 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49173
49174         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49175
49176 2008-12-10  Jim Meyering  <meyering@redhat.com>
49177
49178         gl_ASSERT: don't say assertions are disabled when they're not
49179         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49180         "checking whether to enable assertions... no", when they are in
49181         fact enabled.  This is solely a bug in the output of configure.
49182         In spite of saying "no", NDEBUG was not defined in that case.
49183         Also, as noted by Eric Blake, leave assertions enabled upon
49184         --enable-assert=INVALID.
49185
49186 2008-12-10  Bruno Haible  <bruno@clisp.org>
49187
49188         Change MODULES.html to refer to POSIX:2008 where possible.
49189         * MODULES.html.sh (POSIX2008_URL): New variable.
49190         (posix_headers): Remove sys/timeb, ucontext.
49191         (posix2001_headers): New variable.
49192         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49193         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49194         index, makecontext, mktemp, pthread_attr_getstackaddr,
49195         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49196         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49197         (posix2001_functions): New variable.
49198         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49199         otherwise.
49200
49201 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49202
49203         add missing include to parse-duration.c
49204         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49205         * modules/parse-duration (Depends-on): Add xalloc.
49206
49207         fix sed script reading maint.mk
49208         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49209         (syntax-check-rules): Use it.
49210
49211 2008-12-09  Bruno Haible  <bruno@clisp.org>
49212
49213         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49214         MacOS X 10.4/PowerPC.
49215         Reported by Simon Josefsson.
49216
49217 2008-12-08  Jim Meyering  <meyering@redhat.com>
49218
49219         work around mingw's lack of some S_IF definitions
49220         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49221         Reported by Simon Josefsson.
49222
49223 2008-12-08  Bruno Haible  <bruno@clisp.org>
49224
49225         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49226         applied to variables. Needed on MacOS X 10.4/PowerPC.
49227         Reported by Simon Josefsson.
49228
49229 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49230         and Eric Blake  <ebb9@byu.net>
49231
49232         assert: honor --enable-assert
49233         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49234         order to honor --enable-assert, rather than treating it as a
49235         synonym for --disable-assert.
49236
49237 2008-12-08  Jim Meyering  <meyering@redhat.com>
49238
49239         * lib/posixtm.c: Remove now-useless declaration of mktime.
49240
49241         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49242
49243 2008-12-07  Bruno Haible  <bruno@clisp.org>
49244
49245         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49246         test_once): Mark functions as static.
49247         * tests/test-tls.c (test_tls): Likewise.
49248
49249 2008-12-07  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49252         iconv_register_autodetect.
49253
49254 2008-12-07  Jim Meyering  <meyering@redhat.com>
49255
49256         posixtm.c: avoid a warning
49257         * lib/posixtm.c (posixtime): Don't initialize tm0.
49258         It's no longer needed to placate gcc4's -Wuninitialized,
49259         and the attempt to placate would elicit a new warning.
49260
49261         unicodeio.c: mark unused parameters
49262         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49263         (fallback_failure_callback): Likewise.
49264
49265 2008-12-07  Bruno Haible  <bruno@clisp.org>
49266
49267         * gnulib-tool (func_create_testdir): When building the tests
49268         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49269         Reported by Simon Josefsson.
49270
49271 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49272
49273         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49274
49275 2008-12-06  Bruno Haible  <bruno@clisp.org>
49276
49277         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49278         Suggested by Eric Blake.
49279
49280 2008-12-06  Bruno Haible  <bruno@clisp.org>
49281
49282         Fix a c-stack test failure on MacOS X.
49283         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49284         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49285         handler for SIGBUS as well.
49286         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49287         install a signal handler for SIGBUS as well.
49288         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49289
49290 2008-12-06  Bruno Haible  <bruno@clisp.org>
49291
49292         Advocacy documentation.
49293         * doc/gnulib-intro.texi (Benefits): New section.
49294         * doc/gnulib.texi: Update.
49295
49296 2008-12-06  Bruno Haible  <bruno@clisp.org>
49297
49298         Document the 'manywarnings' module.
49299         * doc/manywarnings.texi: New file.
49300         * doc/gnulib.texi: Include it.
49301
49302 2008-12-05  Eric Blake  <ebb9@byu.net>
49303
49304         tests: silence some gcc warnings
49305         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49306         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49307         type mismatches.
49308
49309 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49310             Bruno Haible  <bruno@clisp.org>
49311
49312         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49313
49314 2008-11-29  Jim Meyering  <meyering@redhat.com>
49315
49316         unicodeio.c: mark unused parameters
49317         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49318         (fallback_failure_callback): Likewise.
49319
49320         fts: fix a thinko
49321         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49322         (set_stat_type): Return S_IF*-valued "type" directly.
49323         Prompted by James Youngman's spotting a related bug.
49324         Confirmed by further testing through find.
49325
49326         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49327         * lib/fts.c (D_TYPE): Define.
49328         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49329         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49330         (s_ifmt_shift_bits): New function.
49331         (set_stat_type): New function.
49332         (fts_build): When not calling fts_stat, call set_stat_type
49333         to propagate dirent.d_type info to fts_read caller.
49334         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49335         fts_statp->st_mode type information may be valid.
49336
49337 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49338
49339         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49340         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49341         <sds@gnu.org>.
49342
49343 2008-11-20  Bruno Haible  <bruno@clisp.org>
49344
49345         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49346         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49347         INCLUDE_NEXT.
49348         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49349         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49350         * modules/math (Makefile.am): Substitute
49351         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49352         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49353
49354 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49355             Bruno Haible  <bruno@clisp.org>
49356
49357         * lib/stdint.in.h: Define all type macros so that their expansion is
49358         a single typedef'ed token. Fixes a compilation failure in Boost which
49359         does "using ::int8_t;".
49360
49361 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49362
49363         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49364         gl_MANYWARN_ALL_GCC.
49365         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49366         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49367         * modules/manywarnings: New file.
49368         * MODULES.html.sh: Mention manywarnings module.
49369
49370 2008-11-18  Bruno Haible  <bruno@clisp.org>
49371
49372         * doc/gnulib-tool.texi (Unit tests): New section.
49373
49374 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49375
49376         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49377         paths like 'lib/po/foo.po'.
49378
49379 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49380
49381         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49382         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49383
49384 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49385
49386         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49387         parameter works.
49388
49389 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49390
49391         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49392
49393 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49394
49395         * modules/parse-duration-tests: New file.
49396         * tests/test-parse-duration.sh: New file.
49397         * tests/test-parse-duration.c: New file.
49398
49399         New module 'parse-duration'.
49400         * lib/parse-duration.h: New file.
49401         * lib/parse-duration.c: New file.
49402         * modules/parse-duration: New file.
49403
49404 2008-11-17  Bruno Haible  <bruno@clisp.org>
49405
49406         * tests/test-select-out.sh: Comment out the first pipe test.
49407         Reported by Simon Josefsson.
49408
49409 2008-11-17  Bruno Haible  <bruno@clisp.org>
49410
49411         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49412         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49413         gl_HOSTENT.
49414
49415 2008-11-17  Bruno Haible  <bruno@clisp.org>
49416
49417         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49418         -lnetwork and -lnet. Needed for Haiku and BeOS.
49419
49420 2008-11-16  Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49423
49424 2008-11-16  Bruno Haible  <bruno@clisp.org>
49425
49426         Avoid test failure on Haiku.
49427         * tests/test-fsync.c: Include <errno.h>.
49428         (main): Don't require that fsync (0) fails.
49429
49430 2008-11-15  Bruno Haible  <bruno@clisp.org>
49431
49432         New module 'hostent'.
49433         * modules/hostent: New file.
49434         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49435
49436 2008-11-15  Bruno Haible  <bruno@clisp.org>
49437
49438         New module 'servent'.
49439         * modules/servent: New file.
49440         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49441
49442 2008-11-15  Bruno Haible  <bruno@clisp.org>
49443
49444         Avoid generating same test program with two different rules.
49445         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49446         test-frexp to test-frexp-nolibm.
49447         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49448         test-frexpl to test-frexpl-nolibm.
49449
49450 2008-11-15  Bruno Haible  <bruno@clisp.org>
49451
49452         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49453         $(FREXPL_LIBM).
49454
49455 2008-11-15  Bruno Haible  <bruno@clisp.org>
49456
49457         * lib/netdb.in.h: Activate the definitions also when the system's
49458         <netdb.h> has 'struct addrinfo'.
49459         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49460         EAI_OVERFLOW or AI_NUMERICSERV.
49461         * doc/posix-headers/netdb.texi: Document the problem.
49462
49463 2008-11-15  Bruno Haible  <bruno@clisp.org>
49464
49465         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49466
49467         Make the 'sched' module work on platforms where <sched.h> exists but
49468         is incomplete (such as Haiku).
49469         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49470         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49471         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49472         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49473         HAVE_STRUCT_SCHED_PARAM.
49474         * modules/sched (Depends-on): Add include_next.
49475         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49476         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49477         * doc/posix-headers/sched.texi: Document the issue.
49478
49479 2008-11-13  Jim Meyering  <meyering@redhat.com>
49480
49481         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49482         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49483         test would fail due to the difference in the Report bugs to ...
49484         line.  The expected address is empty, "<>", while the actual
49485         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49486
49487 2008-11-12  Bruno Haible  <bruno@clisp.org>
49488
49489         lstat: don't compile lstat.c on systems lacking lstat
49490         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49491         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49492         Reported by Daniel P. Berrange via Jim Meyering.
49493
49494 2008-11-12  Jim Meyering  <meyering@redhat.com>
49495
49496         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49497
49498 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49499
49500         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49501         instead.
49502
49503 2008-11-12  Bruno Haible  <bruno@clisp.org>
49504
49505         * lib/unicodeio.c: Include unistr.h.
49506         (utf8_wctomb): Remove function.
49507         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49508
49509 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49510
49511         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49512         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49513         <bruno@clisp.org>.
49514         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49515
49516 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49517
49518         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49519         * doc/gnulib.texi: Add section for warnings.
49520
49521 2008-11-11  Bruno Haible  <bruno@clisp.org>
49522
49523         * lib/sockets.h: Add a comment.
49524
49525 2008-11-11  Karl Berry  <karl@gnu.org>
49526
49527         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49528
49529 2008-11-11  Eric Blake  <ebb9@byu.net>
49530
49531         fdl.texi: avoid git symlinks
49532         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49533
49534 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49535
49536         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49537
49538 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49539
49540         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49541         (gl_WARN_ADD): Substitute $2 if literal.
49542
49543 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49544
49545         * m4/warning.m4: Remove.
49546
49547 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49548
49549         * m4/warnings.m4: Almost complete rewrite. :-)
49550
49551 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49552
49553         * modules/warnings: New module.
49554         * m4/warnings.m4: New file.
49555         * MODULES.html.sh: Mention warnings module.
49556         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49557         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49558
49559 2008-11-10  Eric Blake  <ebb9@byu.net>
49560
49561         fdl.texi: make a symlink to the latest version
49562         * doc/standards.texi: Revert today's earlier change.
49563         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49564         * doc/fdl.texi: ...and replace this with a symlink to the newer
49565         fdl-1.3.texi.
49566
49567 2008-11-10  Bruno Haible  <bruno@clisp.org>
49568
49569         * tests/test-select-fd.c (main): Accept the result file name as fourth
49570         argument.
49571         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49572         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49573
49574 2008-11-10  Bruno Haible  <bruno@clisp.org>
49575
49576         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49577         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49578         as autoconf-substituted macros.
49579         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49580         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49581         gl_NETDB_H_DEFAULTS. Set these variables.
49582         * modules/netdb (Makefile.am): Substitute these variables.
49583
49584 2008-11-10  Eric Blake  <ebb9@byu.net>
49585
49586         standards.texi: include correct file for FDL 1.3
49587         * doc/standards.texi (GNU Free Documentation License): Change
49588         include file to pull in FDL 1.3, not 1.2.
49589
49590         fdl.texi: revert accidental change to license
49591         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49592
49593 2008-11-10  Bruno Haible  <bruno@clisp.org>
49594
49595         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49596         cross-compiling guesses also when the native compile gives no result.
49597
49598 2008-11-10  Bruno Haible  <bruno@clisp.org>
49599
49600         * lib/spawni.c (__spawni): Force variable into the stack.
49601
49602 2008-11-10  Bruno Haible  <bruno@clisp.org>
49603
49604         Add support for Haiku.
49605         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49606         glibc and BeOS, but also on Haiku.
49607         * lib/fpurge.c (fpurge): Likewise.
49608         * lib/freadable.c (freadable): Likewise.
49609         * lib/freadahead.c (freadahead): Likewise.
49610         * lib/freading.c (freading): Likewise.
49611         * lib/freadptr.c (freadptr): Likewise.
49612         * lib/freadseek.c (freadptrinc): Likewise.
49613         * lib/fseeko.c (rpl_fseeko): Likewise.
49614         * lib/fseterr.c (fseterr): Likewise.
49615         * lib/fwritable.c (fwritable): Likewise.
49616         * lib/fwriting.c (fwriting): Likewise.
49617         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49618
49619 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49620
49621         * lib/config.charset: Treat Haiku like BeOS.
49622
49623 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49624
49625         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49626         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49627
49628 2008-11-08  Bruno Haible  <bruno@clisp.org>
49629
49630         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49631         AC_CACHE_CHECK.
49632
49633 2008-11-08  Bruno Haible  <bruno@clisp.org>
49634
49635         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49636
49637 2008-11-08  Bruno Haible  <bruno@clisp.org>
49638
49639         * tests/test-select-fd.c: New file.
49640         * tests/test-select-in.sh: New file.
49641         * tests/test-select-out.sh: New file.
49642         * tests/test-select-stdin.c: New file.
49643         * modules/select-tests (Files): Add the new files.
49644         (Depends-on): Add gettimeofday.
49645         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49646         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49647         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49648
49649 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49650             Bruno Haible  <bruno@clisp.org>
49651
49652         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49653
49654 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49655
49656         * build-aux/pmccabe2html: Added support for C++ source files.
49657
49658 2008-11-05  Ben Pfaff  <blp@gnu.org>
49659
49660         Fix lib/close.c build on Windows.
49661         * modules/close (Files): Add lib/w32sock.h.
49662
49663 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49664
49665         Accept Bison's NEWS format.
49666         * build-aux/announce-gen (print_news_deltas): Tweak
49667         $re_prefix.
49668
49669 2008-11-04  Bruno Haible  <bruno@clisp.org>
49670
49671         * modules/random_r (Maintainer): Add glibc.
49672
49673 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49674
49675         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49676         by karl@freefriends.org (Karl Berry).
49677         * doc/alloca.texi: Likewise.
49678         * doc/c-ctype.texi: Likewise.
49679         * doc/c-strcase.texi: Likewise.
49680         * doc/c-strcaseeq.texi: Likewise.
49681         * doc/c-strcasestr.texi: Likewise.
49682         * doc/c-strstr.texi: Likewise.
49683         * doc/c-strtod.texi: Likewise.
49684         * doc/c-strtold.texi: Likewise.
49685         * doc/ctime.texi: Likewise.
49686         * doc/error.texi: Likewise.
49687         * doc/fdl.texi: Likewise.
49688         * doc/gcd.texi: Likewise.
49689         * doc/getdate.texi: Likewise.
49690         * doc/gnulib-intro.texi: Likewise.
49691         * doc/gnulib-tool.texi: Likewise.
49692         * doc/gnulib.texi: Likewise.
49693         * doc/inet_ntoa.texi: Likewise.
49694         * doc/maintain.texi: Likewise.
49695         * doc/make-stds.texi: Likewise.
49696         * doc/quote.texi: Likewise.
49697         * doc/regexprops-generic.texi: Likewise.
49698         * doc/standards.texi: Likewise.
49699         * doc/verify.texi: Likewise.
49700         * doc/visibility.texi: Likewise.
49701         * doc/gnulib.texi (GNU Free Documentation License): Include
49702         fdl-1.3.texi instead of fdl.texi.
49703
49704 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49705
49706         * doc/fdl-1.3.texi: New file, from
49707         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49708         * modules/fdl-1.3: Add.
49709         * MODULES.html.sh: Add fdl-1.3.
49710
49711 2008-11-03  Bruno Haible  <bruno@clisp.org>
49712
49713         Make determination of absolute name of header file work with AIX xlc.
49714         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49715         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49716         preprocessing.
49717         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49718         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49719
49720 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49721
49722         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49723         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49724         <ludo@gnu.org>.
49725
49726 2008-11-02  Bruno Haible  <bruno@clisp.org>
49727
49728         Mark 'strpbrk' obsolete.
49729         * modules/strpbrk (Status, Notice): New sections.
49730         * modules/strtok_r (Depends-on): Add strpbrk.
49731
49732 2008-11-02  Bruno Haible  <bruno@clisp.org>
49733
49734         Mark 'strdup' obsolete.
49735         * modules/strdup (Status, Notice): New sections.
49736         * modules/findprog (Depends-on): Add strdup.
49737         * modules/getaddrinfo (Depends-on): Likewise.
49738         * modules/localename (Depends-on): Likewise.
49739         * modules/relocatable-lib (Depends-on): Likewise.
49740         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49741         * modules/relocatable-prog (Depends-on): Likewise.
49742         * modules/trim (Depends-on): Likewise.
49743         * modules/unictype/gen-ctype (Depends-on): Likewise.
49744         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49745
49746 2008-11-02  Bruno Haible  <bruno@clisp.org>
49747
49748         Mark 'strcspn' obsolete.
49749         * modules/strcspn (Status, Notice): New sections.
49750
49751 2008-11-02  Bruno Haible  <bruno@clisp.org>
49752
49753         Mark 'rmdir' obsolete.
49754         * modules/rmdir (Status, Notice): New sections.
49755         * modules/clean-temp (Depends-on): Add rmdir.
49756         * modules/openat (Depends-on): Likewise.
49757
49758 2008-11-02  Bruno Haible  <bruno@clisp.org>
49759
49760         Mark 'raise' obsolete.
49761         * modules/raise (Status, Notice): New sections.
49762         (Include): Specify <signal.h>.
49763         * modules/stdio (Depends-on): Add raise.
49764         * modules/write (Depends-on): Likewise.
49765
49766 2008-11-02  Bruno Haible  <bruno@clisp.org>
49767
49768         Mark 'memset' obsolete.
49769         * modules/memset (Status, Notice): New sections.
49770
49771 2008-11-02  Bruno Haible  <bruno@clisp.org>
49772
49773         Mark 'memmove' obsolete.
49774         * modules/memmove (Status, Notice): New sections.
49775         * modules/argp (Depends-on): Add memmove.
49776         * modules/argz (Depends-on): Likewise.
49777         * modules/canonicalize (Depends-on): Likewise.
49778         * modules/canonicalize-lgpl (Depends-on): Likewise.
49779         * modules/fts (Depends-on): Likewise.
49780         * modules/getcwd (Depends-on): Likewise.
49781         * modules/human (Depends-on): Likewise.
49782         * modules/regex (Depends-on): Likewise.
49783         * modules/striconveh (Depends-on): Likewise.
49784         * modules/trim (Depends-on): Likewise.
49785         * modules/unistr/u8-move (Depends-on): Likewise.
49786         * modules/unistr/u16-move (Depends-on): Likewise.
49787         * modules/unistr/u32-move (Depends-on): Likewise.
49788
49789 2008-11-02  Bruno Haible  <bruno@clisp.org>
49790
49791         Mark 'memcpy' obsolete.
49792         * modules/memcpy (Status, Notice): New sections.
49793
49794 2008-11-02  Bruno Haible  <bruno@clisp.org>
49795
49796         Mark 'memcmp' obsolete.
49797         * modules/memcmp (Status, Notice): New sections.
49798         * modules/argmatch (Depends-on): Add memchr.
49799         * modules/backupfile (Depends-on): Likewise.
49800         * modules/c-strcasestr (Depends-on): Likewise.
49801         * modules/crypto/des (Depends-on): Likewise.
49802         * modules/csharpcomp (Depends-on): Likewise.
49803         * modules/fnmatch (Depends-on): Likewise.
49804         * modules/git-merge-changelog (Depends-on): Likewise.
49805         * modules/isnand (Depends-on): Likewise.
49806         * modules/isnand-nolibm (Depends-on): Likewise.
49807         * modules/isnanf (Depends-on): Likewise.
49808         * modules/isnanf-nolibm (Depends-on): Likewise.
49809         * modules/isnanl (Depends-on): Likewise.
49810         * modules/isnanl-nolibm (Depends-on): Likewise.
49811         * modules/mbchar (Depends-on): Likewise.
49812         * modules/memcoll (Depends-on): Likewise.
49813         * modules/quotearg (Depends-on): Likewise.
49814         * modules/regex (Depends-on): Likewise.
49815         * modules/relocatable-prog (Depends-on): Likewise.
49816         * modules/same (Depends-on): Likewise.
49817         * modules/signbit (Depends-on): Likewise.
49818         * modules/strcasestr-simple (Depends-on): Likewise.
49819         * modules/unictype/gen-ctype (Depends-on): Likewise.
49820         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49821         * modules/uniname/uniname (Depends-on): Likewise.
49822         * modules/unistr/u8-cmp (Depends-on): Likewise.
49823
49824 2008-11-02  Bruno Haible  <bruno@clisp.org>
49825
49826         Mark 'memchr' obsolete.
49827         * modules/memchr (Status, Notice): New sections.
49828         * modules/argp (Depends-on): Add memchr.
49829         * modules/base64 (Depends-on): Likewise.
49830         * modules/c-strcasestr (Depends-on): Likewise.
49831         * modules/chdir-long (Depends-on): Likewise.
49832         * modules/fnmatch (Depends-on): Likewise.
49833         * modules/getsubopt (Depends-on): Likewise.
49834         * modules/git-merge-changelog (Depends-on): Likewise.
49835         * modules/glob (Depends-on): Likewise.
49836         * modules/strcasestr-simple (Depends-on): Likewise.
49837         * modules/strnlen (Depends-on): Likewise.
49838
49839 2008-11-02  Bruno Haible  <bruno@clisp.org>
49840
49841         Mark 'atexit' obsolete.
49842         * modules/atexit (Status, Notice): New sections.
49843         * modules/chdir-long (Depends-on): Add atexit.
49844         * modules/wait-process (Depends-on): Likewise.
49845
49846 2008-11-02  Bruno Haible  <bruno@clisp.org>
49847
49848         * gnulib-tool: New option --with-obsolete.
49849         (func_usage): Document it.
49850         (func_modules_transitive_closure): Drop obsolete dependencies if
49851         incobsolete is not true.
49852         (func_import): Read and save the incobsolete variable to the cache.
49853
49854 2008-11-02  Bruno Haible  <bruno@clisp.org>
49855
49856         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49857         * gnulib-tool: New option --extract-status.
49858         (func_usage): Document it.
49859         (sed_extract_prog): Recognize it.
49860         (func_get_status): New function.
49861
49862 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49863
49864         * modules/sockets (License): Change from LGPL to LGPLv2+.
49865
49866 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49867
49868         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49869
49870 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49871
49872         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49873         Mention times and sys_times.
49874         * modules/sys_times, modules/sys_times-tests: New modules.
49875         * modules/times, modules/times-tests: Likewise
49876         * m4/sys_times_h.m4: New file.
49877         * lib/sys_times.in.h: Likewise
49878         * lib/times.c: Likewise.
49879         * tests/test-sys_times.c: Likewise.
49880         * tests/test-times.c: Likewise.
49881         * doc/posix-headers/sys_times.texi: Update.
49882         * doc/posix-functions/times.texi: Update.
49883
49884 2008-10-28  Jim Meyering  <meyering@redhat.com>
49885
49886         * modules/tempname (Depends-on): Add lstat.
49887
49888         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49889
49890 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49891
49892         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49893         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49894         using idiom used elsewhere in gnulib.
49895
49896 2008-10-27  Jim Meyering  <meyering@redhat.com>
49897
49898         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49899
49900 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49901
49902         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49903         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49904         programs.
49905         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49906
49907 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49908
49909         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49910
49911 2008-10-27  Bruno Haible  <bruno@clisp.org>
49912
49913         * tests/test-lstat.c: Include <stdio.h>.
49914
49915 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49916
49917         * modules/lstat-tests: New module.
49918         * tests/test-lstat.c: New file.
49919
49920 2008-10-26  Jim Meyering  <meyering@redhat.com>
49921
49922         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49923
49924 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49925             Bruno Haible  <bruno@clisp.org>
49926
49927         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49928         * modules/configmake (Include): Add a note that the include must come
49929         after all system headers.
49930         * lib/javaversion.c: Include configmake.h after all other includes.
49931
49932 2008-10-26  Bruno Haible  <bruno@clisp.org>
49933
49934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49935         HAVE_STRUCT_RANDOM_DATA to 1.
49936         (gl_STDLIB_H): Simplify.
49937
49938 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49939
49940         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49941         substitute HAVE_STRUCT_RANDOM_DATA.
49942         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49943         random_data.
49944         * modules/stdlib (Makefile.am): Substitute
49945         HAVE_STRUCT_RANDOM_DATA.
49946
49947 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49948
49949         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49950         * doc/gnulib-intro.texi (Copyright): Likewise.
49951
49952 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49953
49954         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49955         findings.
49956
49957 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49958             Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/unistd.in.h: Include <winsock2.h>.
49961         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49962         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49963         Provide dummy declarations.
49964         (gethostname): Override.
49965         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49966         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49967         gl_PREREQ_SYS_H_WINSOCK2.
49968         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49969         * doc/posix-functions/gethostname.texi: More details.
49970
49971 2008-10-25  Bruno Haible  <bruno@clisp.org>
49972
49973         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49974         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49975         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49976
49977         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49978         here ...
49979         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49980         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49981         gl_UNISTD_H_DEFAULTS.
49982
49983 2008-10-25  Eric Blake  <ebb9@byu.net>
49984
49985         signbit: avoid spurious compiler failure
49986         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49987         declarations inside function.
49988
49989 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49990             Bruno Haible  <bruno@clisp.org>
49991
49992         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49993         * modules/random_r (Depends-on): Add stdint.
49994
49995 2008-10-24  Bruno Haible  <bruno@clisp.org>
49996
49997         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49998         Eggert.
49999         * modules/strerror (License): Likewise.
50000
50001 2008-10-24  Jim Meyering  <meyering@redhat.com>
50002
50003         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50004         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50005
50006 2008-10-24  Eric Blake  <ebb9@byu.net>
50007
50008         getgroups: fix compilation when getgroups is available
50009         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50010         but with <config.h> override of getgroups disabled.
50011
50012 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50013
50014         * doc/gnulib.texi (Header files): Add note about C++ problems.
50015         Explained by Bruno Haible <bruno@clisp.org>.
50016
50017 2008-10-23  Bruno Haible  <bruno@clisp.org>
50018
50019         Define a dummy SA_NODEFER macro on Interix.
50020         * lib/signal.in.h (SA_NODEFER): Define fallback.
50021         Reported by Aleksey Cheusov <cheusov@tut.by> via
50022         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50023
50024 2008-10-23  Bruno Haible  <bruno@clisp.org>
50025
50026         * modules/freadahead (License): Change to LGPLv2+.
50027         Suggested by Simon Josefsson.
50028
50029 2008-10-23  Jim Meyering  <meyering@redhat.com>
50030
50031         random_r: new module
50032         * modules/random_r: New file.
50033         * m4/random_r.m4: New file.
50034         * lib/random_r.c: New file, from glibc.
50035         * modules/random_r-tests: New file.
50036         * tests/test-random_r.c: New file.
50037         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50038          Declare.
50039         (RAND_MAX): Define.
50040         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50041         * modules/stdlib: Substitute them, too.
50042         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50043         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50044         * doc/glibc-functions/random_r.texi: Likewise.
50045         * doc/glibc-functions/setstate_r.texi: Likewise.
50046         * doc/glibc-functions/srandom_r.texi: Likewise.
50047         * config/srclist.txt: Mention it.
50048
50049 2008-10-23  David Lutterkort  <lutter@redhat.com>
50050
50051         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50052         link requirement
50053
50054 2008-10-23  Jim Meyering  <meyering@redhat.com>
50055
50056         selinux-h: mark parameters of stub functions as intentionally unused
50057         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50058         * lib/se-context.in.h: Likewise.
50059
50060 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50061
50062         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50063
50064 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50065
50066         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50067
50068 2008-10-22  Eric Blake  <ebb9@byu.net>
50069
50070         glthread/thread: avoid compiler warning
50071         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50072         Add unreachable abort to silence compiler.
50073
50074 2008-10-22  Eric Blake  <ebb9@byu.net>
50075
50076         netdb: also supply struct addrinfo for cygwin 1.5.x
50077         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50078         older cygwin.
50079         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50080         cygwin.
50081         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50082
50083 2008-10-22  Bruno Haible  <bruno@clisp.org>
50084
50085         * users.txt: Update entry about pspp.
50086
50087 2008-10-21  Bruno Haible  <bruno@clisp.org>
50088
50089         Simplification.
50090         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50091         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50092
50093         Simplification.
50094         * lib/ioctl.c (ioctl): Don't undefine.
50095         * lib/socket.c (socket): Don't undefine.
50096
50097         Remove unused module indicator macros.
50098         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50099         GNULIB_$1 as a C macro.
50100
50101         * doc/posix-functions/close.texi: Undo last change.
50102         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50103         Windows platforms.
50104
50105 2008-10-21  Bruno Haible  <bruno@clisp.org>
50106
50107         Add gethostname() declaration to <unistd.h>.
50108         * lib/unistd.in.h (gethostname): New declaration.
50109         * lib/gethostname.c: Include <unistd.h>.
50110         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50111         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50113         and HAVE_GETHOSTNAME.
50114         * modules/gethostname (Depends-on): Add unistd.
50115         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50116         (Include): Specify <unistd.h>.
50117         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50118         HAVE_GETHOSTNAME.
50119         * tests/test-gethostname.c: Include <unistd.h> first.
50120
50121 2008-10-21  Bruno Haible  <bruno@clisp.org>
50122
50123         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50124         * modules/select-tests (Depends-on): Likewise.
50125         Reported by Simon Josefsson.
50126
50127 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50128
50129         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50130         * lib/accept.c: New file, based on winsock.c.
50131         * lib/bind.c: New file, based on winsock.c.
50132         * lib/connect.c: New file, based on winsock.c.
50133         * lib/getpeername.c: New file, based on winsock.c.
50134         * lib/getsockname.c: New file, based on winsock.c.
50135         * lib/getsockopt.c: New file, based on winsock.c.
50136         * lib/ioctl.c: New file, based on winsock.c.
50137         * lib/listen.c: New file, based on winsock.c.
50138         * lib/recv.c: New file, based on winsock.c.
50139         * lib/recvfrom.c: New file, based on winsock.c.
50140         * lib/send.c: New file, based on winsock.c.
50141         * lib/sendto.c: New file, based on winsock.c.
50142         * lib/setsockopt.c: New file, based on winsock.c.
50143         * lib/shutdown.c: New file, based on winsock.c.
50144         * lib/socket.c: New file, based on winsock.c.
50145         * lib/w32sock.h: New file, based on winsock.c.
50146         * lib/winsock.c: Remove file.
50147         * modules/accept: Likewise.
50148         * modules/bind: Likewise.
50149         * modules/connect: Likewise.
50150         * modules/getpeername: Likewise.
50151         * modules/getsockname: Likewise.
50152         * modules/getsockopt: Likewise.
50153         * modules/ioctl: Likewise.
50154         * modules/listen: Likewise.
50155         * modules/recv: Likewise.
50156         * modules/recvfrom: Likewise.
50157         * modules/send: Likewise.
50158         * modules/sendto: Likewise.
50159         * modules/setsockopt: Likewise.
50160         * modules/shutdown: Likewise.
50161         * modules/socket: Use socket.c instead of winsock.c.
50162         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50163         * doc/posix-functions/accept.texi: Doc fix.
50164         * doc/posix-functions/bind.texi: Doc fix.
50165         * doc/posix-functions/close.texi: Doc fix.
50166         * doc/posix-functions/connect.texi: Doc fix.
50167         * doc/posix-functions/getpeername.texi: Doc fix.
50168         * doc/posix-functions/getsockname.texi: Doc fix.
50169         * doc/posix-functions/getsockopt.texi: Doc fix.
50170         * doc/posix-functions/ioctl.texi: Doc fix.
50171         * doc/posix-functions/listen.texi: Doc fix.
50172         * doc/posix-functions/recv.texi: Doc fix.
50173         * doc/posix-functions/recvfrom.texi: Doc fix.
50174         * doc/posix-functions/send.texi: Doc fix.
50175         * doc/posix-functions/sendto.texi: Doc fix.
50176         * doc/posix-functions/setsockopt.texi: Doc fix.
50177         * doc/posix-functions/shutdown.texi: Doc fix.
50178         * doc/posix-functions/socket.texi: Doc fix.
50179
50180 2008-10-20  Bruno Haible  <bruno@clisp.org>
50181
50182         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50183         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50184         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50185         as an alias for SIGABRT.
50186         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50187         (sigaction): Map it to SIGABRT.
50188         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50189
50190 2008-10-20  Bruno Haible  <bruno@clisp.org>
50191
50192         * lib/fts.c: Don't include lstat.h.
50193         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50194
50195         Move the lstat() declaration to <sys/stat.h>.
50196         * lib/lstat.h: Remove file.
50197         * lib/sys_stat.in.h: Add special invocation convention.
50198         (lstat): New declaration.
50199         * lib/lstat.c (orig_lstat): New function.
50200         (rpl_lstat): Use orig_lstat instead of lstat.
50201         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50202         AC_C_INLINE. Set REPLACE_LSTAT.
50203         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50204         and REPLACE_LSTAT.
50205         * modules/lstat (Files): Remove lib/lstat.h.
50206         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50207         (Include): Specify <sys/stat.h> instead of lstat.h.
50208         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50209         REPLACE_LSTAT.
50210         * NEWS: Mention the change.
50211
50212 2008-10-20  Bruno Haible  <bruno@clisp.org>
50213
50214         * modules/posix_spawn-tests: New file.
50215         * tests/test-posix_spawn3.c: New file.
50216
50217 2008-10-20  Bruno Haible  <bruno@clisp.org>
50218
50219         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50220         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50221         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50222         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50223         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50224
50225 2008-10-20  Bruno Haible  <bruno@clisp.org>
50226
50227         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50228         of posix_spawn on AIX 5.3.
50229
50230 2008-10-20  Bruno Haible  <bruno@clisp.org>
50231
50232         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50233
50234 2008-10-20  Bruno Haible  <bruno@clisp.org>
50235
50236         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50237         of AC_LANG_PROGRAM.
50238
50239 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50240
50241         * lib/netdb.in.h: Don't define GNU specific constants until they
50242         are supported or needed.  Reported by Bruno Haible
50243         <bruno@clisp.org>.
50244
50245 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50246
50247         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50248
50249 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50250
50251         * lib/getaddrinfo.h: Remove file.
50252         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50253         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50254         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50255         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50256         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50257         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50258         * tests/test-getaddrinfo.c: Likewise.
50259         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50260         * NEWS: Mention change.
50261
50262 2008-10-19  Bruno Haible  <bruno@clisp.org>
50263
50264         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50265
50266 2008-10-19  Bruno Haible  <bruno@clisp.org>
50267
50268         * lib/wait-process.c: Include simply <sys/wait.h>.
50269         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50270         WIFSTOPPED): Remove fallback definitions.
50271         * modules/wait-process (Depends-on): Add sys_wait.
50272
50273         New module 'sys_wait'.
50274         * modules/sys_wait: New file.
50275         * lib/sys_wait.in.h: New file, partially copied from
50276         lib/wait-process.c.
50277         * m4/sys_wait_h.m4: New file.
50278         * doc/posix-headers/sys_wait.texi: Mention the new module.
50279
50280 2008-10-19  Bruno Haible  <bruno@clisp.org>
50281
50282         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50283
50284 2008-10-19  Bruno Haible  <bruno@clisp.org>
50285
50286         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50287         * lib/wait-process.c (WAIT_T): Remove type.
50288         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50289         (wait_subprocess): Update.
50290
50291 2008-10-19  Bruno Haible  <bruno@clisp.org>
50292
50293         New module 'atoll'.
50294         * modules/atoll: New file.
50295         * lib/stdlib.in.h (atoll): New declaration.
50296         * lib/atoll.c: New file, from glibc with modifications.
50297         * m4/atoll.m4: New file.
50298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50299         HAVE_ATOLL.
50300         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50301         * doc/posix-functions/atoll.texi: Mention the new module.
50302
50303 2008-10-19  Bruno Haible  <bruno@clisp.org>
50304
50305         Add strtoull() declaration to <stdlib.h>.
50306         * lib/stdlib.in.h (strtoull): New declaration.
50307         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50308         Set HAVE_STRTOULL.
50309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50310         HAVE_STRTOULL.
50311         * modules/strtoull (Depends-on): Add stdlib.
50312         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50313         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50314         HAVE_STRTOULL.
50315
50316 2008-10-19  Bruno Haible  <bruno@clisp.org>
50317
50318         Add strtoll() declaration to <stdlib.h>.
50319         * lib/stdlib.in.h (strtoll): New declaration.
50320         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50321         Set HAVE_STRTOLL.
50322         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50323         HAVE_STRTOLL.
50324         * modules/strtoll (Depends-on): Add stdlib.
50325         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50326         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50327
50328 2008-10-19  Bruno Haible  <bruno@clisp.org>
50329
50330         * modules/bcopy (Depends-on): Add strings.
50331         (Include): Specify <strings.h>.
50332
50333 2008-10-19  Bruno Haible  <bruno@clisp.org>
50334
50335         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50336
50337 2008-10-19  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50340         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50341         mingw.
50342
50343 2008-10-19  Bruno Haible  <bruno@clisp.org>
50344
50345         * lib/atanl.c: Don't include isnanl.h.
50346         * lib/cosl.c: Likewise.
50347         * lib/ldexpl.c: Likewise.
50348         * lib/logl.c: Likewise.
50349         * lib/sinl.c: Likewise.
50350         * lib/sqrtl.c: Likewise.
50351         * lib/tanl.c: Likewise.
50352
50353         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50354         * lib/isnanf.h: Remove file.
50355         * lib/isnand.h: Remove file.
50356         * lib/isnanl.h: Remove file.
50357         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50358         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50359         macros.
50360         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50361         HAVE_ISNANF, don't define it as a C macro.
50362         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50363         HAVE_ISNAND, don't define it as a C macro.
50364         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50365         HAVE_ISNANL, don't define it as a C macro.
50366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50367         HAVE_ISNAN[FDL].
50368         * modules/isnanf (Files): Remove lib/isnanf.h.
50369         (Depends-on): Add math.
50370         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50371         (Include): Specify <math.h> instead of isnanf.h.
50372         * modules/isnand (Files): Remove lib/isnand.h.
50373         (Depends-on): Add math.
50374         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50375         (Include): Specify <math.h> instead of isnand.h.
50376         * modules/isnanl (Files): Remove lib/isnanl.h.
50377         (Depends-on): Add math.
50378         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50379         (Include): Specify <math.h> instead of isnanl.h.
50380         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50381         HAVE_ISNAN[FDL].
50382         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50383         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50384         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50385         * NEWS: Mention the change.
50386
50387 2008-10-18  Bruno Haible  <bruno@clisp.org>
50388
50389         Add getusershell(), setusershell(), endusershell() declarations to
50390         <unistd.h>.
50391         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50392         declarations.
50393         * lib/getusershell.c: Include unistd.h.
50394         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50395         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50396         HAVE_GETUSERSHELL.
50397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50398         and HAVE_GETUSERSHELL.
50399         * modules/getusershell (Depends-on): Add unistd, extensions.
50400         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50401         (Include): Specify <unistd.h>.
50402         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50403         HAVE_GETUSERSHELL.
50404
50405 2008-10-18  Bruno Haible  <bruno@clisp.org>
50406
50407         Add a getloadavg() declaration to <stdlib.h>.
50408         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50409         getloadavg declaration.
50410         (getloadavg): New declaration.
50411         * lib/getloadavg.c: Include <stdlib.h> first.
50412         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50413         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50414         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50416         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50417         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50418         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50419         (Include): Specify <stdlib.h>.
50420         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50421         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50422
50423 2008-10-18  Bruno Haible  <bruno@clisp.org>
50424
50425         * lib/dirchownmod.c: Don't include lchmod.h.
50426
50427         Move the lchmod() declaration to <sys/stat.h>.
50428         * lib/lchmod.h: Remove file.
50429         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50430         (lchmod): New declaration, moved here from lib/lchown.h.
50431         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50432         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50433         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50434         and HAVE_LCHMOD.
50435         * modules/lchmod (Files): Remove lib/lchmod.h.
50436         (Depends-on): Add sys_stat, extensions.
50437         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50438         (Include): Specify <sys/stat.h> instead of lchmod.h.
50439         * modules/sys_stat (Depends-on): Add link-warning.
50440         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50441         definition of GL_LINK_WARNING.
50442         * NEWS: Mention the change.
50443
50444 2008-10-18  Bruno Haible  <bruno@clisp.org>
50445
50446         * lib/fchdir.c: Don't include dirfd.h.
50447         * lib/fts.c: Likewise.
50448         * lib/getcwd.c: Likewise.
50449         * lib/glob.c: Likewise.
50450
50451         Move the dirfd() declaration to <dirent.h>.
50452         * lib/dirfd.h: Remove file.
50453         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50454         (dirfd): New declaration.
50455         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50456         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50457         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50458         HAVE_DECL_DIRFD.
50459         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50460         HAVE_DECL_DIRFD.
50461         * modules/dirfd (Files): Remove lib/dirfd.h.
50462         (Depends-on): Add dirent, extensions.
50463         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50464         (Include): Specify <dirent.h> instead of dirfd.h.
50465         * modules/dirent (Depends-on): Add link-warning.
50466         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50467         definition of GL_LINK_WARNING.
50468         * NEWS: Mention the change.
50469
50470 2008-10-18  Bruno Haible  <bruno@clisp.org>
50471
50472         Move the euidaccess() declaration to <unistd.h>.
50473         * lib/euidaccess.h: Remove file.
50474         * lib/unistd.in.h (euidaccess): New declaration.
50475         * lib/euidaccess.c: Don't include euidaccess.h.
50476         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50477         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50479         and HAVE_EUIDACCESS.
50480         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50481         (Depends-on): Add unistd.
50482         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50483         (Include): Specify <unistd.h> instead of euidaccess.h.
50484         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50485         HAVE_EUIDACCESS.
50486         * NEWS: Mention the change.
50487
50488 2008-10-18  Bruno Haible  <bruno@clisp.org>
50489
50490         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50491
50492         Move the getdomainname() declaration to <unistd.h>.
50493         * lib/getdomainname.h: Remove file.
50494         * lib/unistd.in.h (getdomainname): New declaration.
50495         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50496         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50497         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50498         HAVE_GETDOMAINNAME.
50499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50500         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50501         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50502         (Depends-on): Add unistd, extensions.
50503         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50504         (Includes): Specify <unistd.h> instead of getdomainname.h.
50505         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50506         HAVE_GETDOMAINNAME.
50507         * NEWS: Mention the change.
50508
50509 2008-10-18  Bruno Haible  <bruno@clisp.org>
50510
50511         * modules/dirent: New file.
50512         * m4/dirent_h.m4: New file.
50513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50514         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50515         * modules/fchdir (Files): Remove lib/dirent.in.h.
50516         (Depends-on): Add dirent.
50517         (Makefile.am): Move rules to modules/dirent.
50518         * doc/posix-headers/dirent.texi: Mention the new module.
50519
50520 2008-10-18  Bruno Haible  <bruno@clisp.org>
50521
50522         Avoid -Wunused-parameter warnings in public gnulib header files.
50523         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50524         macro.
50525         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50526
50527 2008-10-18  Bruno Haible  <bruno@clisp.org>
50528
50529         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50530         * doc/glibc-functions/error.texi: Mention the module 'error'.
50531         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50532         * doc/glibc-functions/getdomainname.texi: Mention the module
50533         'getdomainname'.
50534         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50535         * doc/glibc-functions/getpagesize.texi: Mention the module
50536         'getpagesize'.
50537         * doc/glibc-functions/getusershell.texi: Mention the module
50538         'getusershell'.
50539         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50540         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50541         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50542         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50543         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50544         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50545         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50546         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50547         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50548         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50549         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50550         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50551         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50552         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50553
50554 2008-10-17  Bruno Haible  <bruno@clisp.org>
50555
50556         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50557         HP-UX and IRIX, use -0.0L.
50558         * tests/test-ceill.c (minus_zero): Likewise.
50559         * tests/test-floorl.c (minus_zero): Likewise.
50560         * tests/test-frexpl.c (minus_zero): Likewise.
50561         * tests/test-isnan.c (minus_zerol): Likewise.
50562         * tests/test-isnanl.h (minus_zero): Likewise.
50563         * tests/test-ldexpl.c (minus_zero): Likewise.
50564         * tests/test-roundl.c (minus_zero): Likewise.
50565         * tests/test-signbit.c (minus_zerol): Likewise.
50566         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50567         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50568         * tests/test-truncl.c (minus_zero): Likewise.
50569         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50570         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50571         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50572         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50573
50574 2008-10-17  Bruno Haible  <bruno@clisp.org>
50575
50576         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50577         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50578         that it gets activated only for gcc >= 3.0.
50579         * lib/dirent.in.h: Likewise.
50580         * lib/errno.in.h: Likewise.
50581         * lib/fcntl.in.h: Likewise.
50582         * lib/float.in.h: Likewise.
50583         * lib/iconv.in.h: Likewise.
50584         * lib/inttypes.in.h: Likewise.
50585         * lib/locale.in.h: Likewise.
50586         * lib/math.in.h: Likewise.
50587         * lib/netdb.in.h: Likewise.
50588         * lib/netinet_in.in.h: Likewise.
50589         * lib/search.in.h: Likewise.
50590         * lib/signal.in.h: Likewise.
50591         * lib/spawn.in.h: Likewise.
50592         * lib/stdarg.in.h: Likewise.
50593         * lib/stdint.in.h: Likewise.
50594         * lib/stdio.in.h: Likewise.
50595         * lib/stdlib.in.h: Likewise.
50596         * lib/string.in.h: Likewise.
50597         * lib/strings.in.h: Likewise.
50598         * lib/sys_file.in.h: Likewise.
50599         * lib/sys_ioctl.in.h: Likewise.
50600         * lib/sys_select.in.h: Likewise.
50601         * lib/sys_socket.in.h: Likewise.
50602         * lib/sys_stat.in.h: Likewise.
50603         * lib/sys_time.in.h: Likewise.
50604         * lib/sysexits.in.h: Likewise.
50605         * lib/time.in.h: Likewise.
50606         * lib/unistd.in.h: Likewise.
50607         * lib/wchar.in.h: Likewise.
50608         * lib/wctype.in.h: Likewise.
50609         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50610
50611 2008-10-17  Jim Meyering  <meyering@redhat.com>
50612
50613         ignore-value: don't depend on inline module
50614         * modules/ignore-value (Depends-on): Remove 'inline'.
50615         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50616         Suggestion from Bruno Haible.
50617
50618 2008-10-17  Bruno Haible  <bruno@clisp.org>
50619
50620         New implementation of condition variables for Win32.
50621         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50622         (gl_linked_waitqueue_t): New type.
50623         (gl_cond_t): Use it.
50624         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50625         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50626         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50627         (glthread_cond_init_func, glthread_cond_wait_func,
50628         glthread_cond_timedwait_func, glthread_cond_signal_func,
50629         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50630         Reimplemented on the basis of gl_linked_waitqueue_t.
50631         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50632         gl_waitqueue_t.
50633         (gl_rwlock_t): Update.
50634         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50635
50636 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50637
50638         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50639         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50640
50641 2008-10-17  Jim Meyering  <meyering@redhat.com>
50642
50643         ignore-value: new module
50644         * modules/ignore-value: New file.
50645         * lib/ignore-value.h: New file.
50646         * MODULES.html.sh (Compiler warning management): New section,
50647         just for this module.  More to come.
50648
50649 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50650
50651         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50652         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50653         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50654
50655 2008-10-16  Jim Meyering  <meyering@redhat.com>
50656
50657         openat-die.c: avoid 'no previous prototype' warning
50658         * lib/openat-die.c: Include "openat.h".
50659         Reported by Reuben Thomas <rrt@sc3d.org>.
50660
50661 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50662
50663         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50664         * lib/netdb.in.h: Fix typo.
50665         Reported by Bruno Haible  <bruno@clisp.org>
50666
50667         * lib/netdb.in.h: Include sys/socket.h for platforms without
50668         netdb.h, to get structures like hostent on MinGW.
50669         * modules/netdb (Depends-on): Add sys_socket.
50670
50671 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50672
50673         * modules/netdb, modules/netdb-tests: New file.
50674         * m4/netdb_h.m4: New file.
50675         * lib/netdb.in.h: Add, currently just an empty file pending
50676         definitions.
50677         * tests/test-netdb.c: New file.
50678         * doc/posix-headers/netdb.texi: Mention that we replace it if
50679         needed.
50680         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50681         netdb.
50682
50683 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50684
50685         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50686         with code.
50687
50688 2008-10-13  Bruno Haible  <bruno@clisp.org>
50689
50690         * lib/glthread/cond.c (glthread_cond_wait_func,
50691         glthread_cond_timedwait_func): Add a comment.
50692
50693 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50694
50695         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50696         * tests/test-select.c: Likewise,
50697
50698 2008-10-13  Bruno Haible  <bruno@clisp.org>
50699
50700         * lib/glthread/cond.c (glthread_cond_wait_func,
50701         glthread_cond_timedwait_func): Fix variable name.
50702         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50703
50704 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50705
50706         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50707         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50708         struct sockaddr.sa_len.
50709         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50710
50711 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50712
50713         * build-aux/pmccabe2html: Add css and css_url parameters.
50714
50715 2008-10-12  Bruno Haible  <bruno@clisp.org>
50716
50717         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50718         calling aclx_get.
50719         Reported by Rainer Tammer <tammer@tammer.net>.
50720
50721 2008-10-12  Bruno Haible  <bruno@clisp.org>
50722
50723         Use msvcrt aware primitives for creation/termination of Win32 threads.
50724         * lib/glthread/thread.c: Include <process.h>.
50725         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50726         (wrapper_func): Update signature.
50727         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50728
50729 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50730             Bruno Haible  <bruno@clisp.org>
50731
50732         Provide a Win32 implementation of the 'cond' module.
50733         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50734         * lib/glthread/cond.c (glthread_cond_init_func,
50735         glthread_cond_wait_func, glthread_cond_timedwait_func,
50736         glthread_cond_signal_func, glthread_cond_broadcast_func,
50737         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50738         * modules/cond (Dependencies): Add gettimeofday.
50739
50740 2008-10-11  Bruno Haible  <bruno@clisp.org>
50741
50742         Make sleep work on older versions of mingw.
50743         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50744         only whether it exists.
50745         * doc/posix-functions/sleep.texi: Mention the problem with older
50746         versions of mingw.
50747
50748 2008-10-11  Bruno Haible  <bruno@clisp.org>
50749
50750         New module 'shutdown'.
50751         * modules/shutdown: New file.
50752         * lib/sys_socket.in.h (shutdown): New declaration.
50753         * lib/winsock.c (shutdown): New function.
50754         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50755         GNULIB_SHUTDOWN.
50756         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50757         * doc/posix-functions/shutdown.texi: Document the new module.
50758
50759 2008-10-11  Jim Meyering  <meyering@redhat.com>
50760
50761         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50762
50763 2008-10-11  Bruno Haible  <bruno@clisp.org>
50764
50765         New module 'fclose'.
50766         * modules/fclose: New file.
50767         * lib/stdio.in.h (fclose): New declaration.
50768         * lib/fclose.c: New file.
50769         * m4/fclose.m4: New file.
50770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50771         REPLACE_FCLOSE.
50772         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50773         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50774         REPLACE_FCLOSE.
50775         * modules/close (Depends-on): fclose.
50776         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50777
50778 2008-10-11  Bruno Haible  <bruno@clisp.org>
50779
50780         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50781         set errno and don't call _close.
50782
50783 2008-10-10  Bruno Haible  <bruno@clisp.org>
50784
50785         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50786         ACL, not afterwards. Fixes test failure on Cygwin.
50787
50788 2008-10-09  Ben Pfaff  <blp@gnu.org>
50789
50790         * build-aux/announce-gen: Fix gnulib version related part of usage
50791         message.  Die with a useful error message if no tarballs are
50792         found.
50793
50794 2008-10-10  Jim Meyering  <meyering@redhat.com>
50795
50796         bootstrap: use git's --depth=N option only if it's supported
50797         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50798         recognize the --depth option.  Reported by Pádraig Brady.
50799
50800 2008-10-09  Bruno Haible  <bruno@clisp.org>
50801
50802         New module 'ioctl'.
50803         * modules/ioctl: New file.
50804         * lib/sys_socket.in.h (ioctl): Remove declaration.
50805         * lib/winsock.c: Include <sys/ioctl.h>.
50806         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50807         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50808         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50809         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50810         * doc/posix-functions/ioctl.texi: Mention the new module.
50811
50812 2008-10-09  Bruno Haible  <bruno@clisp.org>
50813
50814         New module 'sys_ioctl'.
50815         * lib/sys_ioctl.in.h: New file.
50816         * m4/sys_ioctl_h.m4: New file.
50817         * modules/sys_ioctl: New file.
50818         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50819
50820 2008-10-09  Bruno Haible  <bruno@clisp.org>
50821
50822         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50823         * lib/winsock.c: Include <stdarg.h>.
50824         (rpl_ioctl): Change to second argument 'int' and then varargs.
50825
50826 2008-10-09  Bruno Haible  <bruno@clisp.org>
50827
50828         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50829         when the sys_socket module is present and the system has <winsock2.h>.
50830
50831 2008-10-09  Bruno Haible  <bruno@clisp.org>
50832
50833         * doc/posix-functions/close.texi: Mention module 'close' instead of
50834         module 'sys_socket'.
50835
50836 2008-10-09  Bruno Haible  <bruno@clisp.org>
50837
50838         * doc/glibc-headers/sys_ioctl.texi: New file.
50839         * doc/gnulib.texi: Include it.
50840
50841 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50842             Bruno Haible  <bruno@clisp.org>
50843
50844         Combine the two replacements of 'close'.
50845         * lib/sys_socket.in.h (close): Define to a reminder to include
50846         <unistd.h>.
50847         (_gl_close_fd_maybe_socket): New declaration.
50848         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50849         * lib/winsock.c (close): Remove undefinition.
50850         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50851         needed for the gnulib module 'close'.
50852         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50853         define to an error symbol or to a warning, if suitable.
50854         * lib/close.c: Include <sys/socket.h>.
50855         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50856         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50857         UNISTD_H_HAVE_WINSOCK2_H.
50858         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50860         UNISTD_H_HAVE_WINSOCK2_H.
50861         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50862         (configure.ac): Set a module indicator.
50863         (Makefile.am): Substitute GNULIB_CLOSE.
50864         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50865         * modules/poll-tests (Depends-on): Add close.
50866         * modules/select-tests (Depends-on): Likewise.
50867
50868 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50869             Bruno Haible  <bruno@clisp.org>
50870
50871         New module 'close'.
50872         * modules/close: New file.
50873         * lib/unistd.in.h (close): Move declaration out of the
50874         FCHDIR_REPLACEMENT scope.
50875         (_gl_unregister_fd): New declaration.
50876         * lib/close.c: New file.
50877         * lib/fchdir.c (rpl_close): Remove function.
50878         * m4/close.m4: New file.
50879         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50880         close.
50881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50882         REPLACE_CLOSE.
50883         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50884         REPLACE_CLOSE.
50885         * modules/fchdir (Depends-on): Add close.
50886
50887 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50888             Bruno Haible  <bruno@clisp.org>
50889
50890         * lib/fcntl.in.h (open): Simplify conditionals.
50891         (_gl_register_fd): New declaration.
50892         * lib/fchdir.c (rpl_open): Remove function.
50893         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50894         also.
50895         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50897         open.
50898
50899 2008-10-09  Jim Meyering  <meyering@redhat.com>
50900
50901         GNUmakefile: use the more name-space-friendly "_version"
50902         * top/GNUmakefile (_dummy): Update.
50903         (_version): Rename from "version".
50904
50905 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50906             Bruno Haible  <bruno@clisp.org>
50907
50908         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50909         rpl_close.
50910         (_gl_register_fd): New function, extracted from rpl_open.
50911         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50912         (rpl_open, rpl_opendir): Use _gl_register_fd.
50913
50914 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50915
50916         Fix organization of 'open' replacement.
50917         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50918         (gl_FUNC_OPEN): Use it.
50919         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50920
50921 2008-10-08  Bruno Haible  <bruno@clisp.org>
50922
50923         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50924
50925 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50926
50927         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50928         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50929         listen).
50930
50931 2008-10-08  Eric Blake  <ebb9@byu.net>
50932
50933         GNUmakefile: add 'make version' target
50934         * top/GNUmakefile (_curr-ver): Split version update rules...
50935         (version): ...into a target.
50936
50937 2008-10-07  Bruno Haible  <bruno@clisp.org>
50938
50939         Use a more portable replacement expression for -0.0L.
50940         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50941         instead of -0.0L. Fix m4 quotation.
50942
50943         * tests/test-signbit.c: Include <float.h>.
50944         (minus_zero): New variable.
50945         (test_signbitl): Use minus_zero instead of -zero.
50946         * modules/signbit-tests (Depends-on): Add float.
50947
50948         * tests/test-ceill.c: Include <float.h>.
50949         (zero): Remove variable.
50950         (minus_zero): New variable.
50951         (main): Use minus_zero instead of -zero.
50952         * modules/ceill-tests (Depends-on): Add float.
50953
50954         * tests/test-floorl.c: Include <float.h>.
50955         (zero): Remove variable.
50956         (minus_zero): New variable.
50957         (main): Use minus_zero instead of -zero.
50958         * modules/floorl-tests (Depends-on): Add float.
50959
50960         * tests/test-roundl.c: Include <float.h>.
50961         (zero): Remove variable.
50962         (minus_zero): New variable.
50963         (main): Use minus_zero instead of -zero.
50964         * modules/roundl-tests (Depends-on): Add float.
50965
50966         * tests/test-truncl.c: Include <float.h>.
50967         (zero): Remove variable.
50968         (minus_zero): New variable.
50969         (main): Use minus_zero instead of -zero.
50970         * modules/truncl-tests (Depends-on): Add float.
50971
50972         * tests/test-frexpl.c (zero): Remove variable.
50973         (minus_zero): New variable.
50974         (main): Use minus_zero instead of -zero.
50975         * modules/frexpl-tests (Depends-on): Add float.
50976
50977         * tests/test-isnan.c (zerol): Remove variable.
50978         (minus_zerol): New variable.
50979         (test_long_double): Use minus_zerol instead of -zerol.
50980         * modules/isnan-tests (Depends-on): Add float.
50981
50982         * tests/test-isnanl.h (zero): Remove variable.
50983         (minus_zero): New variable.
50984         (main): Use minus_zero instead of -zero.
50985         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50986         * modules/isnanl-tests (Depends-on): Add float.
50987
50988         * tests/test-ldexpl.c (zero): Remove variable.
50989         (minus_zero): New variable.
50990         (main): Use minus_zero instead of -zero.
50991         * modules/ldexpl-tests (Depends-on): Add float.
50992
50993         * tests/test-snprintf-posix.h (zerol): Remove variable.
50994         (minus_zerol): New variable.
50995         (test_function): Use minus_zerol instead of -zerol.
50996         * modules/snprintf-posix-tests (Depends-on): Add float.
50997         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50998
50999         * tests/test-sprintf-posix.h (zerol): Remove variable.
51000         (minus_zerol): New variable.
51001         (test_function): Use minus_zerol instead of -zerol.
51002         * modules/sprintf-posix-tests (Depends-on): Add float.
51003         * modules/vsprintf-posix-tests (Depends-on): Add float.
51004
51005         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51006         (minus_zerol): New variable.
51007         (test_function): Use minus_zerol instead of -zerol.
51008         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51009
51010         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51011         (minus_zerol): New variable.
51012         (test_function): Use minus_zerol instead of -zerol.
51013         * modules/vasprintf-posix-tests (Depends-on): Add float.
51014
51015 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51016
51017         * MODULES.html.sh (Support for building documentation): Mention
51018         pmccabe2html.  Sort entries.
51019
51020         Add pmccabe2html module, from gnupdf.
51021         * build-aux/pmccabe.css: New file.
51022         * build-aux/pmccabe2html: New file.
51023         * m4/pmccabe2html.m4: New file.
51024         * modules/pmccabe2html: New file.
51025
51026 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51027
51028         flock: new module
51029         * MODULES.html.sh: Add to list of modules.
51030         * lib/flock.c: flock implementation for Windows and Unix systems
51031         which have fcntl.
51032         * doc/glibc-functions/flock.texi: Update documentation.
51033         * lib/sys_file.in.h: <sys/file.h> header file.
51034         * m4/flock.m4: M4 macros.
51035         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51036         * modules/flock: flock module.
51037         * modules/flock-tests: flock tests module.
51038         * modules/sys_file: sys/file.h module.
51039         * tests/test-flock.c: test suite for flock.
51040
51041 2008-10-06  Jim Meyering  <meyering@redhat.com>
51042
51043         bootstrap: check for LT_INIT more portably still ;-)
51044         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51045         Spotted by Bruno Haible.
51046
51047 2008-10-06  Eric Blake  <ebb9@byu.net>
51048
51049         test-signbit: avoid tripping Irix cc bug on -0.0L
51050         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51051         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51052         entire testsuite consistent and avoids an Irix 6.2 bug.
51053
51054 2008-10-05  Bruno Haible  <bruno@clisp.org>
51055             Jim Meyering  <jim@meyering.net>
51056
51057         Add an option for ignoring EPIPE during close_stdout.
51058         * lib/closeout.h: Include <stdbool.h>.
51059         (close_stdout_set_ignore_EPIPE): New declaration.
51060         * lib/closeout.c: Include <stdbool.h>.
51061         (ignore_EPIPE): New variable.
51062         (close_stdout_set_ignore_EPIPE): New function.
51063         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51064         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51065         failure.
51066         * modules/closeout (Depends-on): Add stdbool.
51067
51068 2008-10-05  Bruno Haible  <bruno@clisp.org>
51069
51070         * modules/accept: New file.
51071         * modules/bind: New file.
51072         * modules/connect: New file.
51073         * modules/getpeername: New file.
51074         * modules/getsockname: New file.
51075         * modules/getsockopt: New file.
51076         * modules/listen: New file.
51077         * modules/recv: New file.
51078         * modules/recvfrom: New file.
51079         * modules/send: New file.
51080         * modules/sendto: New file.
51081         * modules/setsockopt: New file.
51082         * modules/socket: New file.
51083         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51084         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51085         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51086         the particular module is requested. Add a link warning when the
51087         particular module is not requested.
51088         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51089         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51090         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51091         the particular module is requested.
51092         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51093         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51094         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51095         * modules/sys_socket (Depends-on): Add link-warning.
51096         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51097         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51098         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51099         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51100         GL_LINK_WARNING.
51101         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51102         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51103         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51104         * doc/posix-functions/getpeername.texi: Mention the new module
51105         'getpeername'.
51106         * doc/posix-functions/getsockname.texi: Mention the new module
51107         'getsockname'.
51108         * doc/posix-functions/getsockopt.texi: Mention the new module
51109         'getsockopt'.
51110         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51111         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51112         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51113         * doc/posix-functions/send.texi: Mention the new module 'send'.
51114         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51115         * doc/posix-functions/setsockopt.texi: Mention the new module
51116         'setsockopt'.
51117         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51118         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51119         listen, connect, accept.
51120         * modules/select-tests (Depends-on): Likewise.
51121
51122 2008-10-05  Bruno Haible  <bruno@clisp.org>
51123
51124         * lib/winsock.c (strerror): Remove unused #undef.
51125         (rpl_close): Remove unused local variable.
51126
51127         * modules/sys_socket (Depends-on); Add errno.
51128
51129 2008-10-05  Bruno Haible  <bruno@clisp.org>
51130
51131         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51132         (select): Add a link warning when the 'select' module is not used.
51133         * modules/sys_select (Depends-on): Add link-warning.
51134         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51135         Suggested by Paolo Bonzini.
51136
51137 2008-10-05  Jim Meyering  <meyering@redhat.com>
51138
51139         bootstrap: check for LT_INIT more portably
51140         * build-aux/bootstrap: Avoid using grep -E, since it's not
51141         portable enough.  Suggestion from Bruno Haible.
51142
51143 2008-10-05  Bruno Haible  <bruno@clisp.org>
51144
51145         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51146         as being fixed by gnulib.
51147
51148 2008-10-05  Bruno Haible  <bruno@clisp.org>
51149
51150         * modules/select-tests: New file, mostly copied from
51151         modules/sys_select-tests.
51152         * tests/test-select.c: New file, mostly copied from
51153         tests/test-sys_select.c.
51154         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51155         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51156         (Makefile.am): Remove test_sys_select_LDADD.
51157
51158         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51159         to an undefined symbol, for an error message.
51160         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51161         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51162         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51163         winsock-select.c here.
51164         * modules/sys_select (Files): Remove lib/winsock-select.c.
51165         (Depends-on): Remove alloca.
51166         (Makefile.am): Substitute GNULIB_SELECT.
51167         * modules/select: New file.
51168         * doc/posix-functions/select.texi: Update.
51169
51170 2008-10-05  Bruno Haible  <bruno@clisp.org>
51171
51172         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51173         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51174         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51175         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51176         getdtablesize.
51177         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51178         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51179
51180 2008-10-05  Bruno Haible  <bruno@clisp.org>
51181
51182         * modules/getdtablesize-tests: New file.
51183         * tests/test-getdtablesize.c: New file.
51184
51185         New module 'getdtablesize'.
51186         * lib/unistd.in.h (getdtablesize): New declaration.
51187         * lib/getdtablesize.c: New file.
51188         * m4/getdtablesize.m4: New file.
51189         * modules/getdtablesize: New file.
51190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51191         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51192         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51193         HAVE_GETDTABLESIZE.
51194         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51195
51196 2008-10-05  Bruno Haible  <bruno@clisp.org>
51197
51198         * modules/sched (Makefile.am): Fix typo.
51199         Reported by Simon Josefsson.
51200
51201 2008-10-05  Jim Meyering  <meyering@redhat.com>
51202
51203         bootstrap: check for LT_INIT, too
51204         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51205         are deprecated.  Suggestion from Ralf Wildenhues.
51206
51207 2008-10-05  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51210         overriding them by ours.
51211         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51212
51213 2008-10-05  Jim Meyering  <meyering@redhat.com>
51214
51215         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51216         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51217         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51218
51219 2008-10-04  Bruno Haible  <bruno@clisp.org>
51220
51221         * modules/dup2 (License): Change to LGPLv2+.
51222         * modules/sleep (License): Likewise.
51223         * modules/perror (License): Likewise.
51224         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51225         Blake.
51226         * modules/signal (License): Likewise.
51227         * modules/sigprocmask (License): Likewise.
51228         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51229         Meyering.
51230
51231 2008-10-04  Bruno Haible  <bruno@clisp.org>
51232
51233         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51234         Reported by Rainer Tammer <tammer@tammer.net>.
51235
51236 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51237             Bruno Haible  <bruno@clisp.org>
51238
51239         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51240         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51241         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51242
51243 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51244
51245         filevercmp: new module
51246         * lib/filevercmp.h: New function filevercmp comparing version strings.
51247         * lib/filevercmp.c: Implementation of filevercmp function.
51248         * modules/filevercmp: Module metadata.
51249         * tests/test-filevercmp.c: Unit test for new module.
51250         * modules/filevercmp-tests: Unit test metadata.
51251         * MODULES.html.sh: Add filevercmp module.
51252
51253 2008-10-03  Bruno Haible  <bruno@clisp.org>
51254
51255         * lib/c-ctype.h: Add comment.
51256         Reported by Jim Meyering.
51257
51258 2008-10-02  Bruno Haible  <bruno@clisp.org>
51259
51260         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51261
51262 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51263
51264         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51265         name of bootstrap.conf accordingly.
51266
51267 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51268
51269         * build-aux/bootstrap: Install git-merge-changelog configuration
51270         items into .gitconfig if needed.
51271
51272 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51273
51274         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51275         git repository, and initialize/update it accordingly.
51276
51277 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51278
51279         * modules/fsync-tests: New file.
51280         * tests/test-fsync.c: New file.
51281
51282         New module 'fsync'.
51283         * lib/fsync.c: New file.
51284         * m4/fsync.m4: New file.
51285         * modules/fsync: New file.
51286         * lib/unistd.in.h (fsync): New declaration.
51287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51288         GNULIB_FSYNC and HAVE_FSYNC.
51289         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51290         * MODULES.html.sh (posix_functions): Add fsync.
51291         * doc/posix-functions/fsync.texi: Mention the new module.
51292
51293 2008-10-02  Jim Meyering  <meyering@redhat.com>
51294
51295         fts.c: sync with similar code from coreutils' remove.c
51296         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51297         Guard also with "#if defined __linux__", since for now at least,
51298         this code is Linux-kernel-specific.
51299
51300 2008-10-02  Jim Meyering  <meyering@redhat.com>
51301
51302         fts: bug fixes
51303         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51304         Include <sys/vfs.h>, not <sys/statfs.h>.
51305
51306         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51307         Include <sys/vfs.h>, not <sys/statfs.h>.
51308
51309 2008-10-01  Bruno Haible  <bruno@clisp.org>
51310
51311         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51312         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51313         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51314         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51315         * doc/posix-functions/posix_spawnp.texi: Likewise.
51316         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51317         whether posix_spawn actually works.
51318         * m4/pipe.m4 (gl_PIPE): Likewise.
51319         * modules/execute (Files): Add m4/posix_spawn.m4.
51320         * modules/pipe (Files): Add m4/posix_spawn.m4.
51321         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51322
51323 2008-10-01  Jim Meyering  <meyering@redhat.com>
51324
51325         remove trailing spaces
51326         * NEWS: Likewise.
51327         * lib/poll.c (poll): Likewise.
51328         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51329         * lib/winsock.c (rpl_close): Likewise.
51330         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51331         * modules/yield: Likewise.
51332         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51333         * tests/test-sys_select.c (connect_to_socket): Likewise.
51334
51335         fts.c: adjust a new interface to be more generally useful
51336         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51337         (fts_build): Adjust caller.
51338
51339 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51340
51341         * modules/cond-tests: New file.
51342         * tests/test-cond.c: New file.
51343
51344 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51345             Bruno Haible  <bruno@clisp.org>
51346
51347         * modules/cond (Dependencies): Add errno, time.
51348         * lib/glthread/cond.h: Include <time.h>.
51349         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51350         across platforms.
51351
51352 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51353             Bruno Haible  <bruno@clisp.org>
51354
51355         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51356
51357 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51358             Bruno Haible  <bruno@clisp.org>
51359
51360         * modules/tls-tests (Depends-on): Add thread, yield.
51361         (configure.ac): Remove all checks.
51362         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51363         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51364         gl_thread_self): Remove definitions. Include glthread/thread.h and
51365         glthread/yield.h instead.
51366         (test_tls): Pass an additional NULL argument to gl_thread_join.
51367
51368 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51369             Bruno Haible  <bruno@clisp.org>
51370
51371         * modules/lock-tests (Depends-on): Add thread, yield.
51372         (configure.ac): Remove all checks.
51373         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51374         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51375         gl_thread_self): Remove definitions. Include glthread/thread.h and
51376         glthread/yield.h instead.
51377         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51378         additional NULL argument to gl_thread_join.
51379
51380 2008-09-30  Bruno Haible  <bruno@clisp.org>
51381
51382         Fix the Win32 implementation of the 'thread' module.
51383         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51384         pointer type.
51385         (gl_thread_self): Invoke gl_thread_self_func.
51386         (gl_thread_self_func): New declaration.
51387         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51388         (do_init_self_key, init_self_key): New functions.
51389         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51390         Remove some fields.
51391         (running_threads, running_lock): Remove variables.
51392         (get_current_thread_handle): New function.
51393         (gl_thread_self_func, wrapper_func, glthread_create_func,
51394         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51395         simplified.
51396
51397 2008-09-30  Bruno Haible  <bruno@clisp.org>
51398
51399         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51400         files.
51401
51402 2008-09-30  Jim Meyering  <meyering@redhat.com>
51403
51404         fts.m4: correct the test for statfs.f_type
51405         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51406         when checking for statfs.f_type.
51407
51408 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51409
51410         tests: avoid some compiler warnings
51411         * tests/test-memchr.c (main): Pass NULL indirectly.
51412         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51413
51414 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51415
51416         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51417         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51418         exactly specified dayshifts.
51419         (dayshift): New rule.
51420         (rel): Add dayshift.
51421         (relative_time_table) [tomorrow, yesterday, today, now]:
51422         Use tDAY_SHIFT in place of tDAY_UNIT.
51423         * tests/test-getdate.c: Add tests for now-disallowed countable
51424         dayshifts, e.g., "4 yesterday ago".
51425
51426 2008-09-29  Bruno Haible  <bruno@clisp.org>
51427
51428         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51429         * tests/test-posix_spawn1.in.sh: Renamed from
51430         tests/test-posix_spawn.in.sh.
51431         * tests/test-posix_spawn2.c: New file.
51432         * tests/test-posix_spawn2.in.sh: New file.
51433         * modules/posix_spawnp-tests (Files): Update.
51434         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51435
51436 2008-09-29  Bruno Haible  <bruno@clisp.org>
51437
51438         Propagate effects of putenv/setenv/unsetenv to child processes.
51439         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51440         * lib/pipe.c (create_pipe): Likewise.
51441
51442 2008-09-29  Bruno Haible  <bruno@clisp.org>
51443
51444         Enable use of shell scripts as executables in mingw.
51445         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51446         run the program as a shell script.
51447         * lib/pipe.c (create_pipe): Likewise.
51448         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51449         resulting array.
51450
51451 2008-09-29  Eric Blake  <ebb9@byu.net>
51452
51453         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51454
51455 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51456
51457         * doc/posix-functions/accept.texi: Update mingw problems.
51458         * doc/posix-functions/bind.texi: Update mingw problems.
51459         * doc/posix-functions/close.texi: Update mingw problems.
51460         * doc/posix-functions/connect.texi: Update mingw problems.
51461         * doc/posix-functions/getpeername.texi: Update mingw problems.
51462         * doc/posix-functions/getsockname.texi: Update mingw problems.
51463         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51464         * doc/posix-functions/ioctl.texi: Update mingw problems.
51465         * doc/posix-functions/listen.texi: Update mingw problems.
51466         * doc/posix-functions/recv.texi: Update mingw problems.
51467         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51468         * doc/posix-functions/select.texi: Update mingw problems.
51469         * doc/posix-functions/send.texi: Update mingw problems.
51470         * doc/posix-functions/sendto.texi: Update mingw problems.
51471         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51472         * doc/posix-functions/socket.texi: Update mingw problems.
51473
51474 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51475             Bruno Haible  <bruno@clisp.org>
51476
51477         * lib/sys_select.in.h: Include sys/time.h.
51478         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51479         * modules/sys_select: Depend on sys_time.
51480         * tests/test-sys_select.c: Test that sys/select.h defines struct
51481         timeval fully.
51482
51483 2008-09-29  Bruno Haible  <bruno@clisp.org>
51484
51485         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51486         * lib/sys_select.in.h: Likewise.
51487
51488 2008-09-29  Bruno Haible  <bruno@clisp.org>
51489
51490         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51491
51492 2008-09-29  Bruno Haible  <bruno@clisp.org>
51493
51494         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51495         Set LIBSOCKET instead of augmenting LIBS.
51496         * modules/sockets (Link): New section.
51497         * modules/sockets-tests (test_sockets_LDADD): New variable.
51498         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51499         * modules/poll-tests (test_poll_LDADD): New variable.
51500         * NEWS: Document the change.
51501
51502 2008-09-29  Bruno Haible  <bruno@clisp.org>
51503
51504         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51505         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51506         ARPA_INET_H directly.
51507         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51508
51509 2008-09-28  Bruno Haible  <bruno@clisp.org>
51510
51511         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51512         from gl_HEADER_SYS_SOCKET.
51513         (gl_HEADER_SYS_SOCKET): Invoke it.
51514         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51515
51516 2008-09-28  Bruno Haible  <bruno@clisp.org>
51517
51518         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51519         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51520         Needed on OSF/1 4.0.
51521
51522 2008-09-28  Bruno Haible  <bruno@clisp.org>
51523
51524         Override open more carefully.
51525         * lib/open.c (orig_open): New function.
51526         (rpl_open): Use orig_open instead of open.
51527         * lib/fcntl.in.h: Add special invocation convention.
51528         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51529         (gl_FUNC_OPEN): Invoke it.
51530
51531         Override freopen more carefully.
51532         * lib/freopen.c (orig_freopen): New function.
51533         (rpl_freopen): Use orig_freopen instead of freopen.
51534         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51535         (gl_FUNC_FREOPEN): Invoke it.
51536
51537         Override fopen more carefully.
51538         * lib/fopen.c (orig_fopen): New function.
51539         (rpl_fopen): Use orig_fopen instead of fopen.
51540         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51541         (gl_FUNC_FOPEN): Invoke it.
51542         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51543
51544 2008-09-28  Bruno Haible  <bruno@clisp.org>
51545
51546         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51547         SIGPIPE.
51548
51549 2008-09-28  Bruno Haible  <bruno@clisp.org>
51550
51551         * tests/test-sigaction.c (handler, main): Disable the check whether
51552         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51553         glibc systems with LinuxThreads.
51554
51555 2008-09-28  Bruno Haible  <bruno@clisp.org>
51556
51557         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51558
51559         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51560         with AIX xlc.
51561         * lib/fcntl.in.h (open): Likewise.
51562         Reported by Rainer Tammer <tammer@tammer.net>.
51563
51564 2008-09-28  Bruno Haible  <bruno@clisp.org>
51565
51566         * modules/posix_spawnp-tests: New file.
51567         * tests/test-posix_spawn.c: New file.
51568         * tests/test-posix_spawn.in.sh: New file.
51569
51570         New module 'posix_spawnp'.
51571         * modules/posix_spawnp: New file.
51572         * lib/spawnp.c: New file, from GNU libc with modifications.
51573         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51574
51575         New module 'posix_spawn'.
51576         * modules/posix_spawn: New file.
51577         * lib/spawn.c: New file, from GNU libc with modifications.
51578         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51579
51580         New module 'posix_spawnattr_destroy'.
51581         * modules/posix_spawnattr_destroy: New file.
51582         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51583         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51584         module.
51585
51586         New module 'posix_spawnattr_setsigmask'.
51587         * modules/posix_spawnattr_setsigmask: New file.
51588         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51589         modifications.
51590         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51591         new module.
51592
51593         New module 'posix_spawnattr_getsigmask'.
51594         * modules/posix_spawnattr_getsigmask: New file.
51595         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51596         modifications.
51597         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51598         new module.
51599
51600         New module 'posix_spawnattr_setsigdefault'.
51601         * modules/posix_spawnattr_setsigdefault: New file.
51602         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51603         modifications.
51604         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51605         new module.
51606
51607         New module 'posix_spawnattr_getsigdefault'.
51608         * modules/posix_spawnattr_getsigdefault: New file.
51609         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51610         modifications.
51611         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51612         new module.
51613
51614         New module 'posix_spawnattr_setschedpolicy'.
51615         * modules/posix_spawnattr_setschedpolicy: New file.
51616         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51617         modifications.
51618         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51619         new module.
51620
51621         New module 'posix_spawnattr_getschedpolicy'.
51622         * modules/posix_spawnattr_getschedpolicy: New file.
51623         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51624         modifications.
51625         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51626         new module.
51627
51628         New module 'posix_spawnattr_setschedparam'.
51629         * modules/posix_spawnattr_setschedparam: New file.
51630         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51631         modifications.
51632         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51633         new module.
51634
51635         New module 'posix_spawnattr_getschedparam'.
51636         * modules/posix_spawnattr_getschedparam: New file.
51637         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51638         modifications.
51639         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51640         new module.
51641
51642         New module 'posix_spawnattr_setpgroup'.
51643         * modules/posix_spawnattr_setpgroup: New file.
51644         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51645         modifications.
51646         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51647         module.
51648
51649         New module 'posix_spawnattr_getpgroup'.
51650         * modules/posix_spawnattr_getpgroup: New file.
51651         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51652         modifications.
51653         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51654         module.
51655
51656         New module 'posix_spawnattr_setflags'.
51657         * modules/posix_spawnattr_setflags: New file.
51658         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51659         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51660         module.
51661
51662         New module 'posix_spawnattr_getflags'.
51663         * modules/posix_spawnattr_getflags: New file.
51664         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51665         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51666         module.
51667
51668         New module 'posix_spawnattr_init'.
51669         * modules/posix_spawnattr_init: New file.
51670         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51671         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51672         module.
51673
51674         New module 'posix_spawn_file_actions_destroy'.
51675         * modules/posix_spawn_file_actions_destroy: New file.
51676         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51677         modifications.
51678         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51679         the new module.
51680
51681         New module 'posix_spawn_file_actions_addopen'.
51682         * modules/posix_spawn_file_actions_addopen: New file.
51683         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51684         modifications.
51685         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51686         the new module.
51687
51688         New module 'posix_spawn_file_actions_adddup2'.
51689         * modules/posix_spawn_file_actions_adddup2: New file.
51690         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51691         modifications.
51692         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51693         the new module.
51694
51695         New module 'posix_spawn_file_actions_addclose'.
51696         * modules/posix_spawn_file_actions_addclose: New file.
51697         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51698         modifications.
51699         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51700         the new module.
51701
51702         New module 'posix_spawn_file_actions_init'.
51703         * modules/posix_spawn_file_actions_init: New file.
51704         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51705         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51706         new module.
51707
51708         New module 'posix_spawn-internal'.
51709         * modules/posix_spawn-internal: New file.
51710         * lib/spawn_int.h: New file, from GNU libc with modifications.
51711         * lib/spawni.c: New file, from GNU libc with modifications.
51712         * m4/posix_spawn.m4: New file.
51713
51714         New module 'spawn'.
51715         * modules/spawn: New file.
51716         * lib/spawn.in.h: New file, from GNU libc with modifications.
51717         * m4/spawn_h.m4: New file.
51718         * doc/posix-headers/spawn.texi: Mention the new module.
51719
51720 2008-09-28  Bruno Haible  <bruno@clisp.org>
51721
51722         * modules/sched-tests: New file.
51723         * tests/test-sched.c: New file.
51724
51725         New module 'sched'.
51726         * modules/sched: New file.
51727         * lib/sched.in.h: New file.
51728         * m4/sched_h.m4: New file.
51729         * doc/posix-headers/sched.texi: Mention the new module.
51730
51731 2008-09-27  Eric Blake  <ebb9@byu.net>
51732
51733         Fix previous patch, and tweak references to $0.
51734         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51735         (func_version, func_gnulib_dir): Don't call this program
51736         gnulib-tool.
51737         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51738         with using $0 in function.
51739         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51740         (func_fatal_error): Reuse the name the user invoked us with.
51741
51742 2008-09-27  Bruno Haible  <bruno@clisp.org>
51743
51744         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51745         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51746         (gl_ICONV_H): Not here.
51747         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51748         instead of assigning ICONV_H directly.
51749
51750         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51752         WCHAR_H directly.
51753
51754 2008-09-27  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51757         * modules/arpa_inet (Depends-on): Add link-warning.
51758         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51759         * modules/unistd (Makefile.am): Likewise.
51760
51761 2008-09-26  Bruno Haible  <bruno@clisp.org>
51762
51763         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51764         variables.
51765         (func_version): Essentially copied from gnulib-tool.
51766         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51767         func_readlink): Copied from gnulib-tool.
51768
51769 2008-09-26  Bruno Haible  <bruno@clisp.org>
51770
51771         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51772         invoking git-version-gen.
51773
51774 2008-09-26  Bruno Haible  <bruno@clisp.org>
51775
51776         * posix-modules: Update to directory names changed on 2008-01-19.
51777         Remove commas in output before splitting into words. No more need to
51778         avoid 'ftruncate' since 2007-02-19.
51779
51780 2008-09-26  Bruno Haible  <bruno@clisp.org>
51781
51782         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51783
51784 2008-09-26  Bruno Haible  <bruno@clisp.org>
51785
51786         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51787         * modules/fwriteerror (Depends-on): Add errno.
51788
51789 2008-09-26  Bruno Haible  <bruno@clisp.org>
51790
51791         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51792         * tests/test-vc-list-files-cvs.sh: Likewise.
51793
51794 2008-09-26  Bruno Haible  <bruno@clisp.org>
51795
51796         * doc/posix-headers/sys_resource.texi: Reorder items.
51797
51798 2008-09-26  Jim Meyering  <meyering@redhat.com>
51799
51800         fts: tweak inode comparison function
51801         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51802         inode numbers, as documented.
51803
51804         fts: sort dirent entries on inode number before traversing
51805         This avoids a quadratic, seek-related performance penalty when
51806         operating on a directory containing many entries (measurable at 10k;
51807         3.5 hours at 2 million entries with a cold cache) on certain types
51808         of file systems, including ext3 and ext4, but not tmpfs.
51809         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51810         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51811         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51812         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51813         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51814         (fts_build): Set the stat.st_ino member from D_INO.
51815         If it is likely to be useful, sort dirent entries on inode number.
51816
51817         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51818         and the struct statfs.f_type member.
51819         * modules/fts (Depends-on): Add d-ino.
51820
51821 2008-09-26  Bruno Haible  <bruno@clisp.org>
51822
51823         * modules/sigpipe-die (Depends-on): Add sigpipe.
51824
51825         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51826         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51827         and GNULIB_STDIO_H_SIGPIPE are set.
51828         * lib/stdio-write.c: New file.
51829         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51830         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51831         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51832         REPLACE_STDIO_WRITE_FUNCS.
51833         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51834         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51835         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51836         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51837         * modules/stdio (Files): Add lib/stdio-write.c.
51838         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51839         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51840         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51841         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51842         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51843         REPLACE_FPRINTF_POSIX.
51844         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51845         REPLACE_PRINTF_POSIX.
51846         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51847         REPLACE_VFPRINTF_POSIX.
51848         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51849         REPLACE_VPRINTF_POSIX.
51850         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51851         SIGPIPE issue.
51852         * doc/posix-functions/fputc.texi: Likewise.
51853         * doc/posix-functions/fputs.texi: Likewise.
51854         * doc/posix-functions/fwrite.texi: Likewise.
51855         * doc/posix-functions/printf.texi: Likewise.
51856         * doc/posix-functions/putc.texi: Likewise.
51857         * doc/posix-functions/putchar.texi: Likewise.
51858         * doc/posix-functions/puts.texi: Likewise.
51859         * doc/posix-functions/vfprintf.texi: Likewise.
51860         * doc/posix-functions/vprintf.texi: Likewise.
51861
51862         * modules/safe-write (Depends-on): Add write.
51863
51864         * modules/sigpipe-tests: New file.
51865         * tests/test-sigpipe.c: New file.
51866         * tests/test-sigpipe.sh: New file.
51867
51868         * modules/write: New file.
51869         * lib/unistd.in.h: Include <sys/types.h>.
51870         (write): New declaration.
51871         * lib/write.c: New file.
51872         * m4/write.m4: New file.
51873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51874         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51875         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51876         GNULIB_WRITE, REPLACE_WRITE.
51877         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51878         and the SIGPIPE issue.
51879
51880         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51881         (raise): New declaration.
51882         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51883         (ext_signal): New function.
51884         (rpl_raise): New function.
51885         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51886         GNULIB_SIGNAL_H_SIGPIPE.
51887         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51888         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51889
51890         * modules/sigpipe: New file.
51891         * m4/sigpipe.m4: New file.
51892
51893 2008-09-25  Derek Price  <derek@ximbiot.com>
51894             Bruno Haible  <bruno@clisp.org>
51895
51896         * gnulib-tool (func_import): Report all license incompatibilities, not
51897         just the first one.
51898
51899 2008-09-25  Bruno Haible  <bruno@clisp.org>
51900
51901         * gnulib-tool (func_import): When computing the edits, consider not
51902         only the Makefile.ams that exist but also those that will be generated.
51903
51904 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51905
51906         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51907         fixes gnulib-tool --test warning about duplicate dependency.
51908
51909 2008-09-25  Bruno Haible  <bruno@clisp.org>
51910
51911         * gnulib-tool: Don't ask the user to perform edits in the generated
51912         Makefile.ams.
51913         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51914         apply to the Makefile.am being generated.
51915         (func_emit_tests_Makefile_am): Execute edits that apply to the
51916         Makefile.am being generated.
51917         (func_import): Setup list of Makefile.am edits before emitting the
51918         Makefile.ams, not at the end.
51919         (func_create_testdir): Update.
51920         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51921
51922 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51923
51924         * gnulib-tool (func_import): Store the --tests-base option in the
51925         comment in gnulib-cache.m4.
51926
51927 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51928
51929         * NEWS: Document increased portability that sys_select now provides.
51930
51931         * lib/sys_select.in.h: Install select wrapper.
51932         * lib/sys_socket.in.h: Use more descriptive name when there is no
51933         select wrapper.
51934         * lib/winsock-select.c: New.
51935         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51936         Require gl_HEADER_SYS_SOCKET.
51937         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51938         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51939         * tests/test-sys_select.c: Add functional tests.
51940
51941 2008-09-24  Eric Blake  <ebb9@byu.net>
51942
51943         open, fopen: close fd leak in last patch
51944         * lib/open.c (rpl_open): Close fd before returning error.
51945         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51946         * doc/posix-functions/open.texi (open): Document that Irix also
51947         has the bug.
51948         * doc/posix-functions/fopen.texi (fopen): Likewise.
51949         Reported by Paolo Bonzini.
51950
51951 2008-09-24  Bruno Haible  <bruno@clisp.org>
51952
51953         Ensure that a filename ending in a slash cannot be used to access a
51954         non-directory.
51955         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51956         to check whether it's really a directory.
51957         * lib/fopen.c: Include fcntl.h, unistd.h.
51958         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51959         and fdopen().
51960         * modules/fopen (Depends-on): Add unistd.
51961         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51962         * tests/test-fopen.c (main): Likewise.
51963         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51964         * doc/posix-functions/fopen.texi: Likewise.
51965         Reported by Eric Blake.
51966
51967 2008-09-23  Eric Blake  <ebb9@byu.net>
51968
51969         c-stack: avoid compiler optimizations when provoking overflow
51970         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51971         recursion harder to optimize, to ensure a stack overflow occurs.
51972         * tests/test-c-stack.c (recurse): Likewise.
51973         Borrowed from libsigsegv.
51974
51975         c-stack: work around Irix sigaltstack bug
51976         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51977         whether sigaltstack uses wrong end of stack_t (copied in part from
51978         libsigsegv).
51979         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51980         Irix bug, without requiring an over-allocation.
51981         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51982         bug.
51983
51984         fopen: document mingw bug on directories
51985         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51986         not allowing a stream visiting a directory, even though reading
51987         from such a stream is not portable.
51988
51989 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51990
51991         * lib/poll.c: Rewrite.
51992         * modules/poll: Depend on alloca.
51993
51994 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51995
51996         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51997         instead define prototypes for a full set of wrappers.  Ensure
51998         that Cygwin does not use the compatibility code, which is only
51999         for MinGW.
52000         * lib/winsock.c: New.
52001         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52002         * modules/sys_socket: Add lib/winsock.c.
52003
52004         * modules/poll-tests: Add errno and perror.
52005         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52006
52007 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52008
52009         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52010
52011 2008-09-23  Bruno Haible  <bruno@clisp.org>
52012
52013         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52014         * doc/glibc-functions/*: Likewise.
52015
52016 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52017
52018         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52019         success.
52020
52021 2008-09-22  Eric Blake  <ebb9@byu.net>
52022             Bruno Haible  <bruno@clisp.org>
52023
52024         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52025         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52026         supply %A but mishandle pseudo-NaN.
52027         Reported by Simon Josefsson.
52028
52029 2008-09-21  Bruno Haible  <bruno@clisp.org>
52030
52031         * tests/test-lock.c (main): Tweak skip message.
52032         * tests/test-tls.c (main): Likewise.
52033
52034 2008-09-21  Bruno Haible  <bruno@clisp.org>
52035
52036         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52037         whether 'struct sigaction' has sa_sigaction here...
52038         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52039         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52040
52041 2008-09-21  Bruno Haible  <bruno@clisp.org>
52042
52043         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52044         section.
52045         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52046         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52047         the new section.
52048         (Support for obsolete systems lacking POSIX:2001): New section.
52049         (String handling <string.h>): Move strdup to the new section.
52050         Suggested by Simon Josefsson and Paolo Bonzini.
52051
52052 2008-09-21  Bruno Haible  <bruno@clisp.org>
52053
52054         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52055         exponents in %e and %g results on 'long double'. Needed for mingw's
52056         improved *printf functions.
52057         * tests/test-vasprintf-posix.c (test_function): Likewise.
52058         * tests/test-snprintf-posix.h (test_function): Likewise.
52059         * tests/test-sprintf-posix.h (test_function): Likewise.
52060         Reported by Eric Blake.
52061
52062 2008-09-21  Bruno Haible  <bruno@clisp.org>
52063
52064         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52065         * tests/test-sprintf-posix.h (test_function): Likewise.
52066
52067 2008-09-21  Bruno Haible  <bruno@clisp.org>
52068
52069         * modules/getpass (Depends-on): Add strdup-posix.
52070
52071         New module 'strdup-posix'.
52072         * modules/strdup-posix: New file.
52073         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52074         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52076         REPLACE_STRDUP.
52077         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52078         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52079         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52080         strdup-posix.
52081
52082         * modules/strdup (Depends-on): Remove malloc-posix.
52083
52084 2008-09-20  Bruno Haible  <bruno@clisp.org>
52085
52086         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52087         Wildenhues.
52088
52089 2008-09-20  Bruno Haible  <bruno@clisp.org>
52090
52091         Ensure that wint_t gets defined on IRIX 5.3.
52092         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52093         * lib/wctype.in.h (wint_t): Likewise.
52094         (__wctype_wint_t): Remove type.
52095         (isw*): Use wint_t instead of __wctype_wint_t.
52096         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52097         * modules/wchar (Files): Add m4/wint_t.m4.
52098         (Makefile.am): Substitute HAVE_WINT_T.
52099         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52100         * tests/test-wctype.c: Check that wint_t is defined.
52101         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52102         * doc/posix-headers/wctype.texi: Likewise.
52103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52104
52105 2008-09-18  Bruno Haible  <bruno@clisp.org>
52106
52107         * gnulib-tool (func_exit): Update comment.
52108
52109 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52110
52111         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52112         assumes strdup exists and does not depend on strdup to return
52113         ENOMEM on out of memory conditions.
52114
52115 2008-09-18  Bruno Haible  <bruno@clisp.org>
52116
52117         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52118         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52119         digits for the exponent.
52120
52121 2008-09-18  Jim Meyering  <meyering@redhat.com>
52122             Bruno Haible  <bruno@clisp.org>
52123
52124         * lib/vasnprintf.c (decimal_point_char): Define also if
52125         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52126
52127 2008-09-16  Bruno Haible  <bruno@clisp.org>
52128         and Eric Blake  <ebb9@byu.net>
52129
52130         vasnprintf: support Irix 5.3
52131         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52132         that mishandle long double infinity.
52133         Reported by Tom G. Christensen.
52134
52135 2008-09-16  Bruno Haible  <bruno@clisp.org>
52136
52137         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52138         Solaris 9.
52139         * doc/glibc-functions/alphasort.texi: Likewise.
52140         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52141
52142 2008-09-16  Jim Meyering  <meyering@redhat.com>
52143
52144         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52145         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52146         a umask modification leak out of a subshell.  Otherwise, the
52147         opensolaris /bin/sh would be accepted and thus cause unwarranted
52148         failures in the coreutils test suite.
52149
52150 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52151
52152         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52153         to succeed.
52154
52155 2008-09-16  Jim Meyering  <meyering@redhat.com>
52156
52157         avoid spurious test failure when library is built without ACL support
52158         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52159         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52160         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52161         * tests/test-copy-acl.sh: Likewise.
52162
52163 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52164
52165         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52166         based on character occurrence counts.
52167
52168 2008-09-15  Eric Blake  <ebb9@byu.net>
52169
52170         tests: avoid some compiler warnings
52171         * tests/test-memchr.c (main): Pass NULL indirectly.
52172         * tests/test-closein.c (main): Avoid unused variable.
52173
52174 2008-09-15  Bruno Haible  <bruno@clisp.org>
52175
52176         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52177         are missing on OpenBSD 4.0 individually.
52178         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52179
52180 2008-09-15  Bruno Haible  <bruno@clisp.org>
52181
52182         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52183         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52184         * doc/posix-functions/perror.texi: Likewise.
52185         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52186         is missing.
52187         Reported by Eric Blake.
52188
52189         * lib/errno.in.h: Use replacement values >= 2000.
52190         Reported by Eric Blake.
52191
52192 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52193
52194         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52195         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52196         limit.
52197         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52198         compareseq was aborted.
52199
52200 2008-09-14  Bruno Haible  <bruno@clisp.org>
52201
52202         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52203         yvec_edit_count.
52204         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52205         (fstrcmp_bounded): Simplify result computation accordingly.
52206
52207 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52208
52209         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52210         (fstrcmp): Define in terms of fstrcmp_bounded.
52211         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52212         lower_bound argument.
52213         Return quickly if the result is certainly < lower_bound.
52214         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52215
52216 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52217
52218         * lib/diffseq.h (EARLY_ABORT): New macro.
52219         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52220         evaluates to true.
52221
52222 2008-09-14  Bruno Haible  <bruno@clisp.org>
52223
52224         * modules/perror-tests: New file.
52225         * tests/test-perror.sh: New file.
52226         * tests/test-perror.c: New file.
52227
52228         New module 'perror'.
52229         * lib/stdio.in.h (perror): New declaration.
52230         * lib/perror.c: New file.
52231         * m4/perror.m4: New file.
52232         * modules/perror: New file.
52233         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52234         * doc/posix-functions/perror.texi: Mention the perror module.
52235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52236         REPLACE_PERROR.
52237         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52238         REPLACE_PERROR.
52239
52240 2008-09-14  Bruno Haible  <bruno@clisp.org>
52241
52242         * modules/stdio (Makefile.am): Reorder to match the order in
52243         lib/stdio.in.h.
52244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52245
52246 2008-09-13  Bruno Haible  <bruno@clisp.org>
52247
52248         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52249
52250 2008-09-13  Bruno Haible  <bruno@clisp.org>
52251
52252         Extend strerror to cover the added errno values.
52253         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52254         (rpl_strerror): Provide error messages for the added errno values and
52255         for the WSA* values.
52256         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52257         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52258         strerror.
52259         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52260         * modules/strerror (Depends-on): Add errno.
52261         * doc/posix-functions/strerror.texi: Document the change.
52262         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52263         and EOVERFLOW.
52264
52265 2008-09-13  Bruno Haible  <bruno@clisp.org>
52266
52267         * modules/EOVERFLOW: Remove file.
52268         * m4/eoverflow.m4: Remove file.
52269         * modules/EOVERFLOW-tests: Remove file.
52270         * tests/test-EOVERFLOW.c: Remove file.
52271         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52272         * modules/ftell (Depends-on): Likewise.
52273         * modules/getdelim (Depends-on): Likewise.
52274         * modules/getugroups (Depends-on): Likewise.
52275         * modules/poll (Depends-on): Likewise.
52276         * modules/snprintf (Depends-on): Likewise.
52277         * modules/sprintf-posix (Depends-on): Likewise.
52278         * modules/vasnprintf (Depends-on): Likewise.
52279         * modules/vasprintf (Depends-on): Likewise.
52280         * modules/vfprintf-posix (Depends-on): Likewise.
52281         * modules/vsnprintf (Depends-on): Likewise.
52282         * modules/vsprintf-posix (Depends-on): Likewise.
52283         * modules/xvasprintf (Depends-on): Likewise.
52284         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52285         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52286         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52287         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52288         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52289         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52290         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52291         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52292         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52293         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52294         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52295         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52296         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52297         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52298         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52299         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52300         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52301         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52302         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52303         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52304         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52305         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52306         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52307         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52308         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52309         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52310         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52311         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52312         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52313         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52314         * MODULES.html.sh: Remove EOVERFLOW.
52315         * NEWS: Mention the change.
52316
52317 2008-09-13  Bruno Haible  <bruno@clisp.org>
52318
52319         * modules/errno-tests: New file.
52320         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52321
52322         * lib/errno.in.h: New file.
52323         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52324         * modules/errno: New file.
52325         * doc/posix-headers/errno.texi: Update documentation.
52326         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52327
52328 2008-09-13  Bruno Haible  <bruno@clisp.org>
52329
52330         * tests/test-poll.c: Use #if for native Windows, rather than testing
52331         __MSVCRT__.
52332
52333 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52334             Bruno Haible  <bruno@clisp.org>
52335
52336         * lib/glob.c: Don't include <pwd.h> on native Windows.
52337         (WINDOWS32): New macro.
52338         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52339
52340 2008-09-13  Bruno Haible  <bruno@clisp.org>
52341
52342         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52343         (ETIMEDOUT): Remove macro.
52344         (glthread_cond_timedwait_multithreaded): New declaration.
52345         (glthread_cond_timedwait): Use it.
52346         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52347         (glthread_cond_timedwait_multithreaded): New function.
52348
52349 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52350
52351         * modules/poll-tests: Do not check for io.h.
52352         * tests/test-poll.c: Check for __MSVCRT__ instead.
52353
52354 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52355
52356         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52357         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52358         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52359
52360 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52361
52362         * modules/poll-tests: New.
52363         * tests/test-poll.c: New.
52364
52365 2008-09-12  Eric Blake  <ebb9@byu.net>
52366
52367         frexp: test for NetBSD failure on -0.0
52368         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52369         not all, bugs from NetBSD 3.0 have been fixed.
52370         * doc/posix-functions/frexp.texi (frexp): Document bug.
52371         Reported by Thomas Klausner.
52372
52373         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52374         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52375         literal -0.0.
52376         Reported by Jonathan C. Patschke <jp@centtech.com>.
52377
52378 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52379
52380         * lib/glthread/cond.h: Use dummy implementation also if
52381         USE_WIN32_THREADS.
52382
52383 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52384
52385         * modules/fnmatch-posix (License): Change to LGPLv2+.
52386         * modules/fnmatch-gnu (License): Likewise.
52387
52388 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52389
52390         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52391
52392 2008-09-11  Jim Meyering  <meyering@redhat.com>
52393
52394         * users.txt: Add gtk-vnc.
52395
52396 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52397
52398         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52399         rotate amounts.
52400
52401         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52402         required for 16-bit and 8-bit rotates.
52403         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52404         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52405         UINT8_MAX instead of hard-coded constants.
52406         Suggested by Paul Eggert.
52407
52408 2008-09-07  Bruno Haible  <bruno@clisp.org>
52409
52410         * tests/test-striconveh.c (main): Check behaviour when converting from
52411         UTF-7.
52412
52413         Make striconveh work better with stateful encodings.
52414         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52415         that iconv does not increment the inptr when returning -1/EINVAL.
52416
52417 2008-09-07  Bruno Haible  <bruno@clisp.org>
52418
52419         * build-aux/config.rpath: Update according to libtool-2.2.6.
52420         * build-aux/config.libpath: Likewise.
52421
52422 2008-09-06  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52425         * lib/freadptr.c (freadptr): Likewise.
52426         * lib/freadseek.c (freadptrinc): Likewise.
52427         Reported by Simon Josefsson.
52428
52429 2008-09-06  Bruno Haible  <bruno@clisp.org>
52430
52431         * modules/freadptr (License): Change to LGPLv2+.
52432         * modules/freadseek (License): Likewise.
52433         Suggested by Eric Blake.
52434
52435         * modules/memchr2 (License): Change to LGPLv2+.
52436         Approved by Eric Blake.
52437
52438 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52439             Bruno Haible  <bruno@clisp.org>
52440
52441         Make gnulib-tool work with native 'sed' on AIX.
52442         * gnulib-tool (sed_noop): New variable.
52443         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52444         func_add_or_update, func_create_testdir): Use it to initialize sed
52445         script variables.
52446         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52447
52448 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52449             Bruno Haible  <bruno@clisp.org>
52450
52451         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52452         also works after #include directives.
52453
52454 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52455
52456         getdate.y: reject an out-of-range timezone value
52457         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52458         the range [-24...+24].  When specified with only one or two digits,
52459         * tests/test-getdate.c: Tests for the fix.
52460         * doc/getdate.texi: Document this change.
52461
52462 2008-09-03  Bruno Haible  <bruno@clisp.org>
52463
52464         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52465
52466 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52467
52468         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52469         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52470         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52471         Blake <ebb9@byu.net>.
52472
52473         * tests/test-bitrotate.c: Add more test vectors.
52474
52475 2008-09-02  Eric Blake  <ebb9@byu.net>
52476
52477         vasnprintf-posix: handle large precision via %.*d
52478         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52479         when handling it ourselves.
52480         * tests/test-vasnprintf-posix.c (test_function): Add test.
52481         * tests/test-snprintf-posix.h (test_function): Likewise.
52482         * tests/test-sprintf-posix.h (test_function): Likewise.
52483         * tests/test-vasprintf-posix.c (test_function): Likewise.
52484         Reported by Alain Guibert.
52485
52486 2008-09-01  Eric Blake  <ebb9@byu.net>
52487
52488         c-stack: make configure-time check more robust
52489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52490         successful sigaction call.
52491         Reported by Tom G. Christensen.
52492
52493 2008-09-01  Bruno Haible  <bruno@clisp.org>
52494
52495         New module 'findprog-lgpl'.
52496         * modules/findprog-lgpl: New file.
52497         * lib/findprog-lgpl.c: New file.
52498         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52499         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52500         to decide whether to use strdup or xstrdup, concatenated_filename or
52501         xconcatenated_filename.
52502
52503 2008-09-01  Bruno Haible  <bruno@clisp.org>
52504
52505         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52506         'xconcat-filename' (GPL).
52507         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52508         (License): Change to LGPLv2+.
52509         * modules/xconcat-filename: New file.
52510         * lib/concat-filename.h (concatenated_filename): Change specification.
52511         (xconcatenated_filename): New declaration.
52512         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52513         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52514         memory situations.
52515         * lib/xconcat-filename.c: New file.
52516         * NEWS: Mention the change.
52517         * lib/findprog.c: Include concat-filename.h, not filename.h.
52518         (find_in_path): Use xconcatenated_filename instead of
52519         concatenated_filename.
52520         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52521         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52522         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52523         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52524         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52525         instead of concatenated_filename.
52526         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52527         (execute_java_class): Use xconcatenated_filename instead of
52528         concatenated_filename.
52529         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52530         * modules/javacomp (Depends-on): Likewise.
52531         * modules/javaexec (Depends-on): Likewise.
52532
52533 2008-09-01  Bruno Haible  <bruno@clisp.org>
52534
52535         Split module 'filename' into 'filename' and 'concat-filename'.
52536         * modules/filename: Keep only lib/filename.h.
52537         (License): Change to LGPLv2+.
52538         * modules/concat-filename: New file, extracted from modules/filename.
52539         * lib/filename.h (concatenated_filename): Remove declaration.
52540         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52541         * lib/concat-filename.c: Include concat-filename.h.
52542         * NEWS: Mention the change.
52543
52544 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52545
52546         * lib/bitrotate.h (rotl8, rotr8): Add.
52547
52548         * modules/bitrotate (configure.ac): Need
52549         AC_REQUIRE([AC_C_INLINE]).
52550         (Description): Mention stdint.h.  Reported by Bruno Haible
52551         <bruno@clisp.org>.
52552
52553         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52554         Paolo Bonzini <bonzini@gnu.org>.
52555
52556 2008-08-31  Bruno Haible  <bruno@clisp.org>
52557
52558         Assume Solaris specific bi-arch conventions on Solaris systems.
52559         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52560         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52561         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52562         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52563         like acl_libdirstem.
52564         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52565         acl_libdirstem.
52566         * NEWS: Mention the change.
52567         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52568
52569 2008-08-31  Jim Meyering  <meyering@redhat.com>
52570
52571         * lib/strftime.h: Add comments describing the two added arguments.
52572
52573         remove duplicate #include directives
52574         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52575         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52576
52577 2008-08-31  Bruno Haible  <bruno@clisp.org>
52578
52579         New module 'sigpipe-die'.
52580         * modules/sigpipe-die: New file.
52581         * lib/sigpipe-die.h: New file.
52582         * lib/sigpipe-die.c: New file.
52583         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52584
52585 2008-08-31  Bruno Haible  <bruno@clisp.org>
52586
52587         Don't override previously installed signal handlers.
52588         * lib/fatal-signal.c (saved_sigactions): New variable.
52589         (uninstall_handlers): Reset the signal to the saved handler, not
52590         to SIG_DFL (except when ignored).
52591         (install_handlers): Save the previous handlers.
52592
52593 2008-08-30  Bruno Haible  <bruno@clisp.org>
52594
52595         * gnulib-tool (func_reset_sigpipe): New function.
52596         (func_get_automake_snippet, func_modules_transitive_closure,
52597         func_import): Invoke it before a join command that reads from stdin,
52598         to avoid "echo: write error: Broken pipe" error messages on stderr.
52599         Reported by Sam Steingold <sds@gnu.org>.
52600
52601 2008-08-30  Bruno Haible  <bruno@clisp.org>
52602
52603         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52604         Code copied from m4/open.m4.
52605         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52606         access and the filename ends in a slash. Code copied from lib/open.c.
52607         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52608         * tests/test-fopen.c (main): Check against bug with trailing slash.
52609
52610 2008-08-29  Bruno Haible  <bruno@clisp.org>
52611
52612         Avoid some "gcc -pedantic" warnings.
52613         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52614         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52615         * lib/dirent.in.h: Likewise.
52616         * lib/fcntl.in.h: Likewise.
52617         * lib/float.in.h: Likewise.
52618         * lib/iconv.in.h: Likewise.
52619         * lib/inttypes.in.h: Likewise.
52620         * lib/locale.in.h: Likewise.
52621         * lib/math.in.h: Likewise.
52622         * lib/netinet_in.in.h: Likewise.
52623         * lib/search.in.h: Likewise.
52624         * lib/signal.in.h: Likewise.
52625         * lib/stdarg.in.h: Likewise.
52626         * lib/stdint.in.h: Likewise.
52627         * lib/stdio.in.h: Likewise.
52628         * lib/stdlib.in.h: Likewise.
52629         * lib/string.in.h: Likewise.
52630         * lib/strings.in.h: Likewise.
52631         * lib/sys_select.in.h: Likewise.
52632         * lib/sys_socket.in.h: Likewise.
52633         * lib/sys_stat.in.h: Likewise.
52634         * lib/sys_time.in.h: Likewise.
52635         * lib/sysexits.in.h: Likewise.
52636         * lib/time.in.h: Likewise.
52637         * lib/unistd.in.h: Likewise.
52638         * lib/wchar.in.h: Likewise.
52639         * lib/wctype.in.h: Likewise.
52640         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52641         * modules/fchdir (Makefile.am): Likewise.
52642         * modules/fcntl (Makefile.am): Likewise.
52643         * modules/float (Makefile.am): Likewise.
52644         * modules/iconv_open (Makefile.am): Likewise.
52645         * modules/inttypes (Makefile.am): Likewise.
52646         * modules/locale (Makefile.am): Likewise.
52647         * modules/math (Makefile.am): Likewise.
52648         * modules/netinet_in (Makefile.am): Likewise.
52649         * modules/search (Makefile.am): Likewise.
52650         * modules/signal (Makefile.am): Likewise.
52651         * modules/stdarg (Makefile.am): Likewise.
52652         * modules/stdint (Makefile.am): Likewise.
52653         * modules/stdio (Makefile.am): Likewise.
52654         * modules/stdlib (Makefile.am): Likewise.
52655         * modules/string (Makefile.am): Likewise.
52656         * modules/strings (Makefile.am): Likewise.
52657         * modules/sys_select (Makefile.am): Likewise.
52658         * modules/sys_socket (Makefile.am): Likewise.
52659         * modules/sys_stat (Makefile.am): Likewise.
52660         * modules/sys_time (Makefile.am): Likewise.
52661         * modules/sysexits (Makefile.am): Likewise.
52662         * modules/time (Makefile.am): Likewise.
52663         * modules/unistd (Makefile.am): Likewise.
52664         * modules/wchar (Makefile.am): Likewise.
52665         * modules/wctype (Makefile.am): Likewise.
52666         Reported by Reuben Thomas <rrt@sc3d.org>.
52667
52668 2008-08-29  Bruno Haible  <bruno@clisp.org>
52669
52670         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52671         any more.
52672
52673 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52674
52675         * MODULES.html.sh (Misc): Add bitrotate.
52676
52677         * modules/bitrotate: New file.
52678
52679         * lib/bitrotate.h: New file.
52680
52681         * modules/bitrotate-tests: New file.
52682
52683         * tests/test-bitrotate.c: New file.
52684
52685         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52686         on the bitrotate module.
52687
52688         * lib/arctwo.c: Use new bitrotate module.
52689
52690 2008-08-29  Jim Meyering  <meyering@redhat.com>
52691
52692         bootstrap: merge changes from coreutils
52693         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52694         of copied files.  Remove a kludge, now that this is fixed.
52695         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52696         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52697         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52698
52699 2008-08-29  Bruno Haible  <bruno@clisp.org>
52700
52701         * MODULES.html.sh: Remove --cvs-urls option.
52702
52703 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52704
52705         maint.mk: adjust to file name change
52706         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52707
52708 2008-08-28  Jim Meyering  <meyering@redhat.com>
52709
52710         * modules/getndelim2 (License): Relicense to LGPLv2+.
52711         Approved by Richard Stallman for the version of 1995, and by
52712         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52713
52714 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52715
52716         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52717         dummy if one is not available.  Do not touch them if
52718         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52719         (getc_maybe_unlocked): New.
52720         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52721
52722 2008-08-26  Eric Blake  <ebb9@byu.net>
52723
52724         doc/INSTALL: resync from autoconf
52725         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52726         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52727         moving...
52728         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52729         * INSTALL: Regenerate.
52730         * INSTALL.ISO: New file.
52731         * INSTALL.UTF-8: Likewise.
52732
52733 2008-08-26  Jim Meyering  <meyering@redhat.com>
52734
52735         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52736         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52737         these definitions conditional, so that they may be overridden, too.
52738
52739 2008-08-26  Bruno Haible  <bruno@clisp.org>
52740
52741         Generate INSTALL file variants with prettier quotes.
52742         * doc/Makefile (INSTALL_PRELUDE): New macro.
52743         (INSTALL): Use it.
52744         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52745
52746 2008-08-26  Bruno Haible  <bruno@clisp.org>
52747
52748         Run makeinfo in an English locale.
52749         * doc/Makefile (MAKEINFO): New variable.
52750
52751 2008-08-26  Bruno Haible  <bruno@clisp.org>
52752
52753         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52754         Suggested by Eric Blake.
52755
52756 2008-08-25  Bruno Haible  <bruno@clisp.org>
52757
52758         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52759
52760 2008-08-25  Eric Blake  <ebb9@byu.net>
52761
52762         c-stack: test that stack overflow can be caught
52763         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52764         that platform allows handling stack overflow; at least OS/2 EMX
52765         has sigaltstack, but crashes before transferring control to
52766         handler on stack overflow.
52767         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52768         check for HAVE_STACK_OVERFLOW_HANDLING.
52769         Reported by Elbert Pol.
52770
52771 2008-08-25  Bruno Haible  <bruno@clisp.org>
52772
52773         * doc/posix-functions/strftime.texi: Fix description of strftime
52774         module.
52775
52776 2008-08-24  Bruno Haible  <bruno@clisp.org>
52777
52778         * tests/uniwidth/test-uc_width2.c: New file.
52779         * tests/uniwidth/test-uc_width2.sh: New file.
52780         * modules/uniwidth/width-tests (Files): Add the new files.
52781         (TESTS): Add uniwidth/test-uc_width2.sh.
52782         (TESTS_ENVIRONMENT): New variable.
52783         (check_PROGRAMS): Add test-uc_width2.
52784         (test_uc_width2_SOURCES): New variable.
52785
52786         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52787         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52788         not 0x00AB.
52789         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52790
52791 2008-08-22  Eric Blake  <ebb9@byu.net>
52792
52793         test-lock, test-tls: mention why a test is skipped
52794         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52795         skipped.
52796         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52797
52798         count-one-bits: relax license
52799         * modules/count-one-bits (License): Relicense to LGPLv2+.
52800         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52801
52802 2008-08-22  Andreas Schwab  <schwab@suse.de>
52803
52804         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52805         Remove spurious space in assignment.
52806
52807 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52808
52809         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52810         Paul Eggert <eggert@CS.UCLA.EDU>.
52811
52812 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52813
52814         * modules/gettext: Add m4/threadlib.m4.
52815
52816 2008-08-19  Eric Blake  <ebb9@byu.net>
52817
52818         test-c-stack: fix compilation failure on FreeBSD 5.0
52819         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52820         headers before <sys/resource.h>.
52821         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52822         the bug.
52823         Reported by Nelson H. F. Beebe.
52824
52825         strverscmp: migrate from "strverscmp.h" to <string.h>
52826         * modules/string (Makefile.am): Add new hooks.
52827         * modules/strverscmp (Files): Remove strverscmp.h.
52828         (Depends-on): Add string.
52829         (configure.ac): Add indicator.
52830         (Include): Mention new header.
52831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52832         defaults.
52833         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52834         results.
52835         * lib/strverscmp.h: Delete.
52836         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52837         * tests/test-strverscmp.c (includes): Adjust client.
52838         * lib/check-version.c (includes): Likewise.
52839         * NEWS: Document the change.
52840
52841         strverscmp: add unit test
52842         * modules/strverscmp-tests: New file.
52843         * tests/test-strverscmp.c: Likewise.
52844
52845 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52846
52847         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52848         regarding Windows crypto stuff, from Mono.
52849
52850 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52851
52852         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52853         if present, for intel RND.  Return error on failures.
52854
52855 2008-08-18  Ben Pfaff  <blp@gnu.org>
52856
52857         gitlog-to-changelog: give better diagnostic for failed pipe-open
52858         * build-aux/gitlog-to-changelog: Improve error message: suggest
52859         that the version of Git may be too old.
52860
52861 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52862
52863         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52864         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52865
52866 2008-08-18  Bruno Haible  <bruno@clisp.org>
52867
52868         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52869         pthread_in_use().
52870
52871 2008-08-18  Bruno Haible  <bruno@clisp.org>
52872
52873         * lib/glthread/threadlib.c: Include <pthread.h>.
52874
52875 2008-08-18  Bruno Haible  <bruno@clisp.org>
52876
52877         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52878         glthread_recursive_lock_* macros.
52879         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52880         Fix syntax error.
52881
52882 2008-08-18  Bruno Haible  <bruno@clisp.org>
52883
52884         * lib/glthread/thread.c: Avoid forcing a context switch right after
52885         thread creation.
52886
52887 2008-08-17  Bruno Haible  <bruno@clisp.org>
52888
52889         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52890         * lib/glthread/thread.h: Provide Win32 specific implementation.
52891         * modules/thread (Files): Add lib/glthread/thread.c.
52892         (Depends-on): Add lock.
52893         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52894
52895 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52896
52897         New module 'yield'.
52898         * modules/yield: New file.
52899         * lib/glthread/yield.h: New file.
52900         * m4/yield.m4: New file.
52901         * MODULES.html.sh (Multithreading): Add yield.
52902
52903 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52904
52905         New module 'thread'.
52906         * modules/thread: New file.
52907         * lib/glthread/thread.h: New file.
52908         * m4/thread.m4: New file.
52909         * MODULES.html.sh (Multithreading): Add thread.
52910
52911 2008-08-17  Bruno Haible  <bruno@clisp.org>
52912
52913         * lib/glthread/lock.h: Include <stdlib.h> always.
52914         * lib/glthread/tls.h: Likewise.
52915         * lib/glthread/cond.h: Likewise.
52916
52917 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52918
52919         New module 'cond'.
52920         * modules/cond: New file.
52921         * lib/glthread/cond.h: New file.
52922         * lib/glthread/cond.c: New file.
52923         * m4/cond.m4: New file.
52924         * MODULES.html.sh (Multithreading): Add cond.
52925
52926 2008-08-16  Eric Blake  <ebb9@byu.net>
52927
52928         c-stack: fix regression on Irix 5.3 from 2008-06-21
52929         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52930         sa_sigaction...
52931         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52932         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52933         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52934         * modules/signal (Makefile.am): Use the value.
52935         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52936         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52937         * doc/posix-headers/signal.texi (signal.h): Document this
52938         portability issue.
52939         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52940         Reported by Tom G. Christensen.
52941
52942 2008-08-17  Bruno Haible  <bruno@clisp.org>
52943
52944         New module 'threadlib'.
52945         * modules/threadlib: New file.
52946         * lib/glthread/threadlib.c: New file, extracted from
52947         lib/glthread/lock.c.
52948         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52949         functions.
52950         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52951         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52952         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52953         macros.
52954         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52955         (gl_DISABLE_THREADS): Remove macro.
52956         * modules/lock (Files): Remove build-aux/config.rpath.
52957         (Depends-on): Remove havelib. Add threadlib.
52958         (configure.ac-early): Remove section.
52959         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52960         * modules/tls (Depends-on): Remove lock. Add threadlib.
52961         (Link): New section, copied from threadlib.
52962         * MODULES.html.sh (Multithreading): Add threadlib.
52963
52964 2008-08-14  Bruno Haible  <bruno@clisp.org>
52965
52966         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52967         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52968         glthread_rwlock_unlock, glthread_rwlock_destroy,
52969         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52970         glthread_recursive_lock_destroy): Define as macros always.
52971         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52972         glthread_lock_lock.
52973         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52974         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52975         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52976         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52977         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52978         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52979         (glthread_recursive_lock_lock_func): Renamed from
52980         glthread_recursive_lock_lock.
52981         (glthread_recursive_lock_unlock_func): Renamed from
52982         glthread_recursive_lock_unlock.
52983         (glthread_recursive_lock_destroy_func): Renamed from
52984         glthread_recursive_lock_destroy.
52985
52986 2008-08-14  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/glthread/lock.h: Renamed from lib/lock.h.
52989         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52990         * lib/glthread/tls.h: Renamed from lib/tls.h.
52991         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52992         * lib/fstrcmp.c: Update includes.
52993         * lib/strsignal.c: Update includes.
52994         * modules/lock (Files, Makefile.am): Update.
52995         (Include): Change to "glthread/lock.h".
52996         * modules/tls (Files, Makefile.am): Update.
52997         (Include): Change to "glthread/tls.h".
52998         * tests/test-lock.c: Update includes.
52999         * tests/test-tls.c: Update includes.
53000         * NEWS: Mention the renamed header files.
53001
53002 2008-08-11  Jim Meyering  <meyering@redhat.com>
53003
53004         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53005
53006 2008-08-11  Eric Blake  <ebb9@byu.net>
53007
53008         test-c-stack: avoid C99-ism
53009         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53010         before statement.
53011         Reported by Alain Guibert.
53012
53013 2008-08-10  Jim Meyering  <meyering@redhat.com>
53014
53015         ensure that return value of uinttostr et al are not ignored
53016         * lib/inttostr.h (__GNUC_PREREQ): Define.
53017         (__attribute_warn_unused_result__): Define.
53018         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53019
53020 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53021
53022         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53023         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53024
53025 2008-08-07  Jim Meyering  <meyering@redhat.com>
53026
53027         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53028
53029         * modules/mkstemp (License): Relicense under LGPLv2+.
53030         * modules/tempname (License): Likewise.
53031
53032 2008-08-06  Bruno Haible  <bruno@clisp.org>
53033
53034         * lib/poll.c (poll): Further micro-optimization.
53035
53036 2008-08-06  Jim Meyering  <meyering@redhat.com>
53037
53038         inet_pton.c: use locale-independent tolower
53039         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53040         (inet_pton6): Use c_tolower rather than tolower.
53041         * modules/inet_pton (Depends-on): Add c-ctype.
53042
53043 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53044
53045         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53046         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53047
53048 2008-08-06  Jim Meyering  <meyering@redhat.com>
53049
53050         * modules/inet_pton (License): Relicense under LGPLv2+.
53051
53052 2008-08-03  Bruno Haible  <bruno@clisp.org>
53053
53054         Additional non-aborting API for lock and tls.
53055         * lib/lock.h: Include <errno.h>.
53056         (glthread_lock_init): New macro/function.
53057         (gl_lock_init): Define as wrapper around glthread_lock_init.
53058         (glthread_lock_lock): New macro/function.
53059         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53060         (glthread_lock_unlock): New macro/function.
53061         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53062         (glthread_lock_destroy): New macro/function.
53063         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53064         (glthread_rwlock_init): New macro/function.
53065         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53066         (glthread_rwlock_rdlock): New macro/function.
53067         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53068         (glthread_rwlock_wrlock): New macro/function.
53069         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53070         (glthread_rwlock_unlock): New macro/function.
53071         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53072         (glthread_rwlock_destroy): New macro/function.
53073         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53074         (glthread_recursive_lock_init): New macro/function.
53075         (gl_recursive_lock_init): Define as wrapper around
53076         glthread_recursive_lock_init.
53077         (glthread_recursive_lock_lock): New macro/function.
53078         (gl_recursive_lock_lock): Define as wrapper around
53079         glthread_recursive_lock_lock.
53080         (glthread_recursive_lock_unlock): New macro/function.
53081         (gl_recursive_lock_unlock): Define as wrapper around
53082         glthread_recursive_lock_unlock.
53083         (glthread_recursive_lock_destroy): New macro/function.
53084         (gl_recursive_lock_destroy): Define as wrapper around
53085         glthread_recursive_lock_destroy.
53086         (glthread_once): New macro/function.
53087         (gl_once): Define as wrapper around glthread_once.
53088         Update function declarations.
53089         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53090         glthread_rwlock_init. Return error code.
53091         (glthread_rwlock_rdlock_multithreaded): Renamed from
53092         glthread_rwlock_rdlock. Return error code.
53093         (glthread_rwlock_wrlock_multithreaded): Renamed from
53094         glthread_rwlock_wrlock. Return error code.
53095         (glthread_rwlock_unlock_multithreaded): Renamed from
53096         glthread_rwlock_unlock. Return error code.
53097         (glthread_rwlock_destroy_multithreaded): Renamed from
53098         glthread_rwlock_destroy. Return error code.
53099         (glthread_recursive_lock_init_multithreaded): Renamed from
53100         glthread_recursive_lock_init. Return error code.
53101         (glthread_recursive_lock_lock_multithreaded): Renamed from
53102         glthread_recursive_lock_lock. Return error code.
53103         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53104         glthread_recursive_lock_unlock. Return error code.
53105         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53106         glthread_recursive_lock_destroy. Return error code.
53107         (glthread_once_call): Make static.
53108         (glthread_once_multithreaded): Renamed from glthread_once.
53109         * lib/tls.h: Include <errno.h>.
53110         (glthread_tls_key_init): New macro/function.
53111         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53112         (glthread_tls_set): New macro/function.
53113         (gl_tls_set): Define as wrapper around glthread_tls_set.
53114         (glthread_tls_key_destroy): New macro/function.
53115         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53116         Update function declarations.
53117         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53118         glthread_tls_get.
53119         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53120
53121 2008-08-04  Eric Blake  <ebb9@byu.net>
53122
53123         gnumakefile: use space, not TAB, outside of targets
53124         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53125
53126 2008-08-02  Jim Meyering  <meyering@redhat.com>
53127
53128         getdate.y: avoid locale-dependent date parsing failure
53129         In Turkish locales, getdate would fail to recognize keywords
53130         containing a lowercase "i".  The solution is not to rely on
53131         locale-sensitive case-conversion.
53132         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53133         (lookup_word): Use c_toupper in place of toupper.
53134         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53135         Reported by Vefa Bicakci <bicave@superonline.com> in
53136         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53137         * modules/getdate (Depends-on): Add c-ctype.
53138
53139 2008-08-02  Bruno Haible  <bruno@clisp.org>
53140
53141         * gnulib-tool (func_import): When updating or creating a .gitignore
53142         file, prepend each added line with a slash, and ignore leading slashes
53143         from the existing lines.
53144         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53145
53146 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53147
53148         Portability fix for GNU make 3.79.1.
53149         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53150         versions do not understand.
53151
53152 2008-08-01  Bruno Haible  <bruno@clisp.org>
53153
53154         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53155         * tests/test-isnanf.h (zero): New variable.
53156         (main): Avoid literal -0.0f.
53157         * tests/test-isnand.h (zero): New variable.
53158         (main): Avoid literal -0.0.
53159         * tests/test-isnanl.h (zero): New variable.
53160         (main): Avoid literal -0.0L.
53161         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53162         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53163         -0.0, -0.0L.
53164         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53165         (test_signbitd): Avoid literal -0.0.
53166         (test_signbitl): Avoid literal -0.0L.
53167         * tests/test-ceilf1.c (zero): New variable.
53168         (main): Avoid literal -0.0f.
53169         * tests/test-ceill.c (zero): New variable.
53170         (main): Avoid literal -0.0L.
53171         * tests/test-floorf1.c (zero): New variable.
53172         (main): Avoid literal -0.0f.
53173         * tests/test-floorl.c (zero): New variable.
53174         (main): Avoid literal -0.0L.
53175         * tests/test-roundf1.c (zero): New variable.
53176         (main): Avoid literal -0.0f.
53177         * tests/test-round1.c (zero): New variable.
53178         (main): Avoid literal -0.0.
53179         * tests/test-roundl.c (zero): New variable.
53180         (main): Avoid literal -0.0L.
53181         * tests/test-truncf1.c (zero): New variable.
53182         (main): Avoid literal -0.0f.
53183         * tests/test-trunc1.c (zero): New variable.
53184         (main): Avoid literal -0.0.
53185         * tests/test-truncl.c (zero): New variable.
53186         (main): Avoid literal -0.0L.
53187         * tests/test-frexp.c (zero): New variable.
53188         (main): Avoid literal -0.0.
53189         * tests/test-frexpl.c (zero): New variable.
53190         (main): Avoid literal -0.0L.
53191         * tests/test-ldexpl.c (zero): New variable.
53192         (main): Avoid literal -0.0L.
53193         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53194         (zerod, zerol): New variables.
53195         (test_function): Avoid literals -0.0, -0.0L.
53196         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53197         (zerod, zerol): New variables.
53198         (test_function): Avoid literals -0.0, -0.0L.
53199         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53200         (zerod, zerol): New variables.
53201         (test_function): Avoid literals -0.0, -0.0L.
53202         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53203         (zerod, zerol): New variables.
53204         (test_function): Avoid literals -0.0, -0.0L.
53205         * tests/test-strtod.c (zero): New variable.
53206         (main): Avoid literal -0.0.
53207         Reported by Jonathan C. Patschke <jp@centtech.com>.
53208
53209 2008-07-31  Jim Meyering  <meyering@redhat.com>
53210
53211         sha256.h: correct definition of SHA224_DIGEST_SIZE
53212         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53213         Reported by Paulie Pena IV <paulie4@gmail.com>.
53214         Define as 224 / 8, rather than as a literal.
53215         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53216         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53217         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53218
53219 2008-07-31  Bruno Haible  <bruno@clisp.org>
53220
53221         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53222         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53223         Reported by Jonathan Patschke <jp@centtech.com>.
53224
53225 2008-07-31  Bruno Haible  <bruno@clisp.org>
53226
53227         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53228         Reported by Paolo Bonzini <bonzini@gnu.org>.
53229
53230 2008-07-30  Eric Blake  <ebb9@byu.net>
53231
53232         test-strtod: allow compilation without -lm
53233         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53234         Reported by Dennis Clarke <blastwave@gmail.com>.
53235
53236 2008-07-28  Jim Meyering  <meyering@redhat.com>
53237
53238         bootstrap: work also when there are no .po files in po/
53239         * build-aux/bootstrap (update_po_files): Complete the change
53240         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53241
53242 2008-07-27  Jim Meyering  <meyering@redhat.com>
53243
53244         * users.txt: Add zile.
53245
53246 2008-07-26  Ben Pfaff  <blp@gnu.org>
53247
53248         Add missing dependencies on new m4/exponent[fdl].m4 files.
53249         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53250         * modules/isnand-nolibm: Add m4/exponentd.m4.
53251         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53252         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53253         m4/isnan[fdl].m4, because the macros actually used moved.
53254         Reported by Jim Meyering.
53255
53256 2008-07-14  Ben Pfaff  <blp@gnu.org>
53257
53258         Add isinf module.
53259         * lib/isinf.c: New file.
53260         * lib/math.in.h: Define isinf macro if we have decided to replace
53261         it.
53262         * m4/isinf.m4: New file.
53263         * m4/math_h.m4: Initialize and substitute variables for isinf
53264         module.
53265         * modules/isinf: New file.
53266         * modules/isinf-tests: New file.
53267         * modules/math: Add substitutions for new module.
53268         * tests/test-isinf.c: New file.
53269         * doc/posix-functions/isinf.texi: Mention new module.
53270         * MODULES.html.sh: Mention new module.
53271
53272 2008-07-14  Ben Pfaff  <blp@gnu.org>
53273
53274         Factor out some macros for use by additional modules.
53275         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53276         exponentf.m4.
53277         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53278         exponentd.m4.
53279         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53280         file exponentl.m4.
53281         * m4/exponentf.m4: New file.
53282         * m4/exponentd.m4: New file.
53283         * m4/exponentl.m4: New file.
53284         * modules/isnanf: Use new file m4/exponentf.m4.
53285         * modules/isnand: Use new file m4/exponentd.m4.
53286         * modules/isnanl: Use new file m4/exponentl.m4.
53287
53288 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53289
53290         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53291         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53292         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53293         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53294
53295         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53296         readlink on platforms without PATH_MAX.
53297
53298 2008-07-21  Eric Blake  <ebb9@byu.net>
53299
53300         Warn, not fail, on stale version.
53301         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53302
53303         Don't allow installation with stale devel version number.
53304         * top/GNUmakefile (_is-install-target): New macro.
53305         (_curr-ver): Forbid installation with stale version number.
53306
53307 2008-07-20  Bruno Haible  <bruno@clisp.org>
53308
53309         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53310         TESTS_ENVIRONMENT.
53311         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53312
53313 2008-07-20  Bruno Haible  <bruno@clisp.org>
53314
53315         * lib/c-stack.h (c_stack_action): Add documentation.
53316         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53317
53318 2008-07-20  Bruno Haible  <bruno@clisp.org>
53319
53320         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53321         * modules/readlink (License): Likewise.
53322
53323 2008-07-17  Eric Blake  <ebb9@byu.net>
53324
53325         * modules/c-stack (Link): Fix typo.
53326
53327         Make c-stack use libsigsegv, when available.
53328         * modules/c-stack (Depends-on): Add libsigsegv.
53329         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53330         needed.
53331         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53332         (segv_handler, overflow_handler, c_stack_action)
53333         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53334         implementation when libsigsegv is available, but only when using
53335         the library is necessary.
53336         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53337         comment, explaining why XSI check fails on Linux.
53338         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53339         * tests/test-c-stack2.sh: Tweak skip message.
53340         * NEWS: Document new link-time requirements.
53341
53342 2008-07-16  Eric Blake  <ebb9@byu.net>
53343
53344         c-stack: Expose false positives when not using libsigsegv.
53345         * modules/c-stack-tests (Files): Expand test.
53346         * tests/test-c-stack.c (main): Add means to conditionally trigger
53347         non-overflow SIGSEGV.
53348         * tests/test-c-stack2.sh: New file.
53349
53350 2008-07-14  Bruno Haible  <bruno@clisp.org>
53351
53352         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53353         Reported by Eric Blake.
53354
53355 2008-07-14  Sam Steingold  <sds@gnu.org>
53356             Bruno Haible  <bruno@clisp.org>
53357
53358         New module libsigsegv.
53359         * modules/libsigsegv: New file.
53360         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53361         modifications.
53362         * MODULES.html.sh (Signal handling): New section.
53363
53364 2008-07-14  Bruno Haible  <bruno@clisp.org>
53365
53366         * modules/unictype/ctype-* (Description): Add the word "function".
53367         Improves the resulting doc in MODULES.html.
53368
53369 2008-07-12  Ben Pfaff  <blp@gnu.org>
53370
53371         Add longlong module.
53372         * modules/longlong: New file.
53373
53374 2008-07-12  Bruno Haible  <bruno@clisp.org>
53375
53376         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53377         to empty.
53378
53379 2008-07-10  Ben Pfaff  <blp@gnu.org>
53380
53381         Add isnan module.
53382         * doc/posix-functions/isnan.texi: Mention new module.
53383         * lib/math.in.h: Define isnan macro if we have decided to replace
53384         it.
53385         * m4/isnan.m4: New file.
53386         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53387         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53388         also.
53389         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53390         redundancy.
53391         * m4/math_h.m4: Initialize and substitute variables for isnan
53392         module.
53393         * modules/isnan: New file.
53394         * modules/isnan-tests: New file.
53395         * modules/math: Add substitutions for new module.
53396         * tests/test-isnan.c: New file.
53397         * MODULES.html.sh: Mention new module.
53398
53399 2008-07-10  Ben Pfaff  <blp@gnu.org>
53400
53401         Add isnanf module.
53402         * lib/isnanf.m4: New file.
53403         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53404         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53405         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53406         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53407         * modules/isnanf: New file.
53408         * modules/isnanf-tests: New file.
53409         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53410         files.
53411         * tests/test-isnanf-nolibm.c: factored most of its contents into
53412         new file tests/test-isnanf.h.
53413         * tests/test-isnanf.h: New file.
53414         * tests/test-isnanf.c: New file.
53415         * MODULES.html.sh: Mention new module.
53416         * doc/glibc-functions/isnanf.texi: Mention new module.
53417
53418 2008-07-10  Ben Pfaff  <blp@gnu.org>
53419
53420         Add isnand module.
53421         * lib/isnand.h: New file.
53422         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53423         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53424         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53425         functionality also.
53426         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53427         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53428         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53429         * modules/isnand: New file.
53430         * modules/isnand-tests: New file.
53431         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53432         files.
53433         * tests/test-isnand-nolibm.c: factored most of its contents into
53434         new file tests/test-isnand.h.
53435         * tests/test-isnand.h: New file.
53436         * tests/test-isnand.c: New file.
53437         * MODULES.html.sh: Mention new module.
53438
53439 2008-07-10  Ben Pfaff  <blp@gnu.org>
53440
53441         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53442         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53443         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53444         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53445         * modules/isnanf-nolibm: Update references to renamed files.
53446         * modules/isnand-nolibm: Likewise.
53447         * modules/isnanf-nolibm-tests: Likewise.
53448         * modules/isnand-nolibm-tests: Likewise.
53449         * lib/frexp.c: Likewise.
53450         * lib/isfinite.c: Likewise.
53451         * lib/signbitd.c: Likewise.
53452         * lib/signbitf.c: Likewise.
53453         * lib/vasnprintf.c: Likewise.
53454         * tests/test-ceilf1.c: Likewise.
53455         * tests/test-ceilf2.c: Likewise.
53456         * tests/test-floorf1.c: Likewise.
53457         * tests/test-floorf2.c: Likewise.
53458         * tests/test-frexp.c: Likewise.
53459         * tests/test-round1.c: Likewise.
53460         * tests/test-round2.c: Likewise.
53461         * tests/test-roundf1.c: Likewise.
53462         * tests/test-strtod.c: Likewise.
53463         * tests/test-trunc1.c: Likewise.
53464         * tests/test-trunc2.c: Likewise.
53465         * tests/test-truncf1.c: Likewise.
53466         * tests/test-truncf2.c: Likewise.
53467         * NEWS: Mention the renamed header files.
53468
53469 2008-07-11  Jim Meyering  <meyering@redhat.com>
53470
53471         vc-list-files: make the last-resort awk code more portable
53472         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53473         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53474         does not support it.
53475
53476 2008-07-10  Eric Blake  <ebb9@byu.net>
53477
53478         Work with tar's bootstrap.
53479         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53480         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53481         an m4 comment.
53482
53483 2008-07-09  Jim Meyering  <meyering@redhat.com>
53484
53485         posix-shell.m4: fix typo that made this test malfunction
53486         * m4/posix-shell.m4: Remove capitalization in variable name.
53487
53488 2008-07-08  Bruno Haible  <bruno@clisp.org>
53489
53490         * m4/onceonly.m4: Update comments.
53491         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53492
53493 2008-07-04  Jim Meyering  <meyering@redhat.com>
53494
53495         * users.txt: Add vc-dwim.
53496         (bison, coreutils): Use the gitweb URL.
53497
53498 2008-07-03  Jim Meyering  <meyering@redhat.com>
53499
53500         * users.txt: Add libffcall.  From Sam Steingold.
53501
53502 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53503
53504         getdate.y: do not ignore TZ with relative day, month or year offset
53505         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53506         relative-date-handling, since otherwise, the latter would clobber the
53507         sole output (an updated Start value) of the tz-handling block.
53508         * tests/test-getdate.c: Tests for the fix
53509
53510 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53511
53512         Recognize 'foo_LIBRARIES += libgnu.a'.
53513         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53514         makefile snippet has already specified an installation location,
53515         also using '+='.
53516
53517 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53518
53519         getdate.y: factor out common actions
53520         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53521         Use them in place of open-coded actions.
53522
53523 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53524
53525         Add self-test for getdate module.
53526         * modules/getdate-tests: New file.
53527         * tests/test-getdate.c: New file.
53528
53529 2008-06-29  Bruno Haible  <bruno@clisp.org>
53530
53531         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53532         .gitignore.
53533         Reported by Sylvain Beucler <beuc@beuc.net>.
53534
53535 2008-06-29  Bruno Haible  <bruno@clisp.org>
53536
53537         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53538         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53539
53540 2008-06-29  Bruno Haible  <bruno@clisp.org>
53541
53542         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53543         EXTRA_DIST.
53544         Reported by Sylvain Beucler <beuc@beuc.net>.
53545
53546 2008-06-26  Jim Meyering  <meyering@redhat.com>
53547
53548         make several modules depend on the "open" module
53549         This provides slightly increased consistency when opening-for-write
53550         the name of a non-directory spelled with a trailing slash.
53551         * modules/chdir-safer: Likewise.
53552         * modules/chown: Likewise.
53553         * modules/clean-temp: Likewise.
53554         * modules/copy-file: Likewise.
53555         * modules/fchdir: Likewise.
53556         * modules/fcntl-safer: Likewise.
53557         * modules/pipe: Likewise.
53558         * modules/utime: Likewise.
53559         Prompted by Eric Blake and Bruno Haible.
53560
53561 2008-06-24  Andreas Schwab  <schwab@suse.de>
53562
53563         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53564         literals can be used as initializers for global variables.
53565
53566 2008-06-23  Eric Blake  <ebb9@byu.net>
53567
53568         Make gnulib-cache.m4 easier to diff.
53569         * gnulib-tool (func_import): Allow newlines when reading cached
53570         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53571
53572 2008-06-23  Bruno Haible  <bruno@clisp.org>
53573
53574         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53575         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53576         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53577         m4/signalblocking.m4.
53578         (gl_PREREQ_SIGACTION): Don't invoke it.
53579         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53580         gl_PREREQ_SIG_HANDLER_H.
53581         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53582         Don't check for sigaction here.
53583
53584 2008-06-23  Bruno Haible  <bruno@clisp.org>
53585
53586         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53587         (install_handlers): Don't set the SA_RESETHAND flag.
53588
53589 2008-06-23  Bruno Haible  <bruno@clisp.org>
53590
53591         * m4/sigaction.m4: Comment fixes.
53592         * lib/signal.in.h: Likewise.
53593
53594 2008-06-23  Eric Blake  <ebb9@byu.net>
53595
53596         Fix typo.
53597         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53598
53599         Avoid SA_ namespace.
53600         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53601         Reported by Ralf Wildenhues.
53602
53603         Avoid test failure due to SA_RESTORER.
53604         * tests/test-sigaction.c (SA_MASK): New macro.
53605         (main): Avoid failing due to extension flags being set.
53606         Reported by Jim Meyering.
53607
53608         Revert use of sig-handler.h in sigprocmask.c.
53609         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53610         it requires the existence of struct sigaction.
53611         * lib/sigprocmask.c (handler_t): Restore typedef.
53612         (rpl_signal, old_handlers): Use local type.
53613
53614 2008-06-22  Bruno Haible  <bruno@clisp.org>
53615
53616         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53617         conditionally.
53618         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53619
53620 2008-06-22  Bruno Haible  <bruno@clisp.org>
53621
53622         * doc/posix-functions/siginterrupt.texi: Move note.
53623
53624         * lib/signal.in.h (SA_RESTART): New macro.
53625         * lib/sigaction.c: Update comment.
53626
53627         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53628
53629         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53630         (gl_PREREQ_SIGPROCMASK): Invoke it.
53631         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53632
53633         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53634
53635         * lib/sigprocmask.c: Update a comment.
53636
53637 2008-06-21  Eric Blake  <ebb9@byu.net>
53638
53639         Use sigaction module rather than signal().
53640         * modules/c-stack (Depends-on): Add sigaction.
53641         * modules/fatal-signal (Depends-on): Likewise.
53642         * modules/nanosleep (Depends-on): Likewise.
53643         * modules/sigprocmask (Files): Add sig-handler.h.
53644         * modules/sigaction (Files): Likewise.
53645         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53646         Eggert.
53647         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53648         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53649         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53650         (init_fatal_signals): Likewise.
53651         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53652         (siginterrupt): Delete fallback.
53653         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53654         instead.
53655         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53656         siginterrupt.
53657
53658         New module sigaction, for mingw.
53659         * modules/sigaction: New module...
53660         * modules/sigaction-tests: ...and its test.
53661         * m4/sigaction.m4: New file.
53662         * lib/sigaction.c: Likewise.
53663         * tests/test-sigaction.c: Likewise.
53664         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53665         * modules/signal (Makefile.am): Likewise.
53666         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53667         needed.
53668         * doc/posix-headers/signal.texi (signal.h): Mention provided
53669         types.
53670         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53671         that sigaction is preferable.
53672         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53673         module.
53674         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53675         sigaction.
53676
53677         Improve robustness of sigprocmask by overriding signal.
53678         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53679         is in use.
53680         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53681         (SIGKILL, SIGSTOP): Provide fallbacks.
53682         (rpl_signal): Implement.
53683         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53684         signal can be called inside handlers.
53685
53686         Fix nanosleep module on mingw.
53687         * modules/nanosleep (Depends-on): Add sys_select.
53688         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53689
53690         Fix licensing of sigprocmask.
53691         * modules/raise (License): Relicense as LGPL.
53692
53693 2008-06-21  Bruno Haible  <bruno@clisp.org>
53694
53695         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53696         result if it contains question marks.
53697         Reported by Michael Geng <linux@michaelgeng.de>.
53698
53699 2008-06-19  Bruno Haible  <bruno@clisp.org>
53700
53701         Fix CVS-ism.
53702         * doc/gnulib.texi: Include updated-stamp.texi.
53703         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53704         (updated-stamp.texi): New rule.
53705         (gnulib.info): Depend on it.
53706         * doc/.gitignore: Add updated-stamp.texi.
53707         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53708
53709 2008-06-19  Bruno Haible  <bruno@clisp.org>
53710
53711         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53712         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53713
53714 2008-06-19  Eric Blake  <ebb9@byu.net>
53715
53716         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53717         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53718         Reported by Stepan Kasal.
53719
53720 2008-06-18  Bruno Haible  <bruno@clisp.org>
53721
53722         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53723         Reported by Eric Blake.
53724
53725 2008-06-18  Eric Blake  <ebb9@byu.net>
53726
53727         Work around cygwin 1.5.25 strsignal bug.
53728         * tests/test-strsignal.c: Allow for const char *.
53729         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53730
53731 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53732
53733         * users.txt: Update URL to article and add author/date
53734         information.
53735
53736 2008-06-17  Bruno Haible  <bruno@clisp.org>
53737
53738         New macro gl_DISABLE_THREADS.
53739         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53740         if the user did not pass --enable-threads or --disable-threads option.
53741         (gl_DISABLE_THREADS): New macro.
53742         Reported by Eric Blake <ebb9@byu.net>.
53743
53744 2008-06-17  Bruno Haible  <bruno@clisp.org>
53745
53746         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53747         when the macro ignores it.
53748         Based on a patch by Eric Blake <ebb9@byu.net>.
53749
53750 2008-06-17  Bruno Haible  <bruno@clisp.org>
53751
53752         * modules/tls (License): Change to LGPLv2+.
53753         Reported by Eric Blake.
53754
53755 2008-06-17  Eric Blake  <ebb9@byu.net>
53756
53757         Simplify c-stack prerequisites.
53758         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53759         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53760         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53761         check.
53762         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53763         <sys/resource.h>.
53764
53765         Move c-stack test into testsuite.
53766         * modules/c-stack-tests: New file.
53767         * lib/c-stack.c [DEBUG]: Move test program...
53768         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53769         fail test if sigaltstack is lacking.
53770         * tests/test-c-stack.sh: New driver file.
53771
53772 2008-06-16  Eric Blake  <ebb9@byu.net>
53773
53774         Use raise module consistently.
53775         * modules/fatal-signal (Depends-on): Add raise.
53776         * modules/sigprocmask (Depends-on): Likewise.
53777         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53778         * lib/sigprocmask.c (sigprocmask): Likewise.
53779         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53780         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53781
53782         Fix compliance bug in sigpending.
53783         * lib/sigprocmask.c (sigpending): Return pending array via
53784         parameter, not return value.
53785
53786 2008-06-14  Eric Blake  <ebb9@byu.net>
53787
53788         Improve obstack-printf test code.
53789         * tests/test-obstack-printf.c (test_function): Fix comment, and
53790         simplify usage of obstack_* in macros.  Add a test for coverage.
53791         Reported by Bruno Haible.
53792
53793 2008-06-14  Bruno Haible  <bruno@clisp.org>
53794
53795         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53796         array size as a constant, not as a const variable.
53797         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53798         AC_USE_SYSTEM_EXTENSIONS.
53799         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53800         Test whether the obstack_printf function actually exists.
53801         * modules/obstack-printf (Depends-on): Add extensions.
53802         (Include): Remove obstack.h.
53803         * modules/obstack-printf-posix (Depends-on): Add extensions.
53804         (Include): Remove obstack.h.
53805
53806 2008-06-13  Eric Blake  <ebb9@byu.net>
53807
53808         Add obstack-printf and obstack-printf-posix modules.
53809         * modules/obstack-printf: New file.
53810         * modules/obstack-printf-posix: Likewise.
53811         * MODULES.html.sh (Misc): Mention them.
53812         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53813         Likewise.
53814         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53815         Likewise.
53816         * modules/stdio (Makefile.am): Accomodate new modules.
53817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53818         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53819         Declare.
53820         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53821         functions.
53822         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53823         (gl_REPLACE_OBSTACK_PRINTF): New macros
53824         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53825         * tests/test-obstack-printf.c: New file.
53826         * modules/obstack-printf-tests: Likewise.
53827         * modules/obstack-printf-posix-tests: Likewise.
53828
53829 2008-06-11  Bruno Haible  <bruno@clisp.org>
53830
53831         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53832         * lib/open.c: Include errno.h.
53833         (open): Fail when attempting to write to a file that has a trailing
53834         slash.
53835         * tests/test-open.c (main): Test against trailing slash bug.
53836         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53837
53838 2008-06-10  Bruno Haible  <bruno@clisp.org>
53839
53840         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53841         for $? to work inside the trap command, with various /bin/sh-s.
53842         * tests/test-vc-list-files-cvs.sh: Likewise.
53843
53844 2008-06-10  Bruno Haible  <bruno@clisp.org>
53845
53846         * lib/acl-internal.h: Don't include gettext.h here.
53847         * lib/set-mode-acl.c: Include gettext.h here.
53848         * lib/copy-acl.c: Likewise.
53849
53850 2008-06-10  Bruno Haible  <bruno@clisp.org>
53851
53852         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53853         * lib/wait-process.c (wait_subprocess): Likewise.
53854         * lib/execute.h (execute): Add termsigp argument.
53855         * lib/execute.c (execute): Likewise.
53856         * lib/csharpcomp.c (compile_csharp_using_pnet,
53857         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53858         * lib/csharpexec.c (execute_csharp_using_pnet,
53859         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53860         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53861         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53862         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53863         is_jikes_present): Update.
53864         * lib/javaexec.c (execute_java_class): Update.
53865         * lib/javaversion.c (execute_and_read_line): Update.
53866         * NEWS: Document the changes.
53867         Reported by Eric Blake.
53868
53869 2008-06-10  Eric Blake  <ebb9@byu.net>
53870
53871         Add missing include.
53872         * tests/test-strstr.c (includes): Add <signal.h>.
53873         * tests/test-strcasestr.c (includes): Likewise.
53874         * tests/test-memmem.c (includes): Likewise.
53875
53876 2008-06-10  Bruno Haible  <bruno@clisp.org>
53877
53878         * lib/wait-process.c (wait_subprocess): Add an assertion.
53879
53880 2008-06-10  Bruno Haible  <bruno@clisp.org>
53881
53882         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53883
53884 2008-06-10  Bruno Haible  <bruno@clisp.org>
53885
53886         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53887         using alarm().
53888         * tests/test-strcasestr.c (main): Likewise.
53889         * tests/test-strstr.c (main): Likewise.
53890
53891 2008-06-09  Bruno Haible  <bruno@clisp.org>
53892
53893         Work around the Solaris 10 ACE ACLs ABI change.
53894         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53895         declare if ACL_NO_TRIVIAL is present.
53896         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53897         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53898         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53899         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53900         define if ACL_NO_TRIVIAL is present.
53901         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53902         and use the current ABI.
53903         (file_has_acl): Use same #if condition as elsewhere.
53904         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53905         in use, and use the current ABI.
53906         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53907         Reported by Jim Meyering.
53908
53909 2008-06-09  Eric Blake  <ebb9@byu.net>
53910
53911         Work around environments that (stupidly) ignore SIGALRM.
53912         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53913         before using alarm().
53914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53916         Reported by Ian Beckwith <ianb@erislabs.net>.
53917
53918         Produce autobuild blurb earlier in log.
53919         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53920
53921 2008-06-09  Jim Meyering  <meyering@redhat.com>
53922         and OndÅ™ej Vašík  <ovasik@redhat.com>
53923
53924         utimens.c: correct kernel bug work-around
53925         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53926         failure, not success, and the kernel bug we're trying to work
53927         around affects not just the utimensat call, but also the fallback
53928         futimens call.
53929         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53930         not success.
53931         [HAVE_FUTIMENS]: Use the same work-around, here.
53932
53933 2008-06-09  Jim Meyering  <meyering@redhat.com>
53934
53935         add more guards around definition of ACE_-related code
53936         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53937         ALLOW and ACE_OWNER are also defined.
53938
53939 2008-06-08  Bruno Haible  <bruno@clisp.org>
53940
53941         * lib/acl-internal.h: Add me as co-author.
53942         * lib/file-has-acl.c: Likewise.
53943         * lib/set-mode-acl.c: Likewise.
53944         * lib/copy-acl.c: Likewise.
53945
53946 2008-06-08  Bruno Haible  <bruno@clisp.org>
53947
53948         Add support for AIX ACLs.
53949         * lib/acl-internal.h (acl_nontrivial): New declaration.
53950         * lib/file-has-acl.c (acl_nontrivial): New function.
53951         (file_has_acl): Add implementation using AIX 4 ACL API.
53952         * lib/set-mode-acl.c (qset_acl): Likewise.
53953         * lib/copy-acl.c (qcopy_acl): Likewise.
53954
53955 2008-06-08  Bruno Haible  <bruno@clisp.org>
53956
53957         Add support for HP-UX ACLs.
53958         * lib/acl-internal.h (acl_nontrivial): New declaration.
53959         * lib/file-has-acl.c (acl_nontrivial): New function.
53960         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53961         * lib/set-mode-acl.c (qset_acl): Likewise.
53962         * lib/copy-acl.c (qcopy_acl): Likewise.
53963
53964 2008-06-08  Bruno Haible  <bruno@clisp.org>
53965
53966         Add support for Cygwin ACLs.
53967         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53968         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53969         the chmod_or_fchmod call.
53970         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53971
53972 2008-06-08  Bruno Haible  <bruno@clisp.org>
53973
53974         Fix bug with setuid modes in Solaris 10+ code.
53975         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53976         succeeded, when the mode contains some special bits.
53977
53978 2008-06-08  Bruno Haible  <bruno@clisp.org>
53979
53980         Add support for Solaris 7..10 ACLs.
53981         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53982         declarations.
53983         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53984         functions.
53985         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53986         * lib/set-mode-acl.c (qset_acl): Likewise.
53987         * lib/copy-acl.c (qcopy_acl): Likewise.
53988
53989 2008-06-08  Bruno Haible  <bruno@clisp.org>
53990
53991         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53992         declaration.
53993         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53994         (acl_access_nontrivial): Remove MacOS X case.
53995         (file_has_acl): Use acl_extended_nontrivial.
53996         * lib/copy-acl.c (qcopy_acl): Likewise.
53997
53998 2008-06-08  Bruno Haible  <bruno@clisp.org>
53999
54000         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54001
54002 2008-06-08  Jim Meyering  <meyering@redhat.com>
54003
54004         * modules/acl (Maintainer): Add Bruno Haible.
54005
54006 2008-06-07  Bruno Haible  <bruno@clisp.org>
54007
54008         Improve support for Tru64 ACLs.
54009         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54010         ACL on OSF/1.
54011
54012 2008-06-07  Bruno Haible  <bruno@clisp.org>
54013
54014         Add support for MacOS X ACLs.
54015         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54016         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54017         * lib/set-mode-acl.c (qset_acl): Likewise.
54018         * lib/copy-acl.c (qcopy_acl): Likewise.
54019
54020 2008-06-07  Bruno Haible  <bruno@clisp.org>
54021
54022         Fix memory leak introduced on 2008-05-22.
54023         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54024         use.
54025
54026 2008-06-07  Bruno Haible  <bruno@clisp.org>
54027
54028         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54029         to construct an empty ACL.
54030
54031 2008-06-07  Bruno Haible  <bruno@clisp.org>
54032
54033         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54034         precisely.
54035         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54036
54037 2008-06-07  Bruno Haible  <bruno@clisp.org>
54038
54039         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54040         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54041
54042 2008-06-07  Bruno Haible  <bruno@clisp.org>
54043
54044         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54045         regardless of POSIX.
54046         * doc/posix-functions/_longjmp.texi: Likewise.
54047         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54048         SystemV platform in this case.
54049
54050 2008-06-06  Eric Blake  <ebb9@byu.net>
54051
54052         Document abort() bugs.
54053         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54054
54055         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54056         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54057         sigsetjmp.
54058         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54059         siglongjmp, but only as a macro.
54060         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54061         is obsolete.
54062         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54063
54064         Tweak documentation to cover cygwin argz bugs.
54065         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54066         argz bug fix; no code change needed since no cygwin releases
54067         occurred between the last fix and the bug being tested.
54068         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54069         module and recently fixed cygwin bugs.
54070         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54071         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54072         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54073         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54074         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54075         Likewise.
54076         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54077         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54078         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54079         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54080         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54081         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54082         Likewise.
54083
54084         Avoid gcc warning on cygwin.
54085         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54086         !ACL_NO_TRIVIAL]: Avoid unused variable.
54087
54088 2008-06-05  Eric Blake  <ebb9@byu.net>
54089
54090         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54091         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54092         git-version-gen fails to come up with a version.
54093         Reported by Simon Josefsson.
54094
54095 2008-06-05  Jim Meyering  <meyering@redhat.com>
54096             Paul Eggert  <eggert@cs.ucla.edu>
54097
54098         utimens.c: work around a probable Linux kernel bug
54099         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54100         appears to be a kernel bug that causes utimensat to return 280
54101         instead of 0, indicating success.
54102
54103 2008-06-04  Bruno Haible  <bruno@clisp.org>
54104
54105         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54106         2008-06-01 commit.
54107
54108 2008-06-04  Bruno Haible  <bruno@clisp.org>
54109
54110         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54111         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54112         (file_has_acl): Use it. Save errno afterwards.
54113         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54114
54115 2008-06-03  Bruno Haible  <bruno@clisp.org>
54116
54117         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54118         draft code. Simplify #ifs.
54119         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54120         Put Solaris code after POSIX-draft code. Fix comments regarding
54121         Solaris 10, HP-UX. Mention Cygwin.
54122         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54123
54124 2008-06-03  Eric Blake  <ebb9@byu.net>
54125
54126         Provide fallback for older kernels.
54127         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54128         Provide runtime fallback if kernel lacks support.
54129         Reported by Mike Frysinger.
54130
54131 2008-06-02  Bruno Haible  <bruno@clisp.org>
54132
54133         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54134         it exists.
54135
54136 2008-06-02  Bruno Haible  <bruno@clisp.org>
54137
54138         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54139         * lib/copy-acl.c (qcopy_acl): Update comment.
54140
54141 2008-06-02  Bruno Haible  <bruno@clisp.org>
54142
54143         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54144         like ACL APIs.
54145
54146 2008-06-02  Bruno Haible  <bruno@clisp.org>
54147
54148         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54149         * tests/test-set-mode-acl.sh: Likewise.
54150         * tests/test-copy-acl.sh: Likewise.
54151         * tests/test-copy-file.sh: Likewise.
54152
54153 2008-06-02  Bruno Haible  <bruno@clisp.org>
54154
54155         * tests/test-file-has-acl.sh: Remove unused code.
54156
54157 2008-06-01  Bruno Haible  <bruno@clisp.org>
54158
54159         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54160         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54161         messages.
54162         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54163
54164 2008-06-01  Bruno Haible  <bruno@clisp.org>
54165
54166         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54167         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54168         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54169         APIs.
54170         * modules/acl-tests (configure.ac): Remove tests now contained in
54171         m4/acl.m4.
54172
54173 2008-06-02  Jim Meyering  <meyering@redhat.com>
54174
54175         announce-gen: use a better key-server host name
54176         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54177         it may be more consistently reliable.  Suggested by Werner Koch
54178         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54179
54180 2008-06-01  Bruno Haible  <bruno@clisp.org>
54181
54182         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54183         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54184
54185 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54186
54187         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54188
54189 2008-06-01  Bruno Haible  <bruno@clisp.org>
54190
54191         New ACL tests.
54192         * tests/test-file-has-acl.sh: New file.
54193         * tests/test-file-has-acl.c: New file.
54194         * tests/test-set-mode-acl.sh: New file.
54195         * tests/test-set-mode-acl.c: New file.
54196         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54197         * tests/test-copy-acl.c: New file.
54198         * modules/acl-tests: New file, based on modules/copy-file-tests.
54199         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54200         (Depends-on): Add acl-tests.
54201         (configure.ac): Remove checks.
54202         (Makefile.am): Don't create test-sameacls program here any more.
54203
54204 2008-06-01  Bruno Haible  <bruno@clisp.org>
54205
54206         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54207         * tests/test-sameacls.c: Include progname.h.
54208         (main): Invoke set_program_name. Portability fixes for MacOS X,
54209         Solaris, HP-UX.
54210
54211 2008-06-01  Bruno Haible  <bruno@clisp.org>
54212
54213         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54214         function.
54215         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54216
54217 2008-06-01  Bruno Haible  <bruno@clisp.org>
54218
54219         * modules/rpmatch (Depends-on): Add strdup.
54220
54221 2008-06-01  Bruno Haible  <bruno@clisp.org>
54222
54223         * lib/pipe.c: Include unistd-safer.h.
54224         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54225         * modules/pipe (Depends-on): Add unistd-safer.
54226
54227 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54228
54229         * modules/autobuild (configure.ac): Call AB_INIT.
54230
54231 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54232
54233         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54234         Suggested by Bruno Haible <bruno@clisp.org>.
54235
54236 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54237
54238         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54239         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54240         <bruno@clisp.org>.
54241
54242 2008-05-29  Eric Blake  <ebb9@byu.net>
54243
54244         Prefer new POSIX 200x interfaces over futimesat.
54245         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54246         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54247         when available.
54248         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54249
54250 2008-05-28  Bruno Haible  <bruno@clisp.org>
54251
54252         * modules/stpcpy (License): Change to LGPLv2+.
54253         Requested by David Lutterkort <dlutter@redhat.com>.
54254
54255 2008-05-27  Bruno Haible  <bruno@clisp.org>
54256
54257         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54258         current mingw.
54259         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54260
54261 2008-05-27  Bruno Haible  <bruno@clisp.org>
54262
54263         * modules/iconv_open (Link): New section, from module 'iconv'.
54264         * modules/striconv (Link): Likewise.
54265         * modules/striconveh (Link): Likewise.
54266         * modules/xstriconv (Link): Likewise.
54267         * modules/unicodeio (Link): Likewise.
54268         * modules/propername (Link): Likewise.
54269         Reported by Jim Meyering.
54270
54271 2008-05-26  Jim Meyering  <meyering@redhat.com>
54272
54273         sha256: do not artificially restrict buffer length to be < 2^32
54274         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54275         uint32_t to size_t.
54276         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54277         to match.
54278
54279         avoid unaligned access errors, e.g., on sparc
54280         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54281         direct access through a possibly-unaligned uint64* pointer.
54282         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54283         direct access through a possibly-unaligned uint32* pointer.
54284         Prompted by this patch from Tom "spot" Callaway:
54285         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54286
54287         sha512.c: fix typo in comment
54288         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54289
54290 2008-05-25  Bruno Haible  <bruno@clisp.org>
54291
54292         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54293         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54294         (Makefile.am): Update lib_SOURCES.
54295
54296 2008-05-25  Bruno Haible  <bruno@clisp.org>
54297
54298         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54299
54300 2008-05-25  Jim Meyering  <meyering@redhat.com>
54301
54302         useless-if-before-free: freed expr may have white-space differences
54303         * build-aux/useless-if-before-free: Recognize cases in which the
54304         freed expression differs from the tested one in embedded white
54305         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54306         $1 was used, so we can't make any regexp shy.  Improved tests now
54307         detect this.
54308
54309         useless-if-before-free: accept white space in the expression.
54310         * build-aux/useless-if-before-free: For now, any white space
54311         in the expression must be identical in the free argument.
54312
54313         useless-if-before-free: efficiency tweak
54314         * build-aux/useless-if-before-free: Make the expression-matching
54315         regexp "shy".
54316         Make the *outer* regexp shy, not the expr-matching one.
54317
54318         update code-in-comment to accept cast of free arg
54319         * build-aux/useless-if-before-free: Update regexp.
54320
54321 2008-05-25  Bruno Haible  <bruno@clisp.org>
54322
54323         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54324         * modules/copy-file-tests (Files, Makefile.am): Update.
54325         * tests/test-copy-file.c (func_test_copy): Update.
54326
54327 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54328
54329         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54330
54331 2008-05-23  Bruno Haible  <bruno@clisp.org>
54332
54333         Improve support for ACLs on OSF/1.
54334         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54335         Remove fallback for unknown flavors of ACLs.
54336
54337 2008-05-22  Bruno Haible  <bruno@clisp.org>
54338
54339         Add support for ACLs on OSF/1.
54340         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54341         replacements.
54342         (acl_free_text): New macro fallback.
54343         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54344         acl_free.
54345         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54346         acl_free_text function. Require AC_C_INLINE.
54347
54348 2008-05-22  Bruno Haible  <bruno@clisp.org>
54349
54350         Make copy_acl work on MacOS X 10.5.
54351         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54352         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54353         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54354         If MODE_INSIDE_ACL, don't assume that every system has the same text
54355         representation for ACLs as FreeBSD.
54356         * lib/copy-acl.c (copy_acl): Add support for platforms with
54357         !MODE_INSIDE_ACL.
54358         * lib/file-has-acl.c (file_has_acl): Likewise.
54359         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54360         FreeBSD, MacOS X, or IRIX, respectively.
54361
54362 2008-05-22  Bruno Haible  <bruno@clisp.org>
54363
54364         * lib/acl.h: Don't include <sys/acl.h>.
54365         (GETACLCNT): Move fallback to lib/acl-internal.h.
54366         * lib/acl-internal.h: Include <sys/acl.h> here.
54367         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54368
54369 2008-05-22  Bruno Haible  <bruno@clisp.org>
54370
54371         Split off copy_acl function to separate file.
54372         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54373         * lib/acl.c (copy_acl): Moved function to separate file.
54374         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54375         * modules/acl (Files): Add lib/copy-acl.c.
54376         (Makefiles.am): Augment lib_SOURCES.
54377
54378 2008-05-22  Bruno Haible  <bruno@clisp.org>
54379
54380         * modules/copy-file-tests: New file.
54381         * tests/test-copy-file.sh: New file.
54382         * tests/test-copy-file.c: New file.
54383         * tests/test-copy-file-sameacls.c: New file.
54384
54385 2008-05-22  Eric Blake  <ebb9@byu.net>
54386
54387         Avoid gcc warning.
54388         * tests/test-memcmp.c (main): Pass NULL indirectly.
54389
54390 2008-05-21  Bruno Haible  <bruno@clisp.org>
54391
54392         Add reference doc about ACLs.
54393         * doc/acl-resources.txt: New file.
54394         * doc/acl-cygwin.txt: New file.
54395
54396 2008-05-21  Bruno Haible  <bruno@clisp.org>
54397
54398         Avoid one more warning from gcc.
54399         * lib/vasnprintf.c (IF_LINT): Update comments.
54400         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54401
54402 2008-05-21  Jim Meyering  <meyering@redhat.com>
54403
54404         avoid a warning from gcc
54405         * lib/vasnprintf.c (IF_LINT): Define.
54406         (scale10_round_decimal_long_double):
54407         Use it to avoid a "may be used uninitialized" warning.
54408         (scale10_round_decimal_double): Likewise.
54409
54410 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54411
54412         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54413         declared.
54414
54415 2008-05-20  Bruno Haible  <bruno@clisp.org>
54416
54417         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54418         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54419
54420 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54421
54422         * modules/memcmp-tests: New file.
54423         * tests/test-memcmp.c: New file.
54424
54425 2008-05-19  Bruno Haible  <bruno@clisp.org>
54426
54427         * modules/propername (Notice, configure.ac): Put quoted "..." into
54428         --keyword option.
54429         * lib/propername.h: Update comments accordingly.
54430         Reported by Eric Blake.
54431
54432 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54433
54434         * modules/getpass-gnu (Depends-on): Add fseeko.
54435
54436 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54437
54438         * modules/base64-tests: New file.
54439
54440 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54441
54442         * lib/base64.c (base64_decode_ctx): If a decode context structure
54443         was passed in use it to ignore newlines.  If a context structure
54444         was _not_ passed in, continue to treat newlines as garbage (this
54445         is the historical behavior).  Formerly base64_decode.
54446         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54447         takes a decode context structure.
54448         * lib/base64.h (base64_decode): Macro for four-argument calls.
54449         (base64_decode_alloc): Likewise.
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
54459 2008-05-19  Jim Meyering  <meyering@redhat.com>
54460
54461         avoid a warning from gcc
54462         * lib/trim.c (IF_LINT): Define.
54463         (trim2): Use it to avoid a "may be used uninitialized" warning.
54464
54465         Fix doc typo.
54466         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54467
54468 2008-05-19  Bruno Haible  <bruno@clisp.org>
54469
54470         * doc/glibc-functions/getpass.texi: Document limits of other
54471         implementations.
54472
54473 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54474             Bruno Haible <bruno@clisp.org>
54475
54476         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54477
54478 2008-05-18  Bruno Haible  <bruno@clisp.org>
54479
54480         * modules/propername: New file, from GNU gettext.
54481         * lib/propername.h: New file, from GNU gettext.
54482         * lib/propername.c: New file, from GNU gettext.
54483         * MODULES.html.sh (Internationalization functions): Add propername.
54484
54485 2008-05-16  Jim Meyering  <meyering@redhat.com>
54486             Bruno Haible  <bruno@clisp.org>
54487
54488         Avoid some warnings from "gcc -Wshadow".
54489         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54490
54491 2008-05-15  Eric Blake  <ebb9@byu.net>
54492
54493         Extend previous patch to cygwin 1.7.0.
54494         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54495         fast implementation in cygwin >= 1.7.0.
54496         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54497         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54498
54499 2008-05-15  Bruno Haible  <bruno@clisp.org>
54500
54501         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54502         implementation in glibc >= 2.9.
54503         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54504         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54505
54506 2008-05-15  Bruno Haible  <bruno@clisp.org>
54507
54508         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54509         (Unicode string functions): Add unilbrk/*.
54510         Reported by Karl Berry.
54511
54512 2008-05-15  Eric Blake  <ebb9@byu.net>
54513
54514         Fix violation of <stdbool.h> replacement in regex.
54515         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54516         * lib/regexec.c (re_search_internal): Likewise.
54517         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54518
54519 2008-05-15  Jim Meyering  <meyering@redhat.com>
54520
54521         avoid distracting test output when git or cvs is not found
54522         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54523         * tests/test-vc-list-files-git.sh: Likewise.
54524
54525 2008-05-15  Eric Blake  <ebb9@byu.net>
54526
54527         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54528         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54529         glibc version.
54530         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54531         * doc/posix-functions/strstr.texi (strstr): Likewise.
54532         * lib/str-two-way.h (MAX): Sychronize with glibc.
54533
54534 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54535
54536         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54537         opr.ctx_type.
54538         (calc_first): Initialize constraint field.
54539         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54540         Fix grammar.
54541         (duplicate_node): Merge constraint field for all node types.
54542         (calc_eclosure_iter): Look at constraint field for all node types.
54543         * lib/regex_internal.c (create_cd_newstate): Don't look at
54544         opr.ctx_type.
54545
54546 2008-05-14  Bruno Haible  <bruno@clisp.org>
54547
54548         Help GCC to do better code generation.
54549         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54550         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54551         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54552         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54553         Declare with attribute 'malloc' if supported.
54554
54555 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54556
54557         use "echo STR|wc -c" rather than unportable "expr length STR"
54558         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54559         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54560
54561 2008-05-14  Jim Meyering  <meyering@redhat.com>
54562
54563         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54564         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54565         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54566         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54567         via Collin Lasse.
54568
54569 2008-05-14  Eric Blake  <ebb9@byu.net>
54570
54571         Avoid quadratic growth in gl_LIBSOURCES.
54572         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54573         Suggested by Bruno Haible.
54574
54575         Test xmemdup0.
54576         * modules/xmemdup0-tests: New file.
54577         * tests/test-xmemdup0.c: Likewise.
54578
54579 2008-05-13  Eric Blake  <ebb9@byu.net>
54580
54581         Split xmemdup0 into its own module.
54582         * modules/xmemdup0: New file.
54583         * lib/xmemdup0.h: Likewise.
54584         * lib/xmemdup0.c: Likewise.
54585         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54586         * lib/xalloc.h (xmemdup0): Remove.
54587         * lib/xmalloc.c (xmemdup0): Likewise.
54588
54589 2008-05-13  Eric Blake  <ebb9@byu.net>
54590             Bruno Haible  <bruno@clisp.org>
54591
54592         Reduce number of forks required during autoconf.
54593         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54594         and gl_LIBSOURCES_DIR.
54595         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54596         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54597         m4_syscmd per file.
54598         <m4_foreach_w>: Move...
54599         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54600
54601 2008-05-13  Eric Blake  <ebb9@byu.net>
54602
54603         * gnulib-tool: Fix various comment typos.
54604
54605 2008-05-12  Bruno Haible  <bruno@clisp.org>
54606
54607         Tailor the linebreaking algorithm.
54608         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54609
54610 2008-05-12  Bruno Haible  <bruno@clisp.org>
54611
54612         Update to Unicode 5.0.0.
54613         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54614         LBP_JV, LBP_JT. Redistribute values.
54615         (unilbrk_table): Change size.
54616         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54617         Unicode TR#14 rev. 22.
54618         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54619         LBP_JV, LBP_JT. Redistribute values.
54620         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54621         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54622         Update.
54623         * lib/unilbrk/lbrkprop1.h: Regenerated.
54624         * lib/unilbrk/lbrkprop2.h: Regenerated.
54625         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54626         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54627         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54628         Likewise.
54629         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54630         Likewise.
54631         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54632         result.
54633         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54634         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54635         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54636         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54637         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54638         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54639
54640 2008-05-11  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54643
54644 2008-05-11  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54647         * modules/unilbrk/gen-lbrk: New file.
54648
54649 2008-05-11  Bruno Haible  <bruno@clisp.org>
54650
54651         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54652         * m4/sha512.m4 (gl_SHA512): Likewise.
54653
54654 2008-05-11  Jim Meyering  <meyering@redhat.com>
54655
54656         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54657         * modules/crypto/sha256: New file.
54658         * modules/crypto/sha512: Likewise.
54659         * lib/sha256.c: Likewise.
54660         * lib/sha256.h: Likewise.
54661         * lib/sha512.c: Likewise.
54662         * lib/sha512.h: Likewise.
54663         * lib/u64.h: Likewise.
54664         * m4/sha256.m4: Likewise.
54665         * m4/sha512.m4: Likewise.
54666         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54667
54668 2008-05-10  Bruno Haible  <bruno@clisp.org>
54669
54670         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54671         (Input/Output <stdio.h>): Add xprintf.
54672         (Signal handling <signal.h>): Add strsignal.
54673         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54674         (Core language properties): Add func.
54675         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54676         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54677         strings.
54678         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54679         (Input/output): New section.
54680         (File system functions): Add openat-die, stat-macros.
54681         (Networking functions): Add sockets.
54682         (Unicode string functions): Add unictype/*.
54683         (Support for building libraries and executables): Add gperf.
54684         (Support for building documentation): Add agpl-3.0.
54685         (Misc): Add nocrash.
54686
54687 2008-05-10  Bruno Haible  <bruno@clisp.org>
54688
54689         * modules/unictype/gen-ctype: New file.
54690
54691 2008-05-10  Jim Meyering  <meyering@redhat.com>
54692
54693         Make chdir-safer.c more efficient on a system with no symlinks.
54694         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54695         also if ELOOP is zero.  Suggested by Bruno Haible.
54696
54697         Make chdir-safer.c slightly safer.
54698         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54699         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54700
54701         Avoid compile failure on systems without ELOOP (like mingw).
54702         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54703         Reported by Bruno Haible.
54704
54705 2008-05-10  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54708         (is_utf8_encoding): Use a case-insensitive comparison.
54709         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54710         streq.
54711
54712 2008-05-10  Bruno Haible  <bruno@clisp.org>
54713
54714         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54715         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54716         * lib/unilbrk/ulc-common.h (iconv_string_length,
54717         iconv_string_keeping_offsets): Remove declarations.
54718         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54719         Don't include <iconv.h>, streq.h, xsize.h.
54720         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54721         conversion.
54722         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54723         <iconv.h>, streq.h, xsize.h.
54724         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54725         conversion.
54726         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54727         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54728         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54729         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54730
54731 2008-05-10  Bruno Haible  <bruno@clisp.org>
54732
54733         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54734         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54735
54736         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54737         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54738
54739         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54740         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54741
54742         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54743         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54744
54745         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54746         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54747
54748         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54749         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54750
54751         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54752         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54753
54754         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54755         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54756
54757 2008-05-10  Bruno Haible  <bruno@clisp.org>
54758
54759         Split up 'linebreak' module.
54760         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54761         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54762         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54763         modifications.
54764         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54765         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54766         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54767         lib/linebreak.c.
54768         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54769         lib/linebreak.c.
54770         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54771         lib/linebreak.c.
54772         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54773         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54774         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54775         lib/linebreak.c.
54776         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54777         lib/linebreak.c.
54778         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54779         lib/linebreak.c.
54780         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54781         lib/linebreak.c.
54782         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54783         lib/linebreak.c.
54784         * modules/unilbrk/base: New file.
54785         * modules/unilbrk/tables: New file.
54786         * modules/unilbrk/u8-possible-linebreaks: New file.
54787         * modules/unilbrk/u16-possible-linebreaks: New file.
54788         * modules/unilbrk/u32-possible-linebreaks: New file.
54789         * modules/unilbrk/ulc-common: New file.
54790         * modules/unilbrk/ulc-possible-linebreaks: New file.
54791         * modules/unilbrk/u8-width-linebreaks: New file.
54792         * modules/unilbrk/u16-width-linebreaks: New file.
54793         * modules/unilbrk/u32-width-linebreaks: New file.
54794         * modules/unilbrk/ulc-width-linebreaks: New file.
54795         * lib/linebreak.h: Remove file.
54796         * lib/linebreak.c: Remove file.
54797         * m4/linebreak.m4: Remove file.
54798         * modules/linebreak: Remove file.
54799         * NEWS: Mention the changes.
54800
54801 2008-05-09  Eric Blake  <ebb9@byu.net>
54802
54803         Add xmemdup0.
54804         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54805         implementation.
54806         * lib/xmalloc.c (xmemdup0): New C implementation.
54807
54808 2008-05-08  Bruno Haible  <bruno@clisp.org>
54809
54810         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54811
54812 2008-05-07  Eric Blake  <ebb9@byu.net>
54813
54814         Support cross-compilation of <wctype.h>.
54815         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54816         AC_CACHE_CHECK.
54817
54818 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54819
54820         * build-aux/vc-list-files: Add support for bzr.
54821
54822 2008-05-03  Jim Meyering  <meyering@redhat.com>
54823
54824         avoid failed assertion with tight malloc
54825         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54826
54827 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54828
54829         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54830         are needed from arpa/inet.h.
54831         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54832         Reported by Bruno Haible.
54833
54834 2008-05-02  Jim Meyering  <meyering@redhat.com>
54835
54836         avoid compilation error on FreeBSD 6
54837         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54838
54839 2008-05-01  Jim Meyering  <meyering@redhat.com>
54840
54841         useless-if-before-free: correct --help's exit status description
54842         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54843         for one or more matches, etc.  Reported by Bruno Haible.
54844
54845         vc-list-files: make the stand-alone gnulib test work
54846         * modules/vc-list-files-tests (configure.ac):
54847         Define and AC_SUBST abs_aux_dir.
54848         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54849         $(abs_top_srcdir) to each script and having each of them
54850         duplicate the work of setting PATH, set PATH here, using
54851         the new variable, abs_aux_dir instead.
54852         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54853         * tests/test-vc-list-files-git.sh: Likewise.
54854         Reported by Bruno Haible.
54855
54856 2008-05-01  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54859         reallocation. Rename 'done' to 'found_delimiter'.
54860
54861 2008-05-01  Jim Meyering  <meyering@redhat.com>
54862
54863         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54864         * build-aux/vc-list-files: Use `...`, not $(...).
54865
54866 2008-04-30  Jim Meyering  <meyering@redhat.com>
54867
54868         add tests for vc-list-files
54869         * modules/vc-list-files-tests: New module.
54870         * tests/test-vc-list-files-cvs.sh: New file.
54871         * tests/test-vc-list-files-git.sh: New file.
54872
54873         avoid a warning from gcc
54874         * lib/getndelim2.c (IF_LINT): Define.
54875         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54876
54877         vc-list-files: work properly with build-aux/cvsu, too
54878         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54879         to all cvs-based clauses.
54880
54881         vc-list-files: work properly in the CVS+awk case, too
54882         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54883
54884         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54885         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54886         take more than one file argument, so .  Add quotes, just in case $dir
54887         ever contains a shell meta-character.  Prompted by Soren Hansen in
54888         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54889
54890 2008-04-29  Eric Blake  <ebb9@byu.net>
54891
54892         Optimize getndelim2 to use block operations when possible.
54893         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54894         freadseek, and memchr2.
54895         * lib/getndelim2.c (getndelim2): Use them for block reads.
54896
54897 2008-04-29  Bruno Haible  <bruno@clisp.org>
54898
54899         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54900         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54901         * modules/inet_ntop (Depends-on): Add extensions.
54902         * modules/inet_pton (Depends-on): Likewise.
54903         Reported by Simon Josefsson.
54904
54905 2008-04-29  Jim Meyering  <meyering@redhat.com>
54906
54907         When the is more than one match in a block, match all of them.
54908         * build-aux/useless-if-before-free: Iterate through each block
54909         until there are no more matches.
54910
54911         Fix broken useless-if-before-free script.
54912         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54913         the expression to match cast of argument to free-like function.
54914
54915 2008-04-29  Eric Blake  <ebb9@byu.net>
54916
54917         Use new header.
54918         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54919
54920 2008-04-29  Jim Meyering  <meyering@redhat.com>
54921
54922         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54923         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54924         by gnulib to exist and to declare e.g., inet_ntop.
54925         Don't include "inet_ntop.h", now removed.
54926
54927         * m4/arpa_inet_h.m4: Remove trailing blanks.
54928
54929 2008-04-29  Eric Blake  <ebb9@byu.net>
54930
54931         Silence valgrind on safe reads beyond potential array bounds.
54932         * lib/rawmemchr.valgrind: New file.
54933         * lib/strchrnul.valgrind: Likewise.
54934         * modules/rawmemchr (Files): Distribute new file.
54935         * modules/strchrnul (Files): Likewise.
54936         Suggested by Bruno Haible.
54937
54938 2008-04-29  Bruno Haible  <bruno@clisp.org>
54939
54940         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54941         (inet_ntop, inet_pton): Change portability warning's wording.
54942         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54943         Invoke gl_CHECK_NEXT_HEADERS.
54944         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54945         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54946         set ARPA_INET_H.
54947         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54948         * modules/arpa_inet (Description): No longer only for systems that
54949         lack it.
54950         (Depends-on): Add include_next.
54951         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54952         HAVE_ARPA_INET_H.
54953
54954 2008-04-29  Jim Meyering  <meyering@redhat.com>
54955
54956         * modules/mkdir (License): Re-license as LGPLv2+.
54957
54958 2008-04-29  Bruno Haible  <bruno@clisp.org>
54959
54960         * modules/rawmemchr (Maintainer): Set to Eric.
54961         * modules/strchrnul (Maintainer): Likewise.
54962
54963 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54964
54965         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54966         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54967
54968         * modules/arpa_inet (arpa/inet.h): Use them.
54969
54970 2008-04-28  Eric Blake  <ebb9@byu.net>
54971
54972         Test getndelim2.
54973         * modules/getndelim2-tests: New file.
54974         * tests/test-getndelim2.c: Likewise.
54975         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54976         stream.
54977         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54978
54979         * MODULES.html.sh: Document new module.
54980
54981 2008-04-20  Bruno Haible  <bruno@clisp.org>
54982
54983         * lib/c-stack.c (die): Use raise.
54984         * modules/c-stack (Depends-on): Add raise.
54985
54986 2008-04-28  Bruno Haible  <bruno@clisp.org>
54987
54988         Expect rpmatch to be declared.
54989         * lib/yesno.c (rpmatch): Remove declaration.
54990
54991         Declare rpmatch.
54992         * lib/stdlib.in.h (rpmatch): New declaration.
54993         * lib/rpmatch.c: Include <stdlib.h> first.
54994         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54995         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54997         HAVE_RPMATCH.
54998         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54999         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55000         (Include): Set to <stdlib.h>.
55001         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55002         HAVE_RPMATCH.
55003         * NEWS: Document the change.
55004
55005 2008-04-28  Bruno Haible  <bruno@clisp.org>
55006
55007         Change rpmatch to use nl_langinfo when appropriate.
55008         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55009         (N_): New macro.
55010         (localized_pattern): New function/macro.
55011         (try): Remove match, nomatch arguments. Copy the pattern into safe
55012         memory before caching it.
55013         (rpmatch): Use localized_pattern. Add translator comments.
55014         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55015         Suggested by Eric Blake.
55016         * modules/rpmatch (Depends-on): Add stdbool.
55017
55018 2008-04-28  Eric Blake  <ebb9@byu.net>
55019
55020         Add rawmemchr module, matching glibc.
55021         * modules/string (Makefile.am): New indicator.
55022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55023         * lib/string.in.h (rawmemchr): Declare when appropriate.
55024         * modules/rawmemchr: New file.
55025         * m4/rawmemchr.m4: Likewise.
55026         * lib/rawmemchr.c: Likewise.
55027         * modules/rawmemchr-tests: Likewise.
55028         * tests/test-rawmemchr.c: Likewise.
55029         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55030         module.
55031         * modules/strchrnul (Depends-on): Add rawmemchr.
55032         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55033
55034         Whitespace cleanup.
55035         * tests/test-strchrnul.c: Reindent.
55036         * lib/strchrnul.c: Likewise.
55037
55038         Optimize and test strchrnul.
55039         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55040         * modules/strchrnul-tests: New file.
55041         * tests/test-strchrnul.c: Likewise.
55042
55043         Remove intprops dependency.
55044         * modules/memchr (Depends-on): Remove intprops.
55045         * modules/memrchr (Depends-on): Likewise.
55046         * modules/memchr2 (Depends-on): Likewise.
55047         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55048         * lib/memrchr.c (__memrchr): Likewise.
55049         * lib/memrchr2.c (memchr2): Likewise.
55050         Reported by Simon Josefsson.
55051
55052 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55053
55054         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55055         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55056
55057 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55058
55059         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55060
55061         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55062
55063         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55064
55065         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55066         declarations.
55067         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55068
55069         * m4/inet_pton.m4: Don't check for header files.
55070
55071         * m4/inet_ntop.m4: Don't check for header files.
55072
55073 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55074
55075         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55076         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55077         trigger for cygwin).
55078         Reported by Bruno Haible  <bruno@clisp.org>.
55079
55080 2008-04-28  Bruno Haible  <bruno@clisp.org>
55081
55082         * doc/posix-functions/strdup.texi: Mention mingw problem.
55083
55084 2008-04-27  Bruno Haible  <bruno@clisp.org>
55085
55086         * modules/stat-time-tests (Depends-on): Add sleep.
55087         * tests/test-stat-time.c (force_unlink): New function.
55088         (cleanup): Use it.
55089         (test_mtime): Remove the ctime related tests.
55090         (test_ctime): New function, containing the ctime related tests.
55091         (main): Call test_ctime, except on native Windows platforms.
55092
55093 2008-04-27  Bruno Haible  <bruno@clisp.org>
55094
55095         * lib/rpmatch.c (rpmatch): Add some comments.
55096         Reported by James Youngman <jay@gnu.org>.
55097
55098 2008-04-27  Bruno Haible  <bruno@clisp.org>
55099
55100         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55101         quiet NaNs.
55102
55103 2008-04-27  Bruno Haible  <bruno@clisp.org>
55104
55105         Make test-yesno.sh work on mingw.
55106         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55107         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55108         (main): Set stdin to binary mode.
55109         * modules/yesno-tests (Depends-on): Add binary-io.
55110
55111 2008-04-27  Bruno Haible  <bruno@clisp.org>
55112
55113         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55114         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55115         argument that lie outside the IEEE 854 domain.
55116         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55117         (gl_ISFINITE): Use it.
55118         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55119
55120 2008-04-27  Bruno Haible  <bruno@clisp.org>
55121
55122         Allow local renaming in config.h.
55123         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55124
55125 2008-04-27  Bruno Haible  <bruno@clisp.org>
55126
55127         * lib/memchr.c (__memchr): Change type of 'i'.
55128         * lib/memchr2.c (memchr2): Likewise.
55129
55130 2008-04-26  Eric Blake  <ebb9@byu.net>
55131         and Bruno Haible  <bruno@clisp.org>
55132
55133         Optimize and test memrchr.
55134         * modules/memrchr (Depends-on): Add intprops.
55135         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55136         * modules/memrchr-tests: New file.
55137         * tests/test-memrchr.c: New file.
55138
55139 2008-04-26  Bruno Haible  <bruno@clisp.org>
55140
55141         Add tentative support for DragonFly BSD.
55142         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55143         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55144         fp.
55145         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55146         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55147         * lib/fpurge.c (fpurge): Likewise.
55148         * lib/freadable.c (freaadable): Likewise.
55149         * lib/freadahead.c (freadahead): Likewise.
55150         * lib/freading.c (freading): Likewise.
55151         * lib/freadptr.c (freadptr): Likewise.
55152         * lib/freadseek.c (freadptrinc): Likewise.
55153         * lib/fseeko.c (fseeko): Likewise.
55154         * lib/fseterr.c (fseterr): Likewise.
55155         * lib/fwritable.c (fwritable): Likewise.
55156         * lib/fwriting.c (fwriting): Likewise.
55157
55158 2008-04-26  Bruno Haible  <bruno@clisp.org>
55159
55160         * lib/stdio-impl.h: New file.
55161         * lib/fbufmode.c: Include stdio-impl.h.
55162         (fbufmode): Use fp_, remove redundant #defines.
55163         * lib/fflush.c: Include stdio-impl.h.
55164         (clear_ungetc_buffer): Remove redundant #defines.
55165         * lib/fpurge.c: Include stdio-impl.h.
55166         (fpurge): Remove redundant #defines.
55167         * lib/freadable.c: Include stdio-impl.h.
55168         (freadable): Remove redundant #defines.
55169         * lib/freadahead.c: Include stdio-impl.h.
55170         (freadahead): Remove redundant #defines.
55171         * lib/freading.c: Include stdio-impl.h.
55172         (freading): Remove redundant #defines.
55173         * lib/freadptr.c: Include stdio-impl.h.
55174         (freadptr): Remove redundant #defines.
55175         * lib/freadseek.c: Include stdio-impl.h.
55176         (freadptrinc): Remove redundant #defines.
55177         * lib/fseeko.c: Include stdio-impl.h.
55178         (rpl_fseeko): Remove redundant #defines.
55179         * lib/fseterr.c: Include stdio-impl.h.
55180         (fseterr): Remove redundant #defines.
55181         * lib/fwritable.c: Include stdio-impl.h.
55182         (fwritable: Remove redundant #defines.
55183         * lib/fwriting.c: Include stdio-impl.h.
55184         (fwriting): Remove redundant #defines.
55185         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55186         * modules/fflush (Files): Likewise.
55187         * modules/fpurge (Files): Likewise.
55188         * modules/freadable (Files): Likewise.
55189         * modules/freadahead (Files): Likewise.
55190         * modules/freading (Files): Likewise.
55191         * modules/freadptr (Files): Likewise.
55192         * modules/freadseek (Files): Likewise.
55193         * modules/fseeko (Files): Likewise.
55194         * modules/fseterr (Files): Likewise.
55195         * modules/fwritable (Files): Likewise.
55196         * modules/fwriting (Files): Likewise.
55197
55198 2008-04-26  Bruno Haible  <bruno@clisp.org>
55199
55200         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55201         restore_seek_optimization, update_fpos_cache): New functions, extracted
55202         from rpl_fflush.
55203         (rpl_fflush): Use them.
55204         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55205         (gl_REPLACE_FFLUSH): Use it.
55206
55207 2008-04-26  Bruno Haible  <bruno@clisp.org>
55208
55209         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55210         on Solaris.
55211         * tests/test-xstrtoimax.sh: Likewise.
55212         * tests/test-xstrtoumax.sh: Likewise.
55213         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55214
55215 2008-04-26  Bruno Haible  <bruno@clisp.org>
55216
55217         * modules/memchr-tests: New file.
55218         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55219
55220 2008-04-26  Eric Blake  <ebb9@byu.net>
55221             Bruno Haible  <bruno@clisp.org>
55222
55223         * lib/memchr.c: Include intprops.h.
55224         (__memchr): Optimize parallel detection of matching bytes. Rename local
55225         variables. Add explanatory comments.
55226
55227 2008-04-26  Bruno Haible  <bruno@clisp.org>
55228
55229         Fix module 'memchr', broken since 2000-10-28.
55230         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55231
55232 2008-04-26  Bruno Haible  <bruno@clisp.org>
55233
55234         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55235         comments.
55236
55237 2008-04-25  Eric Blake  <ebb9@byu.net>
55238
55239         Use native fstatat on cygwin 1.7.0.
55240         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55241         first.
55242
55243 2008-04-23  Eric Blake  <ebb9@byu.net>
55244
55245         Improve memchr2 performance.
55246         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55247         NUL bytes.
55248         * modules/memchr2 (Depends-on): Use intprops.h.
55249
55250 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55251
55252         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55253         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55254         <blp@cs.stanford.edu>.
55255
55256 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55257
55258         * lib/arpa_inet.in.h: New file.
55259
55260         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55261         (Makefile.am): Sed in substitute header file.
55262
55263         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55264         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55265
55266         * modules/inet_ntop (configure.ac): Use
55267         gl_ARPA_INET_MODULE_INDICATOR.
55268
55269         * modules/inet_pton (configure.ac): Use
55270         gl_ARPA_INET_MODULE_INDICATOR.
55271
55272 2008-04-22  Jim Meyering  <meyering@redhat.com>
55273
55274         * modules/verify (License): Re-license as LGPLv2+.
55275
55276 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55277
55278         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55279         parameter to void* as per POSIX standard (MinGW uses char*).
55280
55281 2008-04-21  Bruno Haible  <bruno@clisp.org>
55282
55283         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55284         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55285         Define to replacements if REPLACE_ISWCNTRL is 1.
55286         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55287         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55288         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55289         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55290         what it fixes.
55291         * doc/posix-functions/iswalpha.texi: Likewise.
55292         * doc/posix-functions/iswblank.texi: Likewise.
55293         * doc/posix-functions/iswcntrl.texi: Likewise.
55294         * doc/posix-functions/iswdigit.texi: Likewise.
55295         * doc/posix-functions/iswgraph.texi: Likewise.
55296         * doc/posix-functions/iswlower.texi: Likewise.
55297         * doc/posix-functions/iswprint.texi: Likewise.
55298         * doc/posix-functions/iswpunct.texi: Likewise.
55299         * doc/posix-functions/iswspace.texi: Likewise.
55300         * doc/posix-functions/iswupper.texi: Likewise.
55301         * doc/posix-functions/iswxdigit.texi: Likewise.
55302         Reported by Alain Guibert.
55303
55304 2008-04-21  Bruno Haible  <bruno@clisp.org>
55305
55306         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55307         Patch by Alain Guibert.
55308
55309 2008-04-21  Bruno Haible  <bruno@clisp.org>
55310
55311         Fix test failures on mingw.
55312         * tests/test-xstrtol.c (print_no_progname): New function.
55313         (main): Install it in error_print_progname hook.
55314         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55315         * tests/test-xstrtoimax.sh: Likewise.
55316         * tests/test-xstrtoumax.sh: Likewise.
55317
55318 2008-04-21  Bruno Haible  <bruno@clisp.org>
55319
55320         Fix test failure on mingw.
55321         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55322
55323 2008-04-21  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55326         Actually assign a value.
55327
55328 2008-04-20  Bruno Haible  <bruno@clisp.org>
55329
55330         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55331         take 2.
55332         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55333         'canonicalize-lgpl' module is also used.
55334         * lib/canonicalize-lgpl.c: Undo last change.
55335         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55336
55337 2008-04-20  Bruno Haible  <bruno@clisp.org>
55338
55339         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55340         config.h. Provide _mkdir based fallback for mingw.
55341         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55342         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55343         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55344         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55345         rather than defining mkdir in config.h.
55346         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55347         (gl_SYS_STAT_H_DEFAULTS): New macro.
55348         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55349         HAVE_IO_H any more.
55350         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55351         HAVE_DECL_MKDIR and HAVE_IO_H.
55352
55353 2008-04-20  Bruno Haible  <bruno@clisp.org>
55354
55355         * lib/isapipe.c: Port to native Windows platforms.
55356
55357 2008-04-20  Bruno Haible  <bruno@clisp.org>
55358
55359         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55360
55361 2008-04-21  Eric Blake  <ebb9@byu.net>
55362
55363         Work around preprocessors that don't handle UINTMAX_MAX.
55364         * lib/memchr2.c (memchr2): Avoid embedded #if.
55365         Reported by Alain Guibert, fix suggested by Bruno Haible.
55366
55367 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55368
55369         * doc/posix-functions/strftime.texi (strftime): Explain better
55370         Windows incompatibility.  Suggested by Micah Cowan
55371         <micah@cowan.name>.
55372
55373 2008-04-20  Bruno Haible  <bruno@clisp.org>
55374
55375         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55376         unistr/u8-mblen.
55377
55378 2008-04-20  Bruno Haible  <bruno@clisp.org>
55379
55380         Fix test failure on platforms with non-GNU iconv.
55381         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55382         (U_TO_U8): Use it, rather than u16_to_u8.
55383         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55384         units at the end of the input string.
55385         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55386
55387 2008-04-20  Bruno Haible  <bruno@clisp.org>
55388
55389         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55390         when the resulting length is 0.
55391         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55392
55393 2008-04-20  Bruno Haible  <bruno@clisp.org>
55394
55395         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55396         works.
55397         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55398
55399 2008-04-20  Bruno Haible  <bruno@clisp.org>
55400
55401         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55402         * modules/tsearch-tests (configure.ac): Test for initstate function.
55403
55404 2008-04-20  Bruno Haible  <bruno@clisp.org>
55405
55406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55407         for nlink_t if missing.
55408         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55409
55410 2008-04-19  Bruno Haible  <bruno@clisp.org>
55411
55412         Work around snprintf bug on Linux libc5.
55413         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55414         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55415         gl_SNPRINTF_SIZE1.
55416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55417         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55418         that test failed.
55419         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55420         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55421         * modules/snprintf (Files): Add m4/printf.m4.
55422         * modules/vsnprintf (Files): Likewise.
55423         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55424         * doc/posix-functions/vsnprintf.texi: Likewise.
55425
55426 2008-04-19  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55429         from 0.0058 to less than 10^-7.
55430
55431 2008-04-19  Bruno Haible  <bruno@clisp.org>
55432
55433         Fix rounding when a precision is given.
55434         * lib/vasnprintf.c (is_borderline): New function.
55435         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55436         9...9x.
55437         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55438         %e, %g.
55439         * tests/test-vasprintf-posix.c (test_function): Likewise.
55440         * tests/test-snprintf-posix.h (test_function): Likewise.
55441         * tests/test-sprintf-posix.h (test_function): Likewise.
55442         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55443         * tests/test-printf-posix.h (test_function): Likewise.
55444         * tests/test-printf-posix.output: Update.
55445         Reported by John Darrington <john@darrington.wattle.id.au> via
55446         Ben Pfaff <blp@cs.stanford.edu>.
55447
55448 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55449
55450         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55451         Suggested by Bruno Haible <bruno@clisp.org>.
55452
55453 2008-04-17  Bruno Haible  <bruno@clisp.org>
55454
55455         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55456         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55457         implementation.
55458         Patch by Bruce Merry <bmerry@gmail.com>.
55459
55460 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55461
55462         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55463         doesn't work under Windows.
55464
55465 2008-04-16  Bruno Haible  <bruno@clisp.org>
55466
55467         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55468         New macros.
55469         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55470         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55471         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55472         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55473         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55474         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55475         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55476         macros.
55477         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55478         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55479         Northern Sotho, Uighur.
55480
55481 2008-04-16  Bruno Haible  <bruno@clisp.org>
55482
55483         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55484         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55485         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55486         Reported by Daniel Bergström <daniel@octocode.com>.
55487
55488 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55489             Bruno Haible  <bruno@clisp.org>
55490
55491         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55492         function.
55493         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55494         New functions, mostly extracted from gl_locale_name_default.
55495         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55496
55497 2008-04-16  Eric Blake  <ebb9@byu.net>
55498
55499         Adjust strtod detection to catch glibc 2.7 bug.
55500         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55501         Reported by John Gatewood Ham.
55502
55503 2008-04-16  Bruno Haible  <bruno@clisp.org>
55504
55505         Add tentative support for Linux libc5.
55506         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55507         * lib/fpurge.c (fpurge): Likewise.
55508         * lib/freadable.c (freadable): Likewise.
55509         * lib/freadahead.c (freadahead): Likewise.
55510         * lib/freading.c (freading): Likewise.
55511         * lib/freadptr.c (freadptr): Likewise.
55512         * lib/freadseek.c (freadptrinc): Likewise.
55513         * lib/fseeko.c (rpl_fseeko): Likewise.
55514         * lib/fseterr.c (fseterr): Likewise.
55515         * lib/fwritable.c (fwritable): Likewise.
55516         * lib/fwriting.c (fwriting): Likewise.
55517         Reported by Alain Guibert <alguibert+bts@free.fr>.
55518
55519 2008-04-15  Bruno Haible  <bruno@clisp.org>
55520
55521         * modules/mathl (configure.ac): Define module indicator.
55522
55523 2008-04-15  Bruno Haible  <bruno@clisp.org>
55524
55525         * lib/logl.c (logl): Remove unused variables.
55526
55527 2008-04-15  Bruno Haible  <bruno@clisp.org>
55528
55529         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55530         fails.
55531
55532 2008-04-15  Bruno Haible  <bruno@clisp.org>
55533
55534         * lib/trim.c (trim2): Fix argument of isspace() macro.
55535
55536 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55537
55538         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55539         to 0.
55540         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55541
55542 2008-04-14  Bruno Haible  <bruno@clisp.org>
55543
55544         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55545         AC_LANG_PROGRAM argument.
55546         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55547         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55549         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55550         * m4/math_h.m4 (gl_MATH_H): Likewise.
55551         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55552         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55553         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55554         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55555         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55556         * m4/regex.m4 (gl_REGEX): Likewise.
55557         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55558         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55559         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55560         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55561         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55562         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55564         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55565
55566 2008-04-14  Jim Meyering  <meyering@redhat.com>
55567
55568         test-strtod: fix typos: s/abs/fabs/
55569         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55570
55571 2008-04-13  Bruno Haible  <bruno@clisp.org>
55572
55573         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55574         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55575         module is also used and while not building the reloc-wrapper.
55576
55577 2008-04-13  Bruno Haible  <bruno@clisp.org>
55578
55579         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55580
55581 2008-04-13  Bruno Haible  <bruno@clisp.org>
55582
55583         Fix AIX compilation failure introduced on 2008-04-02.
55584         * tests/test-frexp.c (exp): Undefine before redefining.
55585         * tests/test-frexpl.c (exp): Likewise.
55586
55587 2008-04-13  Bruno Haible  <bruno@clisp.org>
55588
55589         Work around a HP-UX stdio bug.
55590         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55591         * tests/test-ftello.c (main): Likewise.
55592         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55593         * doc/posix-functions/ftello.texi: Likewise.
55594
55595 2008-04-13  Bruno Haible  <bruno@clisp.org>
55596
55597         Make test-signbit pass on HP-UX/hppa.
55598         * tests/test-signbit.c (minus_zerol): New variable.
55599         (test_signbitl): Use it.
55600
55601 2008-04-13  Bruno Haible  <bruno@clisp.org>
55602
55603         Make truncl work on OSF/1 4.0.
55604         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55605         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55606         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55608         HAVE_DECL_TRUNCL.
55609         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55610         HAVE_DECL_TRUNCL.
55611         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55612
55613 2008-04-13  Bruno Haible  <bruno@clisp.org>
55614
55615         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55616
55617 2008-04-13  Bruno Haible  <bruno@clisp.org>
55618
55619         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55620         expression, so as to avoid HP-UX 11 cc compiler bug.
55621
55622 2008-04-13  Bruno Haible  <bruno@clisp.org>
55623
55624         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55625
55626 2008-04-13  Bruno Haible  <bruno@clisp.org>
55627
55628         * lib/git-merge-changelog.c: Remove empty declaration outside of
55629         functions.
55630
55631 2008-04-13  Bruno Haible  <bruno@clisp.org>
55632
55633         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55634
55635 2008-04-13  Bruno Haible  <bruno@clisp.org>
55636
55637         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55638         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55639         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55640         also if it exists but lacks definitions of the SHUT_* macros.
55641         * modules/sys_socket (Description): Update.
55642         Reported by Elbert Pol <e.pol@chello.nl>.
55643
55644 2008-04-13  Bruno Haible  <bruno@clisp.org>
55645
55646         * lib/localcharset.c (OS2): Don't redefine if already defined.
55647         Reported by Elbert Pol <e.pol@chello.nl>.
55648
55649 2008-04-13  Bruno Haible  <bruno@clisp.org>
55650
55651         * lib/binary-io.h [__EMX__]: Include <io.h>.
55652         Reported by Elbert Pol <e.pol@chello.nl>.
55653
55654 2008-04-12  Bruno Haible  <bruno@clisp.org>
55655
55656         * lib/fpucw.h: Enable the definitions also for x86_64.
55657         Needed for NetBSD/x86_64.
55658         Reported by Thomas Klausner <tk@giga.or.at>.
55659
55660 2008-04-12  Bruno Haible  <bruno@clisp.org>
55661
55662         * tests/test-strtod.c: Include isnand.h.
55663         (main): Use isnand instead of isnan.
55664         Reported by Jim Meyering.
55665
55666 2008-04-12  Bruno Haible  <bruno@clisp.org>
55667
55668         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55669         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55670
55671 2008-04-12  Jim Meyering  <meyering@redhat.com>
55672
55673         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55674
55675 2008-04-12  Bruno Haible  <bruno@clisp.org>
55676
55677         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55678         Reported by Elbert Pol <e.pol@chello.nl>.
55679
55680 2008-04-12  Eric Blake  <ebb9@byu.net>
55681
55682         Work around Solaris 10 math.h bug.
55683         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55684         (gl_MATH_H_DEFAULTS): Set up default.
55685         * modules/math (Makefile.am): Replace new indicators.
55686         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55687         * tests/test-math.c (main): Test this.
55688         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55689         * doc/posix-headers/math.texi (math.h): Mention bug.
55690         Reported by Nelson H. F. Beebe and Jim Meyering.
55691
55692 2008-04-11  Bruno Haible  <bruno@clisp.org>
55693
55694         Adapt to future versions of Apple GCC.
55695         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55696         Reported by Peter O'Gorman <peter@pogma.com>.
55697
55698 2008-04-11  Bruno Haible  <bruno@clisp.org>
55699
55700         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55701
55702 2008-04-11  Bruno Haible  <bruno@clisp.org>
55703
55704         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55705
55706         * modules/getaddrinfo-tests (Makefile.am): Define
55707         test_getaddrinfo_LDADD.
55708
55709 2008-04-11  Bruno Haible  <bruno@clisp.org>
55710
55711         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55712         (init): Fix syntax error.
55713         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55714         is declared.
55715
55716 2008-04-11  Bruno Haible  <bruno@clisp.org>
55717
55718         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55719         * modules/glob (Depends-on): Add stdbool.
55720
55721 2008-04-11  Bruno Haible  <bruno@clisp.org>
55722
55723         * lib/trim.c: Include <string.h>.
55724
55725 2008-04-11  Eric Blake  <ebb9@byu.net>
55726
55727         Avoid compile failure on OS/2.
55728         * lib/regex_internal.h (internal_function): Disable optimization
55729         on OS/2 (__EMX__), where it caused compiler error.
55730         Reported by Elbert Pol.
55731
55732 2008-04-11  Bruno Haible  <bruno@clisp.org>
55733
55734         Flush the standard error stream before aborting. Needed on mingw.
55735         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55736         * tests/test-array_list.c (ASSERT): Likewise.
55737         * tests/test-array_oset.c (ASSERT): Likewise.
55738         * tests/test-avltree_list.c (ASSERT): Likewise.
55739         * tests/test-avltree_oset.c (ASSERT): Likewise.
55740         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55741         * tests/test-binary-io.c (ASSERT): Likewise.
55742         * tests/test-byteswap.c (ASSERT): Likewise.
55743         * tests/test-c-ctype.c (ASSERT): Likewise.
55744         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55745         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55746         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55747         * tests/test-c-strstr.c (ASSERT): Likewise.
55748         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55749         * tests/test-canonicalize.c (ASSERT): Likewise.
55750         * tests/test-carray_list.c (ASSERT): Likewise.
55751         * tests/test-ceilf1.c (ASSERT): Likewise.
55752         * tests/test-ceilf2.c (ASSERT): Likewise.
55753         * tests/test-ceill.c (ASSERT): Likewise.
55754         * tests/test-count-one-bits.c (ASSERT): Likewise.
55755         * tests/test-fbufmode.c (ASSERT): Likewise.
55756         * tests/test-fflush2.c (ASSERT): Likewise.
55757         * tests/test-floorf1.c (ASSERT): Likewise.
55758         * tests/test-floorf2.c (ASSERT): Likewise.
55759         * tests/test-floorl.c (ASSERT): Likewise.
55760         * tests/test-fopen.c (ASSERT): Likewise.
55761         * tests/test-fpending.c (ASSERT): Likewise.
55762         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55763         * tests/test-fpurge.c (ASSERT): Likewise.
55764         * tests/test-freadable.c (ASSERT): Likewise.
55765         * tests/test-freadahead.c (ASSERT): Likewise.
55766         * tests/test-freading.c (ASSERT): Likewise.
55767         * tests/test-freadptr.c (ASSERT): Likewise.
55768         * tests/test-freadptr2.c (ASSERT): Likewise.
55769         * tests/test-freadseek.c (ASSERT): Likewise.
55770         * tests/test-freopen.c (ASSERT): Likewise.
55771         * tests/test-frexp.c (ASSERT): Likewise.
55772         * tests/test-frexpl.c (ASSERT): Likewise.
55773         * tests/test-fseek.c (ASSERT): Likewise.
55774         * tests/test-fseeko.c (ASSERT): Likewise.
55775         * tests/test-fstrcmp.c (ASSERT): Likewise.
55776         * tests/test-ftell.c (ASSERT): Likewise.
55777         * tests/test-ftello.c (ASSERT): Likewise.
55778         * tests/test-func.c (ASSERT): Likewise.
55779         * tests/test-fwritable.c (ASSERT): Likewise.
55780         * tests/test-fwriting.c (ASSERT): Likewise.
55781         * tests/test-getdelim.c (ASSERT): Likewise.
55782         * tests/test-getline.c (ASSERT): Likewise.
55783         * tests/test-i-ring.c (ASSERT): Likewise.
55784         * tests/test-iconv-utf.c (ASSERT): Likewise.
55785         * tests/test-iconv.c (ASSERT): Likewise.
55786         * tests/test-isfinite.c (ASSERT): Likewise.
55787         * tests/test-isnand.c (ASSERT): Likewise.
55788         * tests/test-isnanf.c (ASSERT): Likewise.
55789         * tests/test-isnanl.h (ASSERT): Likewise.
55790         * tests/test-ldexpl.c (ASSERT): Likewise.
55791         * tests/test-linked_list.c (ASSERT): Likewise.
55792         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55793         * tests/test-localename.c (ASSERT): Likewise.
55794         * tests/test-lseek.c (ASSERT): Likewise.
55795         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55796         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55797         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55798         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55799         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55800         * tests/test-mbschr.c (ASSERT): Likewise.
55801         * tests/test-mbscspn.c (ASSERT): Likewise.
55802         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55803         * tests/test-mbspbrk.c (ASSERT): Likewise.
55804         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55805         * tests/test-mbsrchr.c (ASSERT): Likewise.
55806         * tests/test-mbsspn.c (ASSERT): Likewise.
55807         * tests/test-mbsstr1.c (ASSERT): Likewise.
55808         * tests/test-mbsstr2.c (ASSERT): Likewise.
55809         * tests/test-mbsstr3.c (ASSERT): Likewise.
55810         * tests/test-memchr2.c (ASSERT): Likewise.
55811         * tests/test-memmem.c (ASSERT): Likewise.
55812         * tests/test-open.c (ASSERT): Likewise.
55813         * tests/test-printf-frexp.c (ASSERT): Likewise.
55814         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55815         * tests/test-printf-posix.c (ASSERT): Likewise.
55816         * tests/test-quotearg.c (ASSERT): Likewise.
55817         * tests/test-rbtree_list.c (ASSERT): Likewise.
55818         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55819         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55820         * tests/test-round1.c (ASSERT): Likewise.
55821         * tests/test-roundf1.c (ASSERT): Likewise.
55822         * tests/test-roundl.c (ASSERT): Likewise.
55823         * tests/test-signbit.c (ASSERT): Likewise.
55824         * tests/test-sleep.c (ASSERT): Likewise.
55825         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55826         * tests/test-snprintf.c (ASSERT): Likewise.
55827         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55828         * tests/test-stat-time.c (ASSERT): Likewise.
55829         * tests/test-strcasestr.c (ASSERT): Likewise.
55830         * tests/test-strerror.c (ASSERT): Likewise.
55831         * tests/test-striconv.c (ASSERT): Likewise.
55832         * tests/test-striconveh.c (ASSERT): Likewise.
55833         * tests/test-striconveha.c (ASSERT): Likewise.
55834         * tests/test-strsignal.c (ASSERT): Likewise.
55835         * tests/test-strstr.c (ASSERT): Likewise.
55836         * tests/test-strtod.c (ASSERT): Likewise.
55837         * tests/test-trunc1.c (ASSERT): Likewise.
55838         * tests/test-trunc2.c (ASSERT): Likewise.
55839         * tests/test-truncf1.c (ASSERT): Likewise.
55840         * tests/test-truncf2.c (ASSERT): Likewise.
55841         * tests/test-truncl.c (ASSERT): Likewise.
55842         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55843         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55844         * tests/test-vasnprintf.c (ASSERT): Likewise.
55845         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55846         * tests/test-vasprintf.c (ASSERT): Likewise.
55847         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55848         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55849         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55850         * tests/test-vsnprintf.c (ASSERT): Likewise.
55851         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55852         * tests/test-wcwidth.c (ASSERT): Likewise.
55853         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55854         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55855         * tests/test-xvasprintf.c (ASSERT): Likewise.
55856         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55857         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55858         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55859         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55860         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55861         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55862         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55863         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55864         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55865         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55866         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55867         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55868         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55869         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55870         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55871         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55872         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55873         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55874         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55875         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55876         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55877         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55878         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55879         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55880         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55881         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55882         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55883         * tests/unictype/test-combining.c (ASSERT): Likewise.
55884         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55885         * tests/unictype/test-digit.c (ASSERT): Likewise.
55886         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55887         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55888         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55889         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55890         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55891         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55892         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55893         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55894         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55895         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55896         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55897         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55898         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55899         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55900         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55901         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55902         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55903         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55904         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55905         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55906         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55907         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55908         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55909         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55910         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55911         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55912         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55913         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55914         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55915         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55916         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55917         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55918         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55919         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55920         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55921         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55922         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55923         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55924         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55925         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55926         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55927         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55928         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55929         Reported by Eric Blake.
55930
55931 2008-04-11  Bruno Haible  <bruno@clisp.org>
55932
55933         * lib/wchar.in.h: Tweak comment.
55934
55935 2008-04-11  Bruno Haible  <bruno@clisp.org>
55936
55937         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55938         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55939         gl_COMMON.
55940         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55941
55942 2008-04-11  Bruno Haible  <bruno@clisp.org>
55943
55944         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55945
55946 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55947
55948         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55949         of attempting to use non-existing /dev/*random.  Based on patch
55950         from Adam Strzelecki <ono@java.pl> in
55951         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55952
55953 2008-04-08  Bruno Haible  <bruno@clisp.org>
55954
55955         Add tentative support for emx+gcc.
55956         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55957         * lib/fpurge.c (fpurge): Likewise.
55958         * lib/freadable.c (freadable): Likewise.
55959         * lib/freadahead.c (freadahead): Likewise.
55960         * lib/freading.c (freading): Likewise.
55961         * lib/freadptr.c (freadptr): Likewise.
55962         * lib/freadseek.c (freadptrinc): Likewise.
55963         * lib/fseeko.c (rpl_fseeko): Likewise.
55964         * lib/fseterr.c (fseterr): Likewise.
55965         * lib/fwritable.c (fwritable): Likewise.
55966         * lib/fwriting.c (fwriting): Likewise.
55967         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55968
55969 2008-04-09  Eric Blake  <ebb9@byu.net>
55970
55971         Avoid some autoconf warnings.
55972         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55973         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55974         * m4/afs.m4 (gl_AFS): Likewise.
55975         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55976         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55978         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55979         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55980         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55981         (AC_CHECK_DECLS_ONCE): Likewise.
55982         Rename file...
55983         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55984         gnulib-tool requires autoconf 2.59 or better.
55985         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55986
55987 2008-04-08  Eric Blake  <ebb9@byu.net>
55988
55989         Use 'git describe --match' if present (added in git 1.5.5).
55990         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55991         if possible.
55992
55993 2008-04-08  Bruno Haible  <bruno@clisp.org>
55994
55995         Add tentative support for OpenServer.
55996         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55997         _ptr, _cnt.
55998         * lib/fpurge.c (fpurge): Likewise.
55999         * lib/freadable.c (freadable): Likewise.
56000         * lib/freadahead.c (freadahead): Likewise.
56001         * lib/freading.c (freading): Likewise.
56002         * lib/freadptr.c (freadptr): Likewise.
56003         * lib/freadseek.c (freadptrinc): Likewise.
56004         * lib/fseeko.c (rpl_fseeko): Likewise.
56005         * lib/fseterr.c (fseterr): Likewise.
56006         * lib/fwritable.c (fwritable): Likewise.
56007         * lib/fwriting.c (fwriting): Likewise.
56008         Reported by Roger Cornelius <rac@tenzing.org> and
56009         Brian K. White <brian@aljex.com>.
56010
56011 2008-04-06  Jim Meyering  <meyering@redhat.com>
56012
56013         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56014
56015 2008-04-06  Bruno Haible  <bruno@clisp.org>
56016
56017         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56018         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56019         * tests/test-printf-posix.sh: Likewise.
56020         * tests/test-vfprintf-posix.sh: Likewise.
56021         * tests/test-vprintf-posix.sh: Likewise.
56022         * tests/test-xprintf-posix.sh: Likewise.
56023
56024 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56025
56026         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56027         hide error from 'ls', needed on OS/2.
56028         Report by Elbert Pol <elbert.pol@gmail.com>.
56029
56030 2008-04-04  Eric Blake  <ebb9@byu.net>
56031
56032         Make test-fseeko.c failures meaningful.
56033         * tests/test-fseeko.c: Print line number on failure.
56034         * tests/test-fseek.c: Likewise.
56035         Reported by Nelson H. F. Beebe.
56036
56037         Improve strtod bug detection check.
56038         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56039         required for Solaris 10.
56040         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56041
56042 2008-04-04  Bruno Haible  <bruno@clisp.org>
56043
56044         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56045         by m4/setenv.m4.
56046
56047 2008-04-03  Eric Blake  <ebb9@byu.net>
56048
56049         Ensure sane .version contents.
56050         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56051         version string.
56052         * build-aux/git-version-gen: Improve documentation.
56053
56054         Make GNU make output nicer.
56055         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56056         MAKECMDGOALS to enforce message for all command line targets.  Set
56057         srcdir for use in maint.mk.
56058
56059         Another maintainer tweak.
56060         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56061         a target that regenerates version.
56062
56063 2008-04-03  Jim Meyering  <meyering@redhat.com>
56064
56065         vc-list-files: don't cause coreutils "make po-check" failure
56066         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56067
56068 2008-04-03  Eric Blake  <ebb9@byu.net>
56069
56070         Allow VPATH usage of vc-list-files.
56071         * build-aux/vc-list-files (scriptversion): Add timestamp.
56072         (options): Add --help, --version, -C.
56073         (CVS): Support installed cvsu.
56074
56075 2008-04-02  Bruno Haible  <bruno@clisp.org>
56076
56077         Avoid some "statement with no effect" warnings from gcc.
56078         * tests/test-wctype.c (main): Explicitly ignore unused values.
56079         Reported by Jim Meyering.
56080
56081 2008-04-02  Jim Meyering  <meyering@redhat.com>
56082
56083         Avoid some warnings from "gcc -Wshadow".
56084         * tests/test-frexp.c (exp): Define to a different identifier.
56085         * tests/test-frexpl.c (exp): Likewise.
56086
56087 2008-04-03  Jim Meyering  <meyering@redhat.com>
56088
56089         bootstrap: remove dangling *.[ch] symlinks from lib
56090         * build-aux/bootstrap [dangling symlink removal]: Move find's
56091         -depth option to precede all others, to avoid a warning.
56092         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56093
56094 2008-04-02  Bruno Haible  <bruno@clisp.org>
56095
56096         Avoid some warnings from "gcc -Wshadow".
56097         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56098         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56099         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56100         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56101         Reported by Jim Meyering.
56102
56103 2008-04-01  Bruno Haible  <bruno@clisp.org>
56104
56105         Fix test to work on IRIX 6.5 with cc.
56106         * tests/test-math.c (numeric_equal): New function.
56107         (main): Use it.
56108
56109 2008-04-01  Bruno Haible  <bruno@clisp.org>
56110
56111         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56112
56113 2008-04-01  Bruno Haible  <bruno@clisp.org>
56114
56115         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56116         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56117         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56118         (Depends-on): Remove math.
56119
56120         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56121         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56122         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56123         (Depends-on): Remove math.
56124
56125         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56126         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56127         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56128         (Depends-on): Remove math.
56129         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56130         (Depends-on): Remove math.
56131
56132         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56133         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56134         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56135         (Depends-on): Remove math.
56136         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56137         (Depends-on): Remove math.
56138
56139         * tests/test-round1.c: Include nan.h.
56140         (main): Use NaNd instead of NAN.
56141         * modules/round-tests (Files): Add tests/nan.h.
56142
56143         * tests/test-trunc1.c: Include nan.h.
56144         (main): Use NaNd instead of NAN.
56145         * modules/trunc-tests (Files): Add tests/nan.h.
56146
56147         * tests/test-roundf1.c: Include nan.h.
56148         (main): Use NaNf instead of NAN.
56149         * modules/roundf-tests (Files): Add tests/nan.h.
56150
56151         * tests/test-truncf1.c: Include nan.h.
56152         (main): Use NaNf instead of NAN.
56153         * modules/truncf-tests (Files): Add tests/nan.h.
56154
56155         * tests/test-ceilf1.c: Include nan.h.
56156         (main): Use NaNf instead of NAN.
56157         * modules/ceilf-tests (Files): Add tests/nan.h.
56158
56159         * tests/test-floorf1.c: Include nan.h.
56160         (main): Use NaNf instead of NAN.
56161         * modules/floorf-tests (Files): Add tests/nan.h.
56162
56163         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56164         (main): Use NaNf instead of NAN.
56165         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56166
56167         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56168         (main): Use NaNd instead of NAN.
56169         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56170
56171         * tests/test-frexp.c: Include nan.h.
56172         (main): Use NaNd instead of NAN.
56173         * modules/frexp-tests (Files): Add tests/nan.h.
56174
56175         * lib/isnan.c: Don't include <math.h>.
56176         (FUNC): Don't use NAN macro.
56177         * modules/isnand-nolibm (Depends-on): Remove math.
56178         * modules/isnanf-nolibm (Depends-on): Remove math.
56179         * modules/isnanl (Depends-on): Remove math.
56180         * modules/isnanl-nolibm (Depends-on): Remove math.
56181
56182         * tests/nan.h: New file.
56183
56184 2008-04-01  Eric Blake  <ebb9@byu.net>
56185
56186         Fix typos.
56187         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56188         values to be the right type.
56189
56190         For now, cater to gnulib strtod inaccuracies.
56191         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56192         fractional results.  While not as nice from a QoI perspective, it
56193         is a quicker patch than correctly implementing decimal to binary
56194         rounding.
56195
56196 2008-03-31  Eric Blake  <ebb9@byu.net>
56197
56198         Guarantee a definition of NAN.
56199         * lib/math.in.h (NAN): Define if missing.
56200         * tests/test-math.c (main): Test it.
56201         * doc/posix-headers/math.texi (math.h): Document this.
56202         * lib/isnan.c (rpl_isnand): Use it.
56203         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56204         * tests/test-floorf1.c (NaN): Likewise.
56205         * tests/test-frexp.c (NaN): Likewise.
56206         * tests/test-isnand.c (NaN): Likewise.
56207         * tests/test-isnanf.c (NaN): Likewise.
56208         * tests/test-round1.c (NaN): Likewise.
56209         * tests/test-roundf1.c (NaN): Likewise.
56210         * tests/test-snprintf-posix.h (NaN): Likewise.
56211         * tests/test-sprintf-posix.h (NaN): Likewise.
56212         * tests/test-trunc1.c (NaN): Likewise.
56213         * tests/test-truncf1.c (NaN): Likewise.
56214         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56215         * tests/test-vasprintf-posix.c (NaN): Likewise.
56216         * modules/isnand-nolibm (Depends-on): Add math.
56217         * modules/isnanf-nolibm (Depends-on): Likewise.
56218         * modules/isnanl (Depends-on): Likewise.
56219         * modules/isnanl-nolibm (Depends-on): Likewise.
56220         * modules/snprintf-posix-tests (Depends-on): Likewise.
56221         * modules/sprintf-posix-tests (Depends-on): Likewise.
56222         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56223         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56224         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56225         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56226
56227 2008-03-31  Bruno Haible  <bruno@clisp.org>
56228
56229         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56230         * doc/posix-functions/strtod.texi: Likewise.
56231
56232 2008-03-31  Bruno Haible  <bruno@clisp.org>
56233
56234         * tests/test-strtod.c (main): Don't use C99 syntax.
56235
56236 2008-03-31  Bruno Haible  <bruno@clisp.org>
56237
56238         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56239         Reported by Eric Blake.
56240
56241 2008-03-31  Jim Meyering  <meyering@redhat.com>
56242
56243         Don't compare actual signbit return values.
56244         * tests/test-strtod.c (main): Rather, compare only their
56245         zero/non-zero nature.
56246
56247 2008-03-31  Eric Blake  <ebb9@byu.net>
56248
56249         More strtod documentation.
56250         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56251         failures as distinct bugs.
56252
56253 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56254
56255         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56256         Problem reported by Erik Benada in
56257         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56258
56259 2008-03-30  Bruno Haible  <bruno@clisp.org>
56260
56261         * tests/test-strtod.c: Add comments about which assertion fails on which
56262         platform.
56263         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56264
56265 2008-03-30  Eric Blake  <ebb9@byu.net>
56266
56267         Test signbit behavior on zeros.
56268         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56269         (test_signbitd, test_signbitl): Likewise.
56270
56271         More strtod touchups.
56272         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56273         sign of negative underflow, for now.  Use .5, not .1.
56274         * doc/posix-functions/strtod.texi (strtod): Mention these
56275         limitations.
56276         Reported by Jim Meyering.
56277
56278 2008-03-30  Bruno Haible  <bruno@clisp.org>
56279
56280         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56281         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56282
56283 2008-03-30  Bruno Haible  <bruno@clisp.org>
56284
56285         Avoid failure when attempting to return empty iconv results on some
56286         platforms.
56287         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56288         allocation, don't report ENOMEM when the resulting string is empty.
56289
56290 2008-03-30  Bruno Haible  <bruno@clisp.org>
56291
56292         Fix buffer overrun.
56293         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56294         Don't consider the width for tmp_length. Check count against tmp_length
56295         before doing the padding. Ensure enough allocation during padding.
56296
56297 2008-03-30  Eric Blake  <ebb9@byu.net>
56298
56299         strtod touchups.
56300         * lib/strtod.c (strtod): Avoid compiler warnings.
56301         Reported by Jim Meyering.
56302
56303 2008-03-30  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56306         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56307         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56308         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56309         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56310         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56311         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56312         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56313
56314         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56315         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56316         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56317         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56318         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56319         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56320         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56321         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56322
56323         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56324         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56325         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56326         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56327         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56328         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56329         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56330         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56331
56332         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56333         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56334
56335         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56336         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56337
56338         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56339         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56340
56341         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56342         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56343         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56344
56345         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56346         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56347         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56348
56349         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56350         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56351         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56352
56353         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56354         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56355         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56356
56357         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56358         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56360         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56361         (Depends-on): Add EOVERFLOW.
56362         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56363         (Depends-on): Add EOVERFLOW.
56364         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56365         (Depends-on): Add EOVERFLOW.
56366         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56367         (Depends-on): Add EOVERFLOW.
56368         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56369         (Depends-on): Add EOVERFLOW.
56370         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56371         (Depends-on): Add EOVERFLOW.
56372         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56373         (Depends-on): Add EOVERFLOW.
56374         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56375         (Depends-on): Add EOVERFLOW.
56376
56377         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56378         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56379         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56380
56381         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56382         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56383         * modules/snprintf (Depends-on): Add EOVERFLOW.
56384
56385         * lib/poll.c (EOVERFLOW): Remove fallback.
56386         * modules/poll (Depends-on): Add EOVERFLOW.
56387
56388         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56389         * modules/getugroups (Depends-on): Add EOVERFLOW.
56390
56391         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56392         * modules/getdelim (Depends-on): Add EOVERFLOW.
56393
56394         * lib/ftell.c (EOVERFLOW): Remove fallback.
56395         * modules/ftell (Depends-on): Add EOVERFLOW.
56396
56397         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56398         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56399         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56400
56401         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56402
56403         * modules/EOVERFLOW-tests: New file.
56404         * tests/test-EOVERFLOW.c: New file.
56405
56406         * modules/EOVERFLOW: New file.
56407         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56408
56409 2008-03-30  Bruno Haible  <bruno@clisp.org>
56410
56411         Fix bug introduced on 2007-06-10.
56412         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56413         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56414
56415 2008-03-30  Bruno Haible  <bruno@clisp.org>
56416
56417         Improve freadseek's efficiency after ungetc.
56418         * lib/freadseek.c: Include freadahead.h.
56419         (freadptrinc): New function, extracted from freadseek.
56420         (freadseek): Use it in a loop. Use freadahead to determine the number
56421         of loop iterations.
56422         * modules/freadseek (Depends-on): Add freadahead.
56423         (configure.ac): Require AC_C_INLINE.
56424
56425 2008-03-30  Bruno Haible  <bruno@clisp.org>
56426
56427         * lib/freadseek.c (freadseek): Don't ignore the return value of
56428         freadptr.
56429
56430 2008-03-29  Eric Blake  <ebb9@byu.net>
56431
56432         Add hex float support.
56433         * modules/strtod (Depends-on): Add c-ctype.
56434         (Link): Mention POW_LIB.
56435         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56436         whitespace between 'e' and exponent.
56437         * tests/test-strtod.c (main): Enable hex float tests.
56438         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56439         now provides.
56440
56441         Document various strtod bugs, with some fixes.
56442         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56443         "-0x", "inf", "nan", and hex constants.
56444         * doc/posix-functions/atof.texi (atof): Likewise.
56445         * modules/stdlib (Makefile.am): Support strtod.
56446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56447         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56448         detect additional strtod bugs.
56449         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56450         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56451         bool where appropriate.  Parse 'inf' and 'nan'.
56452         * tests/test-strtod.c: New file.
56453         * modules/strtod (Depends-on): Add stdbool, stdlib.
56454         (configure.ac): Turn on module indicator.
56455         * modules/strtod-tests: New module.
56456
56457 2008-03-29  Eric Blake  <ebb9@byu.net>
56458
56459         Fix ftell on mingw.
56460         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56461         * modules/ftell-tests (Depends-on): Add binary-io.
56462         * modules/ftello-tests (Depends-on): Likewise.
56463         * tests/test-ftell.c (main): Enhance test to cover behavior after
56464         ungetc.  Enforce binary mode.
56465         * tests/test-ftello.c (main): Likewise.
56466
56467         Pass test-freadseek on cygwin.
56468         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56469         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56470         ungetc buffer.
56471
56472         * tests/test-fflush2.c (main): Fix typo.
56473
56474 2008-03-29  Bruno Haible  <bruno@clisp.org>
56475
56476         * tests/test-fflush2.c (main): Temporarily disable the contents of
56477         this test.
56478         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56479         Reported by Eric Blake.
56480
56481 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56482
56483         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56484         (GC_SHA224_DIGEST_SIZE): Add.
56485
56486         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56487         (gc_hash_digest_length): Likewise.
56488         (gc_hash_buffer): Likewise.
56489
56490 2008-03-25  Bruno Haible  <bruno@clisp.org>
56491
56492         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56493         detail which gettext release to use.
56494         Reported by Simon Josefsson.
56495
56496 2008-03-26  Jim Meyering  <meyering@redhat.com>
56497
56498         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56499         * modules/gnumakefile (clean-GNUmakefile): Also, use
56500         test ... && ... || : syntax rather than if-then ... fi.
56501
56502         gnumakefile: Don't double-quote-expand $(VPATH) value.
56503         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56504
56505 2008-03-24  Eric Blake  <ebb9@byu.net>
56506
56507         Alter GNUmakefile to install into top directory.
56508         * modules/maintainer-makefile: Split, and add dependency...
56509         * modules/gnumakefile: to this new module.
56510         * build-aux/GNUmakefile: Move...
56511         * top/GNUmakefile: ...here.
56512         * build-aux/maint.mk: Move...
56513         * top/maint.mk: ...here.
56514         * MODULES.html.sh (Support for maintaining...): Document new
56515         module.
56516
56517 2008-03-23  Bruno Haible  <bruno@clisp.org>
56518
56519         * gnulib-tool: New options --vc-files, --no-vc-files.
56520         (func_usage): Document them.
56521         (vc_files): New variable.
56522         (func_import): Consider vc_files.
56523         (func_create_testdir): Set vc_files to empty.
56524         Suggested by Jim Meyering and Karl Berry.
56525
56526 2008-03-23  Bruno Haible  <bruno@clisp.org>
56527
56528         Fix regex compilation error on HP-UX 11.
56529         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56530         * modules/regex (Files): Add m4/mbstate_t.m4.
56531         Reported by Ton Voon <ton.voon@altinity.com>.
56532
56533 2008-03-23  Bruno Haible  <bruno@clisp.org>
56534
56535         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56536
56537 2008-03-23  Eric Blake  <ebb9@byu.net>
56538             Bruno Haible  <bruno@clisp.org>
56539
56540         Install files from top/ in the destination directory.
56541         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56542         augmentation also for the files from top/.
56543         (func_import, func_create_testdir): Rewrite file names:
56544         top/filename -> filename.
56545
56546 2008-03-23  Bruno Haible  <bruno@clisp.org>
56547
56548         Tweak "gnulib --version" output.
56549         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56550
56551 2008-03-23  Bruno Haible  <bruno@clisp.org>
56552
56553         Tweak "gnulib --version" output.
56554         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56555         rather than contents of ChangeLog, when possible.
56556
56557 2008-03-21  Eric Blake  <ebb9@byu.net>
56558
56559         More --version tweaks.
56560         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56561         date of last ChangeLog entry.
56562
56563 2008-03-21  Jim Meyering  <meyering@redhat.com>
56564
56565         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56566
56567 2008-03-20  Eric Blake  <ebb9@byu.net>
56568
56569         VPATH fix.
56570         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56571
56572 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56573
56574         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56575         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56576
56577 2008-03-20  Eric Blake  <ebb9@byu.net>
56578
56579         Sync GNUmakefile with coreutils.
56580         * build-aux/GNUmakefile (have-Makefile): Rename...
56581         (_have-Makefile): ...to this, for namespace consideration.
56582         (GNUmakefile.cfg): Include, if present.
56583         (_autoreconf): Define a default.
56584         (_is-dist-target): New rule for rebuilds to pick up intra-release
56585         version.
56586         (maint-cfg.mk): Rename...
56587         (cfg.mk): ...to this.
56588
56589 2008-03-18  Jim Meyering  <meyering@redhat.com>
56590
56591         New script and module: mktempd
56592         * MODULES.html.sh (maint+release support): Add mktempd.
56593         * build-aux/mktempd: New file.
56594         * modules/mktempd: New file.
56595
56596 2008-03-15  Jim Meyering  <meyering@redhat.com>
56597
56598         Undo last change.
56599         * lib/sha1.c, lib/md5.c: 63 != ~63.
56600         Reported by Andreas Schwab.
56601
56602         sha1.c, md5.c: Hoist a redundant expression.
56603         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56604         "ctx->buflen" only once, before calling *_process_block.
56605         * lib/md5.c (md5_process_bytes): Likewise.
56606
56607 2008-03-14  Eric Blake  <ebb9@byu.net>
56608
56609         Bump copyright year in files generated by gnulib-tool.
56610         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56611         gnulib-tool, rather than hard-coding it.
56612
56613         Fix 'gnulib-tool --version' output to work with git.
56614         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56615         (startup): ...here.
56616         (func_version): Use it to invoke git-version-gen, rather than
56617         relying on CVS keyword expansion.  Modernize wording.
56618         (cvsdatestamp, last_checkin_date, version): Kill unused
56619         variables.
56620
56621 2008-03-12  Jim Meyering  <meyering@redhat.com>
56622
56623         Recognize optional cast of the argument to free.
56624         * build-aux/useless-if-before-free: Update regexps.
56625
56626         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56627
56628 2008-03-11  Bruno Haible  <bruno@clisp.org>
56629
56630         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56631         by a single package.
56632         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56633         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56634         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56635         Reported by Sam Steingold <sds@gnu.org>.
56636
56637 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56638
56639         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56640         repositories.
56641
56642 2008-03-11  Bruno Haible  <bruno@clisp.org>
56643
56644         Avoid conflicts between local macro definitions.
56645         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56646         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56647
56648 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56649             Bruno Haible  <bruno@clisp.org>
56650
56651         Make va_copy work with some version of xlc on AIX 5.1.
56652         * lib/stdarg.in.h: New file.
56653         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56654         On AIX, use a <stdarg.h> file substitute.
56655         * modules/stdarg (Files): Add lib/stdarg.in.h.
56656         (Depends-on): Add include_next.
56657         (Makefile.am): Build a stdarg.h substitute if requested.
56658         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56659
56660 2008-03-10  Bruno Haible  <bruno@clisp.org>
56661
56662         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56663         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56664         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56665
56666 2008-03-10  Bruno Haible  <bruno@clisp.org>
56667
56668         * modules/stdlib (Depends-on): Add include_next, remove
56669         absolute-header.
56670
56671 2008-03-09  Bruno Haible  <bruno@clisp.org>
56672
56673         * lib/freadahead.h (freadahead): Document more precisely.
56674         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56675         the sum of both buffer sizes.
56676         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56677         * NEWS: Document the change.
56678
56679 2008-03-09  Bruno Haible  <bruno@clisp.org>
56680
56681         Extend freadptr to return also the buffer size.
56682         * lib/freadptr.h (freadptr): Add sizep argument.
56683         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56684         (freadptr): Add sizep argument. Determine buffer size like freadahead
56685         does.
56686         * tests/test-freadptr.c: Don't include freadahead.h.
56687         (main): Adapt for new calling convention of freadptr.
56688         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56689         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56690         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56691         tests/test-freadptr2.sh.
56692         (Depends): Remove freadahead.
56693         (TESTS): Add test-freadptr2.sh.
56694         (check_PROGRAMS): Add test-freadptr2.
56695
56696 2008-03-09  Bruno Haible  <bruno@clisp.org>
56697
56698         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56699         Report and solution by Simon Josefsson.
56700
56701 2008-03-06  Bruno Haible  <bruno@clisp.org>
56702
56703         Make fflush after ungetc work on BSD platforms.
56704         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56705         * tests/test-fflush2.c: New file.
56706         * tests/test-fflush2.sh: New file.
56707         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56708         tests/test-fflush2.c.
56709         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56710         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56711
56712 2008-03-06  Eric Blake  <ebb9@byu.net>
56713
56714         Likewise for ftello.
56715         * modules/ftello (Dependencies): Add extensions.
56716         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56717
56718 2008-03-06  Bruno Haible  <bruno@clisp.org>
56719
56720         * modules/fseeko (Dependencies): Add extensions.
56721         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56722         Needed on glibc systems.
56723
56724 2008-03-06  Bruno Haible  <bruno@clisp.org>
56725
56726         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56727         email address.
56728         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56729
56730 2008-03-06  Bruno Haible  <bruno@clisp.org>
56731
56732         * users.txt: Add libgnupdf.
56733
56734 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56735
56736         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56737         (Header File Substitutes, Function Substitutes,
56738         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56739         (Build robot for gnulib): Fix typo.
56740
56741 2008-03-06  Bruno Haible  <bruno@clisp.org>
56742
56743         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56744         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56745
56746 2008-03-06  Bruno Haible  <bruno@clisp.org>
56747
56748         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56749         * doc/gnulib.texi: Include it.
56750
56751 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56752
56753         * modules/func (License): Change license to unlimited; there was
56754         no LGPL parts in the module anyway.
56755
56756 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56757
56758         * modules/__func__: Renamed to modules/func.
56759         * modules/__func__-tests: Renamed to modules/func-tests.
56760         * tests/test-__func__.c: Renamed to tests/test-func.c.
56761         * m4/__func__.m4: Renamed to m4/func.m4.
56762         * doc/gnulib.texi (__func__): Section renamed to func.
56763         Suggested by Eric Blake <ebb9@byu.net>.
56764
56765 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56766
56767         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56768         about __func__.  Make example self-contained.  Suggested by Eric
56769         Blake <ebb9@byu.net>.
56770
56771         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56772         Suggested by Eric Blake <ebb9@byu.net>.
56773
56774 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56775
56776         * modules/__func__: New file.
56777         * modules/__func__-tests: New file.
56778         * tests/test-__func__.c: New file.
56779         * m4/__func__.m4: New file.
56780         * doc/gnulib.texi (__func__): Document __func__ module.
56781
56782 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56783
56784         * modules/byteswap (License): Re-license as LGPLv2+.
56785
56786 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56787
56788         * doc/Makefile: Add pdf target.
56789
56790 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56791
56792         * modules/inline (License): Use 'unlimited', since there are only
56793         *.m4 files in this module.
56794
56795 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56796             Bruno Haible  <bruno@clisp.org>
56797
56798         Add support for HP C 7.1 on OpenVMS 8.3.
56799         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56800
56801 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56802
56803         Update VMS specifics.
56804         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56805
56806 2008-03-02  Jim Meyering  <meyering@redhat.com>
56807
56808         Remove the last dependency on the "free" module.
56809         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56810         Reported by Bob Proulx.
56811
56812         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56813
56814         Remove useless "if" tests before free.  Deprecate "free" module.
56815         * doc/posix-functions/free.texi: Mention that this
56816         module is no longer useful.
56817         * modules/free (Notice): Say this module is obsolete.
56818         * modules/readutmp (Depends-on): Remove free.
56819         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56820         * lib/putenv.c (putenv): Likewise.
56821         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56822         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56823         * tests/test-c-strcasestr.c (main): Likewise.
56824         * tests/test-c-strstr.c (main): Likewise.
56825         * tests/test-mbscasestr1.c (main): Likewise.
56826         * tests/test-mbscasestr2.c (main): Likewise.
56827         * tests/test-mbsstr1.c (main): Likewise.
56828         * tests/test-mbsstr2.c (main): Likewise.
56829         * tests/test-memmem.c (main): Likewise.
56830         * tests/test-strcasestr.c (main): Likewise.
56831         * tests/test-striconv.c (main): Likewise.
56832         * tests/test-striconveh.c (main): Likewise.
56833         * tests/test-striconveha.c (main): Likewise.
56834         * tests/test-strstr.c (main): Likewise.
56835
56836         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56837
56838         bootstrap: sync from coreutils again
56839         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56840
56841 2008-03-01  Jim Meyering  <meyering@redhat.com>
56842
56843         bootstrap: sync from coreutils
56844         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56845         also when the target doesn't exist.
56846
56847 2008-03-01  Eric Blake  <ebb9@byu.net>
56848
56849         Fix bugs in last patch.
56850         * lib/memchr2.c (memchr2): Fix typo.
56851         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56852         extension.
56853         Reported by Bruce Korb.
56854
56855         New module 'memchr2'.
56856         * modules/memchr2: New file.
56857         * modules/memchr2-tests: Likewise.
56858         * lib/memchr2.h: Likewise.
56859         * lib/memchr2.c: Likewise, based on memchr.c.
56860         * tests/test-memchr2.c: New test.
56861         * MODULES.html.sh (String handling): Add memchr2.
56862
56863 2008-02-29  Bruno Haible  <bruno@clisp.org>
56864
56865         * modules/freadseek-tests: New file.
56866         * tests/test-freadseek.sh: New file.
56867         * tests/test-freadseek.c: New file.
56868
56869         New module 'freadseek'.
56870         * modules/freadseek: New file.
56871         * lib/freadseek.h: New file.
56872         * lib/freadseek.c: New file.
56873         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56874
56875 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56876
56877         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56878         wydawca.
56879
56880         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56881         program_invocation_name and program_invocation_short_name are
56882         present.
56883
56884 2008-02-28  Bruno Haible  <bruno@clisp.org>
56885
56886         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56887         * tests/test-freadptr.sh: Also test non-seekable stdin.
56888
56889 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56890
56891         * build-aux/bootstrap (source_base, m4_base)
56892         (doc_base, tests_base): New variables.
56893         (gnulib_tool_options): Do not hardcode base directories, use
56894         the above variables instead.
56895
56896 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56897
56898         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56899
56900 2008-02-28  Bruno Haible  <bruno@clisp.org>
56901
56902         * modules/freadptr-tests: New file.
56903         * tests/test-freadptr.sh: New file.
56904         * tests/test-freadptr.c: New file.
56905
56906         New module 'freadptr'.
56907         * modules/freadptr: New file.
56908         * lib/freadptr.h: New file.
56909         * lib/freadptr.c: New file.
56910         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56911
56912 2008-02-26  Karl Berry  <karl@freefriends.org>
56913
56914         Sync from Libtool:
56915         * libltdl/argz.c (argz_add, argz_count): New functions.
56916         * libltdl/argz.in.h: Declare them.
56917         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56918
56919 2008-02-22  Bruno Haible  <bruno@clisp.org>
56920
56921         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56922         is a pointer type.  Needed for HP-UX 10.
56923         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56924         * doc/posix-functions/gmtime_r.texi: Likewise.
56925         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56926
56927 2008-02-24  Bruno Haible  <bruno@clisp.org>
56928
56929         * modules/environ-tests: New file.
56930         * tests/test-environ.c: New file.
56931
56932         New module 'environ'.
56933         * modules/environ: New file.
56934         * lib/unistd.in.h (environ): New declaration.
56935         * m4/environ.m4: New file.
56936         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56937         after use.
56938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56939         HAVE_DECL_ENVIRON.
56940         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56941         HAVE_DECL_ENVIRON.
56942         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56943         wrong claim that 'environ' is missing on some systems.
56944         * modules/execute (Depends-on): Add environ.
56945         * lib/execute.c (environ): Remove fallback declaration.
56946         * modules/pipe (Depends-on): Add environ.
56947         * lib/pipe.c (environ): Remove fallback declaration.
56948         * modules/setenv (Depends-on): Add environ.
56949         * lib/setenv.c (environ): Remove fallback declaration.
56950         * modules/unsetenv (Depends-on): Add environ.
56951         * lib/unsetenv.c (environ): Remove fallback declaration.
56952         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56953         m4/environ.m4.
56954         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56955         (gl_PREREQ_UNSETENV): Likewise.
56956
56957 2008-02-24  Bruno Haible  <bruno@clisp.org>
56958
56959         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56960
56961 2008-02-20  Bob Proulx  <bob@proulx.com>
56962
56963         Enable use of older two part flavor 'git describe'.
56964         * build-aux/git-version-gen: If using the older two part flavor of
56965         git version then recreate the third part now present in the
56966         newer three part flavor of git describe.
56967
56968 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56969
56970         * lib/fts.c (fts_build): Typo correction to comment.
56971
56972 2008-02-17  Bruno Haible  <bruno@clisp.org>
56973
56974         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56975         generating no-op conflicts.
56976
56977 2008-02-17  Bruno Haible  <bruno@clisp.org>
56978
56979         Speed up by 10%.
56980         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56981         result_entries, rather than an index-based loop.
56982
56983 2008-02-17  Bruno Haible  <bruno@clisp.org>
56984
56985         Speed up by 25%.
56986         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56987         'hashcode_cached'.
56988         (entry_create): New function.
56989         (entry_hashcode): Use the cached hashcode if possible.
56990         (read_changelog_file, try_split_merged_entry): Use entry_create.
56991
56992 2008-02-17  Bruno Haible  <bruno@clisp.org>
56993
56994         Speed up from O(n^2) to O(n) for long ChangeLog files.
56995         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56996         (read_changelog_file): Change implementation of entries_reversed list
56997         to rbtreehash.
56998         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56999
57000 2008-02-17  Bruno Haible  <bruno@clisp.org>
57001
57002         New option --split-merged-entry.
57003         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57004         (find_paragraph_end, try_split_merged_entry): New functions.
57005         (long_options): Add option --split-merged-entry.
57006         (usage): Document option --split-merged-entry.
57007         (main): Implement option --split-merged-entry.
57008         Reported by Eric Blake.
57009
57010 2008-02-17  Bruno Haible  <bruno@clisp.org>
57011
57012         * lib/git-merge-changelog.c: Include c-strstr.h.
57013         (main): Support the "git pull --rebase" situation.
57014         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57015         Reported by Eric Blake.
57016
57017 2008-02-16  Eric Blake  <ebb9@byu.net>
57018
57019         Avoid doubling \ in common case of "c-maybe" quoting style.
57020         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57021         eliding outer quotes.
57022         * lib/quotearg.h: Document this.
57023         * tests/test-quotearg.c (result_strings, inputs, results_g)
57024         (flag_results, locale_results): Test it by adding a new string to
57025         each test group.
57026         (compare_strings): Test new string.
57027
57028 2008-02-13  Eric Blake  <ebb9@byu.net>
57029
57030         Avoid trigraph quoting in default output.
57031         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57032         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57033         unless explicitly requested.
57034         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57035
57036 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57037
57038         Don't rely on signed integer overflowing to negative value.
57039         * lib/getugroups.c (getugroups): Include <limits.h>.
57040         Instead, compare against INT_MAX, and increment only if the test passes.
57041
57042 2008-02-13  Jim Meyering  <meyering@redhat.com>
57043         and Eric Blake  <ebb9@byu.net>
57044
57045         Avoid shadowing warning and compile errors on Linux.
57046         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57047         forwarding macros on Linux.
57048         (dcgettext): Define a stub, for Linux.
57049         (results_g, main): Avoid warnings.
57050
57051 2008-02-12  Eric Blake  <ebb9@byu.net>
57052
57053         Silence warning in last patch.
57054         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57055
57056         Quotearg part 4: add tests, fix c-maybe colon quoting.
57057         * lib/quotearg.h: Improve documentation.
57058         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57059         escapes when adding outer quotes.  When quoting trigraphs, use
57060         valid C notation.  When quoting NUL, omit extra characters if next
57061         character is not digit.  Alter prototype.
57062         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57063         callers.
57064         * modules/quotearg-tests: New module.
57065         * tests/test-quotearg.c: New test.
57066
57067 2008-02-07  Eric Blake  <ebb9@byu.net>
57068
57069         Quotearg part 3: add flag to control outer quote elision.
57070         * lib/quotearg.h (c_maybe_quoting_style): New style.
57071         (enum quoting_flags): Better documentation of flags.
57072         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57073         c-maybe style.
57074         (quotearg_buffer_restyled): Handle new flag to elide outer
57075         quotes.
57076
57077         Quotearg part 2: add flag that can control NUL elision.
57078         * lib/quotearg.h (set_quoting_flags): New prototype.
57079         * lib/quotearg.c (struct quoting_options): Add flag field.
57080         (set_quoting_flags): New function.
57081         (quotearg_buffer_restyled): Add flags parameter.
57082         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57083         (quotearg_n_options): Set the flag, since length cannot be
57084         returned.
57085         (quoting_options_from_style): Default flags correctly.
57086
57087         Quotearg part 1: more wrappers, restore quotearg_char state.
57088         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57089         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57090         (quotearg_colon_mem): New wrappers.
57091         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57092         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57093         functions.
57094         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57095         (quotearg_colon_mem): New functions.
57096
57097 2008-02-11  Bruno Haible  <bruno@clisp.org>
57098
57099         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57100         library in the current directory: it does not work with parallel make.
57101         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57102
57103 2008-02-11  Bruno Haible  <bruno@clisp.org>
57104
57105         * .gitattributes: New file.
57106
57107 2008-02-11  Jim Meyering  <meyering@redhat.com>
57108
57109         useless-if-before-free: Fix reversed exit values.
57110         * build-aux/useless-if-before-free: Use correct values
57111         for EXIT_MATCH and EXIT_NO_MATCH.
57112
57113         * build-aux/useless-if-before-free: Close stdout carefully.
57114
57115 2008-02-10  Bruno Haible  <bruno@clisp.org>
57116
57117         New module 'git-merge-changelog'.
57118         * modules/git-merge-changelog: New file.
57119         * lib/git-merge-changelog.c: New file.
57120
57121 2008-02-10  Jim Meyering  <meyering@redhat.com>
57122
57123         useless-if-before-free: New option: --list (-l).
57124
57125         useless-if-before-free: Don't exit immediately upon open failure.
57126         * build-aux/useless-if-before-free: Exit 2 for errors.
57127         Upon failure to open a file, don't exit immediately.
57128         Rather, just warn and continue with any remaining files.
57129
57130 2008-02-10  Bruno Haible  <bruno@clisp.org>
57131
57132         New abstract list operation 'node_set_value'.
57133         * lib/gl_list.h (gl_list_node_set_value): New function.
57134         (struct gl_list_implementation): New field node_set_value.
57135         * lib/gl_list.c (gl_list_node_set_value): New function.
57136         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57137         (gl_array_list_implementation): Update.
57138         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57139         (gl_carray_list_implementation): Update.
57140         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57141         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57142         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57143         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57144         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57145         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57146         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57147         Update.
57148         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57149         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57150         (gl_sublist_list_implementation): Update.
57151
57152 2008-02-10  Bruno Haible  <bruno@clisp.org>
57153
57154         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57155         Needed when ELEMENT is #defined to 'some_type *'.
57156
57157 2008-02-10  Jim Meyering  <meyering@redhat.com>
57158
57159         New script and module: useless-if-before-free
57160         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57161         * build-aux/useless-if-before-free: New file.
57162         * modules/useless-if-before-free: New file.
57163
57164         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57165
57166         xstrtol_error: Fix typo.
57167         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57168         s/exit_failure/exit_status/.
57169
57170 2008-02-09  Jim Meyering  <meyering@redhat.com>
57171
57172         New script and module: gitlog-to-changelog
57173         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57174         * modules/gitlog-to-changelog: New file.
57175         * build-aux/gitlog-to-changelog: New file.
57176
57177 2008-02-08  Jim Meyering  <meyering@redhat.com>
57178
57179         Avoid two "parameter unused" warnings.
57180         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57181         Mark "st" as used.
57182
57183         Use "git COMMAND", not "git-COMMAND".
57184         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57185         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57186         * build-aux/git-version-gen: Use "git status", not "git-status".
57187
57188 2008-02-07  Bruno Haible  <bruno@clisp.org>
57189
57190         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57191         Avoids a crash on Windows Vista.
57192         Reported by Adam Strzelecki <ono@java.pl> via
57193         Simon Josefsson <simon@josefsson.org>.
57194
57195 2008-02-06  Bruno Haible  <bruno@clisp.org>
57196
57197         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57198         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57199         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57201         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57202         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57203         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57204         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57205         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57206         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57207         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57208         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57209         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57210         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57211         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57212         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57213         left-adjust flag.
57214         * tests/test-snprintf-posix.h (test_function): Likewise.
57215         * tests/test-sprintf-posix.h (test_function): Likewise.
57216         * tests/test-vasprintf-posix.c (test_function): Likewise.
57217         * doc/posix-functions/fprintf.texi: Update.
57218         * doc/posix-functions/printf.texi: Update.
57219         * doc/posix-functions/snprintf.texi: Update.
57220         * doc/posix-functions/sprintf.texi: Update.
57221         * doc/posix-functions/vfprintf.texi: Update.
57222         * doc/posix-functions/vprintf.texi: Update.
57223         * doc/posix-functions/vsnprintf.texi: Update.
57224         * doc/posix-functions/vsprintf.texi: Update.
57225         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57226
57227 2008-02-06  Bruno Haible  <bruno@clisp.org>
57228
57229         Fix bug introduced on 2008-01-26.
57230         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57231
57232 2008-02-06  Bruno Haible  <bruno@clisp.org>
57233
57234         Fix bug introduced on 2007-06-10.
57235         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57236         !NEED_PRINTF_FLAG_ZERO.
57237
57238 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57239
57240         getloadavg: use libperfstat on AIX5
57241         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57242
57243 2008-02-03  Bruno Haible  <bruno@clisp.org>
57244
57245         * lib/diffseq.h: Add comments about required #includes.
57246         Reported by Michael Biggs <gnulib@doubleplum.net>.
57247
57248 2008-02-01  Bruno Haible  <bruno@clisp.org>
57249
57250         * users.txt: Add gnuit.
57251
57252 2008-01-31  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/md4.c (set_uint32): Mark as inline.
57255         * lib/md5.c (set_uint32): Likewise.
57256         * lib/sha1.c (set_uint32): Likewise.
57257         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57258         * m4/md5.m4 (gl_MD5): Likewise.
57259         * m4/sha1.m4 (gl_SHA1): Likewise.
57260
57261 2008-01-31  Jim Meyering  <meyering@redhat.com>
57262
57263         Use "sizeof VAR", rather than a literal "4".
57264         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57265         * lib/md4.c (md4_read_ctx): Likewise.
57266         * lib/sha1.c (sha1_read_ctx): Likewise.
57267
57268 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57269
57270         * tests/test-sha1.c: New file, based on test-md5.c.
57271
57272         * modules/crypto/sha1-tests: New file.
57273
57274 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57275
57276         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57277
57278 2008-01-31  Jim Meyering  <meyering@redhat.com>
57279
57280         Prefer "sizeof v" over the equivalent "4".
57281         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57282         * lib/md5.c (set_uint32): Likewise.
57283         * lib/sha1.c (set_uint32): Likewise.
57284
57285 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57286
57287         * lib/sha1.c (set_uint32): Mark function as static.
57288
57289 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57290
57291         md2: clarify comments to say that alignment is not required.
57292         * lib/md2.h: Remove warning about alignment in comment.
57293         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57294         never been required.
57295
57296 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57297
57298         md4: adapt alignment constraint fix from sha1.
57299         * lib/md4.c (set_uint32): New function, from sha1.c
57300         (md4_read_ctx): Use it.
57301         (md4_finish_ctx): Doc fix.
57302         * lib/md4.h: Doc fix.
57303
57304 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57305
57306         md5: adapt alignment constraint fix from sha1.
57307         * lib/md5.c (set_uint32): New function, from sha1.c
57308         (md5_read_ctx): Use it.
57309         (md5_finish_ctx): Doc fix.
57310         * lib/md5.h: Doc fix.
57311
57312 2008-01-30  Peter Palfrader  <weasel@debian.org>
57313
57314         sha1: remove the result buffer alignment constraint
57315         * lib/sha1.c (set_uint32): New function.
57316         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57317         constraint.
57318         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57319         * lib/sha1.h: Likewise.
57320
57321 2008-01-30  Andreas Schwab  <schwab@suse.de>
57322             Bruno Haible  <bruno@clisp.org>
57323
57324         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57325         correct definition of LDBL_MIN_EXP.
57326
57327 2008-01-30  Karl Berry  <karl@gnu.org>
57328
57329         * config/srclist-update: try to preserve x bit on updates.
57330         * config/srclistvars.sh: update for karl.
57331
57332 2008-01-29  Jim Meyering  <meyering@redhat.com>
57333
57334         vasnprintf.c: Avoid warning about unused label
57335         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57336         "overflow" label definition and associated code with the
57337         same cpp condition that guards the sole use of that label.
57338
57339 2008-01-26  Bruno Haible  <bruno@clisp.org>
57340
57341         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57342         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57343         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57344         * lib/isnanl-nolibm.h (isnanl): Likewise.
57345         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57346
57347 2008-01-26  Bruno Haible  <bruno@clisp.org>
57348
57349         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57350         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57351
57352 2008-01-26  Bruno Haible  <bruno@clisp.org>
57353
57354         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57355         GCC >= 4.0 built-in.
57356         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57357
57358 2008-01-26  Bruno Haible  <bruno@clisp.org>
57359
57360         Rename isnan, applicable to 'double' only, to isnand.
57361         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57362         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57363         (configure.ac): Update.
57364         (Include): Replace "isnan.h" with "isnand.h".
57365         * m4/isnand.m4: Renamed from m4/isnan.m4.
57366         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57367         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57368         instead of isnan.c.
57369         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57370         instead of HAVE_ISNAN_IN_LIBC.
57371         (isnand): Renamed from isnan.
57372         * lib/isnand.c: New file.
57373         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57374         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57375         (Makefile.am): Update.
57376         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57377         Include isnand.h instead of isnan.h.
57378         (main): Test isnand instead of isnan.
57379         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57380         isnan-nolibm.
57381         * modules/frexp (Depends-on): Likewise.
57382         * modules/frexp-tests (Depends-on): Likewise.
57383         * modules/frexp-nolibm (Depends-on): Likewise.
57384         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57385         * modules/isfinite (Depends-on): Likewise.
57386         * modules/round-tests (Depends-on): Likewise.
57387         * modules/signbit (Depends-on): Likewise.
57388         * modules/signbit-tests (Depends-on): Likewise.
57389         * modules/snprintf-posix (Depends-on): Likewise.
57390         * modules/sprintf-posix (Depends-on): Likewise.
57391         * modules/trunc-tests (Depends-on): Likewise.
57392         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57393         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57394         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57395         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57396         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57397         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57398         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57399         * modules/vasnprintf-posix (Depends-on): Likewise.
57400         * modules/vasprintf-posix (Depends-on): Likewise.
57401         * modules/vfprintf-posix (Depends-on): Likewise.
57402         * modules/vsnprintf-posix (Depends-on): Likewise.
57403         * modules/vsprintf-posix (Depends-on): Likewise.
57404         * lib/frexp.c: Include isnand.h instead of isnan.h.
57405         (ISNAN): Set to isnand instead of isnan.
57406         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57407         (gl_isfinited): Use isnand instead of isnan.
57408         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57409         (gl_signbitd): Use isnand instead of isnan.
57410         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57411         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57412         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57413         (main): Use isnand instead of isnan.
57414         * tests/test-round1.c: Include isnand.h.
57415         (main): Use isnand instead of isnan.
57416         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57417         (ISNAN): Set to isnand instead of isnan.
57418         * tests/test-trunc1.c: Include isnand.h.
57419         (main): Use isnand instead of isnan.
57420         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57421         (equal): Use isnand instead of isnan.
57422         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57423         isnand-nolibm.
57424         * NEWS: Mention the change.
57425
57426 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57427             Bruno Haible  <bruno@clisp.org>
57428
57429         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57430         the GCC builtins for signbits are present and set
57431         REPLACE_SIGNBIT_USING_GCC if so.
57432         * lib/math.in.h (signbit): Define using GCC builtins if
57433         REPLACE_SIGNBIT_USING_GCC is set.
57434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57435         REPLACE_SIGNBIT_USING_GCC.
57436         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57437
57438 2008-01-25  Jim Meyering  <meyering@redhat.com>
57439
57440         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57441         * lib/poll.c: Include <config.h>, not "config.h".
57442         * tests/test-getaddrinfo.c: Likewise.
57443
57444 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57445
57446         * modules/sockets-tests: New file.
57447
57448 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57449
57450         * modules/sockets: New module, can be used to call WSA_Startup and
57451         WSA_Cleanup when needed.
57452
57453         * lib/sockets.h, lib/sockets.c: New files.
57454
57455         * m4/sockets.m4: New file.
57456
57457         * tests/test-sockets.c: New file.
57458
57459 2008-01-19  Bruno Haible  <bruno@clisp.org>
57460
57461         * doc/posix-headers: Renamed from doc/headers.
57462         * doc/posix-functions: Renamed from doc/functions.
57463         * doc/gnulib.texi: Update.
57464
57465 2008-01-19  Bruno Haible  <bruno@clisp.org>
57466
57467         * doc/glibc-functions/strcasestr.texi: Include contents of
57468         doc/functions/strcasestr.texi, fixing the list of platforms.
57469         * doc/functions/strcasestr.texi: Remove file.
57470
57471 2008-01-19  Bruno Haible  <bruno@clisp.org>
57472
57473         * doc/glibc-functions/memmem.texi: Include contents of
57474         doc/functions/memmem.texi.
57475         * doc/functions/memmem.texi: Remove file.
57476
57477 2008-01-18  Bruno Haible  <bruno@clisp.org>
57478
57479         * doc/glibc-functions/*.texi: New files.
57480         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57481         to use the new files.
57482
57483 2008-01-17  Bruno Haible  <bruno@clisp.org>
57484
57485         * tests/test-gethostname.c (main): Fix printf statement.
57486
57487 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57488
57489         * modules/gethostname-tests: New file.
57490
57491         * tests/test-gethostname.c: New file.
57492
57493 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57494
57495         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57496         used by the UNAME case.  Reported by Bruno Haible
57497         <bruno@clisp.org>.
57498
57499 2008-01-17  Eric Blake  <ebb9@byu.net>
57500
57501         Convert c-strcasestr to be more efficient.
57502         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57503         (Depends-on): Add c-strcase, remove malloca, strnlen.
57504         * tests/test-c-strcasestr.c (main): Enhance test.
57505         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57506
57507 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57508
57509         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57510         Use it in creating po/Makevars.
57511
57512 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57513
57514         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57515         Applications that requires it should initialize libgcrypt
57516         manually.
57517
57518 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57519
57520         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57521
57522 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57523
57524         Fix problem with getdate on mingw32 reported by Simon Josefsson
57525         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57526         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57527         tzname", when deciding whether to declare tzname.
57528         * lib/strftime.c (tzname): Likewise.
57529
57530 2008-01-15  Bruno Haible  <bruno@clisp.org>
57531
57532         Work around a MacOS X 10.5 bug in frexpl().
57533         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57534         * doc/functions/frexpl.texi: Document the bug.
57535         Reported by Elias Pipping <pipping@gentoo.org>.
57536
57537 2008-01-14  Eric Blake  <ebb9@byu.net>
57538
57539         Touch up previous patch.
57540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57541         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57542
57543         Convert strcasestr module to use Two-Way algorithm.
57544         * modules/strcasestr-simple: New module, based on the old
57545         strcasestr, but with Two-Way rather than KMP.
57546         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57547         * lib/string.in.h (rpl_strcasestr): Declare.
57548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57549         performance.
57550         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57551         * modules/string (Makefile.am): Support strcasestr.
57552         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57553         * modules/strcasestr-tests (Depends-on): Check for alarm.
57554         * tests/test-strcasestr.c: Augment test.
57555         * lib/str-two-way.h: Clean up stray macro.
57556         * NEWS: Document new module.
57557         * MODULES.html.sh (string handling): Likewise.
57558         * doc/functions/strcasestr.texi: New file.
57559         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57560         here, since it is not a POSIX function.
57561
57562 2008-01-14  Colin Watson  <cjwatson@debian.org>
57563             Bruno Haible  <bruno@clisp.org>
57564
57565         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57566         works fine; if not, set REPLACE_STRSIGNAL.
57567         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57569         REPLACE_STRSIGNAL.
57570         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57571         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57572         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57573
57574 2008-01-14  Bruno Haible  <bruno@clisp.org>
57575
57576         * modules/strsignal (Include): Change to <string.h>.
57577
57578 2008-01-14  Colin Watson  <cjwatson@debian.org>
57579
57580         * modules/argp (Notice): Add a notice recommending to change
57581         XGETTEXT_OPTIONS.
57582         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57583
57584 2008-01-13  Colin Watson  <cjwatson@debian.org>
57585
57586         * modules/strsignal-tests: New file.
57587         * tests/test-strsignal.c: New file.
57588
57589         * lib/strsignal.c: New file, from glibc with modifications.
57590         * lib/siglist.h: New file, from glibc with modifications.
57591         * lib/string.in.h (strsignal): New declaration.
57592         * m4/strsignal.m4: New file.
57593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57594         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57595         * modules/strsignal: New file.
57596         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57597         HAVE_DECL_STRSIGNAL.
57598
57599 2008-01-13  Bruno Haible  <bruno@clisp.org>
57600
57601         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57602         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57603         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57604         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57605
57606 2008-01-13  Bruno Haible  <bruno@clisp.org>
57607
57608         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57609         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57610         * lib/argp.h (__attribute__): Likewise.
57611         * lib/c-stack.c (__attribute__): Likewise.
57612         * lib/error.h (__attribute__): Likewise.
57613         * lib/fts.c (__attribute__): Likewise.
57614         * lib/openat.h (__attribute__): Likewise.
57615         * lib/stdio.in.h (__attribute__): Likewise.
57616         * lib/string.in.h (__attribute__): Likewise.
57617         * lib/utimens.c (__attribute__): Likewise.
57618         * lib/vasnprintf.h (__attribute__): Likewise.
57619         * lib/xalloc.h (__attribute__): Likewise.
57620         * lib/xprintf.h (__attribute__): Likewise.
57621         * lib/xstrtol.h (__attribute__): Likewise.
57622         * lib/xvasprintf.h (__attribute__): Likewise.
57623
57624 2008-01-12  Bruno Haible  <bruno@clisp.org>
57625
57626         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57627         * doc/glibc-headers/a.out.texi: New file.
57628         * doc/glibc-headers/aliases.texi: New file.
57629         * doc/glibc-headers/alloca.texi: New file.
57630         * doc/glibc-headers/ar.texi: New file.
57631         * doc/glibc-headers/argp.texi: New file.
57632         * doc/glibc-headers/argz.texi: New file.
57633         * doc/glibc-headers/byteswap.texi: New file.
57634         * doc/glibc-headers/crypt.texi: New file.
57635         * doc/glibc-headers/endian.texi: New file.
57636         * doc/glibc-headers/envz.texi: New file.
57637         * doc/glibc-headers/err.texi: New file.
57638         * doc/glibc-headers/error.texi: New file.
57639         * doc/glibc-headers/execinfo.texi: New file.
57640         * doc/glibc-headers/fpu_control.texi: New file.
57641         * doc/glibc-headers/fstab.texi: New file.
57642         * doc/glibc-headers/fts.texi: New file.
57643         * doc/glibc-headers/getopt.texi: New file.
57644         * doc/glibc-headers/ieee754.texi: New file.
57645         * doc/glibc-headers/ifaddrs.texi: New file.
57646         * doc/glibc-headers/libintl.texi: New file.
57647         * doc/glibc-headers/mcheck.texi: New file.
57648         * doc/glibc-headers/mntent.texi: New file.
57649         * doc/glibc-headers/obstack.texi: New file.
57650         * doc/glibc-headers/paths.texi: New file.
57651         * doc/glibc-headers/printf.texi: New file.
57652         * doc/glibc-headers/pty.texi: New file.
57653         * doc/glibc-headers/resolv.texi: New file.
57654         * doc/glibc-headers/shadow.texi: New file.
57655         * doc/glibc-headers/sysexits.texi: New file.
57656         * doc/glibc-headers/ttyent.texi: New file.
57657
57658 2008-01-12  Jim Meyering  <meyering@redhat.com>
57659
57660         announce-gen: emit Gnulib's git-based version string.
57661         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57662         New option --gnulib-version=V, where V is expected to be
57663         the output of running git describe in the gnulib directory.
57664         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57665         not useful, and plan to stop publishing an xdelta file with each
57666         coreutils release.
57667
57668         * build-aux/announce-gen: Also check for lzma-compressed files.
57669
57670 2008-01-11  Bruno Haible  <bruno@clisp.org>
57671
57672         * tests/test-memmem.c (main): Increase maximum allowed time.
57673         * tests/test-strstr.c (main): Likewise.
57674
57675 2008-01-11  Bruno Haible  <bruno@clisp.org>
57676
57677         * doc/functions/memmem.texi: Add more precisions about platforms.
57678         * doc/functions/strstr.texi: Likewise.
57679
57680 2008-01-10  Eric Blake  <ebb9@byu.net>
57681
57682         * m4/strstr.m4: Delete cruft from copy-n-paste.
57683         Reported by Bruno Haible.
57684
57685 2008-01-10  Bruno Haible  <bruno@clisp.org>
57686
57687         Make c-strstr rely on strstr.
57688         * lib/c-strstr.c: Don't include str-kmp.h.
57689         (c_strstr): Define in terms of strstr.
57690         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57691         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57692
57693 2008-01-10  Bruno Haible  <bruno@clisp.org>
57694
57695         * doc/gnulib.texi (String Functions in C Locale): New section.
57696         * doc/c-ctype.texi: New file.
57697         * doc/c-strcase.texi: New file.
57698         * doc/c-strcaseeq.texi: New file.
57699         * doc/c-strcasestr.texi: New file.
57700         * doc/c-strstr.texi: New file.
57701         * doc/c-strtod.texi: New file.
57702         * doc/c-strtold.texi: New file.
57703
57704 2008-01-10  Eric Blake  <ebb9@byu.net>
57705
57706         * lib/relocatable.h: Fix a comment.
57707
57708 2008-01-10  Eric Blake  <ebb9@byu.net>
57709
57710         Share two-way algorithm.
57711         * lib/str-two-way.h: New file, merged from...
57712         * lib/memmem.c: ...here...
57713         * lib/strstr.c: ...and here.
57714         * modules/memmem (Files): Use it.
57715         * modules/strstr (Files): Likewise.
57716
57717         Avoid quadratic strstr implementations.
57718         * lib/strstr.c: New file.
57719         * m4/strstr.m4: Likewise.
57720         * modules/strstr: Likewise.
57721         * modules/strstr-tests: Likewise.
57722         * tests/test-strstr.c: Likewise.
57723         * lib/string.in.h (rpl_strstr): Declare.
57724         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57725         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57726         * modules/string (Makefile.am): Likewise.
57727         * MODULES.html.sh (string handling): Mention new module.
57728         * doc/functions/strstr.texi (strstr): Document the bug.
57729
57730 2008-01-10  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/relocatable.h (relocate): State whether result is freshly
57733         allocated or not.
57734         * lib/relocatable.c (relocate): Return a freshly allocated string
57735         instead of a pointer to a privately held string.
57736         Reported by Sylvain Beucler <beuc@gnu.org>.
57737
57738 2008-01-10  Colin Watson  <cjwatson@debian.org>
57739
57740         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57741         s/S_ISNLK/S_ISLNK/.
57742
57743 2008-01-09  Bruno Haible  <bruno@clisp.org>
57744
57745         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57746         and other files.
57747         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57748         if it's only a guess.
57749         * modules/memmem: Simplify by depending on memmem-simple.
57750
57751 2008-01-09  Bruno Haible  <bruno@clisp.org>
57752
57753         Work around OpenBSD 4.0 tdelete() bug.
57754         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57755         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57756         macros and don't redefine the enum values.
57757         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57758         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57759         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57760
57761 2008-01-09  Bruno Haible  <bruno@clisp.org>
57762
57763         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57764         (main): Don't perform the tests if setlocale did not install a UTF-8
57765         locale. Needed on OpenBSD 4.0.
57766         * modules/wcwidth-tests (Depends-on): Add localcharset.
57767
57768 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57769
57770         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57771         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57772         * NEWS: announce this.
57773         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57774
57775 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57776         and Eric Blake  <ebb9@byu.net>
57777
57778         Add memmem-simple module.
57779         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57780         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57781         * modules/memmem-simple: New file.
57782         * modules/memmem (Description): Tweak.
57783         * MODULES.html.sh (string handling): Mention new module.
57784         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57785         addressed by memmem-simple.
57786         * NEWS: Document the difference.
57787
57788 2008-01-09  Eric Blake  <ebb9@byu.net>
57789
57790         Give gcc some memmem optimization hints.
57791         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57792         (strcasestr): Declare as pure.
57793         * modules/memmem (Maintainer): Claim my implementation.
57794
57795 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57796
57797         Support AIX 6.1 and higher.
57798         * build-aux/config.libpath: Likewise.
57799         * build-aux/config.rpath: Likewise.
57800
57801 2008-01-08  Jim Meyering  <meyering@redhat.com>
57802             Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57805         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57806         Reported by Peter Fales in
57807         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57808
57809 2008-01-08  Bruno Haible  <bruno@clisp.org>
57810
57811         * modules/unictype/category-of (Depends-on): Add
57812         unictype/category-none.
57813         * modules/unictype/category-and-tests (Depends-on): Add
57814         unictype/category-{L,N,Lu,Nd}.
57815         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57816         * modules/unictype/category-or-tests (Depends-on): Add
57817         unictype/category-{L,N}.
57818         * modules/unictype/category-name-tests (Depends-on): Add
57819         unictype/category-{Z,Nl}.
57820         Reported by Simon Josefsson.
57821
57822 2008-01-08  Bruno Haible  <bruno@clisp.org>
57823
57824         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57825         convention better.
57826         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57827         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57828         Reported by Peter Miller <millerp@canb.auug.org.au>.
57829
57830 2008-01-08  Eric Blake  <ebb9@byu.net>
57831
57832         Rewrite memmem to guarantee linear complexity without malloc.
57833         * lib/memmem.c (memmem): Use Two-Way rather than
57834         Knuth-Morris-Pratt, to allow O(1) space usage.
57835         (critical_factorization, two_way_short_needle)
57836         (two_way_long_needle): New functions.
57837         (knuth_morris_pratt): Delete.
57838         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57839         Add stdint.
57840         * tests/test-memmem.c (main): Add tests for periodic needle and
57841         sublinear performance.
57842         * doc/functions/memmem.texi (memmem): Document other deficiencies
57843         in cygwin and older glibc.
57844
57845 2008-01-08  Bruno Haible  <bruno@clisp.org>
57846
57847         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57848         augmentation.
57849
57850 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57851
57852         Add a configure time option: --disable-acl.
57853         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57854         AC_ARG_ENABLE(acl).
57855
57856 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57857
57858         * tests/test-localename.c: Don't include obsolete "setenv.h".
57859
57860         * modules/localename-tests (Depends-on): Need unsetenv.
57861
57862 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57863
57864         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57865
57866 2008-01-06  Colin Watson  <cjwatson@debian.org>
57867
57868         * users.txt: Add man-db.
57869
57870 2008-01-07  Bruno Haible  <bruno@clisp.org>
57871
57872         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57873         previous section name.
57874
57875 2008-01-07  Bruno Haible  <bruno@clisp.org>
57876
57877         * lib/progname.c (set_program_name): Don't strip off a leading
57878         "lt-" prefix outside a .libs directory.
57879         Suggested by Paul Eggert.
57880
57881 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57882             Bruno Haible  <bruno@clisp.org>
57883
57884         Improve memory cleanup in 'relocatable' module.
57885         * lib/relocatable.h (compute_curr_prefix): Change return type to
57886         'char *'.
57887         * lib/relocatable.c (compute_curr_prefix): Change return type to
57888         'char *'. Free curr_installdir after use.
57889         (relocate): Free curr_prefix_better after use.
57890         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57891
57892 2008-01-01  Bruno Haible  <bruno@clisp.org>
57893
57894         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57895         failure on older glibc systems.
57896         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57897
57898 2008-01-05  Eric Blake  <ebb9@byu.net>
57899
57900         Avoid quadratic system memmem.
57901         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57902         Reported by Ralf Wildenhues.
57903
57904         Fix memmem test for mingw.
57905         * modules/memmem-tests (configure.ac): Check for alarm.
57906         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57907         it.
57908         * doc/functions/memmem.texi: New file.
57909         * doc/gnulib.texi (Function Substitutes): Add memmem.
57910         Reported by Bruno Haible.
57911
57912 2008-01-04  Bruno Haible  <bruno@clisp.org>
57913
57914         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57915         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57916         gl_HEADER_STRING_H_DEFAULTS.
57917
57918 2008-01-04  Eric Blake  <ebb9@byu.net>
57919
57920         Shorten duration of memmem test.
57921         * tests/test-memmem.c (main): Use alarm to declare failure if test
57922         is taking too long.
57923         Reported by Ralf Wildenhues.
57924
57925 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57926
57927         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57928         string, needed by strerror.
57929
57930 2008-01-03  Colin Watson  <cjwatson@debian.org>
57931             Bruno Haible  <bruno@clisp.org>
57932
57933         * doc/gnulib-tool.texi (Localization): New section.
57934
57935 2008-01-02  Bruno Haible  <bruno@clisp.org>
57936
57937         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57938         variables to 'unsigned char *' type.
57939         Reported by Paul Eggert.
57940
57941 2008-01-02  Jim Meyering  <jim@meyering.net>
57942
57943         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57944
57945 2007-12-31  Jim Meyering  <jim@meyering.net>
57946
57947         Avoid use of private FTS type name.
57948         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57949
57950 2007-12-30  Karl Berry  <karl@gnu.org>
57951
57952         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57953         work around defect in Texinfo and/or the standalone Info browser.
57954
57955 2007-12-30  Bruno Haible  <bruno@clisp.org>
57956
57957         Unify 5 copies of the KMP code.
57958         * lib/str-kmp.h: New file.
57959         * lib/c-strcasestr.c: Include str-kmp.h.
57960         (knuth_morris_pratt): Remove function.
57961         (c_strcasestr): Update.
57962         * lib/c-strstr.c: Include str-kmp.h.
57963         (knuth_morris_pratt): Remove function.
57964         (c_strcasestr): Update.
57965         * lib/mbscasestr.c: Include str-kmp.h.
57966         (knuth_morris_pratt_unibyte): Remove function.
57967         * lib/mbsstr.c: Include str-kmp.h.
57968         (knuth_morris_pratt_unibyte): Remove function.
57969         * lib/strcasestr.c: Include str-kmp.h.
57970         (knuth_morris_pratt): Remove function.
57971         (strcasestr): Update.
57972         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57973         * modules/c-strstr (Files): Likewise.
57974         * modules/mbscasestr (Files): Likewise.
57975         * modules/mbsstr (Files): Likewise.
57976         * modules/strcasestr (Files): Likewise.
57977         Suggested by Paul Eggert.
57978
57979 2007-12-30  Bruno Haible  <bruno@clisp.org>
57980
57981         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57982         defined.
57983
57984 2007-12-30  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/xmalloca.h: Include xalloc.h.
57987         (xnmalloca): New macro.
57988
57989 2007-12-30  Bruno Haible  <bruno@clisp.org>
57990
57991         * lib/malloca.h (nmalloca): New macro.
57992         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57993         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57994         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57995         knuth_morris_pratt_multibyte): Likewise.
57996         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57997         knuth_morris_pratt_multibyte): Likewise.
57998         * lib/memmem.c (knuth_morris_pratt): Likewise.
57999         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58000
58001 2007-12-25  Bruno Haible  <bruno@clisp.org>
58002
58003         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58004         * lib/glob.c: Don't include openat.h.
58005         (link_exists2_p): Add back the code that deals with the
58006         !GLOB_ALTDIRFUNC case.
58007         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58008         let it do the filename concatenation.
58009         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58010         * modules/glob (Depends-on): Remove openat.
58011
58012 2007-12-31  Bruno Haible  <bruno@clisp.org>
58013
58014         * modules/dirfd (License): Change to LGPLv2+.
58015         Approved by Jim Meyering.
58016
58017 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58018
58019         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58020         when multiplying M by sizeof (size_t).
58021
58022 2007-12-10  Martin Lambers  <marlam@marlam.de>
58023
58024         Override getpagesize on mingw.
58025         * lib/getpagesize.c: New file.
58026         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58027         * modules/getpagesize (Files): Add lib/getpagesize.c.
58028         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58030         REPLACE_GETPAGESIZE.
58031         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58032
58033 2007-12-25  Bruno Haible  <bruno@clisp.org>
58034
58035         * modules/localcharset (Notice): New field.
58036         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58037         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58038
58039 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58040             Bruno Haible  <bruno@clisp.org>
58041
58042         Avoid using the syntax symbol() in formatted documentation.
58043         * MODULES.html.sh (func_module): When replacing symbol() with a
58044         hyperlink, remove the parentheses. Show an error if some remain.
58045         Recognize and render the '...' syntax.
58046         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58047         Rework. Add paragraph about GCC's inlining.
58048         * doc/alloca.texi: Likewise.
58049         * doc/error.texi: Remove parentheses from symbol reference.
58050         * doc/gnulib-intro.texi: Likewise.
58051         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58052         * modules/fnmatch (Description): Reword to say "the ... function".
58053         * modules/full-read (Description): Likewise.
58054         * modules/full-write (Description): Likewise.
58055         * modules/safe-read (Description): Likewise.
58056         * modules/safe-write (Description): Likewise.
58057         * modules/strchrnul (Description): Likewise.
58058         * modules/trim (Description): Likewise.
58059         * modules/error (Description): Remove parentheses from symbol
58060         references.
58061         * modules/verror (Description): Likewise.
58062         Reported by Karl Berry.
58063
58064 2007-12-25  Bruno Haible  <bruno@clisp.org>
58065
58066         Fixup after 2007-10-16 commit.
58067         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58068
58069 2007-12-24  Bruno Haible  <bruno@clisp.org>
58070
58071         Make --enable-relocatable work with DESTDIR.
58072         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58073         to compute installdir from destprog.
58074         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58075         also set the RELOC_DESTDIR variable.
58076         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58077
58078 2007-12-24  Bruno Haible  <bruno@clisp.org>
58079
58080         Fix link error due to xalloc_die().
58081         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58082         of xreadlink.
58083         * lib/relocwrapper.c: Update comments.
58084         * build-aux/install-reloc: Remove xreadlink.c from file list.
58085         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58086         xreadlink.c.
58087         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58088
58089 2007-12-24  Bruno Haible  <bruno@clisp.org>
58090
58091         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58092         * lib/setenv.h: Remove file.
58093         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58094         lib/setenv.h.
58095         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58096         (Depends-on): Add stdlib.
58097         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58098         gl_FUNC_UNSETENV.
58099         (Include): Replace setenv.h with <stdlib.h>.
58100         * modules/unsetenv: New file.
58101         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58102         * lib/unsetenv.c: Include <stdlib.h> first.
58103         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58104         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58105         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58106         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58107         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58108         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58110         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58111         * doc/functions/unsetenv.texi: Update.
58112         * modules/xsetenv (Depends-on): Add unsetenv.
58113         * modules/getdate (Depends-on): Likewise.
58114         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58115         * lib/xsetenv.c: Don't include setenv.h.
58116         * lib/getdate.y: Likewise.
58117         * lib/relocwrapper.c: Likewise.
58118         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58119         (Depends-on): Add stdlib.
58120         * NEWS: Mention the changes.
58121         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58122
58123 2007-12-23  Bruno Haible  <bruno@clisp.org>
58124
58125         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58126         indentation.
58127
58128 2007-12-23  Bruno Haible  <bruno@clisp.org>
58129
58130         * lib/c-strcasestr.c: Add more comments.
58131         * lib/c-strstr.c: Likewise.
58132         * lib/mbscasestr.c: Likewise.
58133         * lib/mbsstr.c: Likewise.
58134         * lib/strcasestr.c: Likewise.
58135         * lib/memmem.c: Likewise.
58136
58137 2007-12-23  Bruno Haible  <bruno@clisp.org>
58138
58139         * tests/test-memmem.c: Include <string.h> first.
58140
58141 2007-12-22  Bruno Haible  <bruno@clisp.org>
58142
58143         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58144         the contents of $testsbase.
58145         Reported by Ralf Wildenhues.
58146
58147 2007-12-22  Bruno Haible  <bruno@clisp.org>
58148
58149         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58150         two variables local_ldadd_before, local_ldadd_last.
58151
58152 2007-12-20  Eric Blake  <ebb9@byu.net>
58153
58154         Work around circular library issue when cross-compiling.
58155         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58156         that progname.o does not need to pull in rpl_memcmp.
58157
58158 2007-12-19  Eric Blake  <ebb9@byu.net>
58159
58160         Fix memmem to avoid O(n^2) worst-case complexity.
58161         * lib/memmem.c (knuth_morris_pratt): New function.
58162         (memmem): Use it if first few naive iterations fail.
58163         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58164         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58165         * modules/memchr (License): Likewise.
58166         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58167         malloca.
58168         * tests/test-memmem.c: Rewrite, borrowing ideas from
58169         test-mbsstr1.c; the old version wouldn't even compile!
58170         * modules/memmem-tests: New file.
58171         * lib/string.in.h (rpl_memmem): Add declaration.
58172         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58174         REPLACE_MEMMEM.
58175
58176 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58177
58178         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58179         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58180         before any system include files, and undef after them all.  This
58181         should fix a problem on VMS reported by John E. Malmberg in
58182         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58183
58184 2007-12-17  Eric Blake  <ebb9@byu.net>
58185
58186         Revert addition of verify, for BSD/OS.
58187         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58188         can't handle large files, for the sake of obsolete platforms.
58189         * modules/fseeko (Depends-on): Remove verify.
58190         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58191         * doc/functions/ftello.texi (ftello): Likewise.
58192         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58193         Reported by Larry Jones.
58194
58195 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58196
58197         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58198         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58199
58200 2007-12-17  Jim Meyering  <meyering@redhat.com>
58201
58202         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58203         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58204         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58205         * modules/getcwd (Depends-on): Add openat.
58206         Reported by Petr Salinger.
58207
58208 2007-12-17  Bruno Haible  <bruno@clisp.org>
58209
58210         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58211         avoid a segmentation fault of the configure test on x86_64 systems.
58212
58213 2007-12-15  Jim Meyering  <meyering@redhat.com>
58214
58215         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58216
58217 2007-12-13  Eric Blake  <ebb9@byu.net>
58218
58219         Another fseek test.
58220         * tests/test-fseek.c (main): Also test ungetc handling.
58221         * tests/test-fseeko.c (main): Likewise.
58222         * modules/fseeko (Depends-on): Add verify.
58223         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58224         large.
58225         Reported by Larry Jones.
58226
58227         Fix fseeko on mingw.
58228         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58229         seek.
58230
58231         Beef up fseek tests.
58232         * tests/test-fseek.c (main): Also test eof handling.
58233         * tests/test-fseeko.c (main): Likewise.
58234         Reported by Larry Jones.
58235
58236 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58237
58238         Fix fseeko on BSD-based platforms.
58239         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58240         successful seek.
58241
58242 2007-12-12  Eric Blake  <ebb9@byu.net>
58243
58244         Allow circular dependency of separate libtests.a
58245         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58246         when use_libtests.
58247
58248 2007-12-11  Eric Blake  <ebb9@byu.net>
58249
58250         Fix bug with -0.0L in previous patch.
58251         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58252         * tests/test-isnan.c (main): Also test on zeroes.
58253         * tests/test-isnanf.c (main): Likewise.
58254         * tests/test-isnanl.h (main): Likewise.
58255
58256         Detect pseudo-denormals on x86 even when cross-compiling.
58257         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58258         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58259         invalid bit patterns that happen to satisfy ==.
58260
58261         Avoid link failures with separate libtests.a.
58262         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58263         last, to satisfy circular dependencies.
58264
58265 2007-12-11  Eric Blake  <ebb9@byu.net>
58266         and Bruno Haible  <bruno@clisp.org>
58267
58268         Fix OpenBSD 4.0 <float.h> handling of long double.
58269         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58270         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58271         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58272
58273 2007-12-11  Jim Meyering  <meyering@redhat.com>
58274
58275         * users.txt: Add libvirt.
58276
58277         Support versions of autoconf prior to 2.59c.
58278         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58279         if it is not already defined.
58280
58281 2007-12-09  Bruno Haible  <bruno@clisp.org>
58282
58283         Let 'gnulib-tool --import' collect sources needed for the tests in
58284         tests/ rather than in lib/.
58285         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58286         argument. If true, add rules to generate libtests.a, and put libtests.a
58287         into $(LDADD). Consider source files in subdirectories and set
58288         uses_subdirs.
58289         (func_emit_initmacro_start, func_emit_initmacro_end,
58290         func_emit_initmacro_done): Pass all arguments explicitly.
58291         (func_import): Determine two module lists main_modules,
58292         testsrelated_modules. Determine use_libtests. Determine two variables
58293         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58294         instead of just sed_transform_lib_file. Determine two variables
58295         main_files and testsrelated_files. Compute 'files' as the union of
58296         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58297         func_add_or_update. In the generated gnulib-comp.m4, collect the
58298         object files for tests/ in different variables than those for lib/.
58299         Substitute LIBTESTS_LIBDEPS.
58300         (func_create_testdir): Combine the uses_subdirs results from
58301         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58302
58303 2007-12-09  Bruno Haible  <bruno@clisp.org>
58304
58305         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58306         the build-aux directory.
58307
58308 2007-12-09  Bruno Haible  <bruno@clisp.org>
58309
58310         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58311         introduced on 2006-09-09.
58312
58313 2007-12-07  Jim Meyering  <meyering@redhat.com>
58314
58315         Let these macros work also with autoconf-2.59.
58316         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58317         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58318         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58319
58320 2007-12-06  Jim Meyering  <meyering@redhat.com>
58321
58322         Avoid a configure-time syntax error in gl_FUNC_ACL.
58323         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58324         function in each branch, before testing the cache variable.
58325
58326 2007-12-04  Eric Blake  <ebb9@byu.net>
58327
58328         Make scripts executable.
58329         * build-aux/config.guess: Add execute permissions.
58330         * build-aux/config.sub: Likewise.
58331         * build-aux/gendocs.sh: Likewise.
58332
58333         Fix frexp on mingw.
58334         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58335         cross-compiling.
58336         * doc/functions/frexp.texi (frexp): Document the bug.
58337
58338         Make cygwin fseeko check more reliable.
58339         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58340         version numbers, rather than unrelated feature check.
58341         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58342         * doc/functions/ftello.texi (ftello): Likewise.
58343         Reported by Bruno Haible.
58344
58345         * m4/strerror.m4: Bump version number.
58346
58347 2007-12-03  Bruno Haible  <bruno@clisp.org>
58348
58349         * doc/functions/mprotect.texi: Mention the mingw problem.
58350
58351 2007-12-03  Eric Blake  <ebb9@byu.net>
58352
58353         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58354         REPLACE_STRERROR is initialized before this macro.
58355
58356 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58357
58358         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58359         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58360         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58361         put -lsec in even for programs other than 'ls'.  This fixes a problem
58362         for gettext reported by Bruno Haible in
58363         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58364         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58365         Add support for Solaris 10.  This isn't efficient, but should get the
58366         job done for now.
58367
58368 2007-12-03  James Youngman  <jay@gnu.org>
58369
58370         * doc/regexprops-generic.texi: change "an close-group" to "a
58371         close-group" and "illegal" to "not allowed".
58372
58373 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58374
58375         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58376         pr_byname.h. Needed for the rare case when the maintainer has done
58377         "make maintainer-clean" in the source directory and then attempts a
58378         build outside the source directory.
58379         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58380         scripts_byname.h.
58381
58382 2007-12-02  Martin Lambers <marlam@marlam.de>
58383             Bruno Haible  <bruno@clisp.org>
58384
58385         * lib/getpagesize.h: Remove file.
58386         * lib/unistd.in.h: Include declaration of getpagesize here.
58387         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58388         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58389         HAVE_SYS_PARAM_H.
58390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58391         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58392         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58393         (Depends-on): Add unistd.
58394         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58395         (Include): Use <unistd.h> instead of getpagesize.h.
58396         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58397         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58398         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58399         gl_GETPAGESIZE invocation, already handled by module dependency.
58400         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58401
58402 2007-12-02  Bruno Haible  <bruno@clisp.org>
58403
58404         * modules/strings-tests: New file.
58405         * tests/test-strings.c: New file.
58406
58407         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58408         * lib/strings.in.h: New file.
58409         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58410         * m4/strings_h.m4: New file.
58411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58412         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58413         * modules/strings: New file.
58414         * modules/string (Makefile.am): Update.
58415         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58416         Reported by Karl Berry.
58417
58418 2007-12-01  Eric Blake  <ebb9@byu.net>
58419
58420         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58421         accomodate fix in cygwin 1.5.25.
58422
58423 2007-12-01  Jim Meyering  <meyering@redhat.com>
58424
58425         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58426         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58427         that would inhibit utf8-optimization of a regexp containing line-
58428         or buffer-anchors, e.g., `^', `$'.
58429
58430 2007-11-30  Bruno Haible  <bruno@clisp.org>
58431
58432         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58433         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58434         glthread_recursive_lock_init.
58435         * lib/lock.c (glthread_recursive_lock_init)
58436         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58437         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58438
58439 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58440
58441         New function qset_acl, like set_acl but with syscall semantics.
58442         * lib/acl.h (qset_acl): New decl.
58443         * lib/acl.c (qset_acl): New function.
58444         (set_acl): Use new function.  Use more-consistent diagnostics.
58445
58446 2007-11-28  Jim Meyering  <meyering@redhat.com>
58447
58448         * modules/physmem (License): Change from GPL to LGPLv2+.
58449
58450 2007-11-26  Bruno Haible  <bruno@clisp.org>
58451
58452         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58453         'long double' type has excess precision.
58454         Reported by Jim Meyering in
58455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58456
58457 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58458
58459         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58460         Sync from <http://gnu.org/licenses>.
58461         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58462         with license text from same location.
58463         * doc/maintain.texi, doc/standards.texi:  Sync from
58464         <http://savannah.gnu.org/projects/gnustandards>.
58465
58466 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58467         and Jim Meyering  <meyering@redhat.com>
58468
58469         Adjust getdate' grammar to accept a slightly more regular language.
58470         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58471         Before, the former was rejected.
58472         * lib/getdate.y (digits_to_date_time): New function, factored
58473         out of ...
58474         (number): ...here.  Just call digits_to_date_time.
58475         (hybrid): New non-terminal to handle an <unsigned number,
58476         signed relative offset> sequence consistently.
58477
58478 2007-11-18  Jim Meyering  <meyering@redhat.com>
58479
58480         Pull my changes from coreutils:
58481         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58482         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58483         use of $gnulib_tool_option_extras, so that it's separated from the
58484         preceding argument.
58485
58486         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58487         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58488         parent destination directories before copying a file into place.
58489
58490 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58491
58492         bootstrap: work also with 4-argument variant of AC_INIT
58493         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58494
58495 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58496
58497         Port test-getaddrinfo to Solaris.
58498         Problem reported by Bruno Haible in
58499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58500         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58501         explanation of setting 'hints'.
58502         Don't reject an implementation merely because it returns EAI_SERVICE.
58503         (EAI_SERVICE): Define to 0 if not defined.
58504
58505 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58506
58507         The license of gnu-make and posix-shell is now "GPLed build tool".
58508         * modules/gnu-make (License): Likewise.
58509         * modules/posix-shell (License): Likewise.
58510
58511         New module posix-shell, for determining a POSIX shell
58512         or perhaps something that is close enough to a POSIX shell.
58513         * m4/posix-shell.m4: New file.
58514         * modules/posix-shell: New file.
58515
58516         * MODULES.html.sh: Mention new module.
58517
58518         New module gnu-make, for determining whether we're using GNU Make.
58519         * m4/gnu-make.m4: New file.
58520         * modules/gnu-make: New file.
58521         * MODULES.html.sh: Mention new module.
58522
58523 2007-11-14  Jim Meyering  <meyering@redhat.com>
58524
58525         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58526         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58527         use this macro to create a function _definition_.
58528         Remove useless "#undef ARGMATCH_DIE".
58529
58530 2007-11-14  Bruno Haible  <bruno@clisp.org>
58531
58532         * lib/config.charset: Update for OpenBSD 4.1.
58533         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58534
58535 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58536
58537         Document 64-bit #if problems in stdint.texi.
58538         * doc/headers/stdint.texi (stdint.h): Mention problems with
58539         64-bit-#if, and how to work around them.
58540
58541         Don't insist on 'long long int' support in the preprocessor.  It
58542         breaks too many things.  For example, PRIdMAX still uses a 'long
58543         long int' format with the latest Sun compiler, even though
58544         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58545         preprocessor problem.  This causes the latest coreutils to dump
58546         core on Solaris 10 sparc with the Sun C compiler.
58547         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58548         the troublesome expressions at configure-time, not at #if-time.
58549         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58550         preprocessor.
58551         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58552         compile-time C checks, done at 'configure'-time.
58553         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58554         * modules/inttypes (Makefile): Substitute the new symbols that
58555         gl_INTTYPES_H now generates.
58556         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58557
58558 2007-11-12  Bruno Haible  <bruno@clisp.org>
58559
58560         Tests for Unicode character classification functions.
58561
58562         * modules/unictype/bidicategory-byname-tests: New file.
58563         * modules/unictype/bidicategory-name-tests: New file.
58564         * modules/unictype/bidicategory-of-tests: New file.
58565         * modules/unictype/bidicategory-test-tests: New file.
58566         * modules/unictype/block-list-tests: New file.
58567         * modules/unictype/block-of-tests: New file.
58568         * modules/unictype/block-test-tests: New file.
58569         * modules/unictype/category-C-tests: New file.
58570         * modules/unictype/category-Cc-tests: New file.
58571         * modules/unictype/category-Cf-tests: New file.
58572         * modules/unictype/category-Cn-tests: New file.
58573         * modules/unictype/category-Co-tests: New file.
58574         * modules/unictype/category-Cs-tests: New file.
58575         * modules/unictype/category-L-tests: New file.
58576         * modules/unictype/category-Ll-tests: New file.
58577         * modules/unictype/category-Lm-tests: New file.
58578         * modules/unictype/category-Lo-tests: New file.
58579         * modules/unictype/category-Lt-tests: New file.
58580         * modules/unictype/category-Lu-tests: New file.
58581         * modules/unictype/category-M-tests: New file.
58582         * modules/unictype/category-Mc-tests: New file.
58583         * modules/unictype/category-Me-tests: New file.
58584         * modules/unictype/category-Mn-tests: New file.
58585         * modules/unictype/category-N-tests: New file.
58586         * modules/unictype/category-Nd-tests: New file.
58587         * modules/unictype/category-Nl-tests: New file.
58588         * modules/unictype/category-No-tests: New file.
58589         * modules/unictype/category-P-tests: New file.
58590         * modules/unictype/category-Pc-tests: New file.
58591         * modules/unictype/category-Pd-tests: New file.
58592         * modules/unictype/category-Pe-tests: New file.
58593         * modules/unictype/category-Pf-tests: New file.
58594         * modules/unictype/category-Pi-tests: New file.
58595         * modules/unictype/category-Po-tests: New file.
58596         * modules/unictype/category-Ps-tests: New file.
58597         * modules/unictype/category-S-tests: New file.
58598         * modules/unictype/category-Sc-tests: New file.
58599         * modules/unictype/category-Sk-tests: New file.
58600         * modules/unictype/category-Sm-tests: New file.
58601         * modules/unictype/category-So-tests: New file.
58602         * modules/unictype/category-Z-tests: New file.
58603         * modules/unictype/category-Zl-tests: New file.
58604         * modules/unictype/category-Zp-tests: New file.
58605         * modules/unictype/category-Zs-tests: New file.
58606         * modules/unictype/category-and-not-tests: New file.
58607         * modules/unictype/category-and-tests: New file.
58608         * modules/unictype/category-byname-tests: New file.
58609         * modules/unictype/category-name-tests: New file.
58610         * modules/unictype/category-none-tests: New file.
58611         * modules/unictype/category-of-tests: New file.
58612         * modules/unictype/category-or-tests: New file.
58613         * modules/unictype/category-test-withtable-tests: New file.
58614         * modules/unictype/combining-class-tests: New file.
58615         * modules/unictype/ctype-alnum-tests: New file.
58616         * modules/unictype/ctype-alpha-tests: New file.
58617         * modules/unictype/ctype-blank-tests: New file.
58618         * modules/unictype/ctype-cntrl-tests: New file.
58619         * modules/unictype/ctype-digit-tests: New file.
58620         * modules/unictype/ctype-graph-tests: New file.
58621         * modules/unictype/ctype-lower-tests: New file.
58622         * modules/unictype/ctype-print-tests: New file.
58623         * modules/unictype/ctype-punct-tests: New file.
58624         * modules/unictype/ctype-space-tests: New file.
58625         * modules/unictype/ctype-upper-tests: New file.
58626         * modules/unictype/ctype-xdigit-tests: New file.
58627         * modules/unictype/decimal-digit-tests: New file.
58628         * modules/unictype/digit-tests: New file.
58629         * modules/unictype/mirror-tests: New file.
58630         * modules/unictype/numeric-tests: New file.
58631         * modules/unictype/property-alphabetic-tests: New file.
58632         * modules/unictype/property-ascii-hex-digit-tests: New file.
58633         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58634         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58635         * modules/unictype/property-bidi-block-separator-tests: New file.
58636         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58637         * modules/unictype/property-bidi-common-separator-tests: New file.
58638         * modules/unictype/property-bidi-control-tests: New file.
58639         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58640         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58641         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58642         * modules/unictype/property-bidi-european-digit-tests: New file.
58643         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58644         * modules/unictype/property-bidi-left-to-right-tests: New file.
58645         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58646         * modules/unictype/property-bidi-other-neutral-tests: New file.
58647         * modules/unictype/property-bidi-pdf-tests: New file.
58648         * modules/unictype/property-bidi-segment-separator-tests: New file.
58649         * modules/unictype/property-bidi-whitespace-tests: New file.
58650         * modules/unictype/property-byname-tests: New file.
58651         * modules/unictype/property-combining-tests: New file.
58652         * modules/unictype/property-composite-tests: New file.
58653         * modules/unictype/property-currency-symbol-tests: New file.
58654         * modules/unictype/property-dash-tests: New file.
58655         * modules/unictype/property-decimal-digit-tests: New file.
58656         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58657         * modules/unictype/property-deprecated-tests: New file.
58658         * modules/unictype/property-diacritic-tests: New file.
58659         * modules/unictype/property-extender-tests: New file.
58660         * modules/unictype/property-format-control-tests: New file.
58661         * modules/unictype/property-grapheme-base-tests: New file.
58662         * modules/unictype/property-grapheme-extend-tests: New file.
58663         * modules/unictype/property-grapheme-link-tests: New file.
58664         * modules/unictype/property-hex-digit-tests: New file.
58665         * modules/unictype/property-hyphen-tests: New file.
58666         * modules/unictype/property-id-continue-tests: New file.
58667         * modules/unictype/property-id-start-tests: New file.
58668         * modules/unictype/property-ideographic-tests: New file.
58669         * modules/unictype/property-ids-binary-operator-tests: New file.
58670         * modules/unictype/property-ids-trinary-operator-tests: New file.
58671         * modules/unictype/property-ignorable-control-tests: New file.
58672         * modules/unictype/property-iso-control-tests: New file.
58673         * modules/unictype/property-join-control-tests: New file.
58674         * modules/unictype/property-left-of-pair-tests: New file.
58675         * modules/unictype/property-line-separator-tests: New file.
58676         * modules/unictype/property-logical-order-exception-tests: New file.
58677         * modules/unictype/property-lowercase-tests: New file.
58678         * modules/unictype/property-math-tests: New file.
58679         * modules/unictype/property-non-break-tests: New file.
58680         * modules/unictype/property-not-a-character-tests: New file.
58681         * modules/unictype/property-numeric-tests: New file.
58682         * modules/unictype/property-other-alphabetic-tests: New file.
58683         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58684         * modules/unictype/property-other-grapheme-extend-tests: New file.
58685         * modules/unictype/property-other-id-continue-tests: New file.
58686         * modules/unictype/property-other-id-start-tests: New file.
58687         * modules/unictype/property-other-lowercase-tests: New file.
58688         * modules/unictype/property-other-math-tests: New file.
58689         * modules/unictype/property-other-uppercase-tests: New file.
58690         * modules/unictype/property-paired-punctuation-tests: New file.
58691         * modules/unictype/property-paragraph-separator-tests: New file.
58692         * modules/unictype/property-pattern-syntax-tests: New file.
58693         * modules/unictype/property-pattern-white-space-tests: New file.
58694         * modules/unictype/property-private-use-tests: New file.
58695         * modules/unictype/property-punctuation-tests: New file.
58696         * modules/unictype/property-quotation-mark-tests: New file.
58697         * modules/unictype/property-radical-tests: New file.
58698         * modules/unictype/property-sentence-terminal-tests: New file.
58699         * modules/unictype/property-soft-dotted-tests: New file.
58700         * modules/unictype/property-space-tests: New file.
58701         * modules/unictype/property-terminal-punctuation-tests: New file.
58702         * modules/unictype/property-test-tests: New file.
58703         * modules/unictype/property-titlecase-tests: New file.
58704         * modules/unictype/property-unassigned-code-value-tests: New file.
58705         * modules/unictype/property-unified-ideograph-tests: New file.
58706         * modules/unictype/property-uppercase-tests: New file.
58707         * modules/unictype/property-variation-selector-tests: New file.
58708         * modules/unictype/property-white-space-tests: New file.
58709         * modules/unictype/property-xid-continue-tests: New file.
58710         * modules/unictype/property-xid-start-tests: New file.
58711         * modules/unictype/property-zero-width-tests: New file.
58712         * modules/unictype/scripts-tests: New file.
58713         * modules/unictype/syntax-c-ident-tests: New file.
58714         * modules/unictype/syntax-c-whitespace-tests: New file.
58715         * modules/unictype/syntax-java-ident-tests: New file.
58716         * modules/unictype/syntax-java-whitespace-tests: New file.
58717         * tests/unictype/test-bidi_byname.c: New file.
58718         * tests/unictype/test-bidi_name.c: New file.
58719         * tests/unictype/test-bidi_of.c: New file.
58720         * tests/unictype/test-bidi_test.c: New file.
58721         * tests/unictype/test-block_list.c: New file.
58722         * tests/unictype/test-block_of.c: New file.
58723         * tests/unictype/test-block_test.c: New file.
58724         * tests/unictype/test-categ_and.c: New file.
58725         * tests/unictype/test-categ_and_not.c: New file.
58726         * tests/unictype/test-categ_byname.c: New file.
58727         * tests/unictype/test-categ_name.c: New file.
58728         * tests/unictype/test-categ_none.c: New file.
58729         * tests/unictype/test-categ_of.c: New file.
58730         * tests/unictype/test-categ_or.c: New file.
58731         * tests/unictype/test-categ_test_withtable.c: New file.
58732         * tests/unictype/test-combining.c: New file.
58733         * tests/unictype/test-decdigit.c: New file.
58734         * tests/unictype/test-digit.c: New file.
58735         * tests/unictype/test-mirror.c: New file.
58736         * tests/unictype/test-numeric.c: New file.
58737         * tests/unictype/test-pr_byname.c: New file.
58738         * tests/unictype/test-pr_test.c: New file.
58739         * tests/unictype/test-predicate-part1.h: New file.
58740         * tests/unictype/test-predicate-part2.h: New file.
58741         * tests/unictype/test-scripts.c: New file.
58742         * tests/unictype/test-sy_c_ident.c: New file.
58743         * tests/unictype/test-sy_java_ident.c: New file.
58744
58745         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58746         for Unicode 5.0.0.
58747         * tests/unictype/test-categ_Cc.c: Likewise.
58748         * tests/unictype/test-categ_Cf.c: Likewise.
58749         * tests/unictype/test-categ_Cn.c: Likewise.
58750         * tests/unictype/test-categ_Co.c: Likewise.
58751         * tests/unictype/test-categ_Cs.c: Likewise.
58752         * tests/unictype/test-categ_L.c: Likewise.
58753         * tests/unictype/test-categ_Ll.c: Likewise.
58754         * tests/unictype/test-categ_Lm.c: Likewise.
58755         * tests/unictype/test-categ_Lo.c: Likewise.
58756         * tests/unictype/test-categ_Lt.c: Likewise.
58757         * tests/unictype/test-categ_Lu.c: Likewise.
58758         * tests/unictype/test-categ_M.c: Likewise.
58759         * tests/unictype/test-categ_Mc.c: Likewise.
58760         * tests/unictype/test-categ_Me.c: Likewise.
58761         * tests/unictype/test-categ_Mn.c: Likewise.
58762         * tests/unictype/test-categ_N.c: Likewise.
58763         * tests/unictype/test-categ_Nd.c: Likewise.
58764         * tests/unictype/test-categ_Nl.c: Likewise.
58765         * tests/unictype/test-categ_No.c: Likewise.
58766         * tests/unictype/test-categ_P.c: Likewise.
58767         * tests/unictype/test-categ_Pc.c: Likewise.
58768         * tests/unictype/test-categ_Pd.c: Likewise.
58769         * tests/unictype/test-categ_Pe.c: Likewise.
58770         * tests/unictype/test-categ_Pf.c: Likewise.
58771         * tests/unictype/test-categ_Pi.c: Likewise.
58772         * tests/unictype/test-categ_Po.c: Likewise.
58773         * tests/unictype/test-categ_Ps.c: Likewise.
58774         * tests/unictype/test-categ_S.c: Likewise.
58775         * tests/unictype/test-categ_Sc.c: Likewise.
58776         * tests/unictype/test-categ_Sk.c: Likewise.
58777         * tests/unictype/test-categ_Sm.c: Likewise.
58778         * tests/unictype/test-categ_So.c: Likewise.
58779         * tests/unictype/test-categ_Z.c: Likewise.
58780         * tests/unictype/test-categ_Zl.c: Likewise.
58781         * tests/unictype/test-categ_Zp.c: Likewise.
58782         * tests/unictype/test-categ_Zs.c: Likewise.
58783         * tests/unictype/test-ctype_alnum.c: Likewise.
58784         * tests/unictype/test-ctype_alpha.c: Likewise.
58785         * tests/unictype/test-ctype_blank.c: Likewise.
58786         * tests/unictype/test-ctype_cntrl.c: Likewise.
58787         * tests/unictype/test-ctype_digit.c: Likewise.
58788         * tests/unictype/test-ctype_graph.c: Likewise.
58789         * tests/unictype/test-ctype_lower.c: Likewise.
58790         * tests/unictype/test-ctype_print.c: Likewise.
58791         * tests/unictype/test-ctype_punct.c: Likewise.
58792         * tests/unictype/test-ctype_space.c: Likewise.
58793         * tests/unictype/test-ctype_upper.c: Likewise.
58794         * tests/unictype/test-ctype_xdigit.c: Likewise.
58795         * tests/unictype/test-decdigit.h: Likewise.
58796         * tests/unictype/test-digit.h: Likewise.
58797         * tests/unictype/test-numeric.h: Likewise.
58798         * tests/unictype/test-pr_alphabetic.c: Likewise.
58799         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58800         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58801         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58802         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58803         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58804         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58805         * tests/unictype/test-pr_bidi_control.c: Likewise.
58806         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58807         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58808         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58809         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58810         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58811         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58812         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58813         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58814         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58815         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58816         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58817         * tests/unictype/test-pr_combining.c: Likewise.
58818         * tests/unictype/test-pr_composite.c: Likewise.
58819         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58820         * tests/unictype/test-pr_dash.c: Likewise.
58821         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58822         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58823         * tests/unictype/test-pr_deprecated.c: Likewise.
58824         * tests/unictype/test-pr_diacritic.c: Likewise.
58825         * tests/unictype/test-pr_extender.c: Likewise.
58826         * tests/unictype/test-pr_format_control.c: Likewise.
58827         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58828         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58829         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58830         * tests/unictype/test-pr_hex_digit.c: Likewise.
58831         * tests/unictype/test-pr_hyphen.c: Likewise.
58832         * tests/unictype/test-pr_id_continue.c: Likewise.
58833         * tests/unictype/test-pr_id_start.c: Likewise.
58834         * tests/unictype/test-pr_ideographic.c: Likewise.
58835         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58836         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58837         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58838         * tests/unictype/test-pr_iso_control.c: Likewise.
58839         * tests/unictype/test-pr_join_control.c: Likewise.
58840         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58841         * tests/unictype/test-pr_line_separator.c: Likewise.
58842         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58843         * tests/unictype/test-pr_lowercase.c: Likewise.
58844         * tests/unictype/test-pr_math.c: Likewise.
58845         * tests/unictype/test-pr_non_break.c: Likewise.
58846         * tests/unictype/test-pr_not_a_character.c: Likewise.
58847         * tests/unictype/test-pr_numeric.c: Likewise.
58848         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58849         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58850         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58851         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58852         * tests/unictype/test-pr_other_id_start.c: Likewise.
58853         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58854         * tests/unictype/test-pr_other_math.c: Likewise.
58855         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58856         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58857         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58858         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58859         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58860         * tests/unictype/test-pr_private_use.c: Likewise.
58861         * tests/unictype/test-pr_punctuation.c: Likewise.
58862         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58863         * tests/unictype/test-pr_radical.c: Likewise.
58864         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58865         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58866         * tests/unictype/test-pr_space.c: Likewise.
58867         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58868         * tests/unictype/test-pr_titlecase.c: Likewise.
58869         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58870         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58871         * tests/unictype/test-pr_uppercase.c: Likewise.
58872         * tests/unictype/test-pr_variation_selector.c: Likewise.
58873         * tests/unictype/test-pr_white_space.c: Likewise.
58874         * tests/unictype/test-pr_xid_continue.c: Likewise.
58875         * tests/unictype/test-pr_xid_start.c: Likewise.
58876         * tests/unictype/test-pr_zero_width.c: Likewise.
58877         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58878         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58879
58880 2007-11-12  Bruno Haible  <bruno@clisp.org>
58881
58882         Unicode character classification functions.
58883         * lib/unictype.h: New file.
58884         * modules/unictype/base: New file.
58885         * modules/unictype/category-L: New file.
58886         * modules/unictype/category-Lu: New file.
58887         * modules/unictype/category-Ll: New file.
58888         * modules/unictype/category-Lt: New file.
58889         * modules/unictype/category-Lm: New file.
58890         * modules/unictype/category-Lo: New file.
58891         * modules/unictype/category-M: New file.
58892         * modules/unictype/category-Mn: New file.
58893         * modules/unictype/category-Mc: New file.
58894         * modules/unictype/category-Me: New file.
58895         * modules/unictype/category-N: New file.
58896         * modules/unictype/category-Nd: New file.
58897         * modules/unictype/category-Nl: New file.
58898         * modules/unictype/category-No: New file.
58899         * modules/unictype/category-P: New file.
58900         * modules/unictype/category-Pc: New file.
58901         * modules/unictype/category-Pd: New file.
58902         * modules/unictype/category-Ps: New file.
58903         * modules/unictype/category-Pe: New file.
58904         * modules/unictype/category-Pi: New file.
58905         * modules/unictype/category-Pf: New file.
58906         * modules/unictype/category-Po: New file.
58907         * modules/unictype/category-S: New file.
58908         * modules/unictype/category-Sm: New file.
58909         * modules/unictype/category-Sc: New file.
58910         * modules/unictype/category-Sk: New file.
58911         * modules/unictype/category-So: New file.
58912         * modules/unictype/category-Z: New file.
58913         * modules/unictype/category-Zs: New file.
58914         * modules/unictype/category-Zl: New file.
58915         * modules/unictype/category-Zp: New file.
58916         * modules/unictype/category-C: New file.
58917         * modules/unictype/category-Cc: New file.
58918         * modules/unictype/category-Cf: New file.
58919         * modules/unictype/category-Cs: New file.
58920         * modules/unictype/category-Co: New file.
58921         * modules/unictype/category-Cn: New file.
58922         * modules/unictype/category-or: New file.
58923         * modules/unictype/category-of: New file.
58924         * modules/unictype/category-test: New file.
58925         * modules/unictype/category-test-withtable: New file.
58926         * modules/unictype/category-byname: New file.
58927         * modules/unictype/category-none: New file.
58928         * modules/unictype/category-and: New file.
58929         * modules/unictype/category-and-not: New file.
58930         * modules/unictype/category-name: New file.
58931         * modules/unictype/combining-class: New file.
58932         * modules/unictype/category-all: New file.
58933         * modules/unictype/bidicategory-all: New file.
58934         * modules/unictype/bidicategory-byname: New file.
58935         * modules/unictype/bidicategory-name: New file.
58936         * modules/unictype/bidicategory-of: New file.
58937         * modules/unictype/bidicategory-test: New file.
58938         * modules/unictype/decimal-digit: New file.
58939         * modules/unictype/digit: New file.
58940         * modules/unictype/numeric: New file.
58941         * modules/unictype/mirror: New file.
58942         * modules/unictype/property-white-space: New file.
58943         * modules/unictype/property-alphabetic: New file.
58944         * modules/unictype/property-other-alphabetic: New file.
58945         * modules/unictype/property-not-a-character: New file.
58946         * modules/unictype/property-default-ignorable-code-point: New file.
58947         * modules/unictype/property-other-default-ignorable-code-point: New
58948         file.
58949         * modules/unictype/property-deprecated: New file.
58950         * modules/unictype/property-logical-order-exception: New file.
58951         * modules/unictype/property-variation-selector: New file.
58952         * modules/unictype/property-private-use: New file.
58953         * modules/unictype/property-unassigned-code-value: New file.
58954         * modules/unictype/property-uppercase: New file.
58955         * modules/unictype/property-other-uppercase: New file.
58956         * modules/unictype/property-lowercase: New file.
58957         * modules/unictype/property-other-lowercase: New file.
58958         * modules/unictype/property-titlecase: New file.
58959         * modules/unictype/property-soft-dotted: New file.
58960         * modules/unictype/property-id-start: New file.
58961         * modules/unictype/property-other-id-start: New file.
58962         * modules/unictype/property-id-continue: New file.
58963         * modules/unictype/property-other-id-continue: New file.
58964         * modules/unictype/property-xid-start: New file.
58965         * modules/unictype/property-xid-continue: New file.
58966         * modules/unictype/property-pattern-white-space: New file.
58967         * modules/unictype/property-pattern-syntax: New file.
58968         * modules/unictype/property-join-control: New file.
58969         * modules/unictype/property-grapheme-base: New file.
58970         * modules/unictype/property-grapheme-extend: New file.
58971         * modules/unictype/property-other-grapheme-extend: New file.
58972         * modules/unictype/property-grapheme-link: New file.
58973         * modules/unictype/property-bidi-control: New file.
58974         * modules/unictype/property-bidi-left-to-right: New file.
58975         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58976         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58977         * modules/unictype/property-bidi-european-digit: New file.
58978         * modules/unictype/property-bidi-eur-num-separator: New file.
58979         * modules/unictype/property-bidi-eur-num-terminator: New file.
58980         * modules/unictype/property-bidi-arabic-digit: New file.
58981         * modules/unictype/property-bidi-common-separator: New file.
58982         * modules/unictype/property-bidi-block-separator: New file.
58983         * modules/unictype/property-bidi-segment-separator: New file.
58984         * modules/unictype/property-bidi-whitespace: New file.
58985         * modules/unictype/property-bidi-non-spacing-mark: New file.
58986         * modules/unictype/property-bidi-boundary-neutral: New file.
58987         * modules/unictype/property-bidi-pdf: New file.
58988         * modules/unictype/property-bidi-embedding-or-override: New file.
58989         * modules/unictype/property-bidi-other-neutral: New file.
58990         * modules/unictype/property-hex-digit: New file.
58991         * modules/unictype/property-ascii-hex-digit: New file.
58992         * modules/unictype/property-ideographic: New file.
58993         * modules/unictype/property-unified-ideograph: New file.
58994         * modules/unictype/property-radical: New file.
58995         * modules/unictype/property-ids-binary-operator: New file.
58996         * modules/unictype/property-ids-trinary-operator: New file.
58997         * modules/unictype/property-zero-width: New file.
58998         * modules/unictype/property-space: New file.
58999         * modules/unictype/property-non-break: New file.
59000         * modules/unictype/property-iso-control: New file.
59001         * modules/unictype/property-format-control: New file.
59002         * modules/unictype/property-dash: New file.
59003         * modules/unictype/property-hyphen: New file.
59004         * modules/unictype/property-punctuation: New file.
59005         * modules/unictype/property-line-separator: New file.
59006         * modules/unictype/property-paragraph-separator: New file.
59007         * modules/unictype/property-quotation-mark: New file.
59008         * modules/unictype/property-sentence-terminal: New file.
59009         * modules/unictype/property-terminal-punctuation: New file.
59010         * modules/unictype/property-currency-symbol: New file.
59011         * modules/unictype/property-math: New file.
59012         * modules/unictype/property-other-math: New file.
59013         * modules/unictype/property-paired-punctuation: New file.
59014         * modules/unictype/property-left-of-pair: New file.
59015         * modules/unictype/property-combining: New file.
59016         * modules/unictype/property-composite: New file.
59017         * modules/unictype/property-decimal-digit: New file.
59018         * modules/unictype/property-numeric: New file.
59019         * modules/unictype/property-diacritic: New file.
59020         * modules/unictype/property-extender: New file.
59021         * modules/unictype/property-ignorable-control: New file.
59022         * modules/unictype/property-test: New file.
59023         * modules/unictype/property-byname: New file.
59024         * modules/unictype/property-all: New file.
59025         * modules/unictype/scripts: New file.
59026         * modules/unictype/scripts-all: New file.
59027         * modules/unictype/block-of: New file.
59028         * modules/unictype/block-test: New file.
59029         * modules/unictype/block-list: New file.
59030         * modules/unictype/block-all: New file.
59031         * modules/unictype/syntax-c-whitespace: New file.
59032         * modules/unictype/syntax-java-whitespace: New file.
59033         * modules/unictype/syntax-c-ident: New file.
59034         * modules/unictype/syntax-java-ident: New file.
59035         * modules/unictype/ctype-alnum: New file.
59036         * modules/unictype/ctype-alpha: New file.
59037         * modules/unictype/ctype-cntrl: New file.
59038         * modules/unictype/ctype-digit: New file.
59039         * modules/unictype/ctype-graph: New file.
59040         * modules/unictype/ctype-lower: New file.
59041         * modules/unictype/ctype-print: New file.
59042         * modules/unictype/ctype-punct: New file.
59043         * modules/unictype/ctype-space: New file.
59044         * modules/unictype/ctype-upper: New file.
59045         * modules/unictype/ctype-xdigit: New file.
59046         * modules/unictype/ctype-blank: New file.
59047         * lib/unictype/bidi_byname.c: New file.
59048         * lib/unictype/bidi_name.c: New file.
59049         * lib/unictype/bidi_of.c: New file.
59050         * lib/unictype/bidi_test.c: New file.
59051         * lib/unictype/bitmap.h: New file.
59052         * lib/unictype/block_test.c: New file.
59053         * lib/unictype/blocks.c: New file.
59054         * lib/unictype/categ_C.c: New file.
59055         * lib/unictype/categ_Cc.c: New file.
59056         * lib/unictype/categ_Cf.c: New file.
59057         * lib/unictype/categ_Cn.c: New file.
59058         * lib/unictype/categ_Co.c: New file.
59059         * lib/unictype/categ_Cs.c: New file.
59060         * lib/unictype/categ_L.c: New file.
59061         * lib/unictype/categ_Ll.c: New file.
59062         * lib/unictype/categ_Lm.c: New file.
59063         * lib/unictype/categ_Lo.c: New file.
59064         * lib/unictype/categ_Lt.c: New file.
59065         * lib/unictype/categ_Lu.c: New file.
59066         * lib/unictype/categ_M.c: New file.
59067         * lib/unictype/categ_Mc.c: New file.
59068         * lib/unictype/categ_Me.c: New file.
59069         * lib/unictype/categ_Mn.c: New file.
59070         * lib/unictype/categ_N.c: New file.
59071         * lib/unictype/categ_Nd.c: New file.
59072         * lib/unictype/categ_Nl.c: New file.
59073         * lib/unictype/categ_No.c: New file.
59074         * lib/unictype/categ_P.c: New file.
59075         * lib/unictype/categ_Pc.c: New file.
59076         * lib/unictype/categ_Pd.c: New file.
59077         * lib/unictype/categ_Pe.c: New file.
59078         * lib/unictype/categ_Pf.c: New file.
59079         * lib/unictype/categ_Pi.c: New file.
59080         * lib/unictype/categ_Po.c: New file.
59081         * lib/unictype/categ_Ps.c: New file.
59082         * lib/unictype/categ_S.c: New file.
59083         * lib/unictype/categ_Sc.c: New file.
59084         * lib/unictype/categ_Sk.c: New file.
59085         * lib/unictype/categ_Sm.c: New file.
59086         * lib/unictype/categ_So.c: New file.
59087         * lib/unictype/categ_Z.c: New file.
59088         * lib/unictype/categ_Zl.c: New file.
59089         * lib/unictype/categ_Zp.c: New file.
59090         * lib/unictype/categ_Zs.c: New file.
59091         * lib/unictype/categ_and.c: New file.
59092         * lib/unictype/categ_and_not.c: New file.
59093         * lib/unictype/categ_byname.c: New file.
59094         * lib/unictype/categ_name.c: New file.
59095         * lib/unictype/categ_none.c: New file.
59096         * lib/unictype/categ_of.c: New file.
59097         * lib/unictype/categ_or.c: New file.
59098         * lib/unictype/categ_test.c: New file.
59099         * lib/unictype/combining.c: New file.
59100         * lib/unictype/ctype_alnum.c: New file.
59101         * lib/unictype/ctype_alpha.c: New file.
59102         * lib/unictype/ctype_blank.c: New file.
59103         * lib/unictype/ctype_cntrl.c: New file.
59104         * lib/unictype/ctype_digit.c: New file.
59105         * lib/unictype/ctype_graph.c: New file.
59106         * lib/unictype/ctype_lower.c: New file.
59107         * lib/unictype/ctype_print.c: New file.
59108         * lib/unictype/ctype_punct.c: New file.
59109         * lib/unictype/ctype_space.c: New file.
59110         * lib/unictype/ctype_upper.c: New file.
59111         * lib/unictype/ctype_xdigit.c: New file.
59112         * lib/unictype/decdigit.c: New file.
59113         * lib/unictype/digit.c: New file.
59114         * lib/unictype/identsyntaxmap.h: New file.
59115         * lib/unictype/mirror.c: New file.
59116         * lib/unictype/numeric.c: New file.
59117         * lib/unictype/pr_alphabetic.c: New file.
59118         * lib/unictype/pr_ascii_hex_digit.c: New file.
59119         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59120         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59121         * lib/unictype/pr_bidi_block_separator.c: New file.
59122         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59123         * lib/unictype/pr_bidi_common_separator.c: New file.
59124         * lib/unictype/pr_bidi_control.c: New file.
59125         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59126         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59127         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59128         * lib/unictype/pr_bidi_european_digit.c: New file.
59129         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59130         * lib/unictype/pr_bidi_left_to_right.c: New file.
59131         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59132         * lib/unictype/pr_bidi_other_neutral.c: New file.
59133         * lib/unictype/pr_bidi_pdf.c: New file.
59134         * lib/unictype/pr_bidi_segment_separator.c: New file.
59135         * lib/unictype/pr_bidi_whitespace.c: New file.
59136         * lib/unictype/pr_byname.c: New file.
59137         * lib/unictype/pr_byname.gperf: New file.
59138         * lib/unictype/pr_combining.c: New file.
59139         * lib/unictype/pr_composite.c: New file.
59140         * lib/unictype/pr_currency_symbol.c: New file.
59141         * lib/unictype/pr_dash.c: New file.
59142         * lib/unictype/pr_decimal_digit.c: New file.
59143         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59144         * lib/unictype/pr_deprecated.c: New file.
59145         * lib/unictype/pr_diacritic.c: New file.
59146         * lib/unictype/pr_extender.c: New file.
59147         * lib/unictype/pr_format_control.c: New file.
59148         * lib/unictype/pr_grapheme_base.c: New file.
59149         * lib/unictype/pr_grapheme_extend.c: New file.
59150         * lib/unictype/pr_grapheme_link.c: New file.
59151         * lib/unictype/pr_hex_digit.c: New file.
59152         * lib/unictype/pr_hyphen.c: New file.
59153         * lib/unictype/pr_id_continue.c: New file.
59154         * lib/unictype/pr_id_start.c: New file.
59155         * lib/unictype/pr_ideographic.c: New file.
59156         * lib/unictype/pr_ids_binary_operator.c: New file.
59157         * lib/unictype/pr_ids_trinary_operator.c: New file.
59158         * lib/unictype/pr_ignorable_control.c: New file.
59159         * lib/unictype/pr_iso_control.c: New file.
59160         * lib/unictype/pr_join_control.c: New file.
59161         * lib/unictype/pr_left_of_pair.c: New file.
59162         * lib/unictype/pr_line_separator.c: New file.
59163         * lib/unictype/pr_logical_order_exception.c: New file.
59164         * lib/unictype/pr_lowercase.c: New file.
59165         * lib/unictype/pr_math.c: New file.
59166         * lib/unictype/pr_non_break.c: New file.
59167         * lib/unictype/pr_not_a_character.c: New file.
59168         * lib/unictype/pr_numeric.c: New file.
59169         * lib/unictype/pr_other_alphabetic.c: New file.
59170         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59171         * lib/unictype/pr_other_grapheme_extend.c: New file.
59172         * lib/unictype/pr_other_id_continue.c: New file.
59173         * lib/unictype/pr_other_id_start.c: New file.
59174         * lib/unictype/pr_other_lowercase.c: New file.
59175         * lib/unictype/pr_other_math.c: New file.
59176         * lib/unictype/pr_other_uppercase.c: New file.
59177         * lib/unictype/pr_paired_punctuation.c: New file.
59178         * lib/unictype/pr_paragraph_separator.c: New file.
59179         * lib/unictype/pr_pattern_syntax.c: New file.
59180         * lib/unictype/pr_pattern_white_space.c: New file.
59181         * lib/unictype/pr_private_use.c: New file.
59182         * lib/unictype/pr_punctuation.c: New file.
59183         * lib/unictype/pr_quotation_mark.c: New file.
59184         * lib/unictype/pr_radical.c: New file.
59185         * lib/unictype/pr_sentence_terminal.c: New file.
59186         * lib/unictype/pr_soft_dotted.c: New file.
59187         * lib/unictype/pr_space.c: New file.
59188         * lib/unictype/pr_terminal_punctuation.c: New file.
59189         * lib/unictype/pr_test.c: New file.
59190         * lib/unictype/pr_titlecase.c: New file.
59191         * lib/unictype/pr_unassigned_code_value.c: New file.
59192         * lib/unictype/pr_unified_ideograph.c: New file.
59193         * lib/unictype/pr_uppercase.c: New file.
59194         * lib/unictype/pr_variation_selector.c: New file.
59195         * lib/unictype/pr_white_space.c: New file.
59196         * lib/unictype/pr_xid_continue.c: New file.
59197         * lib/unictype/pr_xid_start.c: New file.
59198         * lib/unictype/pr_zero_width.c: New file.
59199         * lib/unictype/scripts.c: New file.
59200         * lib/unictype/sy_c_ident.c: New file.
59201         * lib/unictype/sy_c_whitespace.c: New file.
59202         * lib/unictype/sy_java_ident.c: New file.
59203         * lib/unictype/sy_java_whitespace.c: New file.
59204
59205         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59206         Unicode 5.0.0.
59207         * lib/unictype/blocks.h: Likewise.
59208         * lib/unictype/categ_C.h: Likewise.
59209         * lib/unictype/categ_Cc.h: Likewise.
59210         * lib/unictype/categ_Cf.h: Likewise.
59211         * lib/unictype/categ_Cn.h: Likewise.
59212         * lib/unictype/categ_Co.h: Likewise.
59213         * lib/unictype/categ_Cs.h: Likewise.
59214         * lib/unictype/categ_L.h: Likewise.
59215         * lib/unictype/categ_Ll.h: Likewise.
59216         * lib/unictype/categ_Lm.h: Likewise.
59217         * lib/unictype/categ_Lo.h: Likewise.
59218         * lib/unictype/categ_Lt.h: Likewise.
59219         * lib/unictype/categ_Lu.h: Likewise.
59220         * lib/unictype/categ_M.h: Likewise.
59221         * lib/unictype/categ_Mc.h: Likewise.
59222         * lib/unictype/categ_Me.h: Likewise.
59223         * lib/unictype/categ_Mn.h: Likewise.
59224         * lib/unictype/categ_N.h: Likewise.
59225         * lib/unictype/categ_Nd.h: Likewise.
59226         * lib/unictype/categ_Nl.h: Likewise.
59227         * lib/unictype/categ_No.h: Likewise.
59228         * lib/unictype/categ_P.h: Likewise.
59229         * lib/unictype/categ_Pc.h: Likewise.
59230         * lib/unictype/categ_Pd.h: Likewise.
59231         * lib/unictype/categ_Pe.h: Likewise.
59232         * lib/unictype/categ_Pf.h: Likewise.
59233         * lib/unictype/categ_Pi.h: Likewise.
59234         * lib/unictype/categ_Po.h: Likewise.
59235         * lib/unictype/categ_Ps.h: Likewise.
59236         * lib/unictype/categ_S.h: Likewise.
59237         * lib/unictype/categ_Sc.h: Likewise.
59238         * lib/unictype/categ_Sk.h: Likewise.
59239         * lib/unictype/categ_Sm.h: Likewise.
59240         * lib/unictype/categ_So.h: Likewise.
59241         * lib/unictype/categ_Z.h: Likewise.
59242         * lib/unictype/categ_Zl.h: Likewise.
59243         * lib/unictype/categ_Zp.h: Likewise.
59244         * lib/unictype/categ_Zs.h: Likewise.
59245         * lib/unictype/categ_of.h: Likewise.
59246         * lib/unictype/combining.h: Likewise.
59247         * lib/unictype/ctype_alnum.h: Likewise.
59248         * lib/unictype/ctype_alpha.h: Likewise.
59249         * lib/unictype/ctype_blank.h: Likewise.
59250         * lib/unictype/ctype_cntrl.h: Likewise.
59251         * lib/unictype/ctype_digit.h: Likewise.
59252         * lib/unictype/ctype_graph.h: Likewise.
59253         * lib/unictype/ctype_lower.h: Likewise.
59254         * lib/unictype/ctype_print.h: Likewise.
59255         * lib/unictype/ctype_punct.h: Likewise.
59256         * lib/unictype/ctype_space.h: Likewise.
59257         * lib/unictype/ctype_upper.h: Likewise.
59258         * lib/unictype/ctype_xdigit.h: Likewise.
59259         * lib/unictype/decdigit.h: Likewise.
59260         * lib/unictype/digit.h: Likewise.
59261         * lib/unictype/mirror.h: Likewise.
59262         * lib/unictype/numeric.h: Likewise.
59263         * lib/unictype/pr_alphabetic.h: Likewise.
59264         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59265         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59266         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59267         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59268         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59269         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59270         * lib/unictype/pr_bidi_control.h: Likewise.
59271         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59272         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59273         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59274         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59275         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59276         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59277         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59278         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59279         * lib/unictype/pr_bidi_pdf.h: Likewise.
59280         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59281         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59282         * lib/unictype/pr_combining.h: Likewise.
59283         * lib/unictype/pr_composite.h: Likewise.
59284         * lib/unictype/pr_currency_symbol.h: Likewise.
59285         * lib/unictype/pr_dash.h: Likewise.
59286         * lib/unictype/pr_decimal_digit.h: Likewise.
59287         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59288         * lib/unictype/pr_deprecated.h: Likewise.
59289         * lib/unictype/pr_diacritic.h: Likewise.
59290         * lib/unictype/pr_extender.h: Likewise.
59291         * lib/unictype/pr_format_control.h: Likewise.
59292         * lib/unictype/pr_grapheme_base.h: Likewise.
59293         * lib/unictype/pr_grapheme_extend.h: Likewise.
59294         * lib/unictype/pr_grapheme_link.h: Likewise.
59295         * lib/unictype/pr_hex_digit.h: Likewise.
59296         * lib/unictype/pr_hyphen.h: Likewise.
59297         * lib/unictype/pr_id_continue.h: Likewise.
59298         * lib/unictype/pr_id_start.h: Likewise.
59299         * lib/unictype/pr_ideographic.h: Likewise.
59300         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59301         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59302         * lib/unictype/pr_ignorable_control.h: Likewise.
59303         * lib/unictype/pr_iso_control.h: Likewise.
59304         * lib/unictype/pr_join_control.h: Likewise.
59305         * lib/unictype/pr_left_of_pair.h: Likewise.
59306         * lib/unictype/pr_line_separator.h: Likewise.
59307         * lib/unictype/pr_logical_order_exception.h: Likewise.
59308         * lib/unictype/pr_lowercase.h: Likewise.
59309         * lib/unictype/pr_math.h: Likewise.
59310         * lib/unictype/pr_non_break.h: Likewise.
59311         * lib/unictype/pr_not_a_character.h: Likewise.
59312         * lib/unictype/pr_numeric.h: Likewise.
59313         * lib/unictype/pr_other_alphabetic.h: Likewise.
59314         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59315         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59316         * lib/unictype/pr_other_id_continue.h: Likewise.
59317         * lib/unictype/pr_other_id_start.h: Likewise.
59318         * lib/unictype/pr_other_lowercase.h: Likewise.
59319         * lib/unictype/pr_other_math.h: Likewise.
59320         * lib/unictype/pr_other_uppercase.h: Likewise.
59321         * lib/unictype/pr_paired_punctuation.h: Likewise.
59322         * lib/unictype/pr_paragraph_separator.h: Likewise.
59323         * lib/unictype/pr_pattern_syntax.h: Likewise.
59324         * lib/unictype/pr_pattern_white_space.h: Likewise.
59325         * lib/unictype/pr_private_use.h: Likewise.
59326         * lib/unictype/pr_punctuation.h: Likewise.
59327         * lib/unictype/pr_quotation_mark.h: Likewise.
59328         * lib/unictype/pr_radical.h: Likewise.
59329         * lib/unictype/pr_sentence_terminal.h: Likewise.
59330         * lib/unictype/pr_soft_dotted.h: Likewise.
59331         * lib/unictype/pr_space.h: Likewise.
59332         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59333         * lib/unictype/pr_titlecase.h: Likewise.
59334         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59335         * lib/unictype/pr_unified_ideograph.h: Likewise.
59336         * lib/unictype/pr_uppercase.h: Likewise.
59337         * lib/unictype/pr_variation_selector.h: Likewise.
59338         * lib/unictype/pr_white_space.h: Likewise.
59339         * lib/unictype/pr_xid_continue.h: Likewise.
59340         * lib/unictype/pr_xid_start.h: Likewise.
59341         * lib/unictype/pr_zero_width.h: Likewise.
59342         * lib/unictype/scripts.h: Likewise.
59343         * lib/unictype/scripts_byname.gperf: Likewise.
59344         * lib/unictype/sy_c_ident.h: Likewise.
59345         * lib/unictype/sy_c_whitespace.h: Likewise.
59346         * lib/unictype/sy_java_ident.h: Likewise.
59347         * lib/unictype/sy_java_whitespace.h: Likewise.
59348
59349         * lib/unictype/Makefile: New file.
59350         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59351         glibc.
59352         * lib/unictype/3level.h: New file, copied from glibc.
59353         * lib/unictype/3levelbit.h: New file.
59354
59355 2007-11-11  Bruno Haible  <bruno@clisp.org>
59356
59357         * modules/gperf: New file.
59358         * modules/iconv_open (Depends-on): Add it.
59359         (Makefile.am): Remove the GPERF definition.
59360
59361 2007-11-11  Bruno Haible  <bruno@clisp.org>
59362
59363         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59364         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59365
59366 2007-11-11  Bruno Haible  <bruno@clisp.org>
59367
59368         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59369         (usage): Remove function.
59370
59371 2007-11-11  Bruno Haible  <bruno@clisp.org>
59372
59373         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59374         gl_FUNC_CEILF_LIBS.
59375         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59376         gl_FUNC_CEIL_LIBS.
59377         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59378         gl_FUNC_CEILL_LIBS.
59379         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59380         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59381         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59382
59383 2007-11-11  Bruno Haible  <bruno@clisp.org>
59384
59385         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59386         roundf were declared but do not exist on functions.
59387         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59388         roundl were declared but do not exist on functions.
59389         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59390         HAVE_FLOORL_AND_CEILL, respectively.
59391         Needed for Sun C on Solaris 10.
59392
59393 2007-11-11  Bruno Haible  <bruno@clisp.org>
59394
59395         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59396         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59397         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59398         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59399         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59400         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59401         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59402         HAVE_DECL_ROUNDF.
59403         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59404         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59406         of HAVE_DECL_ROUND*.
59407         * modules/math (Makefile.am): Update.
59408
59409 2007-11-10  Bruno Haible  <bruno@clisp.org>
59410
59411         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59412         ptrdiff_t as m4/intl.m4.
59413
59414 2007-11-10  Jim Meyering  <meyering@redhat.com>
59415
59416         Avoid link failure for the argmatch test.
59417         * tests/test-argmatch.c (usage): Define function to avoid a link
59418         failure: argmatch_die requires a usage function.
59419
59420 2007-11-09  Bruno Haible  <bruno@clisp.org>
59421
59422         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59423         * doc/functions/vsnprintf.texi: Likewise.
59424         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59425         with a size argument < 2.
59426
59427 2007-11-09  Bruno Haible  <bruno@clisp.org>
59428
59429         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59430         buffer. Fixes an inefficiency introduced on 2007-11-03.
59431
59432 2007-11-09  Bruno Haible  <bruno@clisp.org>
59433
59434         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59435         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59436
59437 2007-11-08  Jim Meyering  <meyering@redhat.com>
59438
59439         Change cache variable name prefix "jm_" to "gl_" everywhere.
59440         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59441         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59442         * m4/uptime.m4: s/gl_/jm_/
59443
59444 2007-11-07  Bruno Haible  <bruno@clisp.org>
59445
59446         Update to GNU gettext 0.17.
59447         * m4/intl.m4: Update to GNU gettext 0.17.
59448         * m4/po.m4: Likewise.
59449         * modules/gettext (Files): Remove m4/ulonglong.m4.
59450         (configure.ac): Require gettext infrastructure from version 0.17.
59451
59452 2007-11-06  Bruno Haible  <bruno@clisp.org>
59453
59454         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59455         symbolic values are not defined in a public header.
59456         * lib/freadable.c (freadable) [QNX]: Likewise.
59457         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59458         * lib/freading.c (freading) [QNX]: Likewise.
59459         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59460         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59461         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59462         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59463         Reported by Alain Magloire.
59464
59465         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59466
59467 2007-11-05  Bruno Haible  <bruno@clisp.org>
59468
59469         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59470         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59471         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59472         Reported by Eric Blake.
59473
59474 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59475             Bruno Haible  <bruno@clisp.org>
59476
59477         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59478         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59479         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59480         (malloc): Undefine also before including <stdlib.h>.
59481         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59482         Needed on OSF/1 4.0.
59483
59484 2007-11-05  Jim Meyering  <meyering@redhat.com>
59485
59486         git-version-gen: sync from coreutils.
59487         * build-aux/git-version-gen: Add comments.
59488         Change the first '-' to '.' in the snapshot version string,
59489         e.g., 6.9-377-08144 -> 6.9.377-08144
59490         Remove first parameter.
59491         Don't declare a version "-dirty" merely because a time
59492         stamp has changed.
59493
59494 2007-11-04  Bruno Haible  <bruno@clisp.org>
59495
59496         * lib/lock.h: Protect all macro definitions containing an 'if'
59497         statement through a "do { ... } while (0)".
59498         * lib/tls.h: Likewise.
59499
59500 2007-11-04  Bruno Haible  <bruno@clisp.org>
59501
59502         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59503
59504 2007-11-04  Bruno Haible  <bruno@clisp.org>
59505
59506         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59507         * modules/fprintf-posix (Depends-on): Add nocrash.
59508         * modules/snprintf-posix (Depends-on): Likewise.
59509         * modules/sprintf-posix (Depends-on): Likewise.
59510         * modules/vasnprintf-posix (Depends-on): Likewise.
59511         * modules/vasprintf-posix (Depends-on): Likewise.
59512         * modules/vfprintf-posix (Depends-on): Likewise.
59513         * modules/vsnprintf-posix (Depends-on): Likewise.
59514         * modules/vsprintf-posix (Depends-on): Likewise.
59515         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59516         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59517         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59518         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59519         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59520         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59521         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59522
59523 2007-11-04  Bruno Haible  <bruno@clisp.org>
59524
59525         * modules/nocrash: New file.
59526         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59527         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59528
59529 2007-11-04  Bruno Haible  <bruno@clisp.org>
59530
59531         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59532         precision handling.
59533         * tests/test-vasprintf-posix.c (test_function): Likewise.
59534         * tests/test-snprintf-posix.h (test_function): Likewise.
59535         * tests/test-sprintf-posix.h (test_function): Likewise.
59536
59537         Fix *printf behaviour for large precisions on mingw and BeOS.
59538         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59539         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59541         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59542         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59543         gl_PRINTF_PRECISION and test its result. Invoke
59544         gl_PREREQ_VASNPRINTF_PRECISION.
59545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59551         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59552         * doc/functions/fprintf.texi: Update.
59553         * doc/functions/printf.texi: Update.
59554         * doc/functions/snprintf.texi: Update.
59555         * doc/functions/sprintf.texi: Update.
59556         * doc/functions/vfprintf.texi: Update.
59557         * doc/functions/vprintf.texi: Update.
59558         * doc/functions/vsnprintf.texi: Update.
59559         * doc/functions/vsprintf.texi: Update.
59560
59561 2007-11-04  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59564
59565 2007-11-04  Bruno Haible  <bruno@clisp.org>
59566
59567         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59568         Reported by Sylvain Beucler <beuc@gnu.org>.
59569
59570 2007-11-03  Bruno Haible  <bruno@clisp.org>
59571
59572         * tests/test-fprintf-posix2.sh: New file.
59573         * tests/test-fprintf-posix2.c: New file.
59574         * modules/fprintf-posix-tests (Files): Add them.
59575         (TESTS): Add test-fprintf-posix2.sh.
59576         (configure.ac): Check for getrlimit and setrlimit.
59577         (check_PROGRAMS): Add test-fprintf-posix2.
59578
59579         * tests/test-printf-posix2.sh: New file.
59580         * tests/test-printf-posix2.c: New file.
59581         * modules/printf-posix-tests (Files): Add them.
59582         (TESTS): Add test-printf-posix2.sh.
59583         (configure.ac): Check for getrlimit and setrlimit.
59584         (check_PROGRAMS): Add test-printf-posix2.
59585
59586         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59587         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59588         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59589         (decode_double): New function, copied from decode_long_double.
59590         (scale10_round_decimal_decoded): New function, extracted from
59591         scale10_round_decimal_long_double.
59592         (scale10_round_decimal_long_double): Use it.
59593         (scale10_round_decimal_double): New function.
59594         (floorlog10): New function.
59595         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59597         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59598         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59599         gl_PRINTF_ENOMEM and test its result. Invoke
59600         gl_PREREQ_VASNPRINTF_ENOMEM.
59601         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59602         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59603         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59604         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59605         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59606         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59607         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59608         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59609         * modules/snprintf-posix (Depends-on): Likewise.
59610         * modules/sprintf-posix (Depends-on): Likewise.
59611         * modules/vasnprintf-posix (Depends-on): Likewise.
59612         * modules/vasprintf-posix (Depends-on): Likewise.
59613         * modules/vfprintf-posix (Depends-on): Likewise.
59614         * modules/vsnprintf-posix (Depends-on): Likewise.
59615         * modules/vsprintf-posix (Depends-on): Likewise.
59616         * doc/functions/fprintf.texi: Update.
59617         * doc/functions/printf.texi: Update.
59618         * doc/functions/snprintf.texi: Update.
59619         * doc/functions/sprintf.texi: Update.
59620         * doc/functions/vfprintf.texi: Update.
59621         * doc/functions/vprintf.texi: Update.
59622         * doc/functions/vsnprintf.texi: Update.
59623         * doc/functions/vsprintf.texi: Update.
59624
59625 2007-11-03  Bruno Haible  <bruno@clisp.org>
59626
59627         * modules/frexp-nolibm-tests: New file.
59628
59629         * modules/frexp-nolibm: New file.
59630         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59631
59632 2007-11-03  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59635         value is C99 compliant.
59636         Needed for OSF/1 5.1.
59637
59638 2007-11-03  Bruno Haible  <bruno@clisp.org>
59639
59640         Fix out-of-memory handling of vasnprintf.
59641         * lib/printf-parse.c: Include <errno.h>.
59642         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59643         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59644         is already set.
59645
59646 2007-11-02  Eric Blake  <ebb9@byu.net>
59647
59648         Fix tests on cygwin.
59649         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59650
59651 2007-11-01  Bruno Haible  <bruno@clisp.org>
59652
59653         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59654         warning.
59655         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59656         needed for POSIX compatibility.
59657
59658 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59661         for compatibility with GNU.
59662
59663 2007-11-01  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59666         (putenv): Renamed from rpl_putenv. Change argument type from
59667         'const char *' to 'char *'.
59668         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59669         of defining putenv in config.h, just set REPLACE_PUTENV.
59670         * modules/putenv (Depends-on): Add stdlib.
59671         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59672         (Include): Use <stdlib.h>.
59673         * lib/stdlib.in.h (putenv): New declaration.
59674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59675         REPLACE_PUTENV.
59676         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59677         REPLACE_PUTENV.
59678         Needed for MacOS X 10.5.0.
59679         Reported by Peter O'Gorman <peter@pogma.com>.
59680
59681 2007-11-01  Jim Meyering  <meyering@redhat.com>
59682
59683         Treat an empty date string exactly like "0".
59684         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59685         if the remaining date string (to be parsed) is empty, use "0".
59686         Reported by Mischa Molhoek and discussed in this thread:
59687         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59688
59689 2007-10-31  Bruno Haible  <bruno@clisp.org>
59690
59691         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59692         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59693         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59694         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59695         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59696         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59697
59698 2007-10-31  Bruno Haible  <bruno@clisp.org>
59699
59700         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59701         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59702         (AC_TYPE_LONG_LONG_INT): Use it.
59703         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59704         it as well.
59705         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59706         to m4/longlong.m4.
59707         * modules/stdint (Files): Remove m4/ulonglong.m4.
59708         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59709         m4/ulonglong.m4.
59710         * modules/strtoumax (Files): Likewise.
59711
59712 2007-10-30  Bruno Haible  <bruno@clisp.org>
59713
59714         * modules/xvasprintf-posix: New file.
59715         Suggested by Eric Blake.
59716
59717 2007-10-30  Bruno Haible  <bruno@clisp.org>
59718
59719         * modules/xprintf-posix-tests: New file.
59720         * tests/test-xprintf-posix.sh: New file.
59721         * tests/test-xprintf-posix.c: New file.
59722         * tests/test-xfprintf-posix.c: New file.
59723
59724         * modules/xprintf-posix: New file.
59725
59726 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59727
59728         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59729         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59730         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59731
59732 2007-10-29  Bruno Haible  <bruno@clisp.org>
59733
59734         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59735         contain the special marker '_cv_'.
59736         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59737         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59738         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59739         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59740         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59741         Reported by Ralf Wildenhues.
59742
59743 2007-10-29  Bruno Haible  <bruno@clisp.org>
59744
59745         * gnulib-tool (func_import): When --lgpl is not specified, set
59746         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59747         GPLv3.
59748         Reported by Simon Josefsson.
59749
59750 2007-10-28  Bruno Haible  <bruno@clisp.org>
59751
59752         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59753         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59754         HAVE_DECL_ISFINITE.
59755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59756         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59757         HAVE_DECL_ISFINITE.
59758
59759 2007-10-28  Bruno Haible  <bruno@clisp.org>
59760
59761         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59762         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59763
59764 2007-10-28  Bruno Haible  <bruno@clisp.org>
59765
59766         Fix link errors with Sun C 5.0 on Solaris 10.
59767         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59768         function is declared but not present in the compiler's libm.
59769         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59770         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59771         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59772         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59773         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59774         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59775         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59777         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59778         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59779         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59780         HAVE_DECL_FLOORL.
59781
59782 2007-10-28  Bruno Haible  <bruno@clisp.org>
59783
59784         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59785         gl_FUNC_FLOORL. Cache the result.
59786         (gl_FUNC_FLOORL): Use it.
59787         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59788         gl_FUNC_CEILL. Cache the result.
59789         (gl_FUNC_CEILL): Use it.
59790
59791         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59792         gl_FUNC_FLOOR. Cache the result.
59793         (gl_FUNC_FLOOR): Use it.
59794         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59795         gl_FUNC_CEIL. Cache the result.
59796         (gl_FUNC_CEIL): Use it.
59797
59798         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59799         gl_FUNC_FLOORF. Cache the result.
59800         (gl_FUNC_FLOORF): Use it.
59801         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59802         gl_FUNC_CEILF. Cache the result.
59803         (gl_FUNC_CEILF): Use it.
59804
59805 2007-10-28  Bruno Haible  <bruno@clisp.org>
59806
59807         * gnulib-tool: Allow specifying the LGPL version number through
59808         --lgpl=2 or --lgpl=3.
59809         (func_usage): Document --lgpl with argument.
59810         Handle --lgpl=... arguments.
59811         (func_import): Recognize also gl_LGPL calls with an argument. When
59812         --lgpl=2 is used and the module's license is just LGPL, report an
59813         error. Set sed_transform_lib_file according to the lgpl variable. In
59814         the generated files, use --lgpl or gl_LGPL invocations with argument,
59815         if necessary.
59816         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59817         an LGPv2+ license.
59818         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59819         gl_LGPL macro.
59820
59821 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59822             Bruno Haible  <bruno@clisp.org>
59823
59824         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59825         (u16_uctomb_aux): Likewise.
59826         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59827         !HAVE_INLINE.
59828         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59829
59830 2007-10-28  Bruno Haible  <bruno@clisp.org>
59831
59832         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59833         Invoke AM_GETTEXT_OPTION if it exists.
59834         * modules/vasprintf: Likewise.
59835         * modules/verror: Likewise.
59836         * modules/xprintf: Likewise.
59837         * modules/xvasprintf: Likewise.
59838
59839 2007-10-27  Ben Pfaff  <blp@gnu.org>
59840
59841         * lib/math.in.h: Define isfinite macro and prototypes for
59842         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59843         implementations.
59844         * m4/math_h.m4: New substitutions for isfinite module.
59845         * lib/isfinite.c: New file.
59846         * m4/isfinite.m4: New file.
59847         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59848         * modules/isfinite: New file.
59849         * modules/isfinite-tests: New file.
59850         * tests/tests-isfinite.c: New file.
59851         * doc/functions/isfinite.texi: Mention isfinite module.
59852         * MODULES.html.sh: Mention new module.
59853
59854 2007-10-27  Ben Pfaff  <blp@gnu.org>
59855
59856         Ralf Wildenhues reported that Tru64 4.0D declares the round
59857         functions but does not have definitions.
59858         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59859         cannot be found in any library, set the output variable to
59860         "missing" instead of "".
59861         * m4/round.m4: Also use our substitute if we cannot find round in
59862         any library, even if it is declared.
59863         * m4/roundf.m4: Likewise for roundf.
59864         * m4/roundl.m4: Likewise for roundl.
59865         * lib/math.in.h: Undefine roundf, round, roundl before defining
59866         their replacements, to allow for hypothetical systems where these
59867         may be defined as macros but not available in libraries.
59868
59869 2007-10-27  Bruno Haible  <bruno@clisp.org>
59870
59871         * doc/gnulib.texi: Invoke @firstparagraphindent.
59872         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59873         changes in gnulib.
59874         (Source changes): New section.
59875
59876 2007-10-26  Bruno Haible  <bruno@clisp.org>
59877
59878         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59879         borrowed from autoconf.
59880
59881 2007-10-26  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59884         strerror returned the empty string. Needed on HP-UX 11.00.
59885
59886 2007-10-24  Micah Cowan  <micah@cowan.name>
59887
59888         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59889         * build-aux/bootstrap: Remove support for now-unnecessary option,
59890         --cvs-user, and envvars CVS_USER, CVS_RSH.
59891
59892 2007-10-24  Jim Meyering  <meyering@redhat.com>
59893
59894         Avoid diagnostics from sha1sum when there is no cached checksum.
59895         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59896         if the po.s1 file hasn't been created yet.
59897
59898         * build-aux/bootstrap: Sync from coreutils:
59899         2007-10-24  Jim Meyering  <meyering@redhat.com>
59900         Get gnulib from the git repository, not from an obsolete cvs one.
59901         * build-aux/bootstrap: Suggestion from Micah Cowan.
59902         2007-10-04  Jim Meyering  <jim@meyering.net>
59903         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59904         (update_po_files): Work also when there are no .po files in po/.
59905
59906 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59907
59908         * README: Append ".git" to git and cg examples.
59909         Problem reported by Benoit Sigoure.
59910
59911 2007-10-23  Micah Cowan  <micah@cowan.name>
59912
59913         * users.txt: Add wget.
59914
59915 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59916
59917         Fix linking of some unistdio tests on FreeBSD.
59918         * modules/unistdio/u16-vsnprintf-tests
59919         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59920         * modules/unistdio/u16-vsprintf-tests
59921         (test_u16_vsnprintf1_LDADD): Likewise.
59922         * modules/unistdio/u32-vsnprintf-tests
59923         (test_u32_vsnprintf1_LDADD): Likewise.
59924         * modules/unistdio/u32-vsprintf-tests
59925         (test_u32_vsprintf1_LDADD): Likewise.
59926         * modules/unistdio/u8-vsnprintf-tests
59927         (test_u8_vsnprintf1_LDADD): Likewise.
59928         * modules/unistdio/u8-vsprintf-tests
59929         (test_u8_vsprintf1_LDADD): Likewise.
59930         * modules/unistdio/ulc-vsnprintf-tests
59931         (test_ulc_vsnprintf1_LDADD): Likewise.
59932         * modules/unistdio/ulc-vsprintf-tests
59933         (test_ulc_vsprintf1_LDADD): Likewise.
59934
59935         Fix linking of some uniconv tests on FreeBSD.
59936         * modules/uniconv/u16-conv-from-enc-tests
59937         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59938         * modules/uniconv/u16-conv-to-enc-tests
59939         (test_u16_conv_to_enc_LDADD): Likewise.
59940         * modules/uniconv/u16-strconv-from-enc-tests
59941         (test_u16_strconv_from_enc_LDADD): Likewise.
59942         * modules/uniconv/u16-strconv-to-enc-tests
59943         (test_u16_strconv_to_enc_LDADD): Likewise.
59944         * modules/uniconv/u32-conv-from-enc-tests
59945         (test_u32_conv_from_enc_LDADD): Likewise.
59946         * modules/uniconv/u32-conv-to-enc-tests
59947         (test_u32_conv_to_enc_LDADD): Likewise.
59948         * modules/uniconv/u32-strconv-from-enc-tests
59949         (test_u32_strconv_from_enc_LDADD): Likewise.
59950         * modules/uniconv/u32-strconv-to-enc-tests
59951         (test_u32_strconv_to_enc_LDADD): Likewise.
59952         * modules/uniconv/u8-conv-from-enc-tests
59953         (test_u8_conv_from_enc_LDADD): Likewise.
59954         * modules/uniconv/u8-conv-to-enc-tests
59955         (test_u8_conv_to_enc_LDADD): Likewise.
59956         * modules/uniconv/u8-strconv-from-enc-tests
59957         (test_u8_strconv_from_enc_LDADD): Likewise.
59958         * modules/uniconv/u8-strconv-to-enc-tests
59959         (test_u8_strconv_to_enc_LDADD): Likewise.
59960
59961 2007-10-22  Bruno Haible  <bruno@clisp.org>
59962
59963         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59964         size.
59965
59966 2007-10-22  Eric Blake  <ebb9@byu.net>
59967
59968         Tweak x*printf documentation.
59969         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59970         variable name and comments.
59971         Suggested by Bruno Haible.
59972
59973 2007-10-22  Bruno Haible  <bruno@clisp.org>
59974
59975         * lib/acl.c (copy_acl): Fix file name in comment.
59976
59977 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59978
59979         Fix Tru64 problem with stdbool.h.
59980         * lib/stdbool.in.h (false, true):
59981         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59982         Don't declare as an enum in this situation; it runs afoul of Tru64.
59983         Problem reported by Steven M. Schweda in
59984         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59985
59986 2007-10-22  Eric Blake  <ebb9@byu.net>
59987
59988         Also wrap vf?printf.
59989         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59990         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59991         (xvprintf, xvfprintf): New functions.
59992
59993 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59994
59995         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59996         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59997
59998         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59999         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60000
60001 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60002
60003         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60004         by Bruno Haible.
60005
60006 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60007
60008         * lib/getloadavg.c
60009         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60010         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60011
60012         * tests/test-i-ring.c: Work for C89.
60013
60014 2007-10-22  Bruno Haible  <bruno@clisp.org>
60015
60016         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60017         -1u, in preprocessor expression, so that we don't test for the bug
60018         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60019         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60020
60021 2007-10-22  Eric Blake  <ebb9@byu.net>
60022
60023         * tests/test-yesno.sh: Silence stderr during test.
60024
60025 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60026
60027         * modules/crypto/gc-camellia: New file.
60028
60029         * m4/gc-camellia.m4: New file.
60030
60031         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60032
60033         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60034
60035 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60036
60037         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60038         --help to stdout.  Reported by sms@antinode.org (Steven
60039         M. Schweda).
60040
60041 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60042
60043         * users.txt: Fix link to libksba.
60044
60045 2007-10-21  Ben Pfaff  <blp@gnu.org>
60046
60047         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60048         round.c roundf implementation that depends on floorf and ceilf to
60049         be tested unconditionally.
60050
60051 2007-10-21  Ben Pfaff  <blp@gnu.org>
60052
60053         * m4/check-libm-func.m4: Removed.
60054         * m4/check-math-lib.m4: New file.
60055         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60056         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60057         definition and lack of AC_LIBOBJ([roundf]).
60058         * m4/roundl.m4: Ditto, and similarly for roundl.
60059         * modules/round: Reference new m4 file.
60060         * modules/roundf: Ditto.
60061         * modules/roundl: Ditto.
60062         * tests/test-round2.c (main): Use ROUND instead of round.
60063         Bug report from Bruno Haible.
60064
60065 2007-10-21  Bruno Haible  <bruno@clisp.org>
60066
60067         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60068         context.
60069
60070 2007-10-21  Bruno Haible  <bruno@clisp.org>
60071
60072         * tests/test-wcwidth.c (main): Allow negative result for some control
60073         characters.
60074
60075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60076         Needed on OSF/1 5.1.
60077
60078 2007-10-21  Bruno Haible  <bruno@clisp.org>
60079
60080         * tests/test-floorf1.c: Include isnanf.h.
60081         (main): Use isnanf() instead of isnan().
60082         * tests/test-ceilf1.c: Include isnanf.h.
60083         (main): Use isnanf() instead of isnan().
60084         * tests/test-truncf1.c: Include isnanf.h.
60085         (main): Use isnanf() instead of isnan().
60086         * tests/test-roundf1.c: Include isnanf.h.
60087         (main): Use isnanf() instead of isnan().
60088
60089 2007-10-21  Eric Blake  <ebb9@byu.net>
60090
60091         * users.txt: Update URL for m4.
60092
60093 2007-10-21  Bruno Haible  <bruno@clisp.org>
60094
60095         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60096
60097 2007-10-21  Bruno Haible  <bruno@clisp.org>
60098
60099         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60100         Git's management files if the CVS files are not present.
60101
60102 2007-10-20  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60105         gcc-3.4.x.
60106
60107 2007-10-20  Ben Pfaff  <blp@gnu.org>
60108
60109         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60110         implementations.
60111         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60112         * lib/round.c: New file.
60113         * lib/roundf.c: New file.
60114         * lib/roundl.c: New file.
60115         * m4/round.m4: New file.
60116         * m4/roundf.m4: New file.
60117         * m4/roundl.m4: New file.
60118         * m4/check-libm-func-m4: New file.
60119         * modules/math: Replace round, roundf, roundl related @VARS@ in
60120         math.in.h.
60121         * modules/round: New file.
60122         * modules/round-tests: New file.
60123         * modules/roundf: New file.
60124         * modules/roundf-tests: New file.
60125         * modules/roundl: New file.
60126         * modules/roundl-tests: New file.
60127         * tests/test-round1.c: New file.
60128         * tests/test-round2.c: New file.
60129         * tests/test-roundf1.c: New file.
60130         * tests/test-roundf2.c: New file.
60131         * tests/test-roundl.c: New file.
60132         * doc/functions/round.texi: Mention round module.
60133         * doc/functions/roundf.texi: Mention roundf module.
60134         * doc/functions/roundl.texi: Mention roundl module.
60135         * MODULES.html.sh: Mention new modules.
60136         Thanks to Bruno Haible for suggestions.
60137
60138 2007-10-20  Jim Meyering  <meyering@redhat.com>
60139
60140         * lib/xprintf.c: Include <config.h> unconditionally.
60141
60142         Change xprintf's license to GPL.
60143         * modules/xprintf (License): s/LGPL/GPL/, since this module
60144         depends on modules (exit and exitfail) which are GPL.
60145         Suggestion from Bruno Haible.
60146
60147         xprintf fixes.
60148         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60149         Use a clearer diagnostic.
60150         Patch from Bruno Haible.
60151
60152 2007-10-20  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60155         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60156         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60157
60158 2007-10-20  Bruno Haible  <bruno@clisp.org>
60159
60160         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60161         precision in the comparison result > x - 1 or similar.
60162         * tests/test-ceilf2.c (correct_result_p): Likewise.
60163         * tests/test-truncf2.c (correct_result_p): Likewise.
60164         * tests/test-trunc2.c (correct_result_p): Likewise.
60165         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60166
60167 2007-10-20  Bruno Haible  <bruno@clisp.org>
60168
60169         * modules/ceil: New file.
60170         * m4/ceil.m4: New file.
60171         * doc/functions/ceil.texi: Mention the 'ceil' module.
60172
60173 2007-10-20  Bruno Haible  <bruno@clisp.org>
60174
60175         * modules/floor: New file.
60176         * m4/floor.m4: New file.
60177         * doc/functions/floor.texi: Mention the 'floor' module.
60178
60179 2007-10-20  Bruno Haible  <bruno@clisp.org>
60180
60181         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60182         of %a.
60183         * modules/floorf-tests (Depends-on): Likewise.
60184         * modules/truncf-tests (Depends-on): Likewise.
60185         * modules/trunc-tests (Depends-on): Likewise.
60186         Reported by Ben Pfaff.
60187
60188 2007-10-19  Jim Meyering  <meyering@redhat.com>
60189
60190         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60191         Don't bother testing specific errno values.  Just test ferror.
60192
60193         New module: xprintf
60194         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60195
60196 2007-10-19  Bruno Haible  <bruno@clisp.org>
60197
60198         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60199         syntax.
60200         * modules/javaexec (Makefile.am): Likewise.
60201         * modules/relocatable-prog (Makefile.am): Likewise.
60202         Suggested by Jim Meyering.
60203
60204 2007-10-18  Bruno Haible  <bruno@clisp.org>
60205
60206         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60207         Reported by Jim Meyering.
60208
60209 2007-10-18  Eric Blake  <ebb9@byu.net>
60210
60211         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60212
60213 2007-10-18  Bruno Haible  <bruno@clisp.org>
60214
60215         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60216         the format string into writable memory. Needed in Fortify conditions.
60217
60218 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60219             Bruno Haible  <bruno@clisp.org>
60220
60221         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60222         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60223         * modules/trim (Depends-on): Add mbchar.
60224         (configure.ac): Add gl_FUNC_MBRTOWC.
60225         (Makefile.am): Augment lib_SOURCES.
60226
60227 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60228
60229         Modify glob.c to use fstatat and dirfd, to simplify it.
60230         Suggested by Eric Blake.
60231         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60232         Don't include <stdbool.h>; not used.
60233         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60234         (link_exists_p): Simplify implementation, since we can now assume
60235         dirfd and fstatat.
60236         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60237
60238 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60239
60240         * gnulib-tool (func_get_dependencies): Fix sed script to
60241         match only tests.
60242
60243 2007-10-17  Bruno Haible  <bruno@clisp.org>
60244
60245         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60246         allow locale names without encoding suffix.
60247         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60248         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60249
60250 2007-10-16  Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60253         * lib/getgroups.c (getgroups): Likewise.
60254         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60255
60256 2007-10-16  Bruno Haible  <bruno@clisp.org>
60257
60258         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60259         * modules/malloc-posix (License): Likewise.
60260         * modules/realloc-posix (License): Likewise.
60261         * modules/calloc-posix (License): Likewise.
60262         * modules/intprops (License): Change from GPL to LGPL, with
60263         Paul Eggert's approval.
60264
60265 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60266
60267         Merge glibc changes into lib/glob.c.
60268
60269         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60270         2007-10-15 04:59:03 UTC.  Here are the changes:
60271
60272         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60273
60274         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60275
60276         * lib/glob.c: Add some branch prediction throughout.
60277
60278         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60279
60280         [BZ #5103]
60281         * lib/glob.c (glob): Recognize patterns starting \/.
60282
60283         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60284
60285         [BZ #3996]
60286         * lib/glob.c (attribute_hidden): Define if not defined.
60287         (glob): Unescape dirname, filename or username when needed and not
60288         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60289         is NULL.  Handle unescaped [ in pattern without closing ].
60290         Don't pass GLOB_CHECK down to recursive glob for directories.
60291         (__glob_pattern_type): New function.
60292         (__glob_pattern_p): Implement using __glob_pattern_type.
60293         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60294         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60295         Remove unreachable code.
60296
60297         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60298
60299         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60300         explain why there are no leaks.
60301
60302         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60303
60304         [BZ #3253]
60305         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60306         time, rather allocate increasingly bigger arrays of pointers, if
60307         possible with alloca, if too large with malloc.
60308
60309 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60310
60311         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60312         Problem reported by H.Merijn Brand in
60313         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60314         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60315         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60316
60317 2007-10-15  Bruno Haible  <bruno@clisp.org>
60318
60319         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60320         with explicit rpl_ prefix.
60321         * lib/fopen.c (fopen): Likewise.
60322         * lib/freopen.c (freopen): Likewise.
60323         * lib/iconv.c (iconv): Likewise.
60324         * lib/iconv_close.c (iconv_close): Likewise.
60325
60326 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60327
60328         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60329
60330 2007-10-15  Bruno Haible  <bruno@clisp.org>
60331
60332         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60333         <stddef.h> instead of <stdlib.h> since we only need NULL.
60334         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60335
60336 2007-10-15  Bruno Haible  <bruno@clisp.org>
60337
60338         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60339         Replace paragraph talking about LIBOBJS.
60340         Reported by Colin Watson <cjwatson@debian.org>.
60341
60342 2007-10-15  Bruno Haible  <bruno@clisp.org>
60343
60344         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60345         <stdlib.h> before using NULL.
60346
60347 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60348
60349         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60350         Reported by Albert Chin <china@thewrittenword.com>.
60351
60352 2007-10-14  Bruno Haible  <bruno@clisp.org>
60353
60354         * modules/iconv_open-utf-tests: New file.
60355         * tests/test-iconv-utf.c: New file.
60356
60357         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60358         * modules/iconv_open-utf: New file.
60359         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60360         (iconv, iconv_close): New declarations.
60361         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60362         be defined.
60363         (iconv_open): Add special handling of conversion between UTF-8 and
60364         UTF-{16,32}{BE,LE}.
60365         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60366         * lib/iconv_close.c: New file.
60367         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60368         gl_FUNC_ICONV_OPEN.
60369         (gl_FUNC_ICONV_OPEN): Use it.
60370         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60371         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60372         and REPLACE_ICONV_UTF.
60373         * modules/iconv_open (Depends-on): Add c-strcase.
60374         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60375         ICONV_CONST.
60376         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60377
60378 2007-10-13  Albert Chin  <china@thewrittenword.com>
60379             Bruno Haible  <bruno@clisp.org>
60380
60381         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60382         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60383
60384 2007-10-13  Bruno Haible  <bruno@clisp.org>
60385
60386         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60387         defined, use the ISO C99 inline semantics.
60388         * lib/argp.h (ARGP_EI): Likewise.
60389
60390 2007-10-13  Bruno Haible  <bruno@clisp.org>
60391
60392         Handle 'inline' change in gcc 4.3.0.
60393         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60394         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60395         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60396         argp_fmtstream_point): Disable 'extern' declaration if the function
60397         definition is going to be provided inline.
60398         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60399         semantics, not the ISO C99 inline semantics.
60400         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60401         'extern' declaration if the function definition is going to be provided
60402         inline.
60403         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60404         the GNU C inline semantics, not the ISO C99 inline semantics. With
60405         GCC 4.2, avoid a warning.
60406
60407 2007-10-13  Bruno Haible  <bruno@clisp.org>
60408
60409         * lib/freading.h (freading): Enable the use of __freading for
60410         glibc >= 2.7.
60411         * lib/freading.c (freading): Likewise.
60412
60413 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60414
60415         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60416         "warning: C99 inline functions are not supported; using GNU89".
60417
60418 2007-10-12  Bruno Haible  <bruno@clisp.org>
60419
60420         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60421         of 2.
60422         * tests/test-ceilf2.c: New file.
60423         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60424
60425         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60426         * modules/ceilf-tests: Update.
60427
60428 2007-10-12  Bruno Haible  <bruno@clisp.org>
60429
60430         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60431         of 2.
60432         * tests/test-floorf2.c: New file.
60433         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60434
60435         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60436         * modules/floorf-tests: Update.
60437
60438 2007-10-12  Bruno Haible  <bruno@clisp.org>
60439
60440         * tests/test-trunc2.c: New file.
60441         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60442
60443         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60444         * modules/trunc-tests: Update.
60445
60446 2007-10-12  Bruno Haible  <bruno@clisp.org>
60447
60448         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60449         of 2.
60450         * tests/test-truncf2.c: New file.
60451         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60452
60453         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60454         * modules/truncf-tests: Update.
60455
60456 2007-10-11  Eric Blake  <ebb9@byu.net>
60457
60458         Don't claim strerror is broken on Interix.
60459         * doc/functions/strerror.texi (strerror): Known broken systems are
60460         now Solaris 8, and not Interix.
60461         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60462         Interix on cross-compile.
60463         Reported by Martin Koeppe in
60464         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60465
60466 2007-10-11  Bruno Haible  <bruno@clisp.org>
60467
60468         * modules/i-ring-tests: New file.
60469         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60470         instead of assert.
60471
60472 2007-10-11  Bruno Haible  <bruno@clisp.org>
60473
60474         * modules/filenamecat-tests: New file.
60475         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60476         * lib/filenamecat.c: Remove test code.
60477
60478 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60479
60480         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60481
60482         * lib/strerror.c: Include <string.h> always, to test interface,
60483         and to remove the need for the dummy.
60484         Include intprops.h to compute width instead of doing it ourselves
60485         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60486         (strerror): Define it to return NULL if there's no system strerror.
60487         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60488         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60489         ancient pre-strerror Unix systems well any more.  Saying "unknown
60490         system error" is enough.
60491         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60492         simpler strerror.c implementation.
60493         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60494         Simplify the tests to reflect the simpler strerror implementation.
60495         * modules/strerror (Depends-on): Add intprops.
60496
60497 2007-10-09  Eric Blake  <ebb9@byu.net>
60498
60499         Silence test-fpending.
60500         * modules/fpending-tests (Files): Add wrapper script.
60501         * tests/test-fpending.sh: New file.
60502
60503 2007-10-09  Bruno Haible  <bruno@clisp.org>
60504
60505         * MODULES.html.sh (func_module): Don't create a hyperlink for
60506         function names like 'printf_frexp'.
60507         (Misc): Add crc, memxor.
60508         (Characteristics of floating types): New section.
60509         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60510         isnanf-nolibm, signbit, trunc, truncf, truncl.
60511         (Enhancements for ISO C 99 functions): New subsection Input/output.
60512         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60513         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60514         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60515         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60516         (Enhancements for POSIX:2001 functions): Add chdir-long.
60517         (File system functions): Add areadlink, chdir-safer, read-file.
60518         Remove cycle-check.
60519         (File system as inode set): New section.
60520         (Date and time): Add gethrxtime.
60521         (Multithreading): Add openmp.
60522         (Internationalization functions): Add localename.
60523         (Unicode string functions): Add unistr/u*-mbsnlen.
60524         (Support for maintaining and releasing projects): Add git-version-gen.
60525         (Lone files): Remove directories.
60526
60527 2007-10-08  Ben Pfaff  <blp@gnu.org>
60528
60529         * lib/xmalloca.h: Fix typo in comment.
60530
60531 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60532
60533         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60534         when avoiding problems with integer overflow.  Use a portable test
60535         instead.
60536
60537 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60538
60539         * modules/dummy (License): Change to LGPLv2+.
60540         * modules/float (License): Likewise
60541         * modules/realloc (License): Likewise
60542         * modules/stdlib (License): Likewise
60543
60544 2007-10-07  Bruno Haible  <bruno@clisp.org>
60545
60546         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60547         * floor.c (TWO_MANT_DIG): Likewise.
60548         * ceil.c (TWO_MANT_DIG): Likewise.
60549         Reported by Ben Pfaff.
60550
60551 2007-10-07  Bruno Haible  <bruno@clisp.org>
60552
60553         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60554         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60555         * lib/frexp.c (FUNC): Likewise.
60556         * lib/printf-frexp.h (printf_frexp): Likewise.
60557         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60558         * lib/printf-frexp.c (FUNC): Likewise.
60559         Suggested by Jim Meyering.
60560
60561 2007-10-07  Jim Meyering  <meyering@redhat.com>
60562
60563         Make xnanosleep's integer overflow test more robust.
60564         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60565         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60566
60567 2007-10-07  Bruno Haible  <bruno@clisp.org>
60568
60569         * NEWS: Mention the license change.
60570
60571         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60572         abbreviations in the modules files.
60573
60574         Change copyright notice from GPLv2+ to GPLv3+.
60575         * README: Change copyright notice.
60576         * MODULES.html.sh: Likewise.
60577         * build-aux/bootstrap.conf: Likewise.
60578         * build-aux/config.libpath: Likewise.
60579         * build-aux/csharpcomp.sh.in: Likewise.
60580         * build-aux/csharpexec.sh.in: Likewise.
60581         * build-aux/install-reloc: Likewise.
60582         * build-aux/javacomp.sh.in: Likewise.
60583         * build-aux/javaexec.sh.in: Likewise.
60584         * build-aux/ldd.sh.in: Likewise.
60585         * build-aux/reloc-ldflags: Likewise.
60586         * build-aux/relocatable.sh.in: Likewise.
60587         * build-aux/x-to-1.in: Likewise.
60588         * check-module: Likewise.
60589         * config/srclistvars.sh: Likewise.
60590         * gnulib-tool: Likewise.
60591         * lib/acl-internal.h: Likewise.
60592         * lib/acl.c: Likewise.
60593         * lib/acl.h: Likewise.
60594         * lib/acl_entries.c: Likewise.
60595         * lib/areadlink-with-size.c: Likewise.
60596         * lib/areadlink.c: Likewise.
60597         * lib/areadlink.h: Likewise.
60598         * lib/argmatch.c: Likewise.
60599         * lib/argmatch.h: Likewise.
60600         * lib/argp-ba.c: Likewise.
60601         * lib/argp-eexst.c: Likewise.
60602         * lib/argp-fmtstream.c: Likewise.
60603         * lib/argp-fmtstream.h: Likewise.
60604         * lib/argp-fs-xinl.c: Likewise.
60605         * lib/argp-help.c: Likewise.
60606         * lib/argp-namefrob.h: Likewise.
60607         * lib/argp-parse.c: Likewise.
60608         * lib/argp-pin.c: Likewise.
60609         * lib/argp-pv.c: Likewise.
60610         * lib/argp-pvh.c: Likewise.
60611         * lib/argp-xinl.c: Likewise.
60612         * lib/argp.h: Likewise.
60613         * lib/at-func.c: Likewise.
60614         * lib/atanl.c: Likewise.
60615         * lib/backupfile.c: Likewise.
60616         * lib/backupfile.h: Likewise.
60617         * lib/basename.c: Likewise.
60618         * lib/binary-io.h: Likewise.
60619         * lib/byteswap.in.h: Likewise.
60620         * lib/c-stack.c: Likewise.
60621         * lib/c-stack.h: Likewise.
60622         * lib/c-strcasestr.c: Likewise.
60623         * lib/c-strcasestr.h: Likewise.
60624         * lib/c-strstr.c: Likewise.
60625         * lib/c-strstr.h: Likewise.
60626         * lib/c-strtod.c: Likewise.
60627         * lib/calloc.c: Likewise.
60628         * lib/canon-host.c: Likewise.
60629         * lib/canon-host.h: Likewise.
60630         * lib/canonicalize-lgpl.c: Likewise.
60631         * lib/canonicalize.c: Likewise.
60632         * lib/canonicalize.h: Likewise.
60633         * lib/ceil.c: Likewise.
60634         * lib/ceilf.c: Likewise.
60635         * lib/ceill.c: Likewise.
60636         * lib/chdir-long.c: Likewise.
60637         * lib/chdir-long.h: Likewise.
60638         * lib/chdir-safer.c: Likewise.
60639         * lib/chdir-safer.h: Likewise.
60640         * lib/chown.c: Likewise.
60641         * lib/classpath.c: Likewise.
60642         * lib/classpath.h: Likewise.
60643         * lib/clean-temp.c: Likewise.
60644         * lib/clean-temp.h: Likewise.
60645         * lib/cloexec.c: Likewise.
60646         * lib/close-stream.c: Likewise.
60647         * lib/closein.c: Likewise.
60648         * lib/closein.h: Likewise.
60649         * lib/closeout.c: Likewise.
60650         * lib/closeout.h: Likewise.
60651         * lib/concat-filename.c: Likewise.
60652         * lib/copy-file.c: Likewise.
60653         * lib/copy-file.h: Likewise.
60654         * lib/count-one-bits.h: Likewise.
60655         * lib/crc.c: Likewise.
60656         * lib/crc.h: Likewise.
60657         * lib/creat-safer.c: Likewise.
60658         * lib/csharpcomp.c: Likewise.
60659         * lib/csharpcomp.h: Likewise.
60660         * lib/csharpexec.c: Likewise.
60661         * lib/csharpexec.h: Likewise.
60662         * lib/cycle-check.c: Likewise.
60663         * lib/cycle-check.h: Likewise.
60664         * lib/diacrit.c: Likewise.
60665         * lib/diacrit.h: Likewise.
60666         * lib/diffseq.h: Likewise.
60667         * lib/dirchownmod.c: Likewise.
60668         * lib/dirent.in.h: Likewise.
60669         * lib/dirfd.c: Likewise.
60670         * lib/dirfd.h: Likewise.
60671         * lib/dirname.c: Likewise.
60672         * lib/dirname.h: Likewise.
60673         * lib/dummy.c: Likewise.
60674         * lib/dup-safer.c: Likewise.
60675         * lib/dup2.c: Likewise.
60676         * lib/eealloc.h: Likewise.
60677         * lib/error.c: Likewise.
60678         * lib/error.h: Likewise.
60679         * lib/euidaccess.c: Likewise.
60680         * lib/exclude.c: Likewise.
60681         * lib/exclude.h: Likewise.
60682         * lib/execute.c: Likewise.
60683         * lib/execute.h: Likewise.
60684         * lib/exitfail.c: Likewise.
60685         * lib/exitfail.h: Likewise.
60686         * lib/expl.c: Likewise.
60687         * lib/fatal-signal.c: Likewise.
60688         * lib/fatal-signal.h: Likewise.
60689         * lib/fbufmode.c: Likewise.
60690         * lib/fbufmode.h: Likewise.
60691         * lib/fchdir.c: Likewise.
60692         * lib/fchmodat.c: Likewise.
60693         * lib/fchownat.c: Likewise.
60694         * lib/fcntl--.h: Likewise.
60695         * lib/fcntl-safer.h: Likewise.
60696         * lib/fcntl.in.h: Likewise.
60697         * lib/fd-safer.c: Likewise.
60698         * lib/fflush.c: Likewise.
60699         * lib/file-has-acl.c: Likewise.
60700         * lib/file-set.c: Likewise.
60701         * lib/file-type.c: Likewise.
60702         * lib/file-type.h: Likewise.
60703         * lib/fileblocks.c: Likewise.
60704         * lib/filemode.c: Likewise.
60705         * lib/filemode.h: Likewise.
60706         * lib/filename.h: Likewise.
60707         * lib/filenamecat.c: Likewise.
60708         * lib/filenamecat.h: Likewise.
60709         * lib/findprog.c: Likewise.
60710         * lib/findprog.h: Likewise.
60711         * lib/float.in.h: Likewise.
60712         * lib/floor.c: Likewise.
60713         * lib/floorf.c: Likewise.
60714         * lib/floorl.c: Likewise.
60715         * lib/fopen-safer.c: Likewise.
60716         * lib/fopen.c: Likewise.
60717         * lib/fpending.c: Likewise.
60718         * lib/fpending.h: Likewise.
60719         * lib/fprintf.c: Likewise.
60720         * lib/fprintftime.h: Likewise.
60721         * lib/fpucw.h: Likewise.
60722         * lib/fpurge.c: Likewise.
60723         * lib/fpurge.h: Likewise.
60724         * lib/freadable.c: Likewise.
60725         * lib/freadable.h: Likewise.
60726         * lib/freadahead.c: Likewise.
60727         * lib/freadahead.h: Likewise.
60728         * lib/freading.c: Likewise.
60729         * lib/freading.h: Likewise.
60730         * lib/free.c: Likewise.
60731         * lib/freopen.c: Likewise.
60732         * lib/frexp.c: Likewise.
60733         * lib/frexpl.c: Likewise.
60734         * lib/fseek.c: Likewise.
60735         * lib/fseterr.c: Likewise.
60736         * lib/fseterr.h: Likewise.
60737         * lib/fstatat.c: Likewise.
60738         * lib/fstrcmp.c: Likewise.
60739         * lib/fstrcmp.h: Likewise.
60740         * lib/fsusage.c: Likewise.
60741         * lib/fsusage.h: Likewise.
60742         * lib/ftell.c: Likewise.
60743         * lib/ftello.c: Likewise.
60744         * lib/fts-cycle.c: Likewise.
60745         * lib/fts.c: Likewise.
60746         * lib/fts_.h: Likewise.
60747         * lib/full-read.c: Likewise.
60748         * lib/full-read.h: Likewise.
60749         * lib/full-write.c: Likewise.
60750         * lib/full-write.h: Likewise.
60751         * lib/fwritable.c: Likewise.
60752         * lib/fwritable.h: Likewise.
60753         * lib/fwriteerror.c: Likewise.
60754         * lib/fwriteerror.h: Likewise.
60755         * lib/fwriting.c: Likewise.
60756         * lib/fwriting.h: Likewise.
60757         * lib/gcd.c: Likewise.
60758         * lib/gcd.h: Likewise.
60759         * lib/getcwd.c: Likewise.
60760         * lib/getdate.h: Likewise.
60761         * lib/getdate.y: Likewise.
60762         * lib/getdomainname.c: Likewise.
60763         * lib/getdomainname.h: Likewise.
60764         * lib/getgroups.c: Likewise.
60765         * lib/gethostname.c: Likewise.
60766         * lib/gethrxtime.c: Likewise.
60767         * lib/gethrxtime.h: Likewise.
60768         * lib/getloadavg.c: Likewise.
60769         * lib/getndelim2.c: Likewise.
60770         * lib/getndelim2.h: Likewise.
60771         * lib/getnline.c: Likewise.
60772         * lib/getnline.h: Likewise.
60773         * lib/getopt.c: Likewise.
60774         * lib/getopt.in.h: Likewise.
60775         * lib/getopt1.c: Likewise.
60776         * lib/getopt_int.h: Likewise.
60777         * lib/getpagesize.h: Likewise.
60778         * lib/getsubopt.c: Likewise.
60779         * lib/gettime.c: Likewise.
60780         * lib/getugroups.c: Likewise.
60781         * lib/getugroups.h: Likewise.
60782         * lib/getusershell.c: Likewise.
60783         * lib/gl_anyavltree_list1.h: Likewise.
60784         * lib/gl_anyavltree_list2.h: Likewise.
60785         * lib/gl_anyhash_list1.h: Likewise.
60786         * lib/gl_anyhash_list2.h: Likewise.
60787         * lib/gl_anylinked_list1.h: Likewise.
60788         * lib/gl_anylinked_list2.h: Likewise.
60789         * lib/gl_anyrbtree_list1.h: Likewise.
60790         * lib/gl_anyrbtree_list2.h: Likewise.
60791         * lib/gl_anytree_list1.h: Likewise.
60792         * lib/gl_anytree_list2.h: Likewise.
60793         * lib/gl_anytree_oset.h: Likewise.
60794         * lib/gl_anytreehash_list1.h: Likewise.
60795         * lib/gl_anytreehash_list2.h: Likewise.
60796         * lib/gl_array_list.c: Likewise.
60797         * lib/gl_array_list.h: Likewise.
60798         * lib/gl_array_oset.c: Likewise.
60799         * lib/gl_array_oset.h: Likewise.
60800         * lib/gl_avltree_list.c: Likewise.
60801         * lib/gl_avltree_list.h: Likewise.
60802         * lib/gl_avltree_oset.c: Likewise.
60803         * lib/gl_avltree_oset.h: Likewise.
60804         * lib/gl_avltreehash_list.c: Likewise.
60805         * lib/gl_avltreehash_list.h: Likewise.
60806         * lib/gl_carray_list.c: Likewise.
60807         * lib/gl_carray_list.h: Likewise.
60808         * lib/gl_linked_list.c: Likewise.
60809         * lib/gl_linked_list.h: Likewise.
60810         * lib/gl_linkedhash_list.c: Likewise.
60811         * lib/gl_linkedhash_list.h: Likewise.
60812         * lib/gl_list.c: Likewise.
60813         * lib/gl_list.h: Likewise.
60814         * lib/gl_oset.c: Likewise.
60815         * lib/gl_oset.h: Likewise.
60816         * lib/gl_rbtree_list.c: Likewise.
60817         * lib/gl_rbtree_list.h: Likewise.
60818         * lib/gl_rbtree_oset.c: Likewise.
60819         * lib/gl_rbtree_oset.h: Likewise.
60820         * lib/gl_rbtreehash_list.c: Likewise.
60821         * lib/gl_rbtreehash_list.h: Likewise.
60822         * lib/gl_sublist.c: Likewise.
60823         * lib/gl_sublist.h: Likewise.
60824         * lib/group-member.c: Likewise.
60825         * lib/group-member.h: Likewise.
60826         * lib/hard-locale.c: Likewise.
60827         * lib/hard-locale.h: Likewise.
60828         * lib/hash-pjw.c: Likewise.
60829         * lib/hash-pjw.h: Likewise.
60830         * lib/hash-triple.c: Likewise.
60831         * lib/hash.c: Likewise.
60832         * lib/hash.h: Likewise.
60833         * lib/human.c: Likewise.
60834         * lib/human.h: Likewise.
60835         * lib/i-ring.c: Likewise.
60836         * lib/i-ring.h: Likewise.
60837         * lib/idcache.c: Likewise.
60838         * lib/imaxabs.c: Likewise.
60839         * lib/imaxdiv.c: Likewise.
60840         * lib/inet_pton.c: Likewise.
60841         * lib/inet_pton.h: Likewise.
60842         * lib/intprops.h: Likewise.
60843         * lib/inttostr.c: Likewise.
60844         * lib/inttostr.h: Likewise.
60845         * lib/inttypes.in.h: Likewise.
60846         * lib/isapipe.c: Likewise.
60847         * lib/isdir.c: Likewise.
60848         * lib/isnan.c: Likewise.
60849         * lib/isnan.h: Likewise.
60850         * lib/isnanf.c: Likewise.
60851         * lib/isnanf.h: Likewise.
60852         * lib/isnanl-nolibm.h: Likewise.
60853         * lib/isnanl.c: Likewise.
60854         * lib/isnanl.h: Likewise.
60855         * lib/javacomp.c: Likewise.
60856         * lib/javacomp.h: Likewise.
60857         * lib/javaexec.c: Likewise.
60858         * lib/javaexec.h: Likewise.
60859         * lib/javaversion.c: Likewise.
60860         * lib/javaversion.h: Likewise.
60861         * lib/javaversion.java: Likewise.
60862         * lib/lbrkprop.h: Likewise.
60863         * lib/lchmod.h: Likewise.
60864         * lib/lchown.c: Likewise.
60865         * lib/ldexpl.c: Likewise.
60866         * lib/linebreak.c: Likewise.
60867         * lib/linebreak.h: Likewise.
60868         * lib/linebuffer.c: Likewise.
60869         * lib/linebuffer.h: Likewise.
60870         * lib/locale.in.h: Likewise.
60871         * lib/logl.c: Likewise.
60872         * lib/long-options.c: Likewise.
60873         * lib/long-options.h: Likewise.
60874         * lib/lstat.c: Likewise.
60875         * lib/lstat.h: Likewise.
60876         * lib/math.in.h: Likewise.
60877         * lib/mbchar.c: Likewise.
60878         * lib/mbchar.h: Likewise.
60879         * lib/mbfile.h: Likewise.
60880         * lib/mbiter.h: Likewise.
60881         * lib/mbscasecmp.c: Likewise.
60882         * lib/mbscasestr.c: Likewise.
60883         * lib/mbschr.c: Likewise.
60884         * lib/mbscspn.c: Likewise.
60885         * lib/mbslen.c: Likewise.
60886         * lib/mbsncasecmp.c: Likewise.
60887         * lib/mbsnlen.c: Likewise.
60888         * lib/mbspbrk.c: Likewise.
60889         * lib/mbspcasecmp.c: Likewise.
60890         * lib/mbsrchr.c: Likewise.
60891         * lib/mbssep.c: Likewise.
60892         * lib/mbsspn.c: Likewise.
60893         * lib/mbsstr.c: Likewise.
60894         * lib/mbstok_r.c: Likewise.
60895         * lib/mbswidth.c: Likewise.
60896         * lib/mbswidth.h: Likewise.
60897         * lib/mbuiter.h: Likewise.
60898         * lib/memcasecmp.c: Likewise.
60899         * lib/memcasecmp.h: Likewise.
60900         * lib/memchr.c: Likewise.
60901         * lib/memcmp.c: Likewise.
60902         * lib/memcoll.c: Likewise.
60903         * lib/memcoll.h: Likewise.
60904         * lib/memcpy.c: Likewise.
60905         * lib/memrchr.c: Likewise.
60906         * lib/mkancesdirs.c: Likewise.
60907         * lib/mkdir-p.c: Likewise.
60908         * lib/mkdir-p.h: Likewise.
60909         * lib/mkdir.c: Likewise.
60910         * lib/mkdirat.c: Likewise.
60911         * lib/mkdtemp.c: Likewise.
60912         * lib/mkstemp-safer.c: Likewise.
60913         * lib/mkstemp.c: Likewise.
60914         * lib/modechange.c: Likewise.
60915         * lib/modechange.h: Likewise.
60916         * lib/mountlist.c: Likewise.
60917         * lib/mountlist.h: Likewise.
60918         * lib/mpsort.c: Likewise.
60919         * lib/nanosleep.c: Likewise.
60920         * lib/obstack.c: Likewise.
60921         * lib/obstack.h: Likewise.
60922         * lib/open-safer.c: Likewise.
60923         * lib/open.c: Likewise.
60924         * lib/openat-die.c: Likewise.
60925         * lib/openat-priv.h: Likewise.
60926         * lib/openat-proc.c: Likewise.
60927         * lib/openat.c: Likewise.
60928         * lib/openat.h: Likewise.
60929         * lib/pagealign_alloc.c: Likewise.
60930         * lib/pagealign_alloc.h: Likewise.
60931         * lib/physmem.c: Likewise.
60932         * lib/physmem.h: Likewise.
60933         * lib/pipe-safer.c: Likewise.
60934         * lib/pipe.c: Likewise.
60935         * lib/pipe.h: Likewise.
60936         * lib/posixtm.c: Likewise.
60937         * lib/posixtm.h: Likewise.
60938         * lib/posixver.c: Likewise.
60939         * lib/printf-frexp.c: Likewise.
60940         * lib/printf-frexp.h: Likewise.
60941         * lib/printf-frexpl.c: Likewise.
60942         * lib/printf-frexpl.h: Likewise.
60943         * lib/printf.c: Likewise.
60944         * lib/progname.c: Likewise.
60945         * lib/progname.h: Likewise.
60946         * lib/progreloc.c: Likewise.
60947         * lib/putenv.c: Likewise.
60948         * lib/quote.c: Likewise.
60949         * lib/quote.h: Likewise.
60950         * lib/quotearg.c: Likewise.
60951         * lib/quotearg.h: Likewise.
60952         * lib/raise.c: Likewise.
60953         * lib/readline.c: Likewise.
60954         * lib/readline.h: Likewise.
60955         * lib/readlink.c: Likewise.
60956         * lib/readtokens.c: Likewise.
60957         * lib/readtokens.h: Likewise.
60958         * lib/readtokens0.c: Likewise.
60959         * lib/readtokens0.h: Likewise.
60960         * lib/readutmp.c: Likewise.
60961         * lib/readutmp.h: Likewise.
60962         * lib/realloc.c: Likewise.
60963         * lib/relocwrapper.c: Likewise.
60964         * lib/rename-dest-slash.c: Likewise.
60965         * lib/rename.c: Likewise.
60966         * lib/rmdir.c: Likewise.
60967         * lib/rpmatch.c: Likewise.
60968         * lib/safe-read.c: Likewise.
60969         * lib/safe-read.h: Likewise.
60970         * lib/safe-write.c: Likewise.
60971         * lib/safe-write.h: Likewise.
60972         * lib/same-inode.h: Likewise.
60973         * lib/same.c: Likewise.
60974         * lib/same.h: Likewise.
60975         * lib/save-cwd.c: Likewise.
60976         * lib/save-cwd.h: Likewise.
60977         * lib/savedir.c: Likewise.
60978         * lib/savedir.h: Likewise.
60979         * lib/savewd.c: Likewise.
60980         * lib/savewd.h: Likewise.
60981         * lib/search.in.h: Likewise.
60982         * lib/setenv.c: Likewise.
60983         * lib/setenv.h: Likewise.
60984         * lib/settime.c: Likewise.
60985         * lib/sh-quote.c: Likewise.
60986         * lib/sh-quote.h: Likewise.
60987         * lib/sig2str.c: Likewise.
60988         * lib/sig2str.h: Likewise.
60989         * lib/signal.in.h: Likewise.
60990         * lib/signbitd.c: Likewise.
60991         * lib/signbitf.c: Likewise.
60992         * lib/signbitl.c: Likewise.
60993         * lib/sigprocmask.c: Likewise.
60994         * lib/sincosl.c: Likewise.
60995         * lib/sleep.c: Likewise.
60996         * lib/sprintf.c: Likewise.
60997         * lib/sqrtl.c: Likewise.
60998         * lib/stat-time.h: Likewise.
60999         * lib/stdio--.h: Likewise.
61000         * lib/stdio-safer.h: Likewise.
61001         * lib/stdlib--.h: Likewise.
61002         * lib/stdlib-safer.h: Likewise.
61003         * lib/stdlib.in.h: Likewise.
61004         * lib/stpcpy.c: Likewise.
61005         * lib/stpncpy.c: Likewise.
61006         * lib/strchrnul.c: Likewise.
61007         * lib/strcspn.c: Likewise.
61008         * lib/strerror.c: Likewise.
61009         * lib/strftime.c: Likewise.
61010         * lib/strftime.h: Likewise.
61011         * lib/striconveh.c: Likewise.
61012         * lib/striconveh.h: Likewise.
61013         * lib/striconveha.c: Likewise.
61014         * lib/striconveha.h: Likewise.
61015         * lib/stripslash.c: Likewise.
61016         * lib/strnlen1.c: Likewise.
61017         * lib/strnlen1.h: Likewise.
61018         * lib/strtod.c: Likewise.
61019         * lib/strtoimax.c: Likewise.
61020         * lib/strtok_r.c: Likewise.
61021         * lib/strtol.c: Likewise.
61022         * lib/strtoll.c: Likewise.
61023         * lib/strtoul.c: Likewise.
61024         * lib/strtoull.c: Likewise.
61025         * lib/sysexits.in.h: Likewise.
61026         * lib/tempname.c: Likewise.
61027         * lib/tempname.h: Likewise.
61028         * lib/timespec.h: Likewise.
61029         * lib/tls.c: Likewise.
61030         * lib/tls.h: Likewise.
61031         * lib/tmpdir.c: Likewise.
61032         * lib/tmpdir.h: Likewise.
61033         * lib/tmpfile-safer.c: Likewise.
61034         * lib/tmpfile.c: Likewise.
61035         * lib/trigl.c: Likewise.
61036         * lib/trigl.h: Likewise.
61037         * lib/trim.c: Likewise.
61038         * lib/trim.h: Likewise.
61039         * lib/trunc.c: Likewise.
61040         * lib/truncf.c: Likewise.
61041         * lib/truncl.c: Likewise.
61042         * lib/tsearch.c: Likewise.
61043         * lib/unicodeio.c: Likewise.
61044         * lib/unicodeio.h: Likewise.
61045         * lib/unistd--.h: Likewise.
61046         * lib/unistd-safer.h: Likewise.
61047         * lib/unistdio/ulc-fprintf.c: Likewise.
61048         * lib/unistdio/ulc-vfprintf.c: Likewise.
61049         * lib/unlinkdir.c: Likewise.
61050         * lib/unlinkdir.h: Likewise.
61051         * lib/unlocked-io.h: Likewise.
61052         * lib/unsetenv.c: Likewise.
61053         * lib/userspec.c: Likewise.
61054         * lib/utime.c: Likewise.
61055         * lib/utimecmp.c: Likewise.
61056         * lib/utimecmp.h: Likewise.
61057         * lib/utimens.c: Likewise.
61058         * lib/verify.h: Likewise.
61059         * lib/verror.c: Likewise.
61060         * lib/verror.h: Likewise.
61061         * lib/version-etc-fsf.c: Likewise.
61062         * lib/version-etc.c: Likewise.
61063         * lib/version-etc.h: Likewise.
61064         * lib/vfprintf.c: Likewise.
61065         * lib/vprintf.c: Likewise.
61066         * lib/vsprintf.c: Likewise.
61067         * lib/w32spawn.h: Likewise.
61068         * lib/wait-process.c: Likewise.
61069         * lib/wait-process.h: Likewise.
61070         * lib/wcwidth.c: Likewise.
61071         * lib/write-any-file.c: Likewise.
61072         * lib/xalloc-die.c: Likewise.
61073         * lib/xalloc.h: Likewise.
61074         * lib/xasprintf.c: Likewise.
61075         * lib/xgetcwd.c: Likewise.
61076         * lib/xgetcwd.h: Likewise.
61077         * lib/xgetdomainname.c: Likewise.
61078         * lib/xgetdomainname.h: Likewise.
61079         * lib/xgethostname.c: Likewise.
61080         * lib/xmalloc.c: Likewise.
61081         * lib/xmalloca.c: Likewise.
61082         * lib/xmalloca.h: Likewise.
61083         * lib/xmemcoll.c: Likewise.
61084         * lib/xnanosleep.c: Likewise.
61085         * lib/xreadlink.c: Likewise.
61086         * lib/xreadlink.h: Likewise.
61087         * lib/xsetenv.c: Likewise.
61088         * lib/xsetenv.h: Likewise.
61089         * lib/xstriconv.c: Likewise.
61090         * lib/xstriconv.h: Likewise.
61091         * lib/xstrndup.c: Likewise.
61092         * lib/xstrndup.h: Likewise.
61093         * lib/xstrtod.c: Likewise.
61094         * lib/xstrtod.h: Likewise.
61095         * lib/xstrtol-error.c: Likewise.
61096         * lib/xstrtol.c: Likewise.
61097         * lib/xstrtol.h: Likewise.
61098         * lib/xtime.h: Likewise.
61099         * lib/xvasprintf.c: Likewise.
61100         * lib/xvasprintf.h: Likewise.
61101         * lib/yesno.c: Likewise.
61102         * lib/yesno.h: Likewise.
61103         * posix-modules: Likewise.
61104         * tests/test-alloca-opt.c: Likewise.
61105         * tests/test-arcfour.c: Likewise.
61106         * tests/test-arctwo.c: Likewise.
61107         * tests/test-argmatch.c: Likewise.
61108         * tests/test-argp-2.sh: Likewise.
61109         * tests/test-argp.c: Likewise.
61110         * tests/test-arpa_inet.c: Likewise.
61111         * tests/test-array_list.c: Likewise.
61112         * tests/test-array_oset.c: Likewise.
61113         * tests/test-atexit.c: Likewise.
61114         * tests/test-avltree_list.c: Likewise.
61115         * tests/test-avltree_oset.c: Likewise.
61116         * tests/test-avltreehash_list.c: Likewise.
61117         * tests/test-base64.c: Likewise.
61118         * tests/test-binary-io.c: Likewise.
61119         * tests/test-byteswap.c: Likewise.
61120         * tests/test-c-ctype.c: Likewise.
61121         * tests/test-c-strcasecmp.c: Likewise.
61122         * tests/test-c-strcasestr.c: Likewise.
61123         * tests/test-c-strncasecmp.c: Likewise.
61124         * tests/test-c-strstr.c: Likewise.
61125         * tests/test-canonicalize-lgpl.c: Likewise.
61126         * tests/test-canonicalize.c: Likewise.
61127         * tests/test-carray_list.c: Likewise.
61128         * tests/test-ceilf.c: Likewise.
61129         * tests/test-ceill.c: Likewise.
61130         * tests/test-count-one-bits.c: Likewise.
61131         * tests/test-crc.c: Likewise.
61132         * tests/test-dirname.c: Likewise.
61133         * tests/test-fbufmode.c: Likewise.
61134         * tests/test-fcntl.c: Likewise.
61135         * tests/test-fflush.c: Likewise.
61136         * tests/test-floorf.c: Likewise.
61137         * tests/test-floorl.c: Likewise.
61138         * tests/test-fopen.c: Likewise.
61139         * tests/test-fprintf-posix.c: Likewise.
61140         * tests/test-fprintf-posix.h: Likewise.
61141         * tests/test-fpurge.c: Likewise.
61142         * tests/test-freadable.c: Likewise.
61143         * tests/test-freadahead.c: Likewise.
61144         * tests/test-freading.c: Likewise.
61145         * tests/test-freopen.c: Likewise.
61146         * tests/test-frexp.c: Likewise.
61147         * tests/test-frexpl.c: Likewise.
61148         * tests/test-fseek.c: Likewise.
61149         * tests/test-fseeko.c: Likewise.
61150         * tests/test-fseterr.c: Likewise.
61151         * tests/test-fstrcmp.c: Likewise.
61152         * tests/test-ftell.c: Likewise.
61153         * tests/test-ftello.c: Likewise.
61154         * tests/test-fwritable.c: Likewise.
61155         * tests/test-fwriting.c: Likewise.
61156         * tests/test-getaddrinfo.c: Likewise.
61157         * tests/test-getpass.c: Likewise.
61158         * tests/test-gettimeofday.c: Likewise.
61159         * tests/test-hmac-md5.c: Likewise.
61160         * tests/test-hmac-sha1.c: Likewise.
61161         * tests/test-iconv.c: Likewise.
61162         * tests/test-iconvme.c: Likewise.
61163         * tests/test-inttypes.c: Likewise.
61164         * tests/test-isnan.c: Likewise.
61165         * tests/test-isnanf.c: Likewise.
61166         * tests/test-isnanl-nolibm.c: Likewise.
61167         * tests/test-isnanl.c: Likewise.
61168         * tests/test-isnanl.h: Likewise.
61169         * tests/test-ldexpl.c: Likewise.
61170         * tests/test-linked_list.c: Likewise.
61171         * tests/test-linkedhash_list.c: Likewise.
61172         * tests/test-locale.c: Likewise.
61173         * tests/test-localename.c: Likewise.
61174         * tests/test-lock.c: Likewise.
61175         * tests/test-lseek.c: Likewise.
61176         * tests/test-malloca.c: Likewise.
61177         * tests/test-math.c: Likewise.
61178         * tests/test-mbscasecmp.c: Likewise.
61179         * tests/test-mbscasestr1.c: Likewise.
61180         * tests/test-mbscasestr2.c: Likewise.
61181         * tests/test-mbscasestr3.c: Likewise.
61182         * tests/test-mbscasestr4.c: Likewise.
61183         * tests/test-mbschr.c: Likewise.
61184         * tests/test-mbscspn.c: Likewise.
61185         * tests/test-mbsncasecmp.c: Likewise.
61186         * tests/test-mbspbrk.c: Likewise.
61187         * tests/test-mbspcasecmp.c: Likewise.
61188         * tests/test-mbsrchr.c: Likewise.
61189         * tests/test-mbsspn.c: Likewise.
61190         * tests/test-mbsstr1.c: Likewise.
61191         * tests/test-mbsstr2.c: Likewise.
61192         * tests/test-mbsstr3.c: Likewise.
61193         * tests/test-md5.c: Likewise.
61194         * tests/test-memmem.c: Likewise.
61195         * tests/test-netinet_in.c: Likewise.
61196         * tests/test-open.c: Likewise.
61197         * tests/test-printf-frexp.c: Likewise.
61198         * tests/test-printf-frexpl.c: Likewise.
61199         * tests/test-printf-posix.c: Likewise.
61200         * tests/test-printf-posix.h: Likewise.
61201         * tests/test-rbtree_list.c: Likewise.
61202         * tests/test-rbtree_oset.c: Likewise.
61203         * tests/test-rbtreehash_list.c: Likewise.
61204         * tests/test-read-file.c: Likewise.
61205         * tests/test-rijndael.c: Likewise.
61206         * tests/test-search.c: Likewise.
61207         * tests/test-signbit.c: Likewise.
61208         * tests/test-sleep.c: Likewise.
61209         * tests/test-snprintf-posix.c: Likewise.
61210         * tests/test-snprintf-posix.h: Likewise.
61211         * tests/test-snprintf.c: Likewise.
61212         * tests/test-sprintf-posix.c: Likewise.
61213         * tests/test-sprintf-posix.h: Likewise.
61214         * tests/test-stat-time.c: Likewise.
61215         * tests/test-stdbool.c: Likewise.
61216         * tests/test-stdint.c: Likewise.
61217         * tests/test-stdio.c: Likewise.
61218         * tests/test-stdlib.c: Likewise.
61219         * tests/test-stpncpy.c: Likewise.
61220         * tests/test-strcasestr.c: Likewise.
61221         * tests/test-striconv.c: Likewise.
61222         * tests/test-striconveh.c: Likewise.
61223         * tests/test-striconveha.c: Likewise.
61224         * tests/test-string.c: Likewise.
61225         * tests/test-sys_select.c: Likewise.
61226         * tests/test-sys_socket.c: Likewise.
61227         * tests/test-sys_stat.c: Likewise.
61228         * tests/test-sys_time.c: Likewise.
61229         * tests/test-sysexits.c: Likewise.
61230         * tests/test-time.c: Likewise.
61231         * tests/test-tls.c: Likewise.
61232         * tests/test-trunc.c: Likewise.
61233         * tests/test-truncf.c: Likewise.
61234         * tests/test-truncl.c: Likewise.
61235         * tests/test-unistd.c: Likewise.
61236         * tests/test-vasnprintf-posix.c: Likewise.
61237         * tests/test-vasnprintf-posix2.c: Likewise.
61238         * tests/test-vasnprintf.c: Likewise.
61239         * tests/test-vasprintf-posix.c: Likewise.
61240         * tests/test-vasprintf.c: Likewise.
61241         * tests/test-verify.c: Likewise.
61242         * tests/test-vfprintf-posix.c: Likewise.
61243         * tests/test-vprintf-posix.c: Likewise.
61244         * tests/test-vsnprintf-posix.c: Likewise.
61245         * tests/test-vsnprintf.c: Likewise.
61246         * tests/test-vsprintf-posix.c: Likewise.
61247         * tests/test-wchar.c: Likewise.
61248         * tests/test-wctype.c: Likewise.
61249         * tests/test-wcwidth.c: Likewise.
61250         * tests/test-xstrtol.c: Likewise.
61251         * tests/test-xvasprintf.c: Likewise.
61252         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61253         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61254         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61255         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61256         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61257         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61258         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61259         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61260         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61261         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61262         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61263         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61264         * tests/uniname/test-uninames.c: Likewise.
61265         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61266         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61267         * tests/unistdio/test-u16-printf1.h: Likewise.
61268         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61269         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61270         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61271         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61272         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61273         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61274         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61275         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61276         * tests/unistdio/test-u32-printf1.h: Likewise.
61277         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61278         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61279         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61280         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61281         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61282         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61283         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61284         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61285         * tests/unistdio/test-u8-printf1.h: Likewise.
61286         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61287         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61288         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61289         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61290         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61291         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61292         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61293         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61294         * tests/unistdio/test-ulc-printf1.h: Likewise.
61295         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61296         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61297         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61298         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61299         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61300         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61301         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61302         * tests/uniwidth/test-u16-width.c: Likewise.
61303         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61304         * tests/uniwidth/test-u32-width.c: Likewise.
61305         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61306         * tests/uniwidth/test-u8-width.c: Likewise.
61307         * tests/uniwidth/test-uc_width.c: Likewise.
61308         * config/srclist-update: Likewise.
61309         (fixlicense): Update to GPLv3+.
61310
61311         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61312         * tests/test-tsearch.c: Change copyright notice.
61313
61314         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61315         * lib/c-strcaseeq.h: Change copyright notice.
61316         * lib/streq.h: Likewise.
61317         * lib/uniconv.h: Likewise.
61318         * lib/uniconv/u-conv-from-enc.h: Likewise.
61319         * lib/uniconv/u-conv-to-enc.h: Likewise.
61320         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61321         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61322         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61323         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61324         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61325         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61326         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61327         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61328         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61329         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61330         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61331         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61332         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61333         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61334         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61335         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61336         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61337         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61338         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61339         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61340         * lib/uniname.h: Likewise.
61341         * lib/uniname/uniname.c: Likewise.
61342         * lib/unistdio.h: Likewise.
61343         * lib/unistdio/u-asnprintf.h: Likewise.
61344         * lib/unistdio/u-asprintf.h: Likewise.
61345         * lib/unistdio/u-printf-args.c: Likewise.
61346         * lib/unistdio/u-printf-args.h: Likewise.
61347         * lib/unistdio/u-printf-parse.h: Likewise.
61348         * lib/unistdio/u-snprintf.h: Likewise.
61349         * lib/unistdio/u-sprintf.h: Likewise.
61350         * lib/unistdio/u-vasprintf.h: Likewise.
61351         * lib/unistdio/u-vsnprintf.h: Likewise.
61352         * lib/unistdio/u-vsprintf.h: Likewise.
61353         * lib/unistdio/u16-asnprintf.c: Likewise.
61354         * lib/unistdio/u16-asprintf.c: Likewise.
61355         * lib/unistdio/u16-printf-parse.c: Likewise.
61356         * lib/unistdio/u16-snprintf.c: Likewise.
61357         * lib/unistdio/u16-sprintf.c: Likewise.
61358         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61359         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61360         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61361         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61362         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61363         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61364         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61365         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61366         * lib/unistdio/u16-vasnprintf.c: Likewise.
61367         * lib/unistdio/u16-vasprintf.c: Likewise.
61368         * lib/unistdio/u16-vsnprintf.c: Likewise.
61369         * lib/unistdio/u16-vsprintf.c: Likewise.
61370         * lib/unistdio/u32-asnprintf.c: Likewise.
61371         * lib/unistdio/u32-asprintf.c: Likewise.
61372         * lib/unistdio/u32-printf-parse.c: Likewise.
61373         * lib/unistdio/u32-snprintf.c: Likewise.
61374         * lib/unistdio/u32-sprintf.c: Likewise.
61375         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61376         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61377         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61378         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61379         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61380         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61381         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61382         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61383         * lib/unistdio/u32-vasnprintf.c: Likewise.
61384         * lib/unistdio/u32-vasprintf.c: Likewise.
61385         * lib/unistdio/u32-vsnprintf.c: Likewise.
61386         * lib/unistdio/u32-vsprintf.c: Likewise.
61387         * lib/unistdio/u8-asnprintf.c: Likewise.
61388         * lib/unistdio/u8-asprintf.c: Likewise.
61389         * lib/unistdio/u8-printf-parse.c: Likewise.
61390         * lib/unistdio/u8-snprintf.c: Likewise.
61391         * lib/unistdio/u8-sprintf.c: Likewise.
61392         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61393         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61394         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61395         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61396         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61397         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61398         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61399         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61400         * lib/unistdio/u8-vasnprintf.c: Likewise.
61401         * lib/unistdio/u8-vasprintf.c: Likewise.
61402         * lib/unistdio/u8-vsnprintf.c: Likewise.
61403         * lib/unistdio/u8-vsprintf.c: Likewise.
61404         * lib/unistdio/ulc-asnprintf.c: Likewise.
61405         * lib/unistdio/ulc-asprintf.c: Likewise.
61406         * lib/unistdio/ulc-printf-parse.c: Likewise.
61407         * lib/unistdio/ulc-snprintf.c: Likewise.
61408         * lib/unistdio/ulc-sprintf.c: Likewise.
61409         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61410         * lib/unistdio/ulc-vasprintf.c: Likewise.
61411         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61412         * lib/unistdio/ulc-vsprintf.c: Likewise.
61413         * lib/unistr.h: Likewise.
61414         * lib/unistr/u-cpy-alloc.h: Likewise.
61415         * lib/unistr/u-cpy.h: Likewise.
61416         * lib/unistr/u-endswith.h: Likewise.
61417         * lib/unistr/u-move.h: Likewise.
61418         * lib/unistr/u-set.h: Likewise.
61419         * lib/unistr/u-startswith.h: Likewise.
61420         * lib/unistr/u-stpcpy.h: Likewise.
61421         * lib/unistr/u-stpncpy.h: Likewise.
61422         * lib/unistr/u-strcat.h: Likewise.
61423         * lib/unistr/u-strcpy.h: Likewise.
61424         * lib/unistr/u-strcspn.h: Likewise.
61425         * lib/unistr/u-strdup.h: Likewise.
61426         * lib/unistr/u-strlen.h: Likewise.
61427         * lib/unistr/u-strncat.h: Likewise.
61428         * lib/unistr/u-strncpy.h: Likewise.
61429         * lib/unistr/u-strnlen.h: Likewise.
61430         * lib/unistr/u-strpbrk.h: Likewise.
61431         * lib/unistr/u-strspn.h: Likewise.
61432         * lib/unistr/u-strstr.h: Likewise.
61433         * lib/unistr/u-strtok.h: Likewise.
61434         * lib/unistr/u16-check.c: Likewise.
61435         * lib/unistr/u16-chr.c: Likewise.
61436         * lib/unistr/u16-cmp.c: Likewise.
61437         * lib/unistr/u16-cpy-alloc.c: Likewise.
61438         * lib/unistr/u16-cpy.c: Likewise.
61439         * lib/unistr/u16-endswith.c: Likewise.
61440         * lib/unistr/u16-mblen.c: Likewise.
61441         * lib/unistr/u16-mbsnlen.c: Likewise.
61442         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61443         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61444         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61445         * lib/unistr/u16-mbtouc.c: Likewise.
61446         * lib/unistr/u16-mbtoucr.c: Likewise.
61447         * lib/unistr/u16-move.c: Likewise.
61448         * lib/unistr/u16-next.c: Likewise.
61449         * lib/unistr/u16-prev.c: Likewise.
61450         * lib/unistr/u16-set.c: Likewise.
61451         * lib/unistr/u16-startswith.c: Likewise.
61452         * lib/unistr/u16-stpcpy.c: Likewise.
61453         * lib/unistr/u16-stpncpy.c: Likewise.
61454         * lib/unistr/u16-strcat.c: Likewise.
61455         * lib/unistr/u16-strchr.c: Likewise.
61456         * lib/unistr/u16-strcmp.c: Likewise.
61457         * lib/unistr/u16-strcpy.c: Likewise.
61458         * lib/unistr/u16-strcspn.c: Likewise.
61459         * lib/unistr/u16-strdup.c: Likewise.
61460         * lib/unistr/u16-strlen.c: Likewise.
61461         * lib/unistr/u16-strmblen.c: Likewise.
61462         * lib/unistr/u16-strmbtouc.c: Likewise.
61463         * lib/unistr/u16-strncat.c: Likewise.
61464         * lib/unistr/u16-strncmp.c: Likewise.
61465         * lib/unistr/u16-strncpy.c: Likewise.
61466         * lib/unistr/u16-strnlen.c: Likewise.
61467         * lib/unistr/u16-strpbrk.c: Likewise.
61468         * lib/unistr/u16-strrchr.c: Likewise.
61469         * lib/unistr/u16-strspn.c: Likewise.
61470         * lib/unistr/u16-strstr.c: Likewise.
61471         * lib/unistr/u16-strtok.c: Likewise.
61472         * lib/unistr/u16-to-u32.c: Likewise.
61473         * lib/unistr/u16-to-u8.c: Likewise.
61474         * lib/unistr/u16-uctomb-aux.c: Likewise.
61475         * lib/unistr/u16-uctomb.c: Likewise.
61476         * lib/unistr/u32-check.c: Likewise.
61477         * lib/unistr/u32-chr.c: Likewise.
61478         * lib/unistr/u32-cmp.c: Likewise.
61479         * lib/unistr/u32-cpy-alloc.c: Likewise.
61480         * lib/unistr/u32-cpy.c: Likewise.
61481         * lib/unistr/u32-endswith.c: Likewise.
61482         * lib/unistr/u32-mblen.c: Likewise.
61483         * lib/unistr/u32-mbsnlen.c: Likewise.
61484         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61485         * lib/unistr/u32-mbtouc.c: Likewise.
61486         * lib/unistr/u32-mbtoucr.c: Likewise.
61487         * lib/unistr/u32-move.c: Likewise.
61488         * lib/unistr/u32-next.c: Likewise.
61489         * lib/unistr/u32-prev.c: Likewise.
61490         * lib/unistr/u32-set.c: Likewise.
61491         * lib/unistr/u32-startswith.c: Likewise.
61492         * lib/unistr/u32-stpcpy.c: Likewise.
61493         * lib/unistr/u32-stpncpy.c: Likewise.
61494         * lib/unistr/u32-strcat.c: Likewise.
61495         * lib/unistr/u32-strchr.c: Likewise.
61496         * lib/unistr/u32-strcmp.c: Likewise.
61497         * lib/unistr/u32-strcpy.c: Likewise.
61498         * lib/unistr/u32-strcspn.c: Likewise.
61499         * lib/unistr/u32-strdup.c: Likewise.
61500         * lib/unistr/u32-strlen.c: Likewise.
61501         * lib/unistr/u32-strmblen.c: Likewise.
61502         * lib/unistr/u32-strmbtouc.c: Likewise.
61503         * lib/unistr/u32-strncat.c: Likewise.
61504         * lib/unistr/u32-strncmp.c: Likewise.
61505         * lib/unistr/u32-strncpy.c: Likewise.
61506         * lib/unistr/u32-strnlen.c: Likewise.
61507         * lib/unistr/u32-strpbrk.c: Likewise.
61508         * lib/unistr/u32-strrchr.c: Likewise.
61509         * lib/unistr/u32-strspn.c: Likewise.
61510         * lib/unistr/u32-strstr.c: Likewise.
61511         * lib/unistr/u32-strtok.c: Likewise.
61512         * lib/unistr/u32-to-u16.c: Likewise.
61513         * lib/unistr/u32-to-u8.c: Likewise.
61514         * lib/unistr/u32-uctomb.c: Likewise.
61515         * lib/unistr/u8-check.c: Likewise.
61516         * lib/unistr/u8-chr.c: Likewise.
61517         * lib/unistr/u8-cmp.c: Likewise.
61518         * lib/unistr/u8-cpy-alloc.c: Likewise.
61519         * lib/unistr/u8-cpy.c: Likewise.
61520         * lib/unistr/u8-endswith.c: Likewise.
61521         * lib/unistr/u8-mblen.c: Likewise.
61522         * lib/unistr/u8-mbsnlen.c: Likewise.
61523         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61524         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61525         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61526         * lib/unistr/u8-mbtouc.c: Likewise.
61527         * lib/unistr/u8-mbtoucr.c: Likewise.
61528         * lib/unistr/u8-move.c: Likewise.
61529         * lib/unistr/u8-next.c: Likewise.
61530         * lib/unistr/u8-prev.c: Likewise.
61531         * lib/unistr/u8-set.c: Likewise.
61532         * lib/unistr/u8-startswith.c: Likewise.
61533         * lib/unistr/u8-stpcpy.c: Likewise.
61534         * lib/unistr/u8-stpncpy.c: Likewise.
61535         * lib/unistr/u8-strcat.c: Likewise.
61536         * lib/unistr/u8-strchr.c: Likewise.
61537         * lib/unistr/u8-strcmp.c: Likewise.
61538         * lib/unistr/u8-strcpy.c: Likewise.
61539         * lib/unistr/u8-strcspn.c: Likewise.
61540         * lib/unistr/u8-strdup.c: Likewise.
61541         * lib/unistr/u8-strlen.c: Likewise.
61542         * lib/unistr/u8-strmblen.c: Likewise.
61543         * lib/unistr/u8-strmbtouc.c: Likewise.
61544         * lib/unistr/u8-strncat.c: Likewise.
61545         * lib/unistr/u8-strncmp.c: Likewise.
61546         * lib/unistr/u8-strncpy.c: Likewise.
61547         * lib/unistr/u8-strnlen.c: Likewise.
61548         * lib/unistr/u8-strpbrk.c: Likewise.
61549         * lib/unistr/u8-strrchr.c: Likewise.
61550         * lib/unistr/u8-strspn.c: Likewise.
61551         * lib/unistr/u8-strstr.c: Likewise.
61552         * lib/unistr/u8-strtok.c: Likewise.
61553         * lib/unistr/u8-to-u16.c: Likewise.
61554         * lib/unistr/u8-to-u32.c: Likewise.
61555         * lib/unistr/u8-uctomb-aux.c: Likewise.
61556         * lib/unistr/u8-uctomb.c: Likewise.
61557         * lib/unitypes.h: Likewise.
61558         * lib/uniwidth.h: Likewise.
61559         * lib/uniwidth/cjk.h: Likewise.
61560         * lib/uniwidth/u16-strwidth.c: Likewise.
61561         * lib/uniwidth/u16-width.c: Likewise.
61562         * lib/uniwidth/u32-strwidth.c: Likewise.
61563         * lib/uniwidth/u32-width.c: Likewise.
61564         * lib/uniwidth/u8-strwidth.c: Likewise.
61565         * lib/uniwidth/u8-width.c: Likewise.
61566         * lib/uniwidth/width.c: Likewise.
61567
61568 2007-10-07  Bruno Haible  <bruno@clisp.org>
61569
61570         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61571         The file is still under LGPL (see modules/inttypes).
61572
61573 2007-10-06  Bruno Haible  <bruno@clisp.org>
61574
61575         * modules/trunc (Dependencies): Add 'extensions'.
61576         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61577         Reported by Ben Pfaff <blp@gnu.org>.
61578
61579 2007-10-06  Bruno Haible  <bruno@clisp.org>
61580
61581         * modules/freopen-tests: New file.
61582         * tests/test-freopen.c: New file.
61583
61584         * modules/fopen-tests: New file.
61585         * tests/test-fopen.c: New file.
61586
61587         * modules/fopen: New file.
61588         * lib/fopen.c: New file.
61589         * m4/fopen.m4: New file.
61590         * modules/freopen: New file.
61591         * lib/freopen.c: New file.
61592         * m4/freopen.m4: New file.
61593         * lib/stdio.in.h (fopen, freopen): New declarations.
61594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61595         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61596         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61597         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61598         * doc/functions/fopen.texi: Mention the 'fopen' module.
61599         * doc/functions/freopen.texi: Mention the 'freopen' module.
61600
61601 2007-10-06  Bruno Haible  <bruno@clisp.org>
61602
61603         * modules/open-tests: New file.
61604         * tests/test-open.c: New file.
61605
61606         * modules/open: New file.
61607         * lib/open.c: New file.
61608         * m4/open.m4: New file.
61609         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61610         lib/open.c does.
61611         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61612         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61613         macros.
61614         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61615         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61616         REPLACE_OPEN.
61617         * doc/functions/open.texi: Mention the 'open' module.
61618
61619 2007-10-04  Bruno Haible  <bruno@clisp.org>
61620
61621         * modules/ceill-tests: New file.
61622         * tests/test-ceill.c: New file.
61623
61624         * modules/ceill: New file.
61625         * lib/ceill.c: Replace entire file.
61626         * m4/ceill.m4: New file.
61627         * lib/math.in.h (ceill): Replace declaration.
61628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61629         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61630         * doc/functions/ceill.texi: Mention the 'ceill' module.
61631         * modules/mathl (Files): Remove lib/ceill.c.
61632         (Depends-on): Add ceill.
61633
61634 2007-10-04  Bruno Haible  <bruno@clisp.org>
61635
61636         * modules/ceilf-tests: New file.
61637         * tests/test-ceilf.c: New file.
61638
61639         * modules/ceilf: New file.
61640         * lib/ceil.c: New file.
61641         * lib/ceilf.c: New file.
61642         * m4/ceilf.m4: New file.
61643         * lib/math.in.h (ceilf): New declaration.
61644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61645         HAVE_DECL_CEILF.
61646         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61647         HAVE_DECL_CEILF.
61648         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61649
61650 2007-10-04  Bruno Haible  <bruno@clisp.org>
61651
61652         * modules/floorl-tests: New file.
61653         * tests/test-floorl.c: New file.
61654
61655         * modules/floorl: New file.
61656         * lib/floorl.c: Replace entire file.
61657         * m4/floorl.m4: New file.
61658         * lib/math.in.h (floorl): Replace declaration.
61659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61660         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61661         * doc/functions/floorl.texi: Mention the 'floorl' module.
61662         * modules/mathl (Files): Remove lib/floorl.c.
61663         (Depends-on): Add floorl.
61664
61665 2007-10-04  Bruno Haible  <bruno@clisp.org>
61666
61667         * modules/floorf-tests: New file.
61668         * tests/test-floorf.c: New file.
61669
61670         * modules/floorf: New file.
61671         * lib/floor.c: New file.
61672         * lib/floorf.c: New file.
61673         * m4/floorf.m4: New file.
61674         * lib/math.in.h (floorf): New declaration.
61675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61676         HAVE_DECL_FLOORF.
61677         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61678         HAVE_DECL_FLOORF.
61679         * doc/functions/floorf.texi: Mention the 'floorf' module.
61680
61681 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61682             Bruno Haible  <bruno@clisp.org>
61683
61684         Advertise for the Git server instead of the CVS server.
61685         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61686         repository instead of the CVS one.
61687         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61688         about all VCS systems generically.
61689         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61690
61691 2007-10-04  Bruno Haible  <bruno@clisp.org>
61692
61693         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61694         means.
61695         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61696
61697 2007-10-04  Bruno Haible  <bruno@clisp.org>
61698
61699         * modules/truncl-tests: New file.
61700         * tests/test-truncl.c: New file.
61701
61702         * modules/truncl: New file.
61703         * lib/truncl.c: New file.
61704         * m4/truncl.m4: New file.
61705         * lib/math.in.h (truncl): New declaration.
61706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61707         HAVE_DECL_TRUNCL.
61708         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61709         HAVE_DECL_TRUNCL.
61710         * doc/functions/truncl.texi: Mention the 'truncl' module.
61711
61712 2007-10-04  Bruno Haible  <bruno@clisp.org>
61713
61714         * modules/truncf-tests: New file.
61715         * tests/test-truncf.c: New file.
61716
61717         * modules/truncf: New file.
61718         * lib/trunc.c: Make paramerizable through USE_* macros.
61719         * lib/truncf.c: New file.
61720         * m4/truncf.m4: New file.
61721         * lib/math.in.h (truncf): New declaration.
61722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61723         HAVE_DECL_TRUNCF.
61724         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61725         HAVE_DECL_TRUNCF.
61726         * doc/functions/truncf.texi: Mention the 'truncf' module.
61727
61728 2007-10-03  Bruno Haible  <bruno@clisp.org>
61729
61730         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61731         augmentation also for tests modules.
61732         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61733         * modules/atexit-tests (Makefile.am): Likewise.
61734         * modules/binary-io-tests (Makefile.am): Likewise.
61735         * modules/c-strcase-tests (Makefile.am): Likewise.
61736         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61737         * modules/canonicalize-tests (Makefile.am): Likewise.
61738         * modules/closein-tests (Makefile.am): Likewise.
61739         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61740         * modules/freadahead-tests (Makefile.am): Likewise.
61741         * modules/fseek-tests (Makefile.am): Likewise.
61742         * modules/fseeko-tests (Makefile.am): Likewise.
61743         * modules/ftell-tests (Makefile.am): Likewise.
61744         * modules/ftello-tests (Makefile.am): Likewise.
61745         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61746         * modules/isnanl-tests (Makefile.am): Likewise.
61747         * modules/lseek-tests (Makefile.am): Likewise.
61748         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61749         * modules/mbscasestr-tests (Makefile.am): Likewise.
61750         * modules/mbschr-tests (Makefile.am): Likewise.
61751         * modules/mbscspn-tests (Makefile.am): Likewise.
61752         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61753         * modules/mbspbrk-tests (Makefile.am): Likewise.
61754         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61755         * modules/mbsrchr-tests (Makefile.am): Likewise.
61756         * modules/mbsspn-tests (Makefile.am): Likewise.
61757         * modules/mbsstr-tests (Makefile.am): Likewise.
61758         * modules/printf-posix-tests (Makefile.am): Likewise.
61759         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61760         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61761         * modules/tsearch-tests (Makefile.am): Likewise.
61762         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61763         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61764         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61765         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61766         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61767         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61768         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61769         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61770         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61771         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61772         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61773         * modules/xstrtol-tests (Makefile.am): Likewise.
61774         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61775         * modules/yesno-tests (Makefile.am): Likewise.
61776
61777 2007-10-03  Bruno Haible  <bruno@clisp.org>
61778
61779         * modules/trunc-tests: New file.
61780         * tests/test-trunc.c: New file.
61781
61782         * modules/trunc: New file.
61783         * lib/trunc.c: New file.
61784         * m4/trunc.m4: New file.
61785         * lib/math.in.h (trunc): New declaration.
61786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61787         HAVE_DECL_TRUNC.
61788         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61789         HAVE_DECL_TRUNC.
61790         * doc/functions/trunc.texi: Mention the 'trunc' module.
61791
61792 2007-10-03  Bruno Haible  <bruno@clisp.org>
61793
61794         * tests/test-fpending.c: New file, mostly copied
61795         from coreutils/lib/t-fpending.c.
61796         * modules/fpending-tests: New file.
61797
61798 2007-10-03  Bruno Haible  <bruno@clisp.org>
61799
61800         Port the stdio extensions to QNX (untested).
61801         * lib/fseterr.c (fseterr): Add support for QNX.
61802         * lib/fbufmode.c (fbufmode): Likewise.
61803         * lib/freadable.c (freadable): Likewise.
61804         * lib/fwritable.c (fwritable): Likewise.
61805         * lib/freading.c (freading): Likewise.
61806         * lib/fwriting.c (fwriting): Likewise.
61807         * lib/freadahead.c (freadahed): Likewise.
61808         * lib/fpurge.c (fpurge): Likewise.
61809         * lib/fseeko.c (rpl_fseeko): Likewise.
61810
61811 2007-10-03  Bruno Haible  <bruno@clisp.org>
61812             Jim Meyering  <jim@meyering.net>
61813             Eric Blake  <ebb9@byu.net>
61814
61815         * doc/relocatable.texi: Use @command instead of @program.
61816
61817 2007-10-02  Jim Meyering  <jim@meyering.net>
61818
61819         Perform one more "_.h" -> ".in.h" substitution.
61820         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61821         instead of unistd_.h here, too.
61822
61823 2007-10-01  Bruno Haible  <bruno@clisp.org>
61824
61825         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61826         Needed for the alloca-opt module.
61827
61828 2007-09-30  Bruno Haible  <bruno@clisp.org>
61829
61830         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61831         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61832         alloca_.h.
61833         * lib/argz.in.h: Renamed from lib/argz_.h.
61834         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61835         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61836         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61837         byteswap_.h.
61838         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61839         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61840         dirent_.h.
61841         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61842         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61843         fcntl_.h.
61844         * lib/float.in.h: Renamed from lib/float_.h.
61845         * modules/float (Files, Makefile.am): Use float.in.h instead of
61846         float_.h.
61847         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61848         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61849         fnmatch_.h.
61850         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61851         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61852         getopt_.h.
61853         * lib/glob.in.h: Renamed from lib/glob_.h.
61854         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61855         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61856         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61857         iconv_.h.
61858         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61859         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61860         inttypes_.h.
61861         * lib/locale.in.h: Renamed from lib/locale_.h.
61862         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61863         locale_.h.
61864         * lib/math.in.h: Renamed from lib/math_.h.
61865         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61866         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61867         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61868         of netinet_in_.h. Add dependency.
61869         * lib/poll.in.h: Renamed from lib/poll_.h.
61870         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61871         * lib/search.in.h: Renamed from lib/search_.h.
61872         * modules/search (Files, Makefile.am): Use search.in.h instead of
61873         search_.h.
61874         * lib/signal.in.h: Renamed from lib/signal_.h.
61875         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61876         _signal.h.
61877         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61878         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61879         stdbool_.h.
61880         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61881         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61882         stdint_.h.
61883         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61884         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61885         stdio_.h.
61886         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61887         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61888         stdlib_.h.
61889         * lib/string.in.h: Renamed from lib/string_.h.
61890         * modules/string (Files, Makefile.am): Use string.in.h instead of
61891         string_.h.
61892         * doc/gnulib-tool.texi (Initial import): Update.
61893         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61894         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61895         of sys_select_.h. Add dependency.
61896         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61897         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61898         of sys_socket_.h.
61899         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61900         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61901         sys_stat_.h.
61902         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61903         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61904         sys_time_.h.
61905         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61906         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61907         sysexits_.h.
61908         * lib/time.in.h: Renamed from lib/time_.h.
61909         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61910         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61911         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61912         unistd_.h.
61913         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61914         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61915         wchar_.h.
61916         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61917         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61918         wctype_.h.
61919         * build-aux/bootstrap (slurp): Update.
61920         * lib/.cppi-disable: Update.
61921
61922 2007-09-30  Bruno Haible  <bruno@clisp.org>
61923
61924         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61925         Needed on BeOS.
61926
61927 2007-09-30  Bruno Haible  <bruno@clisp.org>
61928
61929         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61930
61931 2007-09-29  Bruno Haible  <bruno@clisp.org>
61932
61933         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61934
61935 2007-09-29  Bruno Haible  <bruno@clisp.org>
61936
61937         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61938         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61939         * build-aux/install-reloc: Compile also areadlink.c.
61940         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61941
61942 2007-09-29  Bruno Haible  <bruno@clisp.org>
61943
61944         * gnulib-tool (func_emit_initmacro_done): Indentation.
61945
61946 2007-09-29  Bruno Haible  <bruno@clisp.org>
61947
61948         * README: Add CVS checkout update instructions.
61949         Info from Bob Proulx <bob@proulx.com>.
61950
61951 2007-09-28  Eric Blake  <ebb9@byu.net>
61952
61953         Provide move-if-change.
61954         * build-aux/move-if-change: New file, based on best practice
61955         rather than any canonical upstream location.
61956
61957 2007-09-28  Jim Meyering  <jim@meyering.net>
61958
61959         Fix canonicalize loop-detection corner case.
61960         Do not attempt to stat the symlink values stored via seen_triple.
61961         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61962         on linux-2.6.18, (but not 2.6.22).
61963         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61964         triple_compare.  The former compares dev,ino,filename, while the latter
61965         would actually stat dirname(filename) when dev and ino were equal.
61966         * lib/hash-triple.c: Install <string.h>.
61967         (STREQ): Define.
61968         (triple_compare_ino_str): New function.
61969         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61970
61971 2007-09-28  Eric Blake  <ebb9@byu.net>
61972
61973         Enforce that AC_REPLACE_FUNCS files exist.
61974         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61975         override check for typos.
61976
61977         Fix test-closein on Solaris 10.
61978         * tests/test-closein.c (main): Don't assume stdin can be inherited
61979         closed on all systems.
61980         * tests/test-closein.sh: Likewise.
61981         Reported by Piotr Tarnowski.
61982
61983 2007-09-28  Jim Meyering  <jim@meyering.net>
61984
61985         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61986
61987 2007-09-27  Jim Meyering  <jim@meyering.net>
61988
61989         canonicalize: Avoid a false-positive cycle failure.
61990         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61991         Sort.  Remove cycle-check.
61992         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61993         not cycle-check.h.
61994         (seen_triple): New function.
61995         (canonicalize_filename_mode): Use it instead of cycle-check.
61996         * tests/test-canonicalize.c: Add a test for this bug.
61997         * tests/test-canonicalize.sh: Set up and run the test.
61998
61999         New module, file-set, from coreutils.
62000         * modules/file-set: Define it.
62001         * lib/file-set.c, lib/file-set.h: Implement.
62002
62003         New module, hash-triple, from coreutils.
62004         * modules/hash-triple: Define it.
62005         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62006
62007 2007-09-25  Eric Blake  <ebb9@byu.net>
62008
62009         Fix strerror on Interix.
62010         * lib/string_.h (strerror): Declare replacement.
62011         * doc/functions/strerror.texi (strerror): Document the Interix
62012         shortcoming.
62013         * modules/string (Makefile.am): Support new hooks.
62014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62015         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62016         gl_FUNC_STRERROR_SEPARATE.
62017         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62018         * lib/strerror.c (rpl_strerror): Provide replacement.
62019         * modules/strerror (Depends-on): Add string.
62020         (configure.ac): Detect use of module.
62021         * tests/test-strerror.c: New file.
62022         * modules/strerror-tests: New test module.
62023         * modules/argp (Depends-on): Add strerror.
62024         * modules/error (Depends-on): Likewise.
62025         Reported by Martin Koeppe.
62026
62027 2007-09-24  Bruno Haible  <bruno@clisp.org>
62028
62029         * README: Update git instructions.
62030
62031 2007-09-24  Eric Blake  <ebb9@byu.net>
62032
62033         Revert fpending breakage from 2007-09-08.
62034         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62035         __fpending.c.
62036
62037 2007-09-24  Jim Meyering  <jim@meyering.net>
62038
62039         filenamecat.c: Add a test.
62040         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62041         showing how the function works when DIR is the empty string.
62042
62043 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62044
62045         * tests/test-canonicalize.sh: Turn on executable bit.
62046
62047 2007-09-19  Eric Blake  <ebb9@byu.net>
62048
62049         * README: Update CVS instructions.
62050
62051 2007-09-18  Bruno Haible  <bruno@clisp.org>
62052
62053         * modules/areadlink: New file.
62054         * lib/areadlink.h (areadlink): New declaration.
62055         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62056
62057 2007-09-17  Jim Meyering  <jim@meyering.net>
62058
62059         * lib/savewd.c (ESTALE) [!defined]: Define.
62060         Reported to be required on Interix by Martin Koeppe.
62061
62062 2007-09-17  Bruno Haible  <bruno@clisp.org>
62063
62064         * gnulib-tool (func_version): Use $version.
62065
62066 2007-09-16  Bruno Haible  <bruno@clisp.org>
62067
62068         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62069         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62070         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62071         Reported by Greg Schafer <gschafer@zip.com.au>.
62072
62073 2007-09-15  Bruno Haible  <bruno@clisp.org>
62074
62075         * gnulib-tool (sed): Try a little harder to make bash understand the
62076         alias.
62077         Reported by Bruce Korb <bruce.korb@gmail.com>.
62078
62079 2007-09-13  Eric Blake  <ebb9@byu.net>
62080
62081         * ChangeLog: Remove conflict markers.
62082
62083 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62084
62085         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62086         Reported by Bruno Haible <bruno@clisp.org>.
62087
62088 2007-09-12  Bruno Haible  <bruno@clisp.org>
62089
62090         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62091         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62092         is not defined.
62093
62094 2007-09-12  Eric Blake  <ebb9@byu.net>
62095
62096         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62097         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62098         Autoconf definition.
62099         * modules/euidaccess (Depends-on): Add extensions, for
62100         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62101         * modules/fnmatch (Depends-on): Likewise.
62102         * modules/getaddrinfo (Depends-on): Likewise.
62103         * modules/getdelim (Depends-on): Likewise.
62104         * modules/getline (Depends-on): Likewise.
62105         * modules/getsubopt (Depends-on): Likewise.
62106         * modules/gettext (Depends-on): Likewise.
62107         * modules/group-member (Depends-on): Likewise.
62108         * modules/mbchar (Depends-on): Likewise.
62109         * modules/memmem (Depends-on): Likewise.
62110         * modules/mempcpy (Depends-on): Likewise.
62111         * modules/memrchr (Depends-on): Likewise.
62112         * modules/pagealign_alloc (Depends-on): Likewise.
62113         * modules/readutmp (Depends-on): Likewise.
62114         * modules/stpcpy (Depends-on): Likewise.
62115         * modules/stpncpy (Depends-on): Likewise.
62116         * modules/strchrnul (Depends-on): Likewise.
62117         * modules/strndup (Depends-on): Likewise.
62118         * modules/strsep (Depends-on): Likewise.
62119         * modules/strverscmp (Depends-on): Likewise.
62120         * modules/vasprintf (Depends-on): Likewise.
62121         * modules/wcwidth (Depends-on): Likewise.
62122         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62123         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62124         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62125         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62126         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62127         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62128         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62129         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62130         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62131         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62132         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62133         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62134         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62135         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62136         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62137         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62138         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62139         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62141         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62142         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62143         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62144         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62145         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62146         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62148         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62149         so that lock.m4 can be used in gettext without extensions module.
62150
62151 2007-09-11  Bruno Haible  <bruno@clisp.org>
62152
62153         * m4/isc-posix.m4: Remove file.
62154         Suggested by Eric Blake.
62155
62156 2007-09-11  Eric Blake  <ebb9@byu.net>
62157
62158         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62159
62160 2007-09-10  Bruno Haible  <bruno@clisp.org>
62161
62162         * posix-modules: Fix typo in error message.
62163         Reported by Matt <mkraai@beckman.com>.
62164
62165 2007-09-09  Bruno Haible  <bruno@clisp.org>
62166
62167         * doc/functions/getdelim.texi: Update list of platforms lacking the
62168         function.
62169         * doc/functions/getline.texi: Likewise.
62170
62171 2007-09-09  Jim Meyering  <jim@meyering.net>
62172
62173         * lib/hash.c (hash_initialize): Detect calloc failure.
62174         Reported by Bruno Haible.
62175
62176 2007-09-09  Bruno Haible  <bruno@clisp.org>
62177
62178         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62179         malloc or realloc fails.
62180
62181 2007-09-09  Bruno Haible  <bruno@clisp.org>
62182
62183         * modules/getcwd (Depends-on): Add malloc-posix.
62184         * modules/glob (Depends-on): Likewise.
62185         * modules/putenv (Depends-on): Likewise.
62186         * modules/strdup (Depends-on): Likewise.
62187         * modules/getdelim (Depends-on): Add realloc-posix.
62188         * modules/read-file (Depends-on): Likewise.
62189
62190 2007-09-09  Bruno Haible  <bruno@clisp.org>
62191
62192         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62193         (gl_FUNC_MALLOC_POSIX): Require it.
62194         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62195         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62196         * modules/realloc (Files): Add m4/malloc.m4.
62197         * modules/calloc (Files): Likewise.
62198
62199 2007-09-09  Bruno Haible  <bruno@clisp.org>
62200
62201         * modules/malloc-posix: New file.
62202         * modules/malloc (Depends-on): Add malloc-posix.
62203         * lib/malloc.c: Include errno.h.
62204         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62205         and a POSIX-compatible malloc into a single function. Set ENOMEM
62206         when returning NULL.
62207         * m4/malloc.m4: New file.
62208         * doc/functions/malloc.texi: Mention the malloc-posix module.
62209         * lib/stdlib_.h (malloc): New declaration.
62210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62211         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62212         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62213         and HAVE_MALLOC_POSIX.
62214
62215 2007-09-09  Bruno Haible  <bruno@clisp.org>
62216
62217         * modules/realloc-posix: New file.
62218         * modules/realloc (Depends-on): Add realloc-posix.
62219         * lib/realloc.c: Include errno.h.
62220         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62221         and a POSIX-compatible realloc into a single function. Set ENOMEM
62222         when returning NULL.
62223         * m4/realloc.m4: New file.
62224         * doc/functions/realloc.texi: Mention the realloc-posix module.
62225         * lib/stdlib_.h (realloc): New declaration.
62226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62227         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62228         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62229         and HAVE_REALLOC_POSIX.
62230
62231 2007-09-09  Bruno Haible  <bruno@clisp.org>
62232
62233         * modules/calloc-posix: New file.
62234         * modules/calloc (Depends-on): Add calloc-posix.
62235         * lib/calloc.c: Include errno.h.
62236         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62237         and a POSIX-compatible calloc into a single function. Set ENOMEM
62238         when returning NULL.
62239         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62240         * doc/functions/calloc.texi: Mention the calloc-posix module.
62241         * lib/stdlib_.h (calloc): New declaration.
62242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62243         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62244         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62245         and HAVE_CALLOC_POSIX.
62246
62247 2007-09-09  Bruno Haible  <bruno@clisp.org>
62248
62249         Allow for modules to show an arbitrary notice.
62250         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62251         * gnulib-tool: New option --extract-notice.
62252         (func_usage): Document it.
62253         (sed_extract_prog): Update.
62254         (func_get_notice): New function.
62255         (func_modules_notice): New function.
62256         (func_import, func_create_testdir): Invoke it.
62257         Suggested by Jim Meyering.
62258
62259 2007-09-09  Bruno Haible  <bruno@clisp.org>
62260
62261         * gnulib-tool: New options --verbose, --quiet.
62262         (func_usage): Document them.
62263         (verbose): New variable.
62264         (func_execute_command): New function.
62265         (func_import): Don't show the module list and the file list if
62266         $verbose < 0.
62267         (func_create_testdir): Likewise. Use func_execute_command.
62268         (func_create_megatestdir): Use func_execute_command.
62269
62270 2007-09-08  Bruno Haible  <bruno@clisp.org>
62271
62272         * gnulib-tool (func_import): Prefer rsync over wget when available,
62273         for fetching the PO files.
62274
62275 2007-09-08  Bruno Haible  <bruno@clisp.org>
62276
62277         * posix-modules: New file. Portions copied from gnulib-tool.
62278         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62279
62280 2007-09-08  Jim Meyering  <jim@meyering.net>
62281
62282         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62283         * lib/fpending.h: Rename from __fpending.h.
62284         * lib/fpending.c: Rename from __fpending.c.
62285         Include "fpending.h", not "__fpending.h".
62286         * lib/__fpending.h, lib/__fpending.c: Remove files.
62287         * modules/fpending (Files): Reflect new file names.
62288         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62289
62290 2007-09-08  Bruno Haible  <bruno@clisp.org>
62291
62292         * m4/inttypes-h.m4: Remove stub file.
62293
62294 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62295
62296         * doc/headers/stdint.texi: Discuss #include_next issue.
62297
62298 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62299
62300         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62301
62302 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62303
62304         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62305         in variable name.
62306
62307 2007-09-03  Jim Meyering  <jim@meyering.net>
62308
62309         New module: git-version-gen.
62310         * modules/git-version-gen: New file.
62311
62312         Import changes from coreutils for bootstrap script.
62313
62314         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62315
62316         bootstrap: uses rsync to download the .po files
62317         * build-aux/bootstrap (po_download_command_format): New global.
62318         (download_po_files): Use rsync.
62319         (update_po_files): Don't remove .po files after download,
62320         so future rsync runs can take advantage of the copies.
62321
62322         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62323
62324         Solve the unnecessary-.po-file-regeneration problem once and for all.
62325         * build-aux/bootstrap (download_po_files): New function, renamed from
62326         get_translations.  Now, downloads, but doesn't update LINGUAS.
62327         (update_po_files): New function.
62328
62329         bootstrap: Ignore more.
62330         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62331         uniwidth to e.g., lib/.gitignore.
62332         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62333
62334         * build-aux/bootstrap: New setting: vc_ignore.
62335         (insert_sorted_if_absent): Create $file if absent.
62336         Adapt to new, possibly empty, list: $vc_ignore.
62337
62338         bootstrap: generate more ignorable names
62339         * build-aux/bootstrap (slurp): When generating ignorable names,
62340         also map .sin to .sed, .gperf to .c, and .y to .c.
62341
62342 2007-09-03  Jim Meyering  <jim@meyering.net>
62343
62344         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62345         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62346
62347 2007-09-02  Bruno Haible  <bruno@clisp.org>
62348
62349         Fix mis-recognition of 'mcs' on QNX 6.
62350         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62351         output contains the string "Mono".
62352         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62353         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62354
62355 2007-09-01  Bruno Haible  <bruno@clisp.org>
62356
62357         Fix collision between uniwidth/* and linebreak modules.
62358         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62359         u32_width): Remove declarations.
62360         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62361         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62362         streq3, streq2, streq1, streq0): Remove functions.
62363         (STREQ): Remove macro.
62364         (is_cjk_encoding): Remove function.
62365         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62366         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62367         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62368         * NEWS: Document the change.
62369
62370 2007-09-01  Bruno Haible  <bruno@clisp.org>
62371
62372         * lib/streq.h: Add double-inclusion guard.
62373
62374 2007-09-01  Karl Berry  <karl@gnu.org>
62375
62376         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62377
62378 2007-08-28  Jim Meyering  <jim@meyering.net>
62379
62380         Rename mreadlink_with_size to areadlink_with_size.
62381         * NEWS: Document the change.
62382         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62383         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62384         * lib/mreadlink.h: Rename this to...
62385         * lib/areadlink.h: ...this.
62386         * modules/mreadlink-with-size: Rename this to...
62387         * modules/areadlink-with-size: ...this.
62388         * lib/canonicalize.c: Reflect the renaming.
62389         * modules/canonicalize: Likewise.
62390
62391 2007-08-26  Bruno Haible  <bruno@clisp.org>
62392
62393         * gnulib-tool (func_import): When deciding which files to remove,
62394         consider also dangling symbolic links.
62395         Reported by Eric Blake.
62396
62397 2007-08-26  Bruno Haible  <bruno@clisp.org>
62398
62399         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62400
62401 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62402
62403         * lib/readline.c: Don't include getline.h, the prototype is now
62404         found in stdio.h.
62405
62406 2007-08-23  Jim Meyering  <jim@meyering.net>
62407
62408         Getdelim touchup.
62409         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62410         around the funlockfile call, since funlockfile never sets errno.
62411         Don't set errno upon failed realloc.
62412
62413 2007-08-22  Eric Blake  <ebb9@byu.net>
62414
62415         Getline touchups.
62416         * lib/getdelim.c (getdelim): Revert regression that required *n to
62417         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62418         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62419         getdelim, rather than whether implementation is missing.
62420         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62421         * lib/stdio_.h (getline): Also declare if replacement is
62422         required.
62423         * doc/functions/getdelim.texi: New file.
62424         * doc/functions/getline.texi: Likewise.
62425         * doc/gnulib.texi (Function Substitutes): Add new files.
62426         Reported by Bruno Haible.
62427
62428 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62429
62430         * users.txt: Add Guile.
62431
62432 2007-08-22  Eric Blake  <ebb9@byu.net>
62433
62434         * tests/test-getdelim.c (main): Use remove, not unlink.
62435         * tests/test-getline.c (main): Likewise.
62436
62437         Move getline and getdelim into stdio.h, per POSIX 200x.
62438         * modules/getline (Files): Remove getline.h.
62439         (Depends-on): Add stdio.
62440         (configure.ac): Add module indicator.
62441         * modules/getdelim (Files): Remove getdelim.h.
62442         (Depends-on): Add stdio.
62443         (configure.ac): Add module indicator.
62444         * modules/stdio (Makefile.am): Work with new indicators.
62445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62446         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62447         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62448         * lib/getdelim.h: Delete.
62449         * lib/getline.h: Delete.
62450         * lib/stdio_.h (getdelim, getline): Declare.
62451         * modules/getdelim-tests: New module.
62452         * modules/getline-tests: Likewise.
62453         * tests/test-getdelim.c: New file.
62454         * tests/test-getline.c: Likewise.
62455         * NEWS: Document the change.
62456         * lib/getline.c: Update choice of header.
62457         * lib/csharpcomp.c: Likewise.
62458         * lib/getpass.c: Likewise.
62459         * lib/javacomp.c: Likewise.
62460         * lib/javaversion.c: Likewise.
62461         * lib/yesno.c: Likewise.
62462         * lib/getdelim.c: Likewise.
62463         (getdelim): Set errno on failure, and avoid memory leak.
62464
62465 2007-08-19  Bruno Haible  <bruno@clisp.org>
62466
62467         * modules/closein (Depends-on): Add freadahead.
62468         * lib/closein.c: Include freadahead.h.
62469         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62470         is zero.
62471
62472 2007-08-19  Bruno Haible  <bruno@clisp.org>
62473
62474         * modules/freadahead-tests: New file.
62475         * tests/test-freadahead.sh: New file.
62476         * tests/test-freadahead.c: New file.
62477
62478         * modules/freadahead: New file.
62479         * lib/freadahead.h: New file.
62480         * lib/freadahead.c: New file.
62481         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62482         fbufmode, fpurge, freadable, fwritable.
62483
62484 2007-08-19  Eric Blake  <ebb9@byu.net>
62485
62486         Test yesno in combination with closein.
62487         * lib/yesno.c (yesno): Document use of stdin.
62488         * modules/yesno-tests (Files): New module.
62489         * tests/test-yesno.c (main): New file.
62490         * tests/test-yesno.sh: Likewise.
62491
62492 2007-08-19  Bruno Haible  <bruno@clisp.org>
62493
62494         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62495         * lib/fseeko.c (rpl_fseeko): Likewise.
62496         * lib/fseterr.c (fseterr): Likewise.
62497
62498 2007-08-19  Bruno Haible  <bruno@clisp.org>
62499
62500         * tests/test-lseek.c (main): Disable a test for BeOS.
62501         * doc/functions/lseek.texi: Document the BeOS bug.
62502
62503 2007-08-19  Bruno Haible  <bruno@clisp.org>
62504             Eric Blake  <ebb9@byu.net>
62505
62506         * lib/lseek.c: Include <sys/stat.h>.
62507         (rpl_lseek): Add workaround code also for Unix platforms.
62508         Needed for BeOS.
62509         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62510         * doc/functions/lseek.texi: Document BeOS definiency.
62511
62512 2007-08-18  Bruno Haible  <bruno@clisp.org>
62513
62514         * modules/fstrcmp-tests: New file.
62515         * tests/test-fstrcmp.c: New file.
62516
62517 2007-08-18  Bruno Haible  <bruno@clisp.org>
62518
62519         * modules/fstrcmp: New file, from GNU gettext with modifications.
62520         * lib/fstrcmp.h: New file, from GNU gettext.
62521         * lib/fstrcmp.c: New file, from GNU gettext.
62522         * MODULES.html.sh (String handling): Add fstrcmp.
62523
62524 2007-08-18  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62527         'bool'.
62528         (diag, compareseq): Remove const from the ctxt argument.
62529         (USE_HEURISTIC): Undefine at the end.
62530
62531 2007-08-18  Jim Meyering  <jim@meyering.net>
62532
62533         New file: lib/idcache.h
62534         * NEWS: Mention the addition.
62535         * modules/idcache (Files): Add lib/idcache.h
62536         * lib/idcache.c: Include "idcache.h".
62537         Don't include <sys/types.h>.
62538         Add a FIXME comment.
62539         Move file-scoped "static" declarations to the top.
62540         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62541
62542 2007-08-17  Bruno Haible  <bruno@clisp.org>
62543         and Paul Eggert  <eggert@cs.ucla.edu>
62544
62545         * MODULES.html.sh: Add diffseq.
62546         * modules/diffseq: New file.
62547         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62548         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62549
62550 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62551
62552         Import changes from coreutils for bootstrap script.
62553
62554         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62555
62556         * build-aux/bootstrap (slurp): Work even in environments where
62557         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62558         current code does not slurp files whose names start with ".", and
62559         this looks like it might be a troublesome area.
62560
62561         2007-07-11  Jim Meyering  <jim@meyering.net>
62562
62563         If there's a GPL vN copyright comment, require that N == 3.
62564
62565         2007-07-08  Jim Meyering  <jim@meyering.net>
62566
62567         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62568         * build-aux/bootstrap (mam_template): Move definition out of loop.
62569
62570         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62571
62572         * build-aux/bootstrap (symlink_to_dir): Rename function from
62573         symlink_to_gnulib.  Add a directory parameter.  Update all
62574         callers.
62575         (cp_mark_as_generated): Also check for -- and link to -- files in
62576         gl/.
62577
62578         2007-07-08  Jim Meyering  <jim@meyering.net>
62579
62580         Adapt to deeper hierarchy in gnulib.
62581         * build-aux/bootstrap (symlink_to_dir): If the destination
62582         directory doesn't exist, create it. This is required at least for
62583         "lib/uniwidth/cjk.h".
62584
62585         2007-05-15  Jim Meyering  <jim@meyering.net>
62586
62587         * build-aux/bootstrap: Now that generated Makefile.am files
62588         are no longer under version control, they must be created at
62589         bootstrap time.
62590
62591 2007-08-14  Ben Pfaff  <blp@gnu.org>
62592
62593         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62594
62595 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62598         given the changes below.
62599         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62600         even on hosts that have padding bits beyond the supported 64.
62601
62602 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62603
62604         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62605         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62606         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62607         depends on it.
62608         (xstrtol_error): Remove.
62609         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62610         but with a different signature.
62611         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62612         * lib/xstrtol-error.c: Include exitfail.h.
62613         (xstrtol_fatal): New function, with a different signature from the
62614         old xstrtol_error, so that the caller need not worry about passing
62615         in an exit status, or about storage management of the option argument.
62616         (xstrtol_error): Now a static function.  Redo signature to
62617         implement xstrtol_fatal.  Output the correct number of hyphens in
62618         front of the option so that the caller need not worry about
62619         storage management.
62620         (N_): New macro.
62621         (_): Remove; not used now.
62622         * modules/xstrtol: Depend on getopt.
62623         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62624         of old STRTOL_FATAL_ERROR macro.
62625         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62626         of test program.
62627         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62628         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62629
62630 2007-08-08  Eric Blake  <ebb9@byu.net>
62631
62632         * lib/xstrtol-error.c: Add missing include.
62633
62634         Move xstrtol messages into gnulib domain, when --pobase is used.
62635         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62636         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62637         * modules/xstrtol (Files): Distribute new file.
62638         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62639         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62640         * tests/test-xstrtol.c: ...into new file.
62641         * tests/test-xstrtoul.c: Also test xstrtoul.
62642         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62643         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62644         * tests/test-xstrtol.sh: Drive the tests.
62645         * tests/test-xstrtoimax.sh: Likewise.
62646         * tests/test-xstrtoumax.sh: Likewise.
62647         * modules/xstrtol-tests: New module.
62648         * modules/xstrtoimax-tests: Likewise.
62649         * modules/xstrtoumax-tests: Likewise.
62650
62651 2007-08-08  Jim Meyering  <jim@meyering.net>
62652
62653         New function: mfile_name_concat.
62654         * lib/filenamecat.c (mfile_name_concat): New function, just like
62655         file_name_concat, but return NULL upon failure rather than exiting
62656         with a diagnostic.
62657         * lib/filenamecat.h: Declare it.
62658
62659 2007-08-07  Bruno Haible  <bruno@clisp.org>
62660
62661         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62662         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62663         warning from gcc.
62664         Reported by Eric Blake.
62665
62666 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62667
62668         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62669         * modules/crypto/arcfour (License): Likewise.
62670         * modules/crypto/des-tests (License): Likewise.
62671         * modules/crypto/gc-arctwo-tests (License): Likewise.
62672         * modules/crypto/gc-des-tests (License): Likewise.
62673         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62674         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62675         * modules/crypto/gc-md2-tests (License): Likewise.
62676         * modules/crypto/gc-md4-tests (License): Likewise.
62677         * modules/crypto/gc-md5-tests (License): Likewise.
62678         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62679         * modules/crypto/gc-rijndael-tests (License): Likewise.
62680         * modules/crypto/gc-sha1-tests (License): Likewise.
62681         * modules/crypto/gc-tests (License): Likewise.
62682         * modules/crypto/hmac-md5 (License): Likewise.
62683         * modules/crypto/hmac-sha1 (License): Likewise.
62684         * modules/crypto/md2-tests (License): Likewise.
62685         * modules/crypto/md4-tests (License): Likewise.
62686         * modules/crypto/md5 (License): Likewise.
62687         * modules/crypto/rijndael (License): Likewise.
62688         * modules/crypto/sha1 (License): Likewise.
62689         * modules/memxor (License): Likewise.
62690
62691 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62692         and Bruno Haible  <bruno@clisp.org>
62693
62694         * NEWS: Describe interface changes to human, xstrtol.
62695         * lib/human.h: Include <xstrtol.h>.
62696         (human_options): Return enum strtol_error, not int.  Remove
62697         bool arg; take int * instead.
62698         * lib/human.c: Don't include "gettext.h".
62699         (_): Remove; no longer used.
62700         Don't include <xstrtol.h>, since human.h does it.
62701         (human_options): Adjust to abovementioned interface changes.
62702         Do not report error to stderr; that's now the caller's
62703         responsibility.
62704         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62705         interface change.
62706         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62707         Str, Argument_type_string.  All uses changed.  Put " argument"
62708         in diagnostics to make them clearer.  Change wording of suffix
62709         message for clarity.
62710         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62711         Argument_type_string.
62712         (STRTOL_FATAL_WARN): Remove; no longer used.
62713         * modules/human (Depends-on): Remove gettext-h.
62714
62715 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62716
62717         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62718
62719 2007-07-31  Bruno Haible  <bruno@clisp.org>
62720
62721         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62722         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62723         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62724
62725 2007-07-31  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62728         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62729
62730 2007-07-30  Bruno Haible  <bruno@clisp.org>
62731
62732         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62733         * modules/c-ctype (License): Likewise.
62734         * modules/c-strcase (License): Likewise.
62735         * modules/check-version (License): Likewise.
62736         * modules/iconv (License): Likewise.
62737         * modules/iconv_open (License): Likewise.
62738         * modules/read-file (License): Likewise.
62739         * modules/striconv (License): Likewise.
62740         * modules/strverscmp (License): Likewise.
62741         * modules/vasprintf (License): Likewise.
62742         * modules/crypto/des (License): Likewise.
62743         * modules/crypto/gc (License): Likewise.
62744         * modules/crypto/gc-arcfour (License): Likewise.
62745         * modules/crypto/gc-arctwo (License): Likewise.
62746         * modules/crypto/gc-des (License): Likewise.
62747         * modules/crypto/gc-hmac-md5 (License): Likewise.
62748         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62749         * modules/crypto/gc-md2 (License): Likewise.
62750         * modules/crypto/gc-md4 (License): Likewise.
62751         * modules/crypto/gc-md5 (License): Likewise.
62752         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62753         * modules/crypto/gc-random (License): Likewise.
62754         * modules/crypto/gc-rijndael (License): Likewise.
62755         * modules/crypto/gc-sha1 (License): Likewise.
62756         * modules/crypto/md2 (License): Likewise.
62757         * modules/crypto/md4 (License): Likewise.
62758
62759 2007-07-30  Jim Meyering  <jim@meyering.net>
62760
62761         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62762         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62763         it has valid stat data.  This bug would cause du not to count the
62764         sizes of inaccessible directories.
62765         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62766         in <http://bugzilla.redhat.com/250077>.
62767
62768 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62769             Bruno Haible  <bruno@clisp.org>
62770
62771         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62772         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62773         #include_next, gives a diagnostic about it, but reports no error in
62774         the exit code.
62775         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62776
62777 2007-07-24  Ben Pfaff  <blp@gnu.org>
62778
62779         Improve name: "count-one-bits" is better than "popcount".
62780         * MODULES.html.sh: Update name.
62781         * lib/popcount.h: Renamed lib/count-one-bits.h.
62782         (popcount): Renamed count_one_bits.
62783         (popcountl): Renamed count_one_bits_l.
62784         (popcountll): Renamed count_one_bits_ll.
62785         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62786         * modules/popcount: Renamed module/count-one-bits.
62787         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62788         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62789
62790 2007-07-23  Ben Pfaff  <blp@gnu.org>
62791
62792         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62793         better code generation, and add U to large constants to avoid
62794         warnings, in non-GCC case.
62795         Suggested by Bruno Haible.
62796
62797 2007-07-23  Ben Pfaff  <blp@gnu.org>
62798
62799         * lib/popcount.h: Use verify_true instead of if...abort.
62800         * modules/popcount: Depend on verify module.
62801         Suggested by Jim Meyering.
62802
62803 2007-07-23  Bruno Haible  <bruno@clisp.org>
62804
62805         * gnulib-tool (func_import): Create a .cvsignore file also when the
62806         directory is not yet in CVS but the toplevel directory is. When
62807         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62808         Reported by Karl Berry.
62809
62810 2007-07-22  Ben Pfaff  <blp@gnu.org>
62811
62812         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62813         case.
62814         Suggested by Eric Blake.
62815
62816 2007-07-22  Ben Pfaff  <blp@gnu.org>
62817
62818         New module: popcount.
62819         * MODULES.html.sh: Add popcount.
62820         * modules/popcount: New file.
62821         * modules/popcount-tests: New file.
62822         * tests/test-popcount.c: New file.
62823         * lib/popcount.h: New file.
62824         * m4/popcount.m4: New file.
62825
62826 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62827
62828         * build-aux/announce-gen: Update to GPLv3.
62829
62830         * build-aux/config.guess: Update from config.
62831
62832 2007-07-21  Bruno Haible  <bruno@clisp.org>
62833
62834         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62835         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62836
62837 2007-07-20  Jim Meyering  <jim@meyering.net>
62838
62839         * check-module: Diagnose a self-dependency.
62840
62841 2007-07-19  Bruno Haible  <bruno@clisp.org>
62842
62843         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62844         empty.
62845         Reported by Eric Blake.
62846
62847 2007-07-18  Bruno Haible  <bruno@clisp.org>
62848
62849         * gnulib-tool: New options --po-base, --po-domain.
62850         (func_usage): Document them.
62851         (pobase, po_domain): New variables.
62852         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62853         DEFAULT_TEXT_DOMAIN.
62854         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62855         (func_import): Consider pobase and po_domain. Create a po/ directory.
62856         (func_create_testdir): Set pobase and po_domain to empty.
62857         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62858         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62859
62860 2007-07-18  Bruno Haible  <bruno@clisp.org>
62861
62862         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62863         EXTRA_DIST augmentation for files in build-aux/.
62864
62865 2007-07-16  Bruno Haible  <bruno@clisp.org>
62866
62867         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62868         * modules/getdelim (License): Likewise.
62869
62870 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62871
62872         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62873         * modules/d-type (License): Likewise.
62874         * modules/extensions (License): Likewise.
62875         * modules/fnmatch (License): Likewise.
62876         * modules/fseeko (License): Likewise.
62877         * modules/getaddrinfo (License): Likewise.
62878         * modules/getline (License): Likewise.
62879         * modules/getlogin_r (License): Likewise.
62880         * modules/getpass (License): Likewise.
62881         * modules/gettimeofday (License): Likewise.
62882         * modules/glob (License): Likewise.
62883         * modules/inet_ntop (License): Likewise.
62884         * modules/malloc (License): Likewise.
62885         * modules/malloca (License): Likewise.
62886         * modules/memmem (License): Likewise.
62887         * modules/mempcpy (License): Likewise.
62888         * modules/memset (License): Likewise.
62889         * modules/minmax (License): Likewise.
62890         * modules/mktime (License): Likewise.
62891         * modules/netinet_in (License): Likewise.
62892         * modules/pathmax (License): Likewise.
62893         * modules/poll (License): Likewise.
62894         * modules/regex (License): Likewise.
62895         * modules/snprintf (License): Likewise.
62896         * modules/stdbool (License): Likewise.
62897         * modules/stdint (License): Likewise.
62898         * modules/stdio (License): Likewise.
62899         * modules/strcase (License): Likewise.
62900         * modules/strcasestr (License): Likewise.
62901         * modules/strdup (License): Likewise.
62902         * modules/string (License): Likewise.
62903         * modules/strndup (License): Likewise.
62904         * modules/strnlen (License): Likewise.
62905         * modules/strpbrk (License): Likewise.
62906         * modules/strptime (License): Likewise.
62907         * modules/strsep (License): Likewise.
62908         * modules/sys_select (License): Likewise.
62909         * modules/sys_socket (License): Likewise.
62910         * modules/sys_stat (License): Likewise.
62911         * modules/sys_time (License): Likewise.
62912         * modules/time (License): Likewise.
62913         * modules/time_r (License): Likewise.
62914         * modules/timegm (License): Likewise.
62915         * modules/unistd (License): Likewise.
62916         * modules/vsnprintf (License): Likewise.
62917         * modules/wctype (License): Likewise.
62918
62919 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62920
62921         * modules/argz (License): LGPLv2+.
62922
62923 2007-07-15  Karl Berry  <karl@gnu.org>
62924
62925         * doc/gnulib.texi: revise node structure per new fdl.texi.
62926
62927 2007-07-14  Bruno Haible  <bruno@clisp.org>
62928
62929         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62930         the output file.
62931         * lib/uniname/uninames.h: Regenerated.
62932
62933 2007-07-14  Karl Berry  <karl@gnu.org>
62934
62935         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62936         omitting sectioning and index commands.
62937
62938 2007-07-13  Bruno Haible  <bruno@clisp.org>
62939
62940         New gnulib-tool option --more-symlinks.
62941         * gnulib-tool (func_usage): Document --more-symlinks.
62942         (do_copyrights): New variable.
62943         Recognize option --more-symlinks.
62944         (func_import): Don't add a copyright notice transform to
62945         sed_transform_lib_file if do_copyrights is empty.
62946
62947 2007-07-13  Bruno Haible  <bruno@clisp.org>
62948
62949         * lib/vasnprintf.c (decimal_point_char): Define also if
62950         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62951         && !NEED_PRINTF_DIRECTIVE_A.
62952         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62953         Gary V. Vaughan <gary@gnu.org>.
62954
62955 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62956
62957         * lib/inttypes_.h: Undo previous change, since it was fixed
62958         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62959
62960 2007-07-13  Bruno Haible  <bruno@clisp.org>
62961
62962         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62963         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62964
62965 2007-07-13  Jim Meyering  <jim@meyering.net>
62966
62967         df: Don't fail for Tru64's "file-on-file mount".
62968         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62969         so we fall through and use statfs instead.  Details here:
62970         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62971         Reported by Albert Chin.
62972
62973 2007-07-13  Bruno Haible  <bruno@clisp.org>
62974
62975         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62976         * modules/configmake (License): Likewise.
62977         * modules/gettext (License): Likewise.
62978         * modules/gettext-h (License): Likewise.
62979         * modules/include_next (License): Likewise.
62980         * modules/link-warning (License): Likewise.
62981         * modules/localcharset (License): Likewise.
62982         * modules/localename (License): Likewise.
62983         * modules/lock (License): Likewise.
62984         * modules/relocatable-lib-lgpl (License): Likewise.
62985         * modules/size_max (License): Likewise.
62986         * modules/vasnprintf (License): Likewise.
62987         * modules/wchar (License): Likewise.
62988         * modules/xsize (License): Likewise.
62989
62990 2007-07-13  Bruno Haible  <bruno@clisp.org>
62991
62992         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62993         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62994
62995 2007-07-12  Bruno Haible  <bruno@clisp.org>
62996
62997         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62998         in the modules files.
62999
63000 2007-07-11  Karl Berry  <karl@gnu.org>
63001
63002         * MODULES.html.sh (func_module): use
63003          sed -e '\|^'"${includefile}"'$|d'
63004          instead of /.../d, to avoid errors on $includefile's containing /.
63005
63006 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63007
63008         * gnulib-tool (func_import): Avoid duplication of --avoid
63009         statements
63010         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63011         names to `_' in variable names.
63012
63013 2007-07-10  Eric Blake  <ebb9@byu.net>
63014
63015         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63016         * NEWS: Document this change.
63017
63018 2007-07-08  Bruno Haible  <bruno@clisp.org>
63019
63020         Update to Unicode 5.0.
63021         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63022         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63023         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63024         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63025         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63026         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63027         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63028         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63029         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63030         U+10A3F, U+1D242..U+1D244.
63031         (nonspacing_table_ind): Update.
63032         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63033         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63034
63035 2007-07-08  Bruno Haible  <bruno@clisp.org>
63036
63037         Update to Unicode 5.0.
63038         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63039         code transform. Extend the name index field of unicode_name_to_code and
63040         unicode_code_to_name from 16 to 24 bits.
63041         * lib/uniname/uniname.c (unicode_character_name,
63042         unicode_name_character): Add the range 0x12xxx to the code transform.
63043         * lib/uniname/uninames.h: Regenerated.
63044         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63045
63046 2007-07-07  Bruno Haible  <bruno@clisp.org>
63047
63048         * modules/wcwidth-tests: New file.
63049         * tests/test-wcwidth.c: New file.
63050
63051         Work around MacOS X wcwidth() bug.
63052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63053         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63054         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63055         original wcwidth in non-UTF-8 locales.
63056         * modules/wcwidth (Depends-on): Add localcharset, streq,
63057         uniwidth/width.
63058         * doc/functions/wcwidth.texi: Update.
63059
63060 2007-07-07  Bruno Haible  <bruno@clisp.org>
63061
63062         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63063         (wcwidth): New declaration.
63064         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63065         macros.
63066         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63067         here. Prepare for creating <wchar.h> unconditionally.
63068         * modules/wchar (Depends-on): Add link-warning.
63069         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63070         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63071         * lib/wcwidth.h: Remove file.
63072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63073         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63074         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63075         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63076         (Include): Replace wcwidth.h with <wchar.h>.
63077         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63078         * lib/mbchar.h: Don't include wcwidth.h.
63079         * lib/mbswidth.c: Likewise.
63080         * NEWS: Mention the change.
63081
63082 2007-07-07  Bruno Haible  <bruno@clisp.org>
63083
63084         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63085         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63086         definition with an external declaration.
63087         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63088         defined as a function. Remove AC_C_INLINE requirement.
63089         * modules/wcwidth (Files): Add lib/wcwidth.c.
63090         (Makefile.am): Remove redundant statement.
63091
63092 2007-07-07  Bruno Haible  <bruno@clisp.org>
63093
63094         * MODULES.html.sh (Unicode string functions): Add the new modules.
63095
63096         * tests/uniwidth/test-u32-strwidth.c: New file.
63097         * modules/uniwidth/u32-strwidth-tests: New file.
63098
63099         * lib/uniwidth/u32-strwidth.c: New file.
63100         * modules/uniwidth/u32-strwidth: New file.
63101
63102         * tests/uniwidth/test-u16-strwidth.c: New file.
63103         * modules/uniwidth/u16-strwidth-tests: New file.
63104
63105         * lib/uniwidth/u16-strwidth.c: New file.
63106         * modules/uniwidth/u16-strwidth: New file.
63107
63108         * tests/uniwidth/test-u8-strwidth.c: New file.
63109         * modules/uniwidth/u8-strwidth-tests: New file.
63110
63111         * lib/uniwidth/u8-strwidth.c: New file.
63112         * modules/uniwidth/u8-strwidth: New file.
63113
63114         * tests/uniwidth/test-u32-width.c: New file.
63115         * modules/uniwidth/u32-width-tests: New file.
63116
63117         * lib/uniwidth/u32-width.c: New file.
63118         * modules/uniwidth/u32-width: New file.
63119
63120         * tests/uniwidth/test-u16-width.c: New file.
63121         * modules/uniwidth/u16-width-tests: New file.
63122
63123         * lib/uniwidth/u16-width.c: New file.
63124         * modules/uniwidth/u16-width: New file.
63125
63126         * tests/uniwidth/test-u8-width.c: New file.
63127         * modules/uniwidth/u8-width-tests: New file.
63128
63129         * lib/uniwidth/u8-width.c: New file.
63130         * modules/uniwidth/u8-width: New file.
63131
63132         * tests/uniwidth/test-uc_width.c: New file.
63133         * modules/uniwidth/width-tests: New file.
63134
63135         * lib/uniwidth/width.c: New file, from GNU libiconv.
63136         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63137         * modules/uniwidth/width: New file.
63138
63139         * lib/uniwidth.h: New file, from GNU libiconv.
63140         * modules/uniwidth/base: New file.
63141
63142 2007-07-07  Bruno Haible  <bruno@clisp.org>
63143
63144         * lib/uniname.h: New file, from GNU gettext.
63145         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63146         * lib/uniname/uninames.h: New file, from GNU gettext.
63147         * lib/uniname/uniname.c: New file, from GNU gettext.
63148         * tests/uniname/test-uninames.sh: New file.
63149         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63150         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63151         * modules/uniname/base: New file.
63152         * modules/uniname/uniname: New file.
63153         * modules/uniname/uniname-tests: New file.
63154         * MODULES.html.sh (Unicode string functions): Add the new modules.
63155
63156 2007-07-06  Bruno Haible  <bruno@clisp.org>
63157
63158         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63159
63160 2007-07-06  Bruno Haible  <bruno@clisp.org>
63161
63162         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63163         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63164         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63165         include <sys/time.h>.
63166         Reported by Eric Blake.
63167
63168 2007-07-06  Eric Blake  <ebb9@byu.net>
63169
63170         Fix testing canonicalize on cygwin.
63171         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63172         Revert patch from 2007-06-19.
63173         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63174         canonicalize module is also in use.
63175         * tests/test-canonicalize.c: New file.
63176         * tests/test-canonicalize.sh: Likewise.
63177         * modules/canonicalize-tests: Likewise.
63178
63179 2007-07-06  Jim Meyering  <jim@meyering.net>
63180
63181         * lib/getugroups.c (getugroups): Detect getgrent failure.
63182         Adjust comment to reflect reality: this function may return -1.
63183
63184 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63185
63186         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63187         the new TP address.
63188         (usage): Fix typo
63189         (gnulib_mk): New variable.
63190
63191 2007-07-05  Jim Meyering  <jim@meyering.net>
63192
63193         Don't let endgrent clobber errno, no matter how improbable.
63194         * lib/getugroups.c (getugroups): Save and restore errno around
63195         endgrent call.
63196
63197         Close the group DB even when failing with 2^31 or more members.
63198         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63199
63200 2007-07-04  Jim Meyering  <jim@meyering.net>
63201
63202         * lib/getugroups.h: New file.
63203         * lib/getugroups.c: Include "getugroups.h".
63204         Remove uses of "register" keyword.
63205         Move local variable, "cp", down into scope where used.
63206         Give "username" parameter the "const" attribute.
63207         * modules/getugroups (Files): Add lib/getugroups.h
63208
63209 2007-07-04  Karl Berry  <karl@gnu.org>
63210
63211         * MODULES.html.sh (func_all_modules): Complete rename of
63212         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63213
63214 2007-07-02  Bruno Haible  <bruno@clisp.org>
63215
63216         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63217         mode, when inttypes.h comes from gnulib.
63218         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63219
63220 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63221
63222         * NEWS: Mention lgpl module name change.
63223
63224         * modules/lgpl-2.1: Renamed from lgpl.
63225
63226         * NEWS: Mention gpl module name change.
63227
63228         * modules/gpl-3.0: New file, based on gpl-2.0.
63229
63230         * modules/gpl-2.0: Renamed from gpl.
63231
63232         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63233         doc/gpl-2.0.texi.
63234
63235 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63236
63237         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63238         #define __STDC_LIMIT_MACROS temporarily while including
63239         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63240         Problem reported by Joel E. Denny in
63241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63242
63243 2007-07-01  Bruno Haible  <bruno@clisp.org>
63244
63245         * lib/unistdio.h: New file.
63246         * lib/unistdio/u-asnprintf.h: New file.
63247         * lib/unistdio/u-asprintf.h: New file.
63248         * lib/unistdio/u-printf-args.c: New file.
63249         * lib/unistdio/u-printf-args.h: New file.
63250         * lib/unistdio/u-printf-parse.h: New file.
63251         * lib/unistdio/u-snprintf.h: New file.
63252         * lib/unistdio/u-sprintf.h: New file.
63253         * lib/unistdio/u-vasprintf.h: New file.
63254         * lib/unistdio/u-vsnprintf.h: New file.
63255         * lib/unistdio/u-vsprintf.h: New file.
63256         * lib/unistdio/ulc-asnprintf.c: New file.
63257         * lib/unistdio/ulc-asprintf.c: New file.
63258         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63259         * lib/unistdio/ulc-printf-parse.c: New file.
63260         * lib/unistdio/ulc-snprintf.c: New file.
63261         * lib/unistdio/ulc-sprintf.c: New file.
63262         * lib/unistdio/ulc-vasnprintf.c: New file.
63263         * lib/unistdio/ulc-vasprintf.c: New file.
63264         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63265         * lib/unistdio/ulc-vsnprintf.c: New file.
63266         * lib/unistdio/ulc-vsprintf.c: New file.
63267         * lib/unistdio/u8-asnprintf.c: New file.
63268         * lib/unistdio/u8-asprintf.c: New file.
63269         * lib/unistdio/u8-printf-parse.c: New file.
63270         * lib/unistdio/u8-snprintf.c: New file.
63271         * lib/unistdio/u8-sprintf.c: New file.
63272         * lib/unistdio/u8-vasnprintf.c: New file.
63273         * lib/unistdio/u8-vasprintf.c: New file.
63274         * lib/unistdio/u8-vsnprintf.c: New file.
63275         * lib/unistdio/u8-vsprintf.c: New file.
63276         * lib/unistdio/u8-u8-asnprintf.c: New file.
63277         * lib/unistdio/u8-u8-asprintf.c: New file.
63278         * lib/unistdio/u8-u8-snprintf.c: New file.
63279         * lib/unistdio/u8-u8-sprintf.c: New file.
63280         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63281         * lib/unistdio/u8-u8-vasprintf.c: New file.
63282         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63283         * lib/unistdio/u8-u8-vsprintf.c: New file.
63284         * lib/unistdio/u16-asnprintf.c: New file.
63285         * lib/unistdio/u16-asprintf.c: New file.
63286         * lib/unistdio/u16-printf-parse.c: New file.
63287         * lib/unistdio/u16-snprintf.c: New file.
63288         * lib/unistdio/u16-sprintf.c: New file.
63289         * lib/unistdio/u16-vasnprintf.c: New file.
63290         * lib/unistdio/u16-vasprintf.c: New file.
63291         * lib/unistdio/u16-vsnprintf.c: New file.
63292         * lib/unistdio/u16-vsprintf.c: New file.
63293         * lib/unistdio/u16-u16-asnprintf.c: New file.
63294         * lib/unistdio/u16-u16-asprintf.c: New file.
63295         * lib/unistdio/u16-u16-snprintf.c: New file.
63296         * lib/unistdio/u16-u16-sprintf.c: New file.
63297         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63298         * lib/unistdio/u16-u16-vasprintf.c: New file.
63299         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63300         * lib/unistdio/u16-u16-vsprintf.c: New file.
63301         * lib/unistdio/u32-asnprintf.c: New file.
63302         * lib/unistdio/u32-asprintf.c: New file.
63303         * lib/unistdio/u32-printf-parse.c: New file.
63304         * lib/unistdio/u32-snprintf.c: New file.
63305         * lib/unistdio/u32-sprintf.c: New file.
63306         * lib/unistdio/u32-vasnprintf.c: New file.
63307         * lib/unistdio/u32-vasprintf.c: New file.
63308         * lib/unistdio/u32-vsnprintf.c: New file.
63309         * lib/unistdio/u32-vsprintf.c: New file.
63310         * lib/unistdio/u32-u32-asnprintf.c: New file.
63311         * lib/unistdio/u32-u32-asprintf.c: New file.
63312         * lib/unistdio/u32-u32-snprintf.c: New file.
63313         * lib/unistdio/u32-u32-sprintf.c: New file.
63314         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63315         * lib/unistdio/u32-u32-vasprintf.c: New file.
63316         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63317         * lib/unistdio/u32-u32-vsprintf.c: New file.
63318         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63319         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63320         * tests/unistdio/test-ulc-printf1.h: New file.
63321         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63322         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63323         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63324         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63325         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63326         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63327         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63328         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63329         * tests/unistdio/test-u8-asnprintf1.c: New file.
63330         * tests/unistdio/test-u8-asnprintf1.h: New file.
63331         * tests/unistdio/test-u8-printf1.h: New file.
63332         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63333         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63334         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63335         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63336         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63337         * tests/unistdio/test-u8-vasprintf1.c: New file.
63338         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63339         * tests/unistdio/test-u8-vsprintf1.c: New file.
63340         * tests/unistdio/test-u16-asnprintf1.c: New file.
63341         * tests/unistdio/test-u16-asnprintf1.h: New file.
63342         * tests/unistdio/test-u16-printf1.h: New file.
63343         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63344         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63345         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63346         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63347         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63348         * tests/unistdio/test-u16-vasprintf1.c: New file.
63349         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63350         * tests/unistdio/test-u16-vsprintf1.c: New file.
63351         * tests/unistdio/test-u32-asnprintf1.c: New file.
63352         * tests/unistdio/test-u32-asnprintf1.h: New file.
63353         * tests/unistdio/test-u32-printf1.h: New file.
63354         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63355         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63356         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63357         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63358         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63359         * tests/unistdio/test-u32-vasprintf1.c: New file.
63360         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63361         * tests/unistdio/test-u32-vsprintf1.c: New file.
63362         * modules/unistdio/base: New file.
63363         * modules/unistdio/u-printf-args: New file.
63364         * modules/unistdio/ulc-asnprintf: New file.
63365         * modules/unistdio/ulc-asprintf: New file.
63366         * modules/unistdio/ulc-fprintf: New file.
63367         * modules/unistdio/ulc-printf-parse: New file.
63368         * modules/unistdio/ulc-snprintf: New file.
63369         * modules/unistdio/ulc-sprintf: New file.
63370         * modules/unistdio/ulc-vasnprintf: New file.
63371         * modules/unistdio/ulc-vasprintf: New file.
63372         * modules/unistdio/ulc-vfprintf: New file.
63373         * modules/unistdio/ulc-vsnprintf: New file.
63374         * modules/unistdio/ulc-vsprintf: New file.
63375         * modules/unistdio/u8-asnprintf: New file.
63376         * modules/unistdio/u8-asprintf: New file.
63377         * modules/unistdio/u8-printf-parse: New file.
63378         * modules/unistdio/u8-snprintf: New file.
63379         * modules/unistdio/u8-sprintf: New file.
63380         * modules/unistdio/u8-vasnprintf: New file.
63381         * modules/unistdio/u8-vasprintf: New file.
63382         * modules/unistdio/u8-vsnprintf: New file.
63383         * modules/unistdio/u8-vsprintf: New file.
63384         * modules/unistdio/u8-u8-asnprintf: New file.
63385         * modules/unistdio/u8-u8-asprintf: New file.
63386         * modules/unistdio/u8-u8-snprintf: New file.
63387         * modules/unistdio/u8-u8-sprintf: New file.
63388         * modules/unistdio/u8-u8-vasnprintf: New file.
63389         * modules/unistdio/u8-u8-vasprintf: New file.
63390         * modules/unistdio/u8-u8-vsnprintf: New file.
63391         * modules/unistdio/u8-u8-vsprintf: New file.
63392         * modules/unistdio/u16-asnprintf: New file.
63393         * modules/unistdio/u16-asprintf: New file.
63394         * modules/unistdio/u16-printf-parse: New file.
63395         * modules/unistdio/u16-snprintf: New file.
63396         * modules/unistdio/u16-sprintf: New file.
63397         * modules/unistdio/u16-vasnprintf: New file.
63398         * modules/unistdio/u16-vasprintf: New file.
63399         * modules/unistdio/u16-vsnprintf: New file.
63400         * modules/unistdio/u16-vsprintf: New file.
63401         * modules/unistdio/u16-u16-asnprintf: New file.
63402         * modules/unistdio/u16-u16-asprintf: New file.
63403         * modules/unistdio/u16-u16-snprintf: New file.
63404         * modules/unistdio/u16-u16-sprintf: New file.
63405         * modules/unistdio/u16-u16-vasnprintf: New file.
63406         * modules/unistdio/u16-u16-vasprintf: New file.
63407         * modules/unistdio/u16-u16-vsnprintf: New file.
63408         * modules/unistdio/u16-u16-vsprintf: New file.
63409         * modules/unistdio/u32-asnprintf: New file.
63410         * modules/unistdio/u32-asprintf: New file.
63411         * modules/unistdio/u32-printf-parse: New file.
63412         * modules/unistdio/u32-snprintf: New file.
63413         * modules/unistdio/u32-sprintf: New file.
63414         * modules/unistdio/u32-vasnprintf: New file.
63415         * modules/unistdio/u32-vasprintf: New file.
63416         * modules/unistdio/u32-vsnprintf: New file.
63417         * modules/unistdio/u32-vsprintf: New file.
63418         * modules/unistdio/u32-u32-asnprintf: New file.
63419         * modules/unistdio/u32-u32-asprintf: New file.
63420         * modules/unistdio/u32-u32-snprintf: New file.
63421         * modules/unistdio/u32-u32-sprintf: New file.
63422         * modules/unistdio/u32-u32-vasnprintf: New file.
63423         * modules/unistdio/u32-u32-vasprintf: New file.
63424         * modules/unistdio/u32-u32-vsnprintf: New file.
63425         * modules/unistdio/u32-u32-vsprintf: New file.
63426         * modules/unistdio/ulc-asnprintf-tests: New file.
63427         * modules/unistdio/ulc-vasnprintf-tests: New file.
63428         * modules/unistdio/ulc-vasprintf-tests: New file.
63429         * modules/unistdio/ulc-vsnprintf-tests: New file.
63430         * modules/unistdio/ulc-vsprintf-tests: New file.
63431         * modules/unistdio/u8-asnprintf-tests: New file.
63432         * modules/unistdio/u8-vasnprintf-tests: New file.
63433         * modules/unistdio/u8-vasprintf-tests: New file.
63434         * modules/unistdio/u8-vsnprintf-tests: New file.
63435         * modules/unistdio/u8-vsprintf-tests: New file.
63436         * modules/unistdio/u16-asnprintf-tests: New file.
63437         * modules/unistdio/u16-vasnprintf-tests: New file.
63438         * modules/unistdio/u16-vasprintf-tests: New file.
63439         * modules/unistdio/u16-vsnprintf-tests: New file.
63440         * modules/unistdio/u16-vsprintf-tests: New file.
63441         * modules/unistdio/u32-asnprintf-tests: New file.
63442         * modules/unistdio/u32-vasnprintf-tests: New file.
63443         * modules/unistdio/u32-vasprintf-tests: New file.
63444         * modules/unistdio/u32-vsnprintf-tests: New file.
63445         * modules/unistdio/u32-vsprintf-tests: New file.
63446         * MODULES.html.sh (Unicode string functions): Add the new modules.
63447
63448 2007-07-01  Bruno Haible  <bruno@clisp.org>
63449
63450         * lib/sprintf.c (sprintf): Limit the available length estimation,
63451         to avoid address wraparound.
63452         * lib/vsprintf.c (vsprintf): Likewise.
63453         * modules/sprintf-posix (Dependencies): Add stdint.
63454         * modules/vsprintf-posix (Dependencies): Likewise.
63455
63456 2007-07-01  Bruno Haible  <bruno@clisp.org>
63457
63458         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63459         Windows PATH as well. Conservative double-quoting. Comments.
63460
63461 2007-07-01  Bruno Haible  <bruno@clisp.org>
63462             Eric Blake  <ebb9@byu.net>
63463             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63464
63465         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63466         empty components in $PATH, denoting '.'.
63467
63468 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63469
63470         * gnulib-tool: Fix indentation.
63471         (func_create_megatestdir): Likewise.
63472         Report by Bruno Haible.
63473
63474 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63475
63476         Sync from Automake.
63477         * build-aux/gnupload: Fix shell portability issues with for loops.
63478         Report by Karl Berry.
63479
63480 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63481
63482         * build-aux/maint.mk (POURL): Use translationproject.org.
63483
63484 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63485             Bruno Haible  <bruno@clisp.org>
63486
63487         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63488         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63489         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63490         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63491         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63492
63493 2007-06-27  Bruno Haible  <bruno@clisp.org>
63494
63495         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63496         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63497
63498 2007-06-26  Karl Berry  <karl@gnu.org>
63499
63500         * MODULES.html.sh: remove xreadlink-with-size.
63501
63502 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63503
63504         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63505         method that I hope also handles the double-include problem noted
63506         by Bruno Haible in
63507         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63508
63509 2007-06-23  Bruno Haible  <bruno@clisp.org>
63510
63511         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63512         Don't let the 'mostlyclean' target fail if the last subdirectory could
63513         not be removed.
63514         Reported by Karl Berry.
63515
63516 2007-06-23  Bruno Haible  <bruno@clisp.org>
63517
63518         * gnulib-tool (echo): Add a speedier workaround for ksh.
63519         * tests/test-echo.sh: Likewise.
63520
63521 2007-06-23  Bruno Haible  <bruno@clisp.org>
63522
63523         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63524         * tests/test-echo.sh: Likewise.
63525
63526 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63527
63528         * gnulib-tool (IFS): Initialize early, so we don't set it to
63529         empty later.
63530         (self_abspathname): Rewrite algorithm to set it, reindent.
63531         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63532         (func_create_megatestdir): Merge some sed scripts.
63533
63534 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63535
63536         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63537         exposed by Sun Studio 11 cc on Solaris 8.
63538
63539 2007-06-22  Bruno Haible  <bruno@clisp.org>
63540
63541         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63542         backslashes.
63543         * tests/test-echo.sh: New file.
63544
63545 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63546
63547         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63548         simplify `sed_replace_build_aux' scripts, they are portable but
63549         echoing them with `echo' is not.
63550         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63551
63552 2007-06-21  Karl Berry  <karl@gnu.org>
63553
63554         * config/srclist.txt: guess we can't handle the licenses via
63555         srclist at the moment.
63556
63557 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63558
63559         * MODULES.html.sh: Add include_next.
63560         * modules/include_next: New file.
63561
63562 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63563
63564         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63565         INCLUDE_NEXT.
63566         (gl_CHECK_NEXT_HEADERS): New macro.
63567         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63568         the obsolescent gl_ABSOLUTE_HEADER.
63569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63570         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63571         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63572         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63573         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63574         * m4/math_h.m4 (gl_MATH_H): Likewise.
63575         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63576         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63577         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63578         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63579         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63580         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63581         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63582         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63583         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63584         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63585         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63586         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63587         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63588         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63589         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63590         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63591         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63592         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63593         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63594         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63595         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63596         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63597         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63598         * lib/float_.h: Likewise.
63599         * lib/inttypes_.h: Likewise.
63600         * lib/math_.h: Likewise.
63601         * lib/search_.h: Likewise.
63602         * lib/signal_.h: Likewise.
63603         * lib/stdint_.h: Likewise.
63604         * lib/stdio_.h: Likewise.
63605         * lib/stdlib_.h: Likewise.
63606         * lib/string_.h: Likewise.
63607         * lib/sys_stat_.h: Likewise.
63608         * lib/sys_time_.h: Likewise.
63609         * lib/time_.h: Likewise.
63610         * lib/unistd_.h: Likewise.
63611         * lib/wchar_.h: Likewise.
63612         * lib/wctype_.h: Likewise.
63613         * lib/dirent_.h: Likewise.
63614         * lib/iconv_.h: Likewise.
63615         * lib/locale_.h: Likewise.
63616         * lib/netinet_in_.h: Likewise.
63617         * lib/sys_select_.h: Likewise.
63618         * lib/sys_socket_.h: Likewise.
63619         * lib/sysexits_.h: Likewise.
63620         * modules/fcntl (Depends-on): Depend on include_next, not
63621         absolute_header.
63622         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63623         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63624         * modules/fchdir: Likewise.
63625         * modules/float: Likewise.
63626         * modules/iconv_open: Likewise.
63627         * modules/inttypes: Likewise.
63628         * modules/locale: Likewise.
63629         * modules/math: Likewise.
63630         * modules/netinet_in: Likewise.
63631         * modules/search: Likewise.
63632         * modules/signal: Likewise.
63633         * modules/stdint: Likewise.
63634         * modules/stdio: Likewise.
63635         * modules/stdlib: Likewise.
63636         * modules/string: Likewise.
63637         * modules/sys_select: Likewise.
63638         * modules/sys_socket: Likewise.
63639         * modules/sys_stat: Likewise.
63640         * modules/sys_time: Likewise.
63641         * modules/sysexits: Likewise.
63642         * modules/time: Likewise.
63643         * modules/unistd: Likewise.
63644         * modules/wchar: Likewise.
63645         * modules/wctype: Likewise.
63646         * modules/sys_stat: Change maintainer to "all".
63647         * modules/unistd: Likewise.
63648
63649 2007-06-20  Karl Berry  <karl@gnu.org>
63650
63651         * config/srclist.txt: track www changes in license files.
63652
63653 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63654
63655         * build-aux/bootstrap: Remove stray dot.
63656         Make sure build_aux settings are honored when linking
63657         gnulib_extra_files.
63658
63659 2007-06-19  Eric Blake  <ebb9@byu.net>
63660
63661         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63662         Allow compilation on cygwin.
63663
63664 2007-06-19  Jim Meyering  <jim@meyering.net>
63665
63666         xreadlink-with-size: Remove module.  No longer used.
63667         Ex-callers now use xreadlink or mreadlink-with-size.
63668         * modules/xreadlink-with-size: Remove module.
63669         * lib/xreadlink-with-size.c: Remove file.
63670         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63671         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63672         just before the function definition *is* accurate.
63673
63674         Eliminate one way canonicalize_filename_mode could exit.
63675         * lib/canonicalize.c (canonicalize_filename_mode):
63676         Use mreadlink_with_size, not xreadlink_with_size.
63677
63678 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63679
63680         Detect porting problems to FreeBSD/arm, which has time_t wider than
63681         long int.  Original problem reported for GNU diff by Xin Li in
63682         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63683         * modules/getdate (Depends-on): Add intprops, verify.
63684         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63685         is an integer type no wider than long int.
63686
63687 2007-06-18  Jim Meyering  <jim@meyering.net>
63688
63689         New module: mreadlink-with-size.
63690         * MODULES.html.sh: Add mreadlink-with-size.
63691         * modules/mreadlink-with-size: New module
63692         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63693         not xreadlink-with-size.
63694         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63695
63696 2007-06-16  Bruno Haible  <bruno@clisp.org>
63697
63698         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63699         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63700         Reported by Gary V. Vaughan <gary@gnu.org>.
63701
63702 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63703
63704         Revamp lchown so that it lives in unistd.h where it belongs.
63705         * lib/lchown.h: Remove.
63706         * lib/dirchownmod.c: Don't include lib/lchown.h.
63707         * lib/fchownat.c: Likewise.
63708         * lib/openat.c: Likewise.
63709         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63710         does not follow symlinks.
63711         (EOPNOTSUPP): Define if not defined.
63712         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63713         is defined to 0.
63714         (lchown): New decl.
63715         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63716         Do not check for lchown decl.
63717         Set REPLACE_LCHOWN.
63718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63719         REPLACE_LCHOWN.
63720         * modules/chown: Make it clear it follows symlinks.
63721         * modules/lchown: Make it clear it doesn't follow symlinks.
63722         (Files): Remove lib/lchown.h
63723         (Depends-on): Add unistd.
63724         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63725         (Include): Include <unistd.h>, not "lchown.h".
63726         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63727         REPLACE_LCHOWN.
63728
63729 2007-06-15  Jim Meyering  <jim@meyering.net>
63730
63731         Change license (GPL to LGPL) of fsusage and dependents.
63732         * modules/fsusage (License): Change to LGPL.
63733         * modules/full-read (License): Likewise.
63734         * modules/full-write (License): Likewise.
63735         * modules/safe-read (License): Likewise.
63736         * modules/safe-write (License): Likewise.
63737
63738 2007-06-14  Ben Pfaff  <blp@gnu.org>
63739
63740         Missing part of allocsa -> malloca transition.
63741         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63742         gl_MALLOCA.
63743
63744 2007-06-12  Bruno Haible  <bruno@clisp.org>
63745
63746         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63747         to ia64, x86_64, i386.
63748         Reported by Eric Blake.
63749
63750 2007-06-12  Bruno Haible  <bruno@clisp.org>
63751
63752         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63753         cross-compiling to x86_64.
63754
63755 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63756
63757         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63758         glitch reported by Ralf Wildenhues in
63759         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63760
63761         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63762         Vin Shelton.
63763
63764 2007-06-11  Bruno Haible  <bruno@clisp.org>
63765
63766         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63767         replacement string.
63768         Reported by Eric Blake.
63769
63770 2007-06-10  Bruno Haible  <bruno@clisp.org>
63771
63772         Prepare vasnprintf code for use with Unicode strings.
63773         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63774         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63775         TYPE_U32_STRING.
63776         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63777         a_u32_string variants.
63778         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63779         * lib/printf-args.c: Don't include config.h and the specification
63780         header if PRINTF_FETCHARGS is already defined.
63781         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63782         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63783         TYPE_U16_STRING, TYPE_U32_STRING.
63784         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63785         u16_directive, u16_directives, u32_directive, u32_directives): New
63786         types.
63787         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63788         New declarations.
63789         * lib/printf-parse.c: Don't include config.h and the specification
63790         header if PRINTF_PARSE is already defined. Eliminate the set of
63791         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63792         them now. Include c-ctype.h.
63793         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63794         directive and CHAR_T_ONLY_ASCII.
63795         * lib/vasnprintf.c: Don't include config.h and the specification header
63796         if VASNPRINTF is already defined.
63797         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63798         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63799         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63800         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63801         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63802         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63803         code accordingly.
63804         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63805         pad_ourselves also in this case, with the 'c' and 's' directives, and
63806         with a different notion of "width".
63807         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63808
63809 2007-06-10  Bruno Haible  <bruno@clisp.org>
63810
63811         * modules/unistr/u32-mbsnlen: New file.
63812         * lib/unistr/u32-mbsnlen.c: New file.
63813
63814         * modules/unistr/u16-mbsnlen: New file.
63815         * lib/unistr/u16-mbsnlen.c: New file.
63816
63817         * modules/unistr/u8-mbsnlen: New file.
63818         * lib/unistr/u8-mbsnlen.c: New file.
63819
63820         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63821         declarations.
63822
63823 2007-06-10  Bruno Haible  <bruno@clisp.org>
63824
63825         * lib/string_.h (mbsnlen): New declaration.
63826         * lib/mbsnlen.c: New file.
63827         * m4/mbsnlen.m4: New file.
63828         * modules/mbsnlen: New file.
63829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63830         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63831         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63832
63833 2007-06-10  Bruno Haible  <bruno@clisp.org>
63834
63835         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63836
63837 2007-06-10  Bruno Haible  <bruno@clisp.org>
63838
63839         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63840         * lib/mbuiter.h: Likewise.
63841
63842 2007-06-10  Bruno Haible  <bruno@clisp.org>
63843
63844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63845         declaration.
63846
63847 2007-06-10  Karl Berry  <karl@gnu.org>
63848
63849         * config/srclist.txt: remove gettext entries, Bruno prefers
63850         to update individually.
63851
63852 2007-06-10  Bruno Haible  <bruno@clisp.org>
63853
63854         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63855         'maxlen'. Ensure only length + width bytes are allocated, not
63856         length + 1 + width.
63857
63858 2007-06-09  Bruno Haible  <bruno@clisp.org>
63859
63860         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63861         (CHAR_T): Remove macro.
63862         (VASNPRINTF): Update.
63863
63864 2007-06-09  Bruno Haible  <bruno@clisp.org>
63865
63866         * MODULES.html.sh (Unicode string functions): Add the new modules.
63867
63868         * modules/uniconv/u32-conv-to-enc: New file.
63869         * lib/uniconv/u32-conv-to-enc.c: New file.
63870         * modules/uniconv/u32-conv-to-enc-tests: New file.
63871         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63872
63873         * modules/uniconv/u16-conv-to-enc: New file.
63874         * lib/uniconv/u16-conv-to-enc.c: New file.
63875         * lib/uniconv/u-conv-to-enc.h: New file.
63876         * modules/uniconv/u16-conv-to-enc-tests: New file.
63877         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63878
63879         * modules/uniconv/u8-conv-to-enc: New file.
63880         * lib/uniconv/u8-conv-to-enc.c: New file.
63881         * modules/uniconv/u8-conv-to-enc-tests: New file.
63882         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63883
63884         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63885         u32_conv_to_encoding): New declarations.
63886
63887 2007-06-09  Bruno Haible  <bruno@clisp.org>
63888
63889         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63890
63891 2007-06-09  Bruno Haible  <bruno@clisp.org>
63892
63893         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63894         * modules/malloca: Renamed from modules/allocsa, updated.
63895         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63896         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63897         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63898         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63899         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63900         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63901         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63902         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63903         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63904         * modules/c-strcasestr (Depends-on): Update.
63905         * lib/c-strcasestr.c: Update.
63906         * modules/c-strstr (Depends-on): Update.
63907         * lib/c-strstr.c: Update.
63908         * modules/canonicalize-lgpl (Depends-on): Update.
63909         * lib/canonicalize-lgpl.c: Update.
63910         * modules/clean-temp (Depends-on): Update.
63911         * lib/clean-temp.c: Update.
63912         * modules/csharpcomp (Depends-on): Update.
63913         * lib/csharpcomp.c: Update.
63914         * modules/csharpexec (Depends-on): Update.
63915         * lib/csharpexec.c: Update.
63916         * modules/javacomp (Depends-on): Update.
63917         * lib/javacomp.c: Update.
63918         * modules/javaexec (Depends-on): Update.
63919         * lib/javaexec.c: Update.
63920         * modules/mbscasestr (Depends-on): Update.
63921         * lib/mbscasestr.c: Update.
63922         * modules/mbsstr (Depends-on): Update.
63923         * lib/mbsstr.c: Update.
63924         * modules/setenv (Depends-on): Update.
63925         * lib/setenv.c: Update.
63926         * modules/strcasestr (Depends-on): Update.
63927         * lib/strcasestr.c: Update.
63928         * modules/striconveha (Depends-on): Update.
63929         * lib/striconveha.c: Update.
63930         * modules/relocatable-prog-wrapper (Files): Update.
63931         * lib/relocwrapper.c: Update.
63932         * build-aux/install-reloc: Update.
63933         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63934
63935 2007-06-08  Bruno Haible  <bruno@clisp.org>
63936
63937         Port to uClibc.
63938         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63939         * lib/fpurge.c (fpurge): Likewise.
63940         * lib/freading.c (freading): Likewise.
63941         * lib/fseeko.c (rpl_fseeko): Likewise.
63942         * lib/fseterr.c (fseterr): Likewise.
63943         * lib/fwriting.c (fwriting): Likewise.
63944         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63945
63946 2007-06-08  Bruno Haible  <bruno@clisp.org>
63947
63948         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63949         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63950         * modules/gettext (Files): Add m4/intlmacosx.m4.
63951
63952 2007-06-07  Bruno Haible  <bruno@clisp.org>
63953
63954         * modules/localename-tests: New file.
63955         * tests/test-localename.c: New file.
63956
63957         New module 'localename'.
63958         * lib/localename.h: New file.
63959         * lib/localename.c: New file, from GNU gettext.
63960         * m4/localename.m4: New file.
63961         * modules/localename: New file.
63962
63963 2007-06-07  Bruno Haible  <bruno@clisp.org>
63964
63965         Work around the lack of <wchar.h> on some builds of uClibc.
63966         * doc/headers/wchar.texi: Update.
63967         * lib/wchar_.h: Include <wchar.h> only if it exists.
63968         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63969         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63970         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63971         doesn't exist.
63972         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63973         * modules/mbfile (Depends-on): Add wchar.
63974         * modules/mbiter (Depends-on): Likewise.
63975         * modules/mbuiter (Depends-on): Likewise.
63976         Reported by Simon Josefsson.
63977
63978 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63979
63980         Work around problem reported by Steven M. Schweda in
63981         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63982         Tru64 5.1B with the Compaq compiler environment installed declares
63983         an 'isblank' function but does not define it in the C library.
63984         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63985         * lib/regex_internal.h (isblank): Likewise.
63986         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63987         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63988
63989 2007-06-05  Bruno Haible  <bruno@clisp.org>
63990
63991         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63992         ia64.
63993         * modules/printf-safe: New file.
63994         * modules/fprintf-posix (Depends-on): Add printf-safe.
63995         * modules/printf-posix (Depends-on): Likewise.
63996         * modules/snprintf-posix (Depends-on): Likewise.
63997         * modules/sprintf-posix (Depends-on): Likewise.
63998         * modules/vasnprintf-posix (Depends-on): Likewise.
63999         * modules/vasprintf-posix (Depends-on): Likewise.
64000         * modules/vfprintf-posix (Depends-on): Likewise.
64001         * modules/vprintf-posix (Depends-on): Likewise.
64002         * modules/vsnprintf-posix (Depends-on): Likewise.
64003         * modules/vsprintf-posix (Depends-on): Likewise.
64004         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64005         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64006         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64007         "no" on i386, x86_64, ia64.
64008         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64009         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64010         on i386, x86_64, ia64.
64011         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64012         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64013         on i386, x86_64, ia64.
64014         * tests/test-vasnprintf-posix.c: Include float.h.
64015         (LDBL80_WORDS): New macro.
64016         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64017         on i386, x86_64, ia64.
64018         * tests/test-vasprintf-posix.c: Include float.h.
64019         (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-snprintf-posix.c: Include float.h.
64023         * tests/test-sprintf-posix.c: Likewise.
64024         * tests/test-vsnprintf-posix.c: Likewise.
64025         * tests/test-vsprintf-posix.c: Likewise.
64026
64027 2007-06-05  Bruno Haible  <bruno@clisp.org>
64028
64029         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64030         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64031         non-IEEE numbers on i386, x86_64, ia64.
64032         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64033         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64034         * tests/test-isnanl.h: Include float.h.
64035         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64036
64037 2007-06-05  Bruno Haible  <bruno@clisp.org>
64038
64039         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64040         also the %a / %A. Handle the %a / %A code before this extra handling.
64041
64042 2007-06-05  Bruno Haible  <bruno@clisp.org>
64043
64044         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64045         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64046
64047 2007-06-05  Bruno Haible  <bruno@clisp.org>
64048
64049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64050         typo in variable name.
64051
64052 2007-06-05  Eric Blake  <ebb9@byu.net>
64053
64054         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64055         Reported by Simon Josefsson.
64056
64057 2007-06-04  Bruno Haible  <bruno@clisp.org>
64058
64059         Avoid test failures on some PowerPC platforms.
64060         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64061         Define differently for PowerPC.
64062         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64063         Reported by Gary V. Vaughan <gary@gnu.org>.
64064
64065 2007-06-02  Bruno Haible  <bruno@clisp.org>
64066
64067         Fix test-stdint failure on FreeBSD/ia64.
64068         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64069         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64070         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64071         * doc/headers/stdint.texi: Update.
64072
64073 2007-06-01  Bruno Haible  <bruno@clisp.org>
64074
64075         * tests/test-binary-io.c (main): Pass a third argument to open().
64076         Reported by Gary V. Vaughan <gary@gnu.org>.
64077
64078 2007-06-01  Bruno Haible  <bruno@clisp.org>
64079
64080         * doc/functions/frexpl.texi: Update for mingw.
64081
64082 2007-06-01  Bruno Haible  <bruno@clisp.org>
64083
64084         * tests/test-lseek.c (main): Disable test of errno for invalid third
64085         argument.
64086         * doc/functions/lseek.texi: Update.
64087         Reported by Gary V. Vaughan <gary@gnu.org>.
64088
64089 2007-05-28  Bruno Haible  <bruno@clisp.org>
64090
64091         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64092
64093 2007-05-31  Eric Blake  <ebb9@byu.net>
64094
64095         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64096         cross compiling.
64097
64098 2007-05-30  Eric Blake  <ebb9@byu.net>
64099         and Bruno Haible  <bruno@clisp.org>
64100
64101         Work around mingw test failures exposed by m4-1.4.9b.
64102         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64103         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64104         moment.
64105
64106 2007-05-30  Bruno Haible  <bruno@clisp.org>
64107
64108         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64109         assuming that they are closed. Needed on HP-UX 11.
64110
64111 2007-05-29  Bruno Haible  <bruno@clisp.org>
64112
64113         Fix a problem with #include_next.
64114         * lib/dirent_.h: Split the double-inclusion guard.
64115         * lib/fcntl_.h: Likewise.
64116         * lib/float_.h: Likewise.
64117         * lib/iconv_.h: Likewise.
64118         * lib/inttypes_.h: Likewise.
64119         * lib/locale_.h: Likewise.
64120         * lib/math_.h: Likewise.
64121         * lib/netinet_in_.h: Likewise.
64122         * lib/search_.h: Likewise.
64123         * lib/signal_.h: Likewise.
64124         * lib/stdint_.h: Likewise.
64125         * lib/stdio_.h: Likewise.
64126         * lib/stdlib_.h: Likewise.
64127         * lib/string_.h: Likewise.
64128         * lib/sys_select_.h: Likewise.
64129         * lib/sys_socket_.h: Likewise.
64130         * lib/sys_stat_.h: Likewise.
64131         * lib/sys_time_.h: Likewise.
64132         * lib/sysexits_.h: Likewise.
64133         * lib/time_.h: Likewise.
64134         * lib/unistd_.h: Likewise.
64135         * lib/wchar_.h: Likewise.
64136         * lib/wctype_.h: Likewise.
64137
64138 2007-05-29  Bruno Haible  <bruno@clisp.org>
64139
64140         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64141         for the moment.
64142
64143 2007-05-29  Bruno Haible  <bruno@clisp.org>
64144
64145         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64146         invocation.
64147         Reported by Eric Blake.
64148
64149 2007-05-29  Bruno Haible  <bruno@clisp.org>
64150
64151         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64152         compiling case.
64153
64154 2007-05-29  Eric Blake  <ebb9@byu.net>
64155             Bruno Haible  <bruno@clisp.org>
64156
64157         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64158         cross compiles.
64159
64160 2007-05-28  Eric Blake  <ebb9@byu.net>
64161
64162         * modules/closein-tests (test_closein_LDADD): Support test on
64163         cygwin with libtool.
64164
64165 2007-05-28  Bruno Haible  <bruno@clisp.org>
64166
64167         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64168         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64169         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64170         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64171         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64172         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64173         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64174         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64175         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64176
64177 2007-05-28  Eric Blake  <ebb9@byu.net>
64178
64179         Unconditionally include <config.h> in unit tests.
64180         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64181         * tests/test-allocsa.c, tests/test-arcfour.c,
64182         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64183         tests/test-array_list.c, tests/test-array_oset.c,
64184         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64185         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64186         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64187         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64188         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64189         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64190         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64191         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64192         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64193         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64194         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64195         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64196         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64197         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64198         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64199         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64200         test-md5.c, test-memmem.c, test-printf-posix.c,
64201         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64202         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64203         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64204         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64205         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64206         test-vasnprintf-posix2.c, test-vasnprintf.c,
64207         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64208         test-vfprintf-posix.c, test-vprintf-posix.c,
64209         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64210         test-xvasprintf.c: Likewise.
64211
64212 2007-05-28  Bruno Haible  <bruno@clisp.org>
64213
64214         * gnulib-tool (func_import): Remember the --with-tests command-line
64215         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64216         Reported by Eric Blake.
64217
64218 2007-05-28  Bruno Haible  <bruno@clisp.org>
64219
64220         * modules/ftell-tests: New file.
64221         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64222         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64223
64224         * lib/ftell.c: New file.
64225         * modules/ftell: New file.
64226         * m4/ftell.m4: New file.
64227         * doc/functions/ftell.texi: Update.
64228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64229         REPLACE_FTELL.
64230         * lib/stdio_.h (rpl_ftell): New declaration.
64231         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64232         REPLACE_FTELL.
64233
64234 2007-05-28  Eric Blake  <ebb9@byu.net>
64235
64236         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64237
64238 2007-05-28  Bruno Haible  <bruno@clisp.org>
64239
64240         * modules/fseek-tests: New file.
64241         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64242         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64243
64244         * lib/fseek.c: New file.
64245         * modules/fseek: New file.
64246         * m4/fseek.m4: New file.
64247         * doc/functions/fseek.texi: Update.
64248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64249         REPLACE_FSEEK.
64250         * lib/stdio_.h (rpl_fseek): New declaration.
64251         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64252         REPLACE_FSEEK.
64253
64254 2007-05-28  Bruno Haible  <bruno@clisp.org>
64255
64256         * lib/stdio_.h (fflush): More comments.
64257
64258 2007-05-28  Bruno Haible  <bruno@clisp.org>
64259
64260         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64261         runtime test.
64262
64263 2007-05-28  Eric Blake  <ebb9@byu.net>
64264
64265         Improve lseek module.
64266         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64267         * lib/unistd_.h (lseek): Scale back link warning message.
64268         * tests/test-lseek.c: Beef up test.
64269         * tests/test-lseek.sh: Exercise more facets of lseek.
64270         Reported by Bruno Haible.
64271
64272 2007-05-28  Bruno Haible  <bruno@clisp.org>
64273
64274         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64275         to define.
64276
64277 2007-05-27  Bruno Haible  <bruno@clisp.org>
64278
64279         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64280
64281 2007-05-27  Bruno Haible  <bruno@clisp.org>
64282
64283         * modules/openmp: New file.
64284         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64285         Noah Misch.
64286
64287 2007-05-26  Bruno Haible  <bruno@clisp.org>
64288
64289         * modules/chdir-long (Depends-on): Add fchdir.
64290         * modules/chdir-safer (Depends-on): Likewise.
64291         * modules/fts (Depends-on): Likewise.
64292         * modules/fts-lgpl (Depends-on): Likewise.
64293         * modules/openat (Depends-on): Likewise.
64294         * modules/savewd (Depends-on): Likewise.
64295
64296 2007-05-24  Eric Blake  <ebb9@byu.net>
64297
64298         Fix lseek on mingw.
64299         * modules/lseek: New module.
64300         * m4/lseek.m4: New file.
64301         * lib/lseek.c: New file.
64302         * modules/lseek-tests: New file.
64303         * tests/test-lseek.c: New file.
64304         * tests/test-lseek.sh: New file.
64305         * MODULES.html.sh: Document lseek module.
64306         * modules/fflush (Depends-on): Add lseek, fseeko.
64307         * modules/fseeko (Depends-on): Likewise.
64308         * modules/ftello (Depends-on): Likewise.
64309         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64310         broken.
64311         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64312         broken.
64313         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64314         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64315         * lib/ftello.c (rpl_ftello): Likewise.
64316         * tests/test-fseeko.c (main): Test this.
64317         * tests/test-fseeko.sh: Likewise.
64318         * tests/test-ftello.c (main): Likewise.
64319         * tests/test-ftello.sh: Likewise.
64320         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64321         implies replacing fseek.
64322         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64323         HAVE_FTELLO.
64324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64325         * modules/unistd (Makefile.am): Likewise.
64326         * lib/unistd_.h (lseek): Declare a replacement.
64327         * doc/functions/lseek.texi (lseek): Document this fix.
64328         * doc/functions/fseek.texi (fseek): Likewise.
64329         * doc/functions/ftell.texi (ftell): Likewise.
64330
64331 2007-05-24  Bruno Haible  <bruno@clisp.org>
64332
64333         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64334         in the printed representation of a NaN.
64335         * tests/test-vasprintf-posix.c (test_function): Likewise.
64336         * tests/test-snprintf-posix.h (test_function): Likewise.
64337         * tests/test-sprintf-posix.h (test_function): Likewise.
64338         Reported by Eric Blake.
64339
64340 2007-05-23  Eric Blake  <ebb9@byu.net>
64341
64342         Fix fseeko/ftello on cygwin 1.5.24.
64343         * doc/functions/fseeko.texi (fseeko): Document the fix.
64344         * doc/functions/ftello.texi (ftello): Document the fix.
64345         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64346         * doc/functions/stdout.text (stdout): New file.
64347         * doc/functions/stderr.text (stderr): New file.
64348         * doc/gnulib.texi (Function Substitutes): Use new files.
64349         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64350         prior to 1.7.0.
64351         * tests/test-ftello.c (main): Likewise for ftello.
64352         * tests/test-fseeko.sh: New file.
64353         * tests/test-ftello.sh: New file.
64354         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64355         with seekable stdin.
64356         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64357         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64358         (gl_REPLACE_FSEEKO): New macro.
64359         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64360         * modules/fseeko (Files): Distribute fseeko.c.
64361         * modules/ftello (Files): Distribute ftello.c.
64362         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64363         mode.
64364         * lib/ftello.c (rpl_ftello): New file.
64365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64366         fseeko, ftello.
64367         (gl_STDIN_LARGE_OFFSET): New macro.
64368         * modules/stdio (Makefile.am): Perform the replacement.
64369         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64370
64371 2007-05-23  Bruno Haible  <bruno@clisp.org>
64372
64373         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64374         GNULIB_POSIXCHECK is defined.
64375
64376 2007-05-21  Bruno Haible  <bruno@clisp.org>
64377
64378         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64379         Check also the output for NaN arguments. When cross-compiling, guess
64380         no on IRIX.
64381         * lib/vasnprintf.c: Update comments.
64382         * tests/test-vasnprintf-posix.c (strisnan): New function.
64383         (test_function): Use it.
64384         * tests/test-vasprintf-posix.c (strisnan): New function.
64385         (test_function): Use it.
64386         * tests/test-snprintf-posix.h (strisnan): New function.
64387         (test_function): Use it.
64388         * tests/test-sprintf-posix.h (strisnan): New function.
64389         (test_function): Use it.
64390         Reported by Eric Blake.
64391
64392 2007-05-20  Bruno Haible  <bruno@clisp.org>
64393
64394         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64395         numbers that fails on BeOS.
64396         * doc/functions/frexpl.texi: Update.
64397
64398 2007-05-20  Jim Meyering  <jim@meyering.net>
64399
64400         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64401         forced upon us by glibc-2.6.
64402
64403 2007-05-20  Bruno Haible  <bruno@clisp.org>
64404
64405         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64406         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64407         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64408         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64409         NEED_PRINTF_INFINITE.
64410         (is_infinitel): New function.
64411         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64413         gl_PREREQ_VASNPRINTF_INFINITE.
64414         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64415         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64416         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64417         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64418         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64419         gl_PREREQ_VASNPRINTF_INFINITE.
64420         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64421         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64422         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64423         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64424         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64425         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64426         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64427         * doc/functions/fprintf.texi: Update.
64428         * doc/functions/printf.texi: Update.
64429         * doc/functions/snprintf.texi: Update.
64430         * doc/functions/sprintf.texi: Update.
64431         * doc/functions/vfprintf.texi: Update.
64432         * doc/functions/vprintf.texi: Update.
64433         * doc/functions/vsnprintf.texi: Update.
64434         * doc/functions/vsprintf.texi: Update.
64435
64436 2007-05-20  Bruno Haible  <bruno@clisp.org>
64437
64438         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64439         was not found in libc.
64440         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64441
64442 2007-05-20  Bruno Haible  <bruno@clisp.org>
64443
64444         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64445         printed as "-nan" instead of "nan".
64446         * tests/test-vasprintf-posix.c (test_function): Likewise.
64447         * tests/test-snprintf-posix.h (test_function): Likewise.
64448         * tests/test-sprintf-posix.h (test_function): Likewise.
64449         Needed for HP-UX 11.
64450
64451 2007-05-20  Jim Meyering  <jim@meyering.net>
64452
64453         Fix buggy test for the fchownat-deref bug.
64454         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64455         symlink required for the run-test.  Without it, this test would
64456         always declare that fchownat doesn't work, and client code would
64457         unnecessarily use the replacement function with fixed libc.
64458         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64459         Reported by Greg Schafer.
64460
64461 2007-05-19  Bruno Haible  <bruno@clisp.org>
64462
64463         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64464         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64465         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64466         Needed for IRIX 6.5 and Solaris 2.5.1.
64467
64468 2007-05-19  Bruno Haible  <bruno@clisp.org>
64469
64470         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64471         (test_function): Skip tests involving -0.0 on platforms where
64472         -0.0 = 0.0.
64473         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64474         (test_function): Skip tests involving -0.0 on platforms where
64475         -0.0 = 0.0.
64476         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64477         (test_function): Skip tests involving -0.0 on platforms where
64478         -0.0 = 0.0.
64479         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64480         (test_function): Skip tests involving -0.0 on platforms where
64481         -0.0 = 0.0.
64482         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64483         tests.
64484         * tests/test-printf-posix.h (test_function): Likewise.
64485         * tests/test-printf-posix.output: Remove all -0.0 related results.
64486         Needed for IRIX 6.5.
64487
64488 2007-05-19  Bruno Haible  <bruno@clisp.org>
64489
64490         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64491         printed as "nan0x7fffffff" instead of "nan".
64492         * tests/test-vasprintf-posix.c (test_function): Likewise.
64493         * tests/test-snprintf-posix.h (test_function): Likewise.
64494         * tests/test-sprintf-posix.h (test_function): Likewise.
64495         * tests/test-fprintf-posix.h (NaN): Remove macro.
64496         (test_function): Remove all NaN related tests.
64497         * tests/test-printf-posix.h (NaN): Remove macro.
64498         (test_function): Remove all NaN related tests.
64499         * tests/test-printf-posix.output: Remove all NaN related results.
64500         Needed for IRIX 6.5.
64501
64502 2007-05-19  Bruno Haible  <bruno@clisp.org>
64503
64504         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64505         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64506
64507 2007-05-19  Bruno Haible  <bruno@clisp.org>
64508
64509         * lib/float_.h: New file.
64510         * m4/float_h.m4: New file.
64511         * modules/float: New file.
64512         * modules/isnanl (Dependencies): Add float.
64513         * modules/isnanl-nolibm (Dependencies): Likewise.
64514         * modules/mathl (Dependencies): Likewise.
64515         * modules/printf-frexpl (Dependencies): Likewise.
64516         * modules/signbit (Dependencies): Likewise.
64517         * modules/vasnprintf (Dependencies): Likewise.
64518         * doc/headers/float.texi: Update.
64519
64520 2007-05-19  Jim Meyering  <jim@meyering.net>
64521
64522         * lib/utimens.c (gl_futimens): Rename from futimens,
64523         now that glibc-2.6 declares futimens.
64524         * lib/utimens.h: Likewise.
64525
64526 2007-05-19  Bruno Haible  <bruno@clisp.org>
64527
64528         Avoid test failures on mingw.
64529         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64530         * tests/test-printf-posix.sh: Likewise.
64531         * tests/test-vfprintf-posix.sh: Likewise.
64532         * tests/test-vprintf-posix.sh: Likewise.
64533
64534 2007-05-19  Bruno Haible  <bruno@clisp.org>
64535
64536         Fix *printf result for NaN, Inf, -0.0 on mingw.
64537         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64538         * lib/vasnprintf.c: Include math.h and isnan.h.
64539         (is_infinite_or_zero): New function.
64540         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64541         values in the %f, %F, %e, %E, %g, %G directives.
64542         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64543         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64544         gl_PRINTF_INFINITE and test its result. Invoke
64545         gl_PREREQ_VASNPRINTF_INFINITE.
64546         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64547         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64548         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64549         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64550         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64551         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64552         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64553         * doc/functions/fprintf.texi: Update.
64554         * doc/functions/printf.texi: Update.
64555         * doc/functions/snprintf.texi: Update.
64556         * doc/functions/sprintf.texi: Update.
64557         * doc/functions/vfprintf.texi: Update.
64558         * doc/functions/vprintf.texi: Update.
64559         * doc/functions/vsnprintf.texi: Update.
64560         * doc/functions/vsprintf.texi: Update.
64561
64562 2007-05-19  Bruno Haible  <bruno@clisp.org>
64563
64564         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64565         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64566         Instead of multiplying with 10^k, set extra_zeroes to k.
64567         (scale10_round_long_double): Remove function.
64568
64569 2007-05-18  Bruno Haible  <bruno@clisp.org>
64570
64571         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64572         introduced on 2007-05-06.
64573
64574 2007-05-18  Bruno Haible  <bruno@clisp.org>
64575
64576         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64577         %g directives.
64578         * tests/test-vasprintf-posix.c (test_function): Likewise.
64579         * tests/test-snprintf-posix.h (test_function): Likewise.
64580         * tests/test-sprintf-posix.h (test_function): Likewise.
64581
64582 2007-05-18  Bruno Haible  <bruno@clisp.org>
64583
64584         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64585         (strmatch): New function.
64586         (test_function): Test the %f directive on numbers of various exponents.
64587         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64588         (strmatch): New function.
64589         (test_function): Test the %f directive on numbers of various exponents.
64590         * tests/test-snprintf-posix.h (strmatch): New function.
64591         (test_function): Test the %f directive on numbers of various exponents.
64592         * tests/test-sprintf-posix.h (strmatch): New function.
64593         (test_function): Test the %f directive on numbers of various exponents.
64594         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64595         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64596         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64597         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64598
64599 2007-05-18  Bruno Haible  <bruno@clisp.org>
64600
64601         Add support for 'long double' number output.
64602         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64603         * lib/vasnprintf.c: Include math.h and float+.h.
64604         (mp_limb_t): New type.
64605         (GMP_LIMB_BITS): New macro.
64606         (mp_twolimb_t): New type.
64607         (GMP_TWOLIMB_BITS): New macro.
64608         (mpn_t): New type.
64609         (multiply, divide, convert_to_decimal, decode_long_double,
64610         scale10_round_long_double, scale10_round_decimal_long_double,
64611         floorlog10l): New functions.
64612         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64613         for the %f, %F, %e, %E, %g, %G directives.
64614         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64615         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64616         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64617         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64619         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64620         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64621         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64622         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64623         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64624         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64625         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64626         * modules/snprintf-posix (Depends-on): Likewise.
64627         * modules/sprintf-posix (Depends-on): Likewise.
64628         * modules/vasnprintf-posix (Depends-on): Likewise.
64629         * modules/vasprintf-posix (Depends-on): Likewise.
64630         * modules/vfprintf-posix (Depends-on): Likewise.
64631         * modules/vsnprintf-posix (Depends-on): Likewise.
64632         * modules/vsprintf-posix (Depends-on): Likewise.
64633         * modules/vasnprintf (Files): Add lib/float+.h.
64634         * doc/functions/fprintf.texi: Update.
64635         * doc/functions/printf.texi: Update.
64636         * doc/functions/snprintf.texi: Update.
64637         * doc/functions/sprintf.texi: Update.
64638         * doc/functions/vfprintf.texi: Update.
64639         * doc/functions/vprintf.texi: Update.
64640         * doc/functions/vsnprintf.texi: Update.
64641         * doc/functions/vsprintf.texi: Update.
64642
64643 2007-05-18  Bruno Haible  <bruno@clisp.org>
64644
64645         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64646
64647 2007-05-18  Bruno Haible  <bruno@clisp.org>
64648
64649         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64650         for printing 64-bit integers. Needed for mingw.
64651
64652 2007-05-18  Bruno Haible  <bruno@clisp.org>
64653
64654         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64655         gl_FUNC_FREXPL_WORKS.
64656         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64657
64658 2007-05-18  Bruno Haible  <bruno@clisp.org>
64659
64660         * modules/frexpl-nolibm-tests: New file.
64661
64662         * modules/frexpl-nolibm: New file.
64663         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64664
64665 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64668         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64669         GCC 4.2, which otherwise issues a lot of warnings.
64670         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64671         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64672         Likewise.
64673         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64674         * modules/iconv_open (iconv.h): Likewise.
64675         * modules/locale (locale.h): Likewise.
64676         * modules/netinet_in (netinet/in.h): Likewise.
64677         * modules/sys_select (sys_select.h): Likewise.
64678         * modules/sys_socket (sys/socket.h): Likewise.
64679         * modules/sys_stat (sys/stat.h): Likewise.
64680         * modules/sysexits (sysexits.h): Likewise.
64681         * modules/unistd (unistd.h): Likewise.
64682
64683 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64684
64685         * modules/closein-tests (Makefile.am): Distribute
64686         `test-closein.sh'.
64687
64688 2007-05-17  Bruno Haible  <bruno@clisp.org>
64689
64690         * tests/test-printf-posix.output: Renamed from
64691         tests/test-fprintf-posix.out.
64692         * modules/fprintf-posix-tests: Update.
64693         * modules/printf-posix-tests: Update.
64694         * modules/vfprintf-posix-tests: Update.
64695         * modules/vprintf-posix-tests: Update.
64696         * tests/test-fprintf-posix.sh: Update.
64697         * tests/test-printf-posix.sh: Update.
64698         * tests/test-vfprintf-posix.sh: Update.
64699         * tests/test-vprintf-posix.sh: Update.
64700         Reported by Ralf Wildenhues.
64701
64702 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64703
64704         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64705         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64706         GCC 4.2, which otherwise issues a lot of warnings.
64707         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64708         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64709         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64710         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64711         it should no longer be needed.
64712         * lib/string_.h: Likewise.
64713         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64714         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64715         * modules/inttypes (inttypes.h): Likewise.
64716         * modules/math (math.h): Likewise.
64717         * modules/search (search.h): Likewise.
64718         * modules/signal (signal.h): Likewise.
64719         * modules/stdint (stdint.h): Likewise.
64720         * modules/stdio (stdio.h): Likewise.
64721         * modules/stdlib (stdlib.h): Likewise.
64722         * modules/string (string.h): Likewise.
64723         * modules/sys_time (sys/time.h): Likewise.
64724         * modules/time (time.h): Likewise.
64725         * modules/wchar (wchar.h): Likewise.
64726         * modules/wctype (wtype.h): Likewise.
64727
64728 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64729
64730         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64731
64732 2007-05-13  Bruno Haible  <bruno@clisp.org>
64733
64734         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64735         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64736         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64737         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64738         (gl_PREREQ_STRTOK_R): Don't require it here.
64739
64740 2007-05-13  Bruno Haible  <bruno@clisp.org>
64741
64742         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64743         when used in C++ mode.
64744
64745 2007-05-12  Bruno Haible  <bruno@clisp.org>
64746
64747         * lib/linebuffer.h: Tweak doc.
64748         * lib/linebuffer.c: Likewise.
64749
64750 2007-05-12  James Youngman  <jay@gnu.org>
64751
64752         * lib/linebuffer.c (readlinebuffer_delim): New function,
64753         like readlinebuffer, but use a caller-specified delimiter.
64754         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64755         as the delimiter.
64756         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64757
64758 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64759
64760         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64761         * modules/openat (Files): Remove openat-die.c.
64762         (Depends-on): Add openat-die.
64763         * modules/openat-die: New module.
64764
64765 2007-05-06  Bruno Haible  <bruno@clisp.org>
64766
64767         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64768         Update with info about Cygwin.
64769         * doc/functions/fprintf.texi: Update.
64770         * doc/functions/printf.texi: Update.
64771         * doc/functions/snprintf.texi: Update.
64772         * doc/functions/sprintf.texi: Update.
64773         * doc/functions/vfprintf.texi: Update.
64774         * doc/functions/vprintf.texi: Update.
64775         * doc/functions/vsnprintf.texi: Update.
64776         * doc/functions/vsprintf.texi: Update.
64777         Reported by Eric Blake.
64778
64779 2007-05-06  Bruno Haible  <bruno@clisp.org>
64780
64781         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64782         padding ourselves for the floating-point directives.
64783         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64785         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64786         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64787         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64788         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64789         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64790         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64791         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64792         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64793         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64794         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64795         * tests/test-snprintf-posix.h (test_function): Also check the width
64796         and some flags in the %f directive.
64797         * tests/test-sprintf-posix.h (test_function): Likewise.
64798         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64799         * tests/test-vasprintf-posix.c (test_function): Likewise.
64800         * doc/functions/fprintf.texi: Update.
64801         * doc/functions/printf.texi: Update.
64802         * doc/functions/snprintf.texi: Update.
64803         * doc/functions/sprintf.texi: Update.
64804         * doc/functions/vfprintf.texi: Update.
64805         * doc/functions/vprintf.texi: Update.
64806         * doc/functions/vsnprintf.texi: Update.
64807         * doc/functions/vsprintf.texi: Update.
64808
64809 2007-05-06  Bruno Haible  <bruno@clisp.org>
64810
64811         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64812         pass the ' flag character to sprintf or snprintf.
64813         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64815         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64816         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64817         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64818         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64819         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64822         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64825         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64826         flag.
64827         * tests/test-sprintf-posix.h (test_function): Likewise.
64828         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64829         * tests/test-vasprintf-posix.c (test_function): Likewise.
64830         * doc/functions/fprintf.texi: Update.
64831         * doc/functions/printf.texi: Update.
64832         * doc/functions/snprintf.texi: Update.
64833         * doc/functions/sprintf.texi: Update.
64834         * doc/functions/vfprintf.texi: Update.
64835         * doc/functions/vprintf.texi: Update.
64836         * doc/functions/vsnprintf.texi: Update.
64837         * doc/functions/vsprintf.texi: Update.
64838
64839 2007-05-01  Bruno Haible  <bruno@clisp.org>
64840
64841         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64842
64843 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64844
64845         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64846         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64847
64848 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64851         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64852         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64853
64854 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64855
64856         * lib/argp-help.c (struct hol_entry): New member `ord'.
64857         (HOL_ENTRY_PTRCMP): Use ord for comparison
64858         (hol_sort): Initialize ord.
64859
64860 2007-05-01  Bruno Haible  <bruno@clisp.org>
64861
64862         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64863         Reported by Eric Blake.
64864         * doc/gnulib.texi (Function Substitutes): Update.
64865
64866 2007-05-01  Bruno Haible  <bruno@clisp.org>
64867
64868         * doc/functions.texi: Remove file, now redundant through
64869         doc/functions/*.texi.
64870
64871 2007-05-01  Bruno Haible  <bruno@clisp.org>
64872
64873         * modules/argp (Depends-on): Add sleep.
64874
64875 2007-05-01  Bruno Haible  <bruno@clisp.org>
64876
64877         * modules/sleep-tests: New file.
64878         * tests/test-sleep.c: New file.
64879
64880         * modules/sleep: New file.
64881         * lib/sleep.c: New file.
64882         * m4/sleep.m4: New file.
64883         * lib/unistd_.h (sleep): New declaration.
64884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64885         HAVE_SLEEP.
64886         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64887         * doc/functions/sleep.texi: Document the sleep module.
64888
64889 2007-05-01  Bruno Haible  <bruno@clisp.org>
64890
64891         * lib/sigprocmask.h: Remove file.
64892         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64893         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64894         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64895         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64896         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64897         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64898         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64899         HAVE_SIGSET_T as a shell variable.
64900         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64901         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64902         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64903         (Depends-on): Add signal. Remove verify.
64904         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64905         (Include): Mention <signal.h> instead of sigprocmask.h.
64906         * NEWS: Mention the change.
64907         * lib/fatal-signal.c: Don't include sigprocmask.h.
64908
64909 2007-05-01  Bruno Haible  <bruno@clisp.org>
64910
64911         * modules/signal: New file.
64912         * lib/signal_.h: New file.
64913         * m4/signal_h.m4: New file.
64914
64915 2007-05-01  Bruno Haible  <bruno@clisp.org>
64916
64917         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64918         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64919         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64920         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64921
64922 2007-05-01  Bruno Haible  <bruno@clisp.org>
64923
64924         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64925         configure time.
64926         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64927         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64928         * modules/sys_stat (Makefile.am): Substitute their values into
64929         sys/stat.h.
64930
64931 2007-05-01  Bruno Haible  <bruno@clisp.org>
64932
64933         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64934         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64935         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64936
64937 2007-05-01  Bruno Haible  <bruno@clisp.org>
64938
64939         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64940         'assert' module here.
64941
64942 2007-05-01  Bruno Haible  <bruno@clisp.org>
64943
64944         * doc/functions/*.texi: New files.
64945         * doc/functions/google-ranking.txt: New file.
64946         * doc/gnulib.texi (Function Substitutes): New chapter.
64947         (ctime, inet_ntoa): Remove sections.
64948         * doc/ctime.texi: Remove file.
64949         * doc/inet_ntoa.texi: Remove file.
64950         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64951         dependencies.
64952         (%.info): New rule, specifying a --reference-limit.
64953
64954 2007-05-01  Bruno Haible  <bruno@clisp.org>
64955
64956         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64957
64958 2007-05-01  Bruno Haible  <bruno@clisp.org>
64959
64960         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64961         the portability of 'mkdir' to mingw systems.
64962
64963 2007-05-01  Bruno Haible  <bruno@clisp.org>
64964
64965         * doc/headers/google-ranking.txt: New file.
64966
64967 2007-04-30  Eric Blake  <ebb9@byu.net>
64968
64969         Prefer fseeko to fseek.
64970         * modules/getpass (Depends-on): Add fseeko.
64971         * lib/getpass.c (getpass): Use fseeko, not fseek.
64972
64973 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64974
64975         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64976         assumes the sorting is stable, while most qsort implementations
64977         are not.  Use argument addresses to ensure they never compare as
64978         equal.
64979
64980         * tests/test-argp-2.sh (usage-indent test): Fix output
64981         (func_compare): Restore diff options
64982         * tests/test-argp.c: Restore #include "progname.h"
64983
64984 2007-04-29  Bruno Haible  <bruno@clisp.org>
64985
64986         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64987         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64988         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64989         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64990         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64991         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64992         (TESTS, check_PROGRAMS): Add test-snprintf.
64993         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64994         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64995         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64996         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64997         assertions that fail on HP-UX, OSF/1, or IRIX.
64998         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64999
65000 2007-04-29  Bruno Haible  <bruno@clisp.org>
65001
65002         * MODULES.html.sh (posix_functions): Remove 'contents'.
65003
65004 2007-04-29  Karl Berry  <karl@gnu.org>
65005
65006         * config/srclist.txt (gendocs_template_min): new entry.
65007
65008 2007-04-29  Bruno Haible  <bruno@clisp.org>
65009
65010         Work around fpurge bug on BSD systems.
65011         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65012         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65013         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65014         fpurge to rpl_fpurge if the system already has this function.
65015         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65016         the case where the system already has this function. Correct invariants
65017         on BSD systems.
65018         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65019         BSD systems.
65020
65021 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65022
65023         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65024         proposed by Sven Verdoolaege.
65025
65026         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65027         options.
65028         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65029         (usage and help tests): Update
65030
65031 2007-04-29  Bruno Haible  <bruno@clisp.org>
65032
65033         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65034         Print more information in case of failure. Disable a test on BeOS.
65035
65036 2007-04-29  Bruno Haible  <bruno@clisp.org>
65037
65038         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65039         This helps debugging on systems on which no gdb is available.
65040
65041 2007-04-29  Bruno Haible  <bruno@clisp.org>
65042
65043         * lib/freading.h: Improve comments.
65044         * lib/fwriting.h: Likewise.
65045         * tests/test-freading.c (main): Don't check freading immediately after
65046         repositioning. Needed for glibc.
65047
65048 2007-04-29  Bruno Haible  <bruno@clisp.org>
65049
65050         * lib/freading.c (freading): Trivial simplification.
65051
65052 2007-04-28  Bruno Haible  <bruno@clisp.org>
65053
65054         * tests/test-fwriting.c (main): Also test the interaction between
65055         fflush and fwriting.
65056         * modules/fwriting-tests (Depends-on): Add fflush.
65057
65058         * tests/test-freading.c (main): Also test the interaction between
65059         fflush and freading.
65060         * modules/freading-tests (Depends-on): Add fflush.
65061
65062 2007-04-28  Bruno Haible  <bruno@clisp.org>
65063
65064         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65065         fseeko and ftello.
65066         Suggested by Eric Blake.
65067
65068 2007-04-28  Jim Meyering  <jim@meyering.net>
65069
65070         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65071         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65072         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65073
65074 2007-04-27  Eric Blake  <ebb9@byu.net>
65075
65076         * doc/headers/assert.texi (assert.h): Document assert module use.
65077
65078 2007-04-27  Bruno Haible  <bruno@clisp.org>
65079
65080         * doc/headers/*.texi: New files.
65081         * doc/gnulib.texi (Header File Substitutes): New chapter.
65082         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65083         dependencies.
65084         (standards.info ,standards.html, standards.dvi): Update dependencies.
65085         (mostlyclean, clean): New targets.
65086
65087 2007-04-27  Bruno Haible  <bruno@clisp.org>
65088
65089         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65090         * modules/sysexits (Files, Makefile.am): Update.
65091
65092         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65093         * modules/sys_socket (Files, Makefile.am): Update.
65094
65095         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65096         * modules/sys_stat (Files, Makefile.am): Update.
65097
65098 2007-04-27  Eric Blake  <ebb9@byu.net>
65099
65100         * lib/freading.h: Improve comments.
65101         * lib/fwriting.h: Likewise.
65102         * lib/fflush.c: Likewise.
65103
65104         Fix closein for mingw.
65105         * modules/closein-tests: Add tests for closein.
65106         * tests/test-closein.c: New file.
65107         * tests/test-closein.sh: Likewise.
65108         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65109         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65110
65111 2007-04-27  Bruno Haible  <bruno@clisp.org>
65112
65113         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65114         version is < 6.
65115         * lib/math_.h [__DECC]: Likewise.
65116         * lib/stdio_.h [__DECC]: Likewise.
65117         * lib/stdlib_.h [__DECC]: Likewise.
65118         * lib/string_.h [__DECC]: Likewise.
65119         * lib/time_.h [__DECC]: Likewise.
65120         * lib/wchar_.h [__DECC]: Likewise.
65121         * lib/wctype_.h [__DECC]: Likewise.
65122
65123 2007-04-27  Bruno Haible  <bruno@clisp.org>
65124
65125         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65126
65127 2007-04-27  Bruno Haible  <bruno@clisp.org>
65128
65129         * lib/fflush.c: Add comments.
65130         * modules/fpurge-tests (Depends-on): Add fflush.
65131         * modules/freadable-tests (Depends-on): Likewise.
65132         * modules/fwritable-tests (Depends-on): Likewise.
65133
65134 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65135
65136         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65137         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65138         Report by Bruno Haible <bruno@clisp.org>.
65139
65140 2007-04-26  Eric Blake  <ebb9@byu.net>
65141
65142         Fix fflush on mingw.
65143         * modules/fflush (Depends-on): Add freading.
65144         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65145         but unread data.
65146
65147 2007-04-26  Eric Blake  <ebb9@byu.net>
65148         and Bruno Haible  <bruno@clisp.org>
65149
65150         Implement freading and fwriting.
65151         * lib/freading.c: New file.
65152         * lib/freading.h: Likewise.
65153         * m4/freading.m4: Likewise.
65154         * modules/freading: Likewise.
65155         * modules/freading-tests: Likewise.
65156         * tests/test-freading.c: Likewise.
65157         * lib/fwriting.c: New file.
65158         * lib/fwriting.h: Likewise.
65159         * m4/fwriting.m4: Likewise.
65160         * modules/fwriting: Likewise.
65161         * modules/fwriting-tests: Likewise.
65162         * tests/test-fwriting.c: Likewise.
65163         * MODULES.html.sh (File stream based Input/Output): Mention them.
65164
65165 2007-04-26  Bruno Haible  <bruno@clisp.org>
65166
65167         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65168         'long' when we assume it.
65169         Suggested by Eric Blake.
65170
65171 2007-04-26  Bruno Haible  <bruno@clisp.org>
65172
65173         Ensure fseeko, ftello are declared on glibc systems.
65174         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65175         * modules/fseeko (configure.ac-early): Likewise.
65176         * modules/ftello (configure.ac-early): Likewise.
65177         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65178         AC_FUNC_FSEEKO for this.
65179         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65180         (gl_CHECK_FSEEKO): Remove macro.
65181
65182 2007-04-26  Bruno Haible  <bruno@clisp.org>
65183
65184         * tests/test-fflush.c (main): Also check the ftell result after
65185         fflush and fseek/fseeko.
65186         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65187         file descriptor position cache in the stream.
65188         * lib/fseeko.c (rpl_fseeko): Likewise.
65189
65190 2007-04-26  Bruno Haible  <bruno@clisp.org>
65191
65192         * modules/fflush-tests (Depends-on): Add fseeko.
65193
65194 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65195             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65196
65197         * lib/argz_.h: ensure error_t definition is obtained in same
65198         mechanism system argz.h would have.
65199         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65200         argz facilities are known bad.  Err on the side of caution if
65201         cross-compiling.
65202
65203 2007-04-25  Eric Blake  <ebb9@byu.net>
65204
65205         * lib/fpurge.c (includes): Use stdlib.h for free.
65206         * tests/test-fflush.c (main): Also test fflush-fseeko.
65207
65208 2007-04-25  Bruno Haible  <bruno@clisp.org>
65209
65210         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65211         * lib/fseeko.c: New file.
65212         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65213         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65214         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65215         gl_FUNC_FSEEKO.
65216         (gl_FUNC_FSEEKO): Invoke it.
65217         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65218         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65219         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65220
65221 2007-04-25  Bruno Haible  <bruno@clisp.org>
65222
65223         * modules/fflush (Depends-on): Add ftello.
65224
65225 2007-04-25  Bruno Haible  <bruno@clisp.org>
65226
65227         * modules/ftello-tests: New file.
65228         * tests/test-ftello.c: New file.
65229
65230         * modules/ftello: New file.
65231         * m4/ftello.m4: New file.
65232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65233         HAVE_FTELLO.
65234         * lib/stdio_.h (ftello): New declaration.
65235         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65236         HAVE_FTELLO.
65237
65238 2007-04-25  Bruno Haible  <bruno@clisp.org>
65239
65240         * modules/fseeko-tests: New file.
65241         * tests/test-fseeko.c: New file.
65242
65243         * modules/fseeko: New file.
65244         * m4/fseeko.m4: New file.
65245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65246         HAVE_FSEEKO.
65247         * lib/stdio_.h (fseeko): New declaration.
65248         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65249         HAVE_FSEEKO.
65250
65251 2007-04-25  Bruno Haible  <bruno@clisp.org>
65252
65253         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65254
65255 2007-04-25  Bruno Haible  <bruno@clisp.org>
65256
65257         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65258         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65259         * tests/test-unistd.c: Likewise.
65260         * tests/test-fcntl.c: Likewise.
65261
65262 2007-04-23  Eric Blake  <ebb9@byu.net>
65263
65264         * lib/fflush.c: Fix missing include.
65265         Reported by Bruno Haible.
65266
65267 2007-04-23  Bruno Haible  <bruno@clisp.org>
65268
65269         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65270         Reported by Eric Blake.
65271
65272 2007-04-23  Bruno Haible  <bruno@clisp.org>
65273
65274         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65275
65276 2007-04-23  Bruno Haible  <bruno@clisp.org>
65277
65278         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65279
65280 2007-04-23  Bruno Haible  <bruno@clisp.org>
65281
65282         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65283         Needed on HP-UX 11.
65284
65285 2007-04-16  Eric Blake  <ebb9@byu.net>
65286
65287         Make fflush rely on fpurge.
65288         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65289         open coding all variants.
65290         * modules/fflush (Depends-on): Add fpurge and unistd.
65291         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65292         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65293
65294         Fix --with-tests compilation on cygwin.
65295         * modules/argmatch-tests (Makefile.am): List gnulib library first
65296         in LDADD.
65297         * modules/argp-tests (Makefile.am): Likewise.
65298         * modules/array-list-tests (Makefile.am): Likewise.
65299         * modules/array-oset-tests (Makefile.am): Likewise.
65300         * modules/avltree-list-tests (Makefile.am): Likewise.
65301         * modules/avltree-oset-tests (Makefile.am): Likewise.
65302         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65303         * modules/carray-list-tests (Makefile.am): Likewise.
65304         * modules/dirname-tests (Makefile.am): Likewise.
65305         * modules/frexp-tests (Makefile.am): Likewise.
65306         * modules/isnanl-tests (Makefile.am): Likewise.
65307         * modules/linked-list-tests (Makefile.am): Likewise.
65308         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65309         * modules/lock-tests (Makefile.am): Likewise.
65310         * modules/rbtree-list-tests (Makefile.am): Likewise.
65311         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65312         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65313         * modules/tls-tests (Makefile.am): Likewise.
65314         * modules/tsearch-tests (Makefile.am): Likewise.
65315         * modules/xvasprintf-tests (Makefile.am): Likewise.
65316
65317         Fix fpurge for cygwin.
65318         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65319         value.
65320         * modules/fpurge-tests (Depends-on): Clean up trash.
65321
65322 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65323
65324         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65325
65326         * m4/autobuild.m4: Re-indent.
65327
65328 2007-04-13  Bruno Haible  <bruno@clisp.org>
65329
65330         * modules/fpurge-tests: New file.
65331         * tests/test-fpurge.c: New file.
65332
65333         * modules/fpurge: New file.
65334         * lib/fpurge.h: New file.
65335         * lib/fpurge.c: New file.
65336         * m4/fpurge.m4: New file.
65337
65338 2007-04-13  Bruno Haible  <bruno@clisp.org>
65339
65340         * modules/fbufmode-tests: New file.
65341         * tests/test-fbufmode.c: New file.
65342
65343         * modules/fbufmode: New file.
65344         * lib/fbufmode.h: New file.
65345         * lib/fbufmode.c: New file.
65346         * m4/fbufmode.m4: New file.
65347
65348 2007-04-13  Bruno Haible  <bruno@clisp.org>
65349
65350         * modules/fwritable-tests: New file.
65351         * tests/test-fwritable.c: New file.
65352
65353         * modules/fwritable: New file.
65354         * lib/fwritable.h: New file.
65355         * lib/fwritable.c: New file.
65356         * m4/fwritable.m4: New file.
65357
65358 2007-04-13  Bruno Haible  <bruno@clisp.org>
65359
65360         * modules/freadable-tests: New file.
65361         * tests/test-freadable.c: New file.
65362
65363         * modules/freadable: New file.
65364         * lib/freadable.h: New file.
65365         * lib/freadable.c: New file.
65366         * m4/freadable.m4: New file.
65367
65368 2007-04-13  Bruno Haible  <bruno@clisp.org>
65369
65370         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65371         MOSTLYCLEANFILES.
65372
65373 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65374
65375         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65376         gzip bootstrap.conf to avoid dragging in i18n machinery.
65377         (gnulib_tool_option): Use it.
65378
65379 2007-04-13  Bruno Haible  <bruno@clisp.org>
65380
65381         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65382         %F directives.
65383         * tests/test-vasprintf-posix.c (test_function): Likewise.
65384         * tests/test-snprintf-posix.h (test_function): Likewise.
65385         * tests/test-sprintf-posix.h (test_function): Likewise.
65386         * tests/test-fprintf-posix.h (test_function): Likewise.
65387         * tests/test-printf-posix.h (test_function): Likewise.
65388         * tests/test-fprintf-posix.out: Likewise.
65389
65390 2007-04-13  Bruno Haible  <bruno@clisp.org>
65391
65392         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65393         * modules/tls-tests (configure.ac): Likewise.
65394         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65395
65396 2007-04-13  Bruno Haible  <bruno@clisp.org>
65397
65398         * lib/tls.c (glthread_tls_get): Fix return type.
65399         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65400
65401 2007-04-12  Eric Blake  <ebb9@byu.net>
65402
65403         * modules/gettime (Depends-on): Remove gettime.
65404         Reported by Dmitry V. Levin.
65405
65406 2007-04-12  Bruno Haible  <bruno@clisp.org>
65407
65408         * modules/fflush (Include): Mention <stdio.h>.
65409         * modules/strtoimax (Include): Mention <inttypes.h>.
65410         * modules/strtoumax (Include): Likewise.
65411
65412 2007-04-12  Eric Blake  <ebb9@byu.net>
65413
65414         * .cvsignore: New file.
65415         * .gitignore: Likewise.
65416
65417 2007-04-12  Bruno Haible  <bruno@clisp.org>
65418
65419         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65420         not before, since $(LDADD) often contains libgnu.a.
65421         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65422         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65423         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65424         Needed on Cygwin.
65425
65426 2007-04-12  Eric Blake  <ebb9@byu.net>
65427
65428         Work around glibc's failure to flush stdin on fclose.
65429         * lib/closein.c (close_stdin): Flush stdin before closing.
65430
65431         Work around glibc's failure to reset seekable stdin on exit.
65432         * modules/closein: New module.
65433         * lib/closein.c: New file.
65434         * lib/closein.h: Likewise.
65435         * m4/closein.m4: Likewise.
65436         * MODULES.html.sh (File stream based Input/Output): Document it.
65437
65438 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65439
65440         * gnulib-tool: Rename generated 'autobuild' script to
65441         'do-autobuild' in --create-megatestdir output.
65442
65443         * doc/gnulib.texi (Build robot for gnulib): Fix.
65444
65445 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65446
65447         * modules/sysexits (Depends-on): Add absolute-header.
65448
65449 2007-04-12  Eric Blake  <ebb9@byu.net>
65450
65451         No need to preserve errno on success.
65452         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65453         Reported by Bruno Haible.
65454
65455 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65456
65457         * MODULES.html.sh (Support for maintaining and releasing
65458         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65459
65460 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65461
65462         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65463
65464 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65465
65466         * modules/autobuild: New module.
65467
65468         * m4/autobuild.m4: New file.
65469
65470 2007-04-11  Bruno Haible  <bruno@clisp.org>
65471
65472         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65473         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65476         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65479         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65482         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65483         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65484         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65485         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65486         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65487         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65488         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65489         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65490         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65491         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65492         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65493         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65494         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65495         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65496         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65498         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65499         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65500         Reported by Eric Blake.
65501
65502 2007-04-11  Bruno Haible  <bruno@clisp.org>
65503
65504         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65505
65506 2007-04-10  Bruno Haible  <bruno@clisp.org>
65507
65508         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65509         for NaN and Infinity. Needed on FreeBSD 6.1.
65510         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65511         regarding results for "%010a" of Infinity and NaN.
65512         * tests/test-vasprintf-posix.c (test_function): Likewise.
65513         * tests/test-snprintf-posix.h (test_function): Likewise.
65514         * tests/test-sprintf-posix.h (test_function): Likewise.
65515         * tests/test-fprintf-posix.h (test_function): Likewise.
65516         * tests/test-printf-posix.h (test_function): Likewise.
65517         * tests/test-fprintf-posix.out: Likewise.
65518
65519 2007-04-10  Bruno Haible  <bruno@clisp.org>
65520
65521         * modules/locale-tests: New file.
65522         * tests/test-locale.c: New file.
65523
65524         * modules/locale: New file.
65525         * lib/locale_.h: New file.
65526         * m4/locale_h.m4: New file.
65527
65528 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65529             Bruno Haible  <bruno@clisp.org>
65530
65531         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65532         be determined, test for availability of the copysignf, copysign,
65533         copysignl functions.
65534         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65535         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65536         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65537
65538 2007-04-09  Eric Blake  <ebb9@byu.net>
65539
65540         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65541         * modules/stdio (Makefile.am): Support fflush.
65542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65543         * modules/fflush: New file.
65544         * lib/fflush.c: Likewise.
65545         * m4/fflush.m4: Likewise.
65546         * modules/fflush-tests: New test.
65547         * tests/test-fflush.c: Likewise.
65548         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65549
65550 2007-04-06  Bruno Haible  <bruno@clisp.org>
65551
65552         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65553         (VASNPRINTF): Use signbit for faster determination whether to print a
65554         minus sign.
65555         * modules/vasnprintf (Files): Remove lib/float+.h.
65556         * modules/fprintf-posix (Depends-on): Add signbit.
65557         * modules/snprintf-posix (Depends-on): Likewise.
65558         * modules/sprintf-posix (Depends-on): Likewise.
65559         * modules/vasnprintf-posix (Depends-on): Likewise.
65560         * modules/vasprintf-posix (Depends-on): Likewise.
65561         * modules/vfprintf-posix (Depends-on): Likewise.
65562         * modules/vsnprintf-posix (Depends-on): Likewise.
65563         * modules/vsprintf-posix (Depends-on): Likewise.
65564
65565 2007-04-06  Bruno Haible  <bruno@clisp.org>
65566
65567         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65568         * tests/test-frexpl.c (main): Likewise.
65569         * tests/test-ldexpl.c (main): Likewise.
65570         * modules/frexp-tests (Depends-on): Add signbit.
65571         * modules/frexpl-tests (Depdends-on): Likewise.
65572         * modules/ldexpl-tests (Depdends-on): Likewise.
65573
65574 2007-04-06  Bruno Haible  <bruno@clisp.org>
65575
65576         * modules/signbit-tests: New file.
65577         * tests/test-signbit.c: New file.
65578
65579         * modules/signbit: New file.
65580         * lib/signbitf.c: New file.
65581         * lib/signbitd.c: New file.
65582         * lib/signbitl.c: New file.
65583         * m4/signbit.m4: New file.
65584         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65585         (signbit): New macro.
65586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65587         REPLACE_SIGNBIT.
65588         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65589         REPLACE_FREXPL into math.h.
65590
65591 2007-04-06  Bruno Haible  <bruno@clisp.org>
65592
65593         * modules/isnanf-nolibm-tests: New file.
65594         * tests/test-isnanf.c: New file.
65595
65596         * modules/isnanf-nolibm: New file.
65597         * lib/isnanf.h: New file.
65598         * lib/isnanf.c: New file.
65599         * lib/isnan.c: Consider the USE_FLOAT macro.
65600         * m4/isnanf.m4: New file.
65601
65602 2007-04-06  Bruno Haible  <bruno@clisp.org>
65603
65604         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65605         (Link): New section.
65606
65607         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65608
65609 2007-04-06  Bruno Haible  <bruno@clisp.org>
65610
65611         Assume the 'long double' type.
65612         * m4/longdouble.m4: Remove file.
65613         * config/srclist.txt: Don't mention longdouble.m4.
65614         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65615         * lib/float+.h: Likewise.
65616         * lib/frexp.c: Likewise.
65617         * lib/printf-args.h: Likewise.
65618         * lib/printf-args.c: Likewise.
65619         * lib/printf-frexp.c: Likewise.
65620         * lib/printf-parse.c: Likewise.
65621         * lib/vasnprintf.c: Likewise.
65622         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65623         * m4/intl.m4: Likewise.
65624         * m4/isnanl.m4: Likewise.
65625         * m4/printf.m4: Likewise.
65626         * m4/printf-frexpl.m4: Likewise.
65627         * m4/vasnprintf.m4: Likewise.
65628         * modules/allocsa (Files): Remove m4/longdouble.m4.
65629         * modules/gettext (Files): Likewise.
65630         * modules/relocatable-prog-wrapper (Files): Likewise.
65631         * modules/vasnprintf (Files): Likewise.
65632         * modules/isnanl (Files): Likewise.
65633         (Include): Simplify.
65634         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65635         (Include): Simplify.
65636         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65637         (Include): Simplify.
65638         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65639         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65640         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65641         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65642         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65643         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65644         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65645         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65646         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65647         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65648         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65649         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65650         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65651         * tests/test-isnanl.c: Likewise.
65652         * tests/test-snprintf-posix.h: Likewise.
65653         * tests/test-sprintf-posix.h: Likewise.
65654         * tests/test-vasnprintf-posix.c: Likewise.
65655         * tests/test-vasnprintf-posix2.c: Likewise.
65656         * tests/test-vasprintf-posix.c: Likewise.
65657
65658 2007-04-06  Bruno Haible  <bruno@clisp.org>
65659
65660         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65661         * lib/math_.h [__DECC]: Include the overridden include file through
65662         #include_next, outside the double-inclusion guard.
65663         * lib/stdio_.h [__DECC]: Likewise.
65664         * lib/stdlib_.h [__DECC]: Likewise.
65665         * lib/string_.h [__DECC]: Likewise.
65666         * lib/time_.h [__DECC]: Likewise.
65667         * lib/wchar_.h [__DECC]: Likewise.
65668         * lib/wctype_.h [__DECC]: Likewise.
65669         * lib/inttypes_.h [__DECC]: Likewise.
65670         Reported by Albert Chin <china@thewrittenword.com> in
65671         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65672
65673 2007-04-04  Eric Blake  <ebb9@byu.net>
65674
65675         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65676         1.5.x.
65677
65678 2007-04-04  Bruno Haible  <bruno@clisp.org>
65679
65680         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65681         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65682
65683 2007-04-04  Bruno Haible  <bruno@clisp.org>
65684
65685         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65686         results for "%010a" of Infinity and NaN.
65687         * tests/test-vasprintf-posix.c (test_function): Likewise.
65688         * tests/test-snprintf-posix.h (test_function): Likewise.
65689         * tests/test-sprintf-posix.h (test_function): Likewise.
65690         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65691         * tests/test-printf-posix.h (test_function): Likewise.
65692         * tests/test-fprintf-posix.out: Update.
65693         Needed for FreeBSD 6.1.
65694
65695 2007-04-04  Bruno Haible  <bruno@clisp.org>
65696
65697         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65698         directly used by the gnulib modules nor by gnulib-tool.
65699
65700 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65701
65702         * DEPENDENCIES: Give overall description of version dependency
65703         desirability.  Use more-typical names for apps.
65704         Add shell, coreutils, diffutils, grep, tar, gzip.
65705
65706 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65707
65708         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65709
65710 2007-04-04  Karl Berry  <karl@gnu.org>
65711
65712         * MODULES.html.sh (func_module): missing '.
65713
65714 2007-04-03  Bruno Haible  <bruno@clisp.org>
65715
65716         * modules/argmatch-tests (Makefile.am): New variable
65717         test_argmatch_LDADD.
65718         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65719         * modules/array-list-tests (Makefile.am): New variable
65720         test_array_list_LDADD.
65721         * modules/array-oset-tests (Makefile.am): New variable
65722         test_array_oset_LDADD.
65723         * modules/avltree-list-tests (Makefile.am): New variable
65724         test_avltree_list_LDADD.
65725         * modules/avltree-oset-tests (Makefile.am): New variable
65726         test_avltree_oset_LDADD.
65727         * modules/avltreehash-list-tests (Makefile.am): New variable
65728         test_avltreehash_list_LDADD.
65729         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65730         test_canonicalize_lgpl_LDADD.
65731         * modules/carray-list-tests (Makefile.am): New variable
65732         test_carray_list_LDADD.
65733         * modules/dirname-tests (Makefile.am): New variable
65734         test_dirname_LDADD.
65735         * modules/linked-list-tests (Makefile.am): New variable
65736         test_linked_list_LDADD.
65737         * modules/linkedhash-list-tests (Makefile.am): New variable
65738         test_linkedhash_list_LDADD.
65739         * modules/rbtree-list-tests (Makefile.am): New variable
65740         test_rbtree_list_LDADD.
65741         * modules/rbtree-oset-tests (Makefile.am): New variable
65742         test_rbtree_oset_LDADD.
65743         * modules/rbtreehash-list-tests (Makefile.am): New variable
65744         test_rbtreehash_list_LDADD.
65745         * modules/xvasprintf-tests (Makefile.am): New variable
65746         test_xvasprintf_LDADD.
65747         Reported by Eric Blake.
65748
65749 2007-04-03  Eric Blake  <ebb9@byu.net>
65750
65751         * DEPENDENCIES: Weaken m4 requirements.
65752
65753 2007-04-03  Bruno Haible  <bruno@clisp.org>
65754
65755         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65756         * modules/isnanl-tests (configure.ac): Likewise.
65757
65758 2007-04-03  Ben Pfaff  <blp@gnu.org>
65759
65760         * modules/iconv_open: Add $(srcdir)/ to source directory
65761         references in Makefile fragments that call gperf, to fix VPATH
65762         builds.
65763
65764 2007-04-03  Bruno Haible  <bruno@clisp.org>
65765
65766         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65767         * lib/ldexpl.c: Undo last change.
65768
65769 2007-04-03  Bruno Haible  <bruno@clisp.org>
65770
65771         * modules/printf-frexpl (Depends-on): Undo last change.
65772         (Files): Add m4/ldexpl.m4.
65773
65774 2007-04-03  Bruno Haible  <bruno@clisp.org>
65775
65776         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65777         * modules/isnanl (Link): New section.
65778
65779         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65780         * modules/frexp (Link): New section.
65781
65782         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65783         * modules/frexpl (Link): New section.
65784
65785         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65786         * modules/ldexpl (Link): New section.
65787
65788 2007-04-03  Bruno Haible  <bruno@clisp.org>
65789
65790         * modules/TEMPLATE-EXTENDED: New file.
65791         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65792
65793 2007-04-03  Bruno Haible  <bruno@clisp.org>
65794
65795         * DEPENDENCIES: New file.
65796         Suggested by Simon Josefsson.
65797
65798 2007-04-03  Bruno Haible  <bruno@clisp.org>
65799
65800         * doc/gnulib.texi: Escape @.
65801
65802 2007-04-03  James Youngman  <jay@gnu.org>
65803         and Paul Eggert  <eggert@cs.ucla.edu>
65804
65805         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65806         birthtime on all systems that have birthtime, not just those which
65807         use st_birthtimensec rather than st_birthtim.  Putting zero in
65808         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65809         that the birth time is not available for files on an NFS mount.
65810
65811 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65812
65813         * modules/memxor: Move back from crypto/, suggested by Bruno.
65814         * modules/crypto/hmac-sha1: Fix memxor dependency.
65815
65816         * modules/crypto/gc: Moved from ../.
65817
65818 2007-04-02  Eric Blake  <ebb9@byu.net>
65819
65820         * lib/ldexpl.c (includes): Avoid libm.
65821
65822         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65823
65824 2007-04-02  Bruno Haible  <bruno@clisp.org>
65825
65826         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65827         on IRIX.
65828
65829 2007-04-02  Bruno Haible  <bruno@clisp.org>
65830
65831         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65832         x86 or x86_64 platforms running MacOS X.
65833         Reported by Ryan Schmidt <@ryandesign.com>.
65834
65835 2007-04-02  Bruno Haible  <bruno@clisp.org>
65836
65837         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65838         i386.
65839
65840 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65841
65842         * modules/crypto/arcfour: Moved from ../.
65843         * modules/crypto/arcfour-tests: Moved from ../.
65844         * modules/crypto/arctwo: Moved from ../.
65845         * modules/crypto/arctwo-tests: Moved from ../.
65846         * modules/crypto/des: Moved from ../.
65847         * modules/crypto/des-tests: Moved from ../.
65848         * modules/crypto/gc-arcfour: Moved from ../.
65849         * modules/crypto/gc-arcfour-tests: Moved from ../.
65850         * modules/crypto/gc-arctwo: Moved from ../.
65851         * modules/crypto/gc-arctwo-tests: Moved from ../.
65852         * modules/crypto/gc-des: Moved from ../.
65853         * modules/crypto/gc-des-tests: Moved from ../.
65854         * modules/crypto/gc-hmac-md5: Moved from ../.
65855         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65856         * modules/crypto/gc-hmac-sha1: Moved from ../.
65857         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65858         * modules/crypto/gc-md2: Moved from ../.
65859         * modules/crypto/gc-md2-tests: Moved from ../.
65860         * modules/crypto/gc-md4: Moved from ../.
65861         * modules/crypto/gc-md4-tests: Moved from ../.
65862         * modules/crypto/gc-md5: Moved from ../.
65863         * modules/crypto/gc-md5-tests: Moved from ../.
65864         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65865         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65866         * modules/crypto/gc-random: Moved from ../.
65867         * modules/crypto/gc-rijndael: Moved from ../.
65868         * modules/crypto/gc-rijndael-tests: Moved from ../.
65869         * modules/crypto/gc-sha1: Moved from ../.
65870         * modules/crypto/gc-sha1-tests: Moved from ../.
65871         * modules/crypto/gc-tests: Moved from ../.
65872         * modules/crypto/hmac-md5: Moved from ../.
65873         * modules/crypto/hmac-md5-tests: Moved from ../.
65874         * modules/crypto/hmac-sha1: Moved from ../.
65875         * modules/crypto/hmac-sha1-tests: Moved from ../.
65876         * modules/crypto/md2: Moved from ../.
65877         * modules/crypto/md2-tests: Moved from ../.
65878         * modules/crypto/md4: Moved from ../.
65879         * modules/crypto/md4-tests: Moved from ../.
65880         * modules/crypto/md5: Moved from ../.
65881         * modules/crypto/md5-tests: Moved from ../.
65882         * modules/crypto/memxor: Moved from ../.
65883         * modules/crypto/rijndael: Moved from ../.
65884         * modules/crypto/rijndael-tests: Moved from ../.
65885         * modules/crypto/sha1: Moved from ../.
65886
65887 2007-03-30  James Youngman  <jay@gnu.org>
65888
65889         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65890         rename() to change the ctime of a file (because ctime is unaffected
65891         by rename on jfs2 on AIX 5.1).
65892         (main): Start by doing cleanup, in case a previous run failed leaving
65893         test files behind.
65894
65895 2007-03-31  Bruno Haible  <bruno@clisp.org>
65896
65897         Support old proprietary implementations of iconv.
65898         * modules/iconv_open: New file.
65899         * lib/iconv_.h: New file.
65900         * m4/iconv_h.m4: New file.
65901         * lib/iconv_open.c: New file.
65902         * lib/iconv_open-aix.gperf: New file.
65903         * lib/iconv_open-hpux.gperf: New file.
65904         * lib/iconv_open-irix.gperf: New file.
65905         * lib/iconv_open-osf.gperf: New file.
65906         * m4/iconv_open.m4: New file.
65907         * modules/linebreak (Depends-on): Add iconv_open.
65908         * modules/striconv (Depends-on): Likewise.
65909         * modules/striconveh (Depends-on): Likewise.
65910         * modules/unicodeio (Depends-on): Likewise.
65911         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65912         (iconv_t)(-1).
65913         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65914         conversion if cd is (iconv_t)(-1).
65915         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65916         is not possible.
65917
65918 2007-03-31  Bruno Haible  <bruno@clisp.org>
65919
65920         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65921         work on Solaris either. Protect also second use of "autodetect_jp".
65922
65923 2007-03-31  Bruno Haible  <bruno@clisp.org>
65924
65925         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65926         the function is not present.
65927
65928 2007-03-31  Bruno Haible  <bruno@clisp.org>
65929
65930         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65931         the function is not present.
65932
65933 2007-03-31  Bruno Haible  <bruno@clisp.org>
65934
65935         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65936         a bug in HP-UX iconv_open().
65937
65938 2007-03-31  Bruno Haible  <bruno@clisp.org>
65939
65940         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65941         (Mathematics <math.h>): New section, add fpieee.
65942         (Input/output <stdio.h>): Add fseterr.
65943         (Mathematics <math.h>): New section, add printf-frexp.
65944         (Container data structures): Add sublist.
65945         (Core language properties): Add fpucw, inline.
65946         (Functions for greatest-width integer types <inttypes.h>): Add
65947         imaxabs, imaxdiv, inttypes.
65948         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65949         isnanl-nolibm, ldexp.
65950         (Mathematics <math.h>): New section, add printf-frexpl.
65951         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65952         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65953         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65954         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65955         (Unicode string functions): Add unistr/u*-mbtoucr.
65956         (Java): Add javacomp-script, javaexec-script.
65957         (C#): Add csharpcomp-script, csharpexec-script.
65958         (Support for building libraries and executables): Add havelib,
65959         relocatable-*.
65960         (Support for maintaining and releasing projects): Renamed from
65961         'Support for maintaining and release projects'. Add announce-gen.
65962
65963 2007-03-31  Bruno Haible  <bruno@clisp.org>
65964
65965         * README: Talk primarily about git.
65966         (git and CVS): Renamed from CVS.
65967         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65968         gnulib is available through git.
65969         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65970
65971 2007-03-30  Bruno Haible  <bruno@clisp.org>
65972
65973         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65974         * lib/poll_.h: Likewise.
65975         * lib/stat_.h: Likewise.
65976         * lib/sys_time_.h: Likewise.
65977         * lib/sysexit_.h: Likewise.
65978         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65979         * lib/stdbool_.h: Likewise.
65980         * lib/byteswap_.h: Add double-inclusion guard.
65981
65982 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65983
65984         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65985
65986 2007-03-30  Karl Berry  <karl@gnu.org>
65987
65988         * config/srclist-update: double space after USA in the license
65989         substitution, since that's how it's usually (?) written.
65990
65991 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65992
65993         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65994         reported by Bruno Haible.
65995
65996 2007-03-29  Bruno Haible  <bruno@clisp.org>
65997
65998         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65999         a bug in AIX iconv().
66000
66001 2007-03-29  Bruno Haible  <bruno@clisp.org>
66002
66003         * modules/ldexpl-tests: New file.
66004         * tests/test-ldexpl.c: New file.
66005
66006 2007-03-29  Bruno Haible  <bruno@clisp.org>
66007
66008         * lib/ldexpl.c: Include fpucw.h.
66009         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66010         multiplication.
66011         * modules/ldexpl (Depends-on): Add fpucw.
66012
66013 2007-03-29  Bruno Haible  <bruno@clisp.org>
66014
66015         * modules/ldexpl: New file.
66016         * m4/ldexpl.m4: New file.
66017         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66018         set.
66019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66020         REPLACE_LDEXPL.
66021         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66022         REPLACE_LDEXPL.
66023         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66024         gl_FUNC_LDEXPL_WORKS.
66025         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66026         * modules/mathl (Files): Remove lib/ldexpl.c.
66027         (Depends-on): Add ldexpl.
66028
66029 2007-03-29  Bruno Haible  <bruno@clisp.org>
66030
66031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66032
66033 2007-03-29  Bruno Haible  <bruno@clisp.org>
66034
66035         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66036         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66037         and possibly also HP-UX.
66038         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66039         work on AIX, IRIX, HP-UX, OSF/1.
66040         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66041         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66042         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66043         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66044         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66045         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66046
66047 2007-03-29  Bruno Haible  <bruno@clisp.org>
66048
66049         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66050
66051 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66052
66053         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66054         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66055
66056 2007-03-29  Eric Blake  <ebb9@byu.net>
66057
66058         * lib/acl-internal.h: Remove redundant include.
66059         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66060         Cygwin when a file is locked.
66061
66062 2007-03-29  Bruno Haible  <bruno@clisp.org>
66063
66064         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66065         file.
66066         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66067
66068 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66069
66070         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66071         try to remove a parent directory if the child couldn't be removed
66072         (except for the first rmdir, which could fail because the child
66073         doesn't exist).  Problem reported by Jeff Blaine in
66074         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66075
66076 2007-03-28  Bruno Haible  <bruno@clisp.org>
66077
66078         * lib/striconveh.c (utf8conv_carefully): New function.
66079         (mem_cd_iconveh_internal): Invoke it.
66080
66081 2007-03-28  Bruno Haible  <bruno@clisp.org>
66082
66083         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66084         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66085         input.
66086         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66087         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66088         unistr/u8-uctomb.
66089
66090 2007-03-28  Bruno Haible  <bruno@clisp.org>
66091
66092         * modules/unistr/u8-mbtoucr: New file.
66093         * lib/unistr/u8-mbtoucr.c: New file.
66094         * modules/unistr/u16-mbtoucr: New file.
66095         * lib/unistr/u16-mbtoucr.c: New file.
66096         * modules/unistr/u16-mbtoucr: New file.
66097         * lib/unistr/u16-mbtoucr.c: New file.
66098         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66099
66100 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66101             Bruno Haible  <bruno@clisp.org>
66102
66103         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66104         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66105         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66106
66107         * m4/stdio_h.m4: Add stubs for vasprintf too.
66108
66109         * modules/stdio: Support vasprintf in sed command.
66110
66111         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66112         vasprintf.h.  Add stdio module indicator.
66113
66114         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66115         vasprintf.h.
66116
66117         * lib/vasprintf.h: File removed.
66118
66119         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66120         * lib/vasprintf.c: Ditto.
66121         * lib/xvasprintf.c: Ditto.
66122         * tests/test-vasprintf-posix.c: Ditto.
66123         * tests/test-vasprintf.c: Ditto.
66124
66125 2007-03-27  Bruno Haible  <bruno@clisp.org>
66126
66127         Make vasnprintf multithread-safe.
66128         * lib/vasnprintf.c (decimal_point_char): New function.
66129         (VASNPRINTF): Use it.
66130         Suggested by Simon Josefsson.
66131
66132 2007-03-27  Eric Blake  <ebb9@byu.net>
66133
66134         Support sub-second birthtime on cygwin.
66135         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66136         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66137         (get_stat_birthtime): Also work with st_birthtim.
66138
66139 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66140
66141         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66142         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66143         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66144         (get_stat_birthtime_ns): Simplify compile-time tests.
66145         (get_stat_birthtime): Change the API to look like
66146         get_stat_mtime etc., except return a negative tv_nsec on error.
66147         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66148         Don't check for "spare" fields.
66149         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66150         or for struct stat.st_birthtime, as these tests aren't used.
66151         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66152
66153 2007-03-27  Bruno Haible  <bruno@clisp.org>
66154
66155         * lib/stat-time.h: Include <sys/stat.h>.
66156
66157 2007-03-27  James Youngman  <jay@gnu.org>
66158
66159         * lib/stat-time.h (get_stat_birthtime): New function for
66160           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66161         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66162           and its variants.
66163         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66164         * modules/stat-time-test: New file.
66165         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66166
66167 2007-03-26  Bruno Haible  <bruno@clisp.org>
66168
66169         Better support of signalling NaNs.
66170         * lib/atanl.c: Include isnanl.h.
66171         (atanl): Perform test for NaN at the beginning of the function and
66172         through a call to isnanl.
66173         * lib/cosl.c: Include isnanl.h.
66174         (cosl): Perform test for NaN at the beginning of the function and
66175         through a call to isnanl.
66176         * lib/ldexpl.c: Include isnanl.h.
66177         (ldexpl): Perform test for NaN through a call to isnanl.
66178         * lib/logl.c: Include isnanl.h.
66179         (logl): Perform test for NaN at the beginning of the function and
66180         through a call to isnanl.
66181         * lib/sinl.c: Include isnanl.h.
66182         (sinl): Perform test for NaN at the beginning of the function and
66183         through a call to isnanl.
66184         * lib/sqrtl.c: Include isnanl.h.
66185         (sqrtl): Perform test for NaN at the beginning of the function and
66186         through a call to isnanl.
66187         * lib/tanl.c: Include isnanl.h.
66188         (tanl): Perform test for NaN at the beginning of the function and
66189         through a call to isnanl.
66190         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66191         * modules/mathl (Depends-on): Add isnanl.
66192
66193 2007-03-26  Eric Blake  <ebb9@byu.net>
66194
66195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66196         regression in logic sense of previous patch.
66197
66198 2007-03-26  Bruno Haible  <bruno@clisp.org>
66199
66200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66201         unportable shell command "if ! ...".
66202         Reported by Ralf Wildenhues.
66203
66204 2007-03-25  Bruno Haible  <bruno@clisp.org>
66205
66206         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66207         <sysexits.h> file, and only add EX_CONFIG.
66208         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66209         absolute file name and whether it is sufficient. Substitute also
66210         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66211         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66212         ABSOLUTE_SYSEXITS_H into sysexits.h.
66213
66214 2007-03-25  Bruno Haible  <bruno@clisp.org>
66215
66216         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66217         hints is NULL.
66218
66219 2007-03-25  Bruno Haible  <bruno@clisp.org>
66220
66221         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66222         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66223
66224 2007-03-25  Bruno Haible  <bruno@clisp.org>
66225
66226         * lib/vasnprintf.c: Include langinfo.h.
66227         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66228         multithread-safe.
66229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66234         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66238         Reported by Simon Josefsson.
66239
66240 2007-03-25  Bruno Haible  <bruno@clisp.org>
66241
66242         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66243         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66244         * modules/vasnprintf (Depends-on): Add stdint.
66245
66246 2007-03-25  Bruno Haible  <bruno@clisp.org>
66247
66248         * modules/fpieee: New file.
66249         * m4/fpieee.m4: New file.
66250         * modules/isnan-nolibm (Depends-on): Add fpieee.
66251         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66252         * modules/isnanl (Depends-on): Add fpieee.
66253
66254 2007-03-25  Bruno Haible  <bruno@clisp.org>
66255
66256         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66257
66258 2007-03-25  Bruno Haible  <bruno@clisp.org>
66259
66260         Avoid test failures on IRIX 6.5.
66261         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66262         (main): Use it.
66263         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66264         macros.
66265         (main): Use them.
66266
66267 2007-03-25  Bruno Haible  <bruno@clisp.org>
66268
66269         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66270         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66271         exists but doesn't work.
66272         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66273         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66275         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66276         math.h.
66277
66278 2007-03-25  Bruno Haible  <bruno@clisp.org>
66279
66280         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66281         returns inf. Needed on IRIX 6.5.
66282
66283 2007-03-25  Bruno Haible  <bruno@clisp.org>
66284
66285         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66286         (main): Use isnanl instead of x != x idiom.
66287         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66288
66289         * tests/test-frexp.c: Include isnan.h.
66290         (main): Use isnan instead of x != x idiom.
66291         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66292
66293 2007-03-25  Bruno Haible  <bruno@clisp.org>
66294
66295         * tests/test-frexp.c (NaN): New function/macro.
66296         (main): Use it instead of 0.0 / 0.0.
66297         * tests/test-isnan.c (NaN): New function/macro.
66298         (main): Use it instead of 0.0 / 0.0.
66299         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66300         (test_function): Use it instead of 0.0 / 0.0.
66301         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66302         (test_function): Use it instead of 0.0 / 0.0.
66303         * tests/test-snprintf-posix.h (NaN): New function/macro.
66304         (test_function): Use it instead of 0.0 / 0.0.
66305         * tests/test-sprintf-posix.h (NaN): New function/macro.
66306         (test_function): Use it instead of 0.0 / 0.0.
66307         * tests/test-fprintf-posix.h (NaN): New function/macro.
66308         (test_function): Use it instead of 0.0 / 0.0.
66309         * tests/test-printf-posix.h (NaN): New function/macro.
66310         (test_function): Use it instead of 0.0 / 0.0.
66311
66312         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66313
66314 2007-03-25  Bruno Haible  <bruno@clisp.org>
66315
66316         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66317
66318 2007-03-25  Bruno Haible  <bruno@clisp.org>
66319
66320         * lib/regexec.c (merge_state_with_log): Make static.
66321
66322 2007-03-25  Bruno Haible  <bruno@clisp.org>
66323
66324         * lib/trigl.c (kernel_rem_pio2): Make static.
66325
66326 2007-03-25  Bruno Haible  <bruno@clisp.org>
66327
66328         * lib/sincosl.c (sincosl_table): Make static.
66329
66330 2007-03-25  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66333         if the compiler does not support C99.
66334
66335 2007-03-25  Bruno Haible  <bruno@clisp.org>
66336
66337         * modules/time (Makefile.am): Ensure all rule action lines start with a
66338         tab.
66339
66340 2007-03-24  Bruno Haible  <bruno@clisp.org>
66341
66342         * modules/tsearch-tests: New file.
66343         * tests/test-tsearch.sh: New file.
66344         * tests/test-tsearch.c: New file, mostly copied from glibc.
66345
66346         * modules/search-tests: New file.
66347         * tests/test-search.c: New file.
66348
66349         * modules/search: New file.
66350         * lib/search_.h: New file, incorporating lib/tsearch.h.
66351         * m4/search_h.m4: New file.
66352         * lib/tsearch.h: Remove file.
66353         * lib/tsearch.c: Include search.h instead of tsearch.h.
66354         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66355         HAVE_TSEARCH.
66356         * modules/tsearch (Files): Remove lib/tsearch.h.
66357         (Depends-on): Add search.
66358         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66359         (Include): Change tsearch.h into search.h.
66360
66361 2007-03-24  Bruno Haible  <bruno@clisp.org>
66362
66363         * modules/fpucw: New file.
66364         * lib/fpucw.h: New file.
66365         * lib/frexp.c: Include fpucw.h.
66366         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66367         (FUNC): Use them.
66368         * lib/printf-frexp.c: Include fpucw.h.
66369         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66370         (FUNC): Use them.
66371         * lib/vasnprintf.c: Include fpucw.h.
66372         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66373         'long double' calculations.
66374         * tests/test-frexpl.c: Include fpucw.h.
66375         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66376         * tests/test-printf-frexpl.c: Include fpucw.h.
66377         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66378         * modules/frexpl (Depends-on): Add fpucw.
66379         * modules/printf-frexpl (Depends-on): Likewise.
66380         * modules/fprintf-posix (Depends-on): Likewise.
66381         * modules/snprintf-posix (Depends-on): Likewise.
66382         * modules/sprintf-posix (Depends-on): Likewise.
66383         * modules/vasnprintf-posix (Depends-on): Likewise.
66384         * modules/vasprintf-posix (Depends-on): Likewise.
66385         * modules/vfprintf-posix (Depends-on): Likewise.
66386         * modules/vsnprintf-posix (Depends-on): Likewise.
66387         * modules/vsprintf-posix (Depends-on): Likewise.
66388         * modules/frexpl-tests (Depends-on): Likewise.
66389         * modules/printf-frexpl-tests (Depends-on): Likewise.
66390
66391 2007-03-24  Bruno Haible  <bruno@clisp.org>
66392
66393         * lib/float+.h: New file.
66394         * lib/isnan.c: Include float+.h.
66395         (SIZE): New macro.
66396         (FUNC): Compare only SIZE bytes of the value.
66397         * lib/vasnprintf.c: Include float+.h.
66398         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66399         SIZEOF_LDBL or SIZEOF_DBL bytes.
66400         * modules/isnan-nolibm (Files): Add lib/float+.h.
66401         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66402         * modules/isnanl (Files): Add lib/float+.h.
66403         * modules/vasnprintf (Files): Add lib/float+.h.
66404
66405 2007-03-24  Bruno Haible  <bruno@clisp.org>
66406
66407         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66408         include isnanl-nolibm.h.
66409
66410 2007-03-24  Bruno Haible  <bruno@clisp.org>
66411
66412         * tests/test-read-file.c (main): Don't produce spurious output for
66413         expected situations. Make the test fail if it encountered unexpected
66414         results.
66415
66416 2007-03-24  Bruno Haible  <bruno@clisp.org>
66417
66418         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66419         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66420
66421 2007-03-24  Bruno Haible  <bruno@clisp.org>
66422
66423         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66424
66425 2007-03-24  Bruno Haible  <bruno@clisp.org>
66426
66427         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66428         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66429
66430         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66431         * modules/utf8-ucs4: Turn into a symbolic link to module
66432         unistr/u8-mbtouc.
66433
66434         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66435         utf8-ucs4-unsafe.
66436         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66437         unistr/u8-mbtouc-unsafe.
66438
66439         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66440         * modules/utf16-ucs4: Turn into a symbolic link to module
66441         unistr/u16-mbtouc.
66442
66443         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66444         utf16-ucs4-unsafe.
66445         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66446         unistr/u16-mbtouc-unsafe.
66447
66448         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66449         * modules/ucs4-utf8: Turn into a symbolic link to module
66450         unistr/u8-ubtomb.
66451
66452         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66453         * modules/ucs4-utf16: Turn into a symbolic link to module
66454         unistr/u16-ubtomb.
66455
66456 2007-03-24  Bruno Haible  <bruno@clisp.org>
66457
66458         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66459         Enable the function only if HAVE_INLINE.
66460         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66461         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66462         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66463         Enable the function only if HAVE_INLINE.
66464         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66465         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66466         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66467         Enable the function only if HAVE_INLINE.
66468         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66469         Enable the function only if HAVE_INLINE.
66470         * modules/utf8-ucs4: Update.
66471         * modules/utf8-ucs4-unsafe: Update.
66472         * modules/utf16-ucs4: Update.
66473         * modules/utf16-ucs4-unsafe: Update.
66474         * modules/ucs4-utf8: Update.
66475         * modules/ucs4-utf16: Update.
66476
66477 2007-03-24  Bruno Haible  <bruno@clisp.org>
66478
66479         * lib/utf8-ucs4.h: Remove file.
66480         * lib/utf8-ucs4-unsafe.h: Remove file.
66481         * lib/utf16-ucs4.h: Remove file.
66482         * lib/utf16-ucs4-unsafe.h: Remove file.
66483         * lib/ucs4-utf8.h: Remove file.
66484         * lib/ucs4-utf16.h: Remove file.
66485         * lib/unistr.h: Include their previous contents.
66486         * m4/utf-ucs4.m4: Remove file.
66487         * m4/ucs4-utf.m4: Remove file.
66488         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66489         (Depends-on): Add unistr/base.
66490         (configure.ac): Remove gl_UTF_UCS4.
66491         (Makefile.am): Update.
66492         (Include): Change to unistr.h.
66493         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66494         (Depends-on): Add unistr/base.
66495         (configure.ac): Remove gl_UTF_UCS4.
66496         (Makefile.am): Update.
66497         (Include): Change to unistr.h.
66498         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66499         (Depends-on): Add unistr/base.
66500         (configure.ac): Remove gl_UTF_UCS4.
66501         (Makefile.am): Update.
66502         (Include): Change to unistr.h.
66503         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66504         (Depends-on): Add unistr/base.
66505         (configure.ac): Remove gl_UTF_UCS4.
66506         (Makefile.am): Update.
66507         (Include): Change to unistr.h.
66508         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66509         (Depends-on): Add unistr/base.
66510         (configure.ac): Remove gl_UCS4_UTF.
66511         (Makefile.am): Update.
66512         (Include): Change to unistr.h.
66513         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66514         (Depends-on): Add unistr/base.
66515         (configure.ac): Remove gl_UCS4_UTF.
66516         (Makefile.am): Update.
66517         (Include): Change to unistr.h.
66518         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66519         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66520         utf8-ucs4-unsafe.h.
66521         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66522         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66523         utf16-ucs4-unsafe.h.
66524         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66525         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66526         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66527         * lib/unistr/u8-strchr.c: Likewise.
66528         * lib/unistr/u8-strrchr.c: Likewise.
66529         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66530         * lib/unistr/u16-strchr.c: Likewise.
66531         * lib/unistr/u16-strrchr.c: Likewise.
66532         * lib/striconveh.c: Update.
66533         * lib/linebreak.c: Update.
66534
66535 2007-03-24  Bruno Haible  <bruno@clisp.org>
66536
66537         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66538         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66539
66540 2007-03-22  Bruno Haible  <bruno@clisp.org>
66541
66542         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66543
66544 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66545
66546         * MODULES.html.sh (File system functions): New module write-any-file.
66547         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66548         * m4/write-any-file.m4: New files.
66549
66550 2007-03-23  Eric Blake  <ebb9@byu.net>
66551
66552         * gnulib-tool: Rearrange space-tab sequences, since some editors
66553         like to eat them.
66554
66555 2007-03-23  Eric Blake  <ebb9@byu.net>
66556
66557         * lib/version-etc.c (version_etc_va): Update license wording to
66558         be more concise.  Recommended by Richard Stallman.
66559
66560 2007-03-22  Bruno Haible  <bruno@clisp.org>
66561
66562         * lib/poll.c (MSG_PEEK): New fallback definition.
66563
66564 2007-03-22  Bruno Haible  <bruno@clisp.org>
66565
66566         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66567         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66568         (main): Update.
66569         Fixes a compilation error on BeOS.
66570
66571 2007-03-22  Bruno Haible  <bruno@clisp.org>
66572
66573         * modules/frexpl-tests: New file.
66574         * tests/test-frexpl.c: New file.
66575
66576         * modules/frexpl: New file.
66577         * m4/frexpl.m4: New file.
66578         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66579         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66581         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66582         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66583         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66584
66585 2007-03-22  Bruno Haible  <bruno@clisp.org>
66586
66587         * lib/frexpl.c: Share code with lib/frexp.c.
66588         * modules/mathl (Files): Add lib/frexp.c.
66589         (Depends-on): Add isnanl-nolibm.
66590
66591 2007-03-22  Bruno Haible  <bruno@clisp.org>
66592
66593         * modules/printf-frexp (Files): Add m4/frexp.m4.
66594         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66595         only if the found frexp function actually works.
66596
66597 2007-03-22  Bruno Haible  <bruno@clisp.org>
66598
66599         * lib/frexp.c: Remove older implementation that uses divisions.
66600
66601 2007-03-21  Bruno Haible  <bruno@clisp.org>
66602
66603         * modules/frexp-tests: New file.
66604         * tests/test-frexp.c: New file.
66605
66606         * modules/frexp: New file.
66607         * lib/frexp.c: New file.
66608         * m4/frexp.m4: New file.
66609         * lib/math_.h (frexp): New declaration.
66610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66611         REPLACE_FREXP.
66612         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66613
66614 2007-03-21  Bruno Haible  <bruno@clisp.org>
66615
66616         * modules/isnanl-tests: New file.
66617         * tests/test-isnanl.c: New file.
66618
66619         * modules/isnanl: New file.
66620         * lib/isnanl.h: New file.
66621         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66622         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66623         gl_FUNC_ISNANL_WORKS.
66624         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66625         New macros.
66626
66627 2007-03-21  Bruno Haible  <bruno@clisp.org>
66628
66629         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66630         lib/isnanl.h.
66631         (Include): Update.
66632         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66633         * lib/vasnprintf.c: Update.
66634         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66635         tests/test-isnanl.h, remove tests/test-isnanl.c.
66636         (Makefile.am): Update.
66637         * tests/test-isnanl-nolibm.c: New file.
66638         * tests/test-isnanl.h: New file.
66639         * tests/test-isnanl.c: Remove file.
66640
66641 2007-03-21  Jim Meyering  <jim@meyering.net>
66642
66643         When trying to open ".", treat ESTALE like EACCES.
66644         * lib/savewd.c (savewd_save): Resort to forking not just upon
66645         failure with EACCES, but also when errno is ESTALE.
66646
66647 2007-03-20  Bruno Haible  <bruno@clisp.org>
66648
66649         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66650         Needed on AIX 5.1. Reported by Matthew Woehlke.
66651
66652 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66653
66654         Suggestions by Bruno Haible:
66655         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66656         our own.
66657         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66658         * modules/acl (Depends-on): Add gettext.
66659
66660 2007-03-19  Bruno Haible  <bruno@clisp.org>
66661
66662         * modules/iconvme: Remove file.
66663         * lib/iconvme.h: Remove file.
66664         * lib/iconvme.c: Remove file.
66665         * m4/iconvme.m4: Remove file.
66666
66667 2007-03-19  Bruno Haible  <bruno@clisp.org>
66668
66669         * doc/relocatable-maint.texi: Break long shell script line.
66670         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66671
66672 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66675         handle file_has_acl.
66676         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66677         * lib/acl.c: Move header inclusions and related macro defns into
66678         lib/acl-internal.h.
66679         (S_ISLNK): Remove defn, since that's now done for us.
66680         (file_has_acl): Move to lib/file-has-acl.c.
66681         Call acl_trivial if available.  This is the crucial part of the fix.
66682         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66683         shared within the library.  Rewrite a bit, partly to make it compatible
66684         with the GNU coding style.
66685         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66686         Remove unnecessary double-quotes.
66687         Don't test for acl_to_text; the build will catch that.
66688         Replace acl_entries if it doesn't exist and it is needed.
66689         Check for -lsec and acl_trivial (as used on Solaris 10).
66690         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66691         lib/file-has-acl.c.
66692         (Depends-on): Add sys_stat, for S_ISLNK.
66693
66694 2007-03-19  Ben Pfaff  <blp@gnu.org>
66695
66696         * doc/gnulib.texi: Fix typos.
66697         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66698
66699 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66700
66701         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66702         If size is zero here, buf must be zero.
66703
66704 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66705
66706         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66707         <bruno@clisp.org>.
66708
66709 2007-03-18  Bruno Haible  <bruno@clisp.org>
66710
66711         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66712         Suggested by Eric Blake.
66713
66714 2007-03-18  Ben Pfaff  <blp@gnu.org>
66715
66716         * doc/relocatable.texi: Recommend using as prefix a directory
66717         that does not exist and will never be created.  Based on
66718         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66719         and others.
66720
66721 2007-03-17  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/fchownat.c: Include lchown.h.
66724
66725 2007-03-17  Bruno Haible  <bruno@clisp.org>
66726
66727         Fix endless loop when the given allocated size was > INT_MAX.
66728         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66729         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66730         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66731         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66732         * lib/sprintf.c (sprintf): Likewise.
66733
66734 2007-03-17  Bruno Haible  <bruno@clisp.org>
66735
66736         * tests/test-argp-2.sh (func_compare): Output a context diff.
66737
66738 2007-03-17  Bruno Haible  <bruno@clisp.org>
66739
66740         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66741         locale's decimal-point character.
66742
66743 2007-03-17  Bruno Haible  <bruno@clisp.org>
66744
66745         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66746         before comparing it. Needed because on some platforms (e.g. x86) a
66747         'long double' occupies less bytes than sizeof (long double).
66748
66749 2007-03-17  Bruno Haible  <bruno@clisp.org>
66750
66751         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66752         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66753         * tests/test-getaddrinfo.c (simple): Likewise.
66754         * tests/test-read-file.c (main): Likewise.
66755
66756 2007-03-17  Bruno Haible  <bruno@clisp.org>
66757
66758         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66759
66760 2007-03-17  Bruno Haible  <bruno@clisp.org>
66761
66762         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66763         unused variable.
66764
66765 2007-03-17  Bruno Haible  <bruno@clisp.org>
66766
66767         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66768         * tests/test-c-strncasecmp.c: Likewise.
66769
66770 2007-03-17  Bruno Haible  <bruno@clisp.org>
66771
66772         * modules/stdlib (Depends-on): Add unistd.
66773         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66774         Needed for MacOS X 10.3.
66775
66776 2007-03-17  Bruno Haible  <bruno@clisp.org>
66777
66778         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66779
66780 2007-03-17  Bruno Haible  <bruno@clisp.org>
66781
66782         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66783
66784 2007-03-17  Bruno Haible  <bruno@clisp.org>
66785
66786         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66787         to reflect files copied from gnulib (with or without modifications).
66788         Suggested by Jim Meyering.
66789
66790 2007-03-17  Eric Blake  <ebb9@byu.net>
66791
66792         * NEWS: Document stdlib change from 2007-02-18.
66793
66794 2007-03-17  Jim Meyering  <jim@meyering.net>
66795
66796         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66797         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66798         someone uses a name containing shell meta-characters.
66799         Reported by Alfred M. Szmidt.
66800
66801         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66802
66803 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66804
66805         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66806         and copy gettext configuration files only if configure.ac contains
66807         a use of AM_GNU_GETTEXT_VERSION.
66808
66809 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66810
66811         * build-aux/bootstrap (gnulib_name): New variable.
66812         (gnulib_tool_options): Use it.
66813
66814 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66815
66816         * tests/test-des.c: Use new namespace.
66817
66818 2007-03-15  Bruno Haible  <bruno@clisp.org>
66819
66820         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66821         Reported by James Youngman <jay@gnu.org>.
66822
66823 2007-03-15  Bruno Haible  <bruno@clisp.org>
66824
66825         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66826         declared prototype. Needed with cc on OSF/1 5.1.
66827
66828 2007-03-15  Bruno Haible  <bruno@clisp.org>
66829
66830         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66831         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66832         (struct gl_list_implementation): Add dispose_fn argument to the
66833         'create_empty', 'create' methods.
66834         (struct gl_list_impl_base): Add field 'dispose_fn'.
66835         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66836         argument.
66837         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66838         dispose_fn argument.
66839         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66840         dispose_fn on the dropped values.
66841         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66842         dispose_fn argument.
66843         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66844         dropped values.
66845         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66846         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66847         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66848         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66849         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66850         argument.
66851         (gl_tree_list_free): Call dispose_fn on the dropped values.
66852         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66853         the dropped values.
66854         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66855         Add dispose_fn argument.
66856         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66857         Call dispose_fn on the dropped values.
66858         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66859         Add dispose_fn argument.
66860         (gl_sublist_create): Initialize the 'dispose_fn' field.
66861         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66862         * tests/test-array_list.c (main): Update.
66863         * tests/test-carray_list.c (main): Update.
66864         * tests/test-avltree_list.c (main): Update.
66865         * tests/test-rbtree_list.c (main): Update.
66866         * tests/test-avltreehash_list.c (main): Update.
66867         * tests/test-rbtreehash_list.c (main): Update.
66868         * tests/test-linked_list.c (main): Update.
66869         * tests/test-linkedhash_list.c (main): Update.
66870         * tests/test-array_oset.c (main): Update.
66871
66872 2007-03-15  Bruno Haible  <bruno@clisp.org>
66873
66874         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66875         (gl_oset_create_empty): Add dispose_fn argument.
66876         (struct gl_oset_implementation): Add dispose_fn argument to
66877         'create_empty' method.
66878         (struct gl_oset_impl_base): Add dispose_fn field.
66879         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66880         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66881         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66882         values.
66883         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66884         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66885         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66886         dropped value.
66887         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66888         dropped value.
66889         * tests/test-array_oset.c (main): Update.
66890         * tests/test-avltree_oset.c (main): Update.
66891         * tests/test-rbtree_oset.c (main): Update.
66892         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66893
66894 2007-03-13  Bruno Haible  <bruno@clisp.org>
66895
66896         * tests/test-stdbool.c (i): Update after last patch.
66897
66898 2007-03-12  Bruno Haible  <bruno@clisp.org>
66899
66900         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66901         the iswprint macro. Needed on Solaris 2.5.1.
66902
66903 2007-03-12  Bruno Haible  <bruno@clisp.org>
66904
66905         * tests/test-printf-frexp.c (main): Declare x as volatile.
66906
66907 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66908
66909         * doc/gnulib.texi (Build robot for gnulib): New section.
66910
66911 2007-03-12  Jim Meyering  <jim@meyering.net>
66912
66913         * build-aux/bootstrap: New file.
66914         * build-aux/bootstrap.conf: New file, from coreutils.
66915
66916 2007-03-11  Bruno Haible  <bruno@clisp.org>
66917
66918         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66919
66920 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66921
66922         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66923         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66924         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66925
66926 2007-03-11  Bruno Haible  <bruno@clisp.org>
66927
66928         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66929         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66930
66931 2007-03-11  Bruno Haible  <bruno@clisp.org>
66932
66933         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66934         formula. Needed for SunPRO C 5.0.
66935
66936 2007-03-11  Bruno Haible  <bruno@clisp.org>
66937
66938         * modules/long-options (Depends-on): Add getopt.
66939
66940 2007-03-11  Bruno Haible  <bruno@clisp.org>
66941
66942         * modules/modechange (Depends-on): Add stdbool.
66943
66944 2007-03-11  Bruno Haible  <bruno@clisp.org>
66945
66946         * modules/i-ring (Depends-on): Add stdbool.
66947
66948 2007-03-11  Bruno Haible  <bruno@clisp.org>
66949
66950         * modules/gc-des (Depends-on): Add stdbool.
66951
66952 2007-03-11  Bruno Haible  <bruno@clisp.org>
66953
66954         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66955
66956 2007-03-11  Bruno Haible  <bruno@clisp.org>
66957
66958         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66959
66960 2007-03-11  Bruno Haible  <bruno@clisp.org>
66961
66962         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66963
66964 2007-03-11  Bruno Haible  <bruno@clisp.org>
66965
66966         * lib/vasnprintf.c (sprintf): Undefine.
66967
66968 2007-03-11  Bruno Haible  <bruno@clisp.org>
66969
66970         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66971         initializers in SunPRO C and Compaq C compilers.
66972
66973 2007-03-11  Bruno Haible  <bruno@clisp.org>
66974
66975         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66976         decrementing code ANSI C compliant.
66977
66978 2007-03-11  Bruno Haible  <bruno@clisp.org>
66979
66980         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66981         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66982
66983 2007-03-11  Bruno Haible  <bruno@clisp.org>
66984
66985         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66986         <stdbool.h> substitute doesn't pass.
66987
66988 2007-03-11  Bruno Haible  <bruno@clisp.org>
66989
66990         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66991
66992 2007-03-11  Bruno Haible  <bruno@clisp.org>
66993
66994         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66995         script, for submission to autobuild.josefsson.org.
66996
66997 2007-03-10  Bruno Haible  <bruno@clisp.org>
66998
66999         * modules/canonicalize-lgpl-tests: New file.
67000         * tests/test-canonicalize-lgpl.sh: New file.
67001         * tests/test-canonicalize-lgpl.c: New file.
67002
67003         * modules/c-strcase-tests: New file.
67004         * tests/test-c-strcase.sh: New file.
67005         * tests/test-c-strcasecmp.c: New file.
67006         * tests/test-c-strncasecmp.c: New file.
67007
67008         * modules/atexit-tests: New file.
67009         * tests/test-atexit.sh: New file.
67010         * tests/test-atexit.c: New file.
67011
67012 2007-03-10  Bruno Haible  <bruno@clisp.org>
67013
67014         * tests/test-binary-io.sh: Use temporary filenames that are not so
67015         likely to clash with those of other tests (in a parallel make).
67016         * tests/test-binary-io.c: Likewise.
67017
67018 2007-03-10  Bruno Haible  <bruno@clisp.org>
67019
67020         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67021         fallback; use #error instead.
67022         Suggested by Simon Josefsson.
67023
67024 2007-03-10  Bruno Haible  <bruno@clisp.org>
67025
67026         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67027         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67028         first and the last.
67029
67030 2007-03-10  Bruno Haible  <bruno@clisp.org>
67031
67032         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67033
67034 2007-03-10  Bruno Haible  <bruno@clisp.org>
67035
67036         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67037         "make distcheck".
67038         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67039         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67040         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67041
67042 2007-03-10  Bruno Haible  <bruno@clisp.org>
67043
67044         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67045         variable.
67046         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67047         variable.
67048
67049 2007-03-09  Eric Blake  <ebb9@byu.net>
67050         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67051
67052         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67053         types are not being provided by gnulib.
67054         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67055         types are supported.
67056
67057 2007-03-10  Bruno Haible  <bruno@clisp.org>
67058
67059         * lib/stdio_.h (__attribute__): New macro.
67060         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67061         vsprintf): Specify __attribute__ __format__ for GCC.
67062         Suggested by Eric Blake.
67063
67064 2007-03-09  Bruno Haible  <bruno@clisp.org>
67065
67066         * modules/printf-posix-tests: New file.
67067         * tests/test-printf-posix.sh: New file.
67068         * tests/test-printf-posix.c: New file.
67069
67070         * modules/printf-posix: New file.
67071         * lib/printf.c: New file.
67072         * m4/printf-posix-rpl.m4: New file.
67073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67074         REPLACE_PRINTF.
67075         * lib/stdio_.h (printf): New declaration.
67076         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67077         ____strfmon____): New macros.
67078         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67079         REPLACE_PRINTF.
67080
67081 2007-03-09  Bruno Haible  <bruno@clisp.org>
67082
67083         * tests/test-vasnprintf-posix2.sh: New file.
67084         * tests/test-vasnprintf-posix2.c: New file.
67085         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67086         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67087         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67088
67089         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67090         a locale dependent decimal point, rather than always '.'.
67091
67092 2007-03-09  Eric Blake  <ebb9@byu.net>
67093
67094         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67095         spite of platforms like Tandem/NSK that define it to -1.
67096
67097 2007-03-08  Bruno Haible  <bruno@clisp.org>
67098
67099         * modules/vprintf-posix-tests: New file.
67100         * tests/test-vprintf-posix.sh: New file.
67101         * tests/test-vprintf-posix.c: New file.
67102         * tests/test-printf-posix.h: New file.
67103
67104         * modules/vprintf-posix: New file.
67105         * lib/vprintf.c: New file.
67106         * m4/vprintf-posix.m4: New file.
67107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67108         REPLACE_VPRINTF.
67109         * lib/stdio_.h (vprintf): New declaration.
67110         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67111         REPLACE_VPRINTF.
67112
67113 2007-03-08  Bruno Haible  <bruno@clisp.org>
67114
67115         * modules/fprintf-posix-tests: New file.
67116         * tests/test-fprintf-posix.sh: New file.
67117         * tests/test-fprintf-posix.c: New file.
67118
67119         * modules/fprintf-posix: New file.
67120         * lib/fprintf.c: New file.
67121         * m4/fprintf-posix.m4: New file.
67122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67123         REPLACE_FPRINTF.
67124         * lib/stdio_.h (fprintf): New declaration.
67125         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67126         REPLACE_FPRINTF.
67127
67128 2007-03-08  Bruno Haible  <bruno@clisp.org>
67129
67130         * modules/vfprintf-posix-tests: New file.
67131         * tests/test-vfprintf-posix.sh: New file.
67132         * tests/test-vfprintf-posix.c: New file.
67133         * tests/test-fprintf-posix.h: New file.
67134         * tests/test-fprintf-posix.out: New file.
67135
67136         * modules/vfprintf-posix: New file.
67137         * lib/vfprintf.c: New file.
67138         * m4/vfprintf-posix.m4: New file.
67139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67140         REPLACE_VFPRINTF.
67141         * lib/stdio_.h (vfprintf): New declaration.
67142         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67143         REPLACE_VFPRINTF.
67144
67145 2007-03-08  Bruno Haible  <bruno@clisp.org>
67146
67147         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67148
67149 2007-03-08  Bruno Haible  <bruno@clisp.org>
67150
67151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67152         instead of 'expr' invocations.
67153         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67154         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67155         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67156         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67157         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67158         Suggested by Paul Eggert.
67159
67160 2007-03-08  Bruno Haible  <bruno@clisp.org>
67161
67162         * modules/fseterr-tests: New file.
67163         * tests/test-fseterr.c: New file.
67164
67165         * modules/fseterr: New file.
67166         * lib/fseterr.h: New file.
67167         * lib/fseterr.c: New file.
67168
67169 2007-03-08  Bruno Haible  <bruno@clisp.org>
67170
67171         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67172         * lib/getopt_.h: Likewise.
67173         * lib/mbswidth.h: Likewise.
67174         * lib/setenv.h: Likewise.
67175         * lib/vasnprintf.h: Likewise.
67176         * lib/vasprintf.h: Likewise.
67177         * lib/verror.h: Likewise.
67178         * lib/xsetenv.h: Likewise.
67179         * lib/xvasprintf.h: Likewise.
67180
67181 2007-03-08  Jim Meyering  <jim@meyering.net>
67182
67183         * users.txt: Add parted.
67184
67185         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67186
67187 2007-03-07  Bruno Haible  <bruno@clisp.org>
67188
67189         * m4/printf.m4: Make the shell script snippets copy&pastable.
67190
67191 2007-03-02  Bruno Haible  <bruno@clisp.org>
67192
67193         * lib/netinet_in_.h: New file.
67194         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67195         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67196         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67197         (Depends-on): Add absolute-header.
67198         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67199         into netinet/in.h.
67200
67201 2007-03-03  Bruno Haible  <bruno@clisp.org>
67202
67203         * lib/sys_select_.h: New file.
67204         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67205         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67206         * modules/sys_select (Files): Add lib/sys_select_.h.
67207         (Depends-on): Add absolute-header.
67208         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67209         into sys/select.h.
67210
67211 2007-03-02  Bruno Haible  <bruno@clisp.org>
67212
67213         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67214         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67215         values.
67216         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67217         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67218         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67219         * modules/sys_socket (Depends-on): Add absolute-header.
67220         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67221         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67222         (Include): Remove requirement of inclusion of <sys/types.h>.
67223
67224 2007-03-02  Bruno Haible  <bruno@clisp.org>
67225
67226         * lib/byteswap_.h (bswap_32): Fix formula.
67227
67228 2007-03-06  Bruno Haible  <bruno@clisp.org>
67229
67230         * modules/sprintf-posix-tests: New file.
67231         * tests/test-sprintf-posix.c: New file.
67232
67233         * modules/sprintf-posix: New file.
67234         * lib/sprintf.c: New file.
67235         * m4/sprintf-posix.m4: New file.
67236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67237         REPLACE_SPRINTF.
67238         * lib/stdio_.h (sprintf): New declaration.
67239         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67240         REPLACE_SPRINTF.
67241
67242 2007-03-06  Bruno Haible  <bruno@clisp.org>
67243
67244         * modules/vsprintf-posix-tests: New file.
67245         * tests/test-vsprintf-posix.c: New file.
67246         * tests/test-sprintf-posix.h: New file.
67247
67248         * modules/vsprintf-posix: New file.
67249         * lib/vsprintf.c: New file.
67250         * m4/vsprintf-posix.m4: New file.
67251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67252         REPLACE_VSPRINTF.
67253         * lib/stdio_.h (vsprintf): New declaration.
67254         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67255         REPLACE_VSPRINTF.
67256
67257 2007-03-06  Bruno Haible  <bruno@clisp.org>
67258
67259         * modules/vsnprintf (Depend-on): Remove minmax.
67260
67261 2007-03-06  Bruno Haible  <bruno@clisp.org>
67262
67263         * modules/snprintf-posix-tests: New file.
67264         * tests/test-snprintf-posix.c: New file.
67265
67266         * modules/snprintf-posix: New file.
67267         * m4/snprintf-posix.m4: New file.
67268         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67269         gl_FUNC_SNPRINTF.
67270         (gl_FUNC_SNPRINTF): Invoke it.
67271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67272         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67273         is set.
67274         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67275
67276 2007-03-06  Bruno Haible  <bruno@clisp.org>
67277
67278         * modules/vsnprintf-posix-tests: New file.
67279         * tests/test-vsnprintf-posix.c: New file.
67280         * tests/test-snprintf-posix.h: New file.
67281
67282         * modules/vsnprintf-posix: New file.
67283         * m4/vsnprintf-posix.m4: New file.
67284         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67285         gl_FUNC_VSNPRINTF.
67286         (gl_FUNC_VSNPRINTF): Invoke it.
67287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67288         * lib/stdio_.h (vsnprintf): Define as a replacement if
67289         REPLACE_VSNPRINTF is set.
67290         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67291
67292 2007-03-06  Bruno Haible  <bruno@clisp.org>
67293
67294         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67295         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67296
67297 2007-03-06  Bruno Haible  <bruno@clisp.org>
67298
67299         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67300         (asinl): Declare also if HAVE_DECL_ASINL is set.
67301         (atanl): Declare also if HAVE_DECL_ATANL is set.
67302         (ceill): Declare also if HAVE_DECL_CEILL is set.
67303         (cosl): Declare also if HAVE_DECL_COSL is set.
67304         (expl): Declare also if HAVE_DECL_EXPL is set.
67305         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67306         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67307         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67308         (logl): Declare also if HAVE_DECL_LOGL is set.
67309         (sinl): Declare also if HAVE_DECL_SINL is set.
67310         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67311         (tanl): Declare also if HAVE_DECL_TANL is set.
67312         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67314         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67315         declaration of frexpl, ldexpl.
67316         * modules/printf-frexpl (Depends-on): Add math.
67317         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67318
67319 2007-03-05  Bruno Haible  <bruno@clisp.org>
67320
67321         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67322         frexpl and ldexpl are declared.
67323         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67324
67325 2007-03-05  Bruno Haible  <bruno@clisp.org>
67326
67327         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67328         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67329
67330 2007-03-05  Bruno Haible  <bruno@clisp.org>
67331
67332         * lib/stdio_.h: Include <stddef.h>.
67333
67334 2007-03-05  Bruno Haible  <bruno@clisp.org>
67335
67336         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67337
67338 2007-03-05  Bruno Haible  <bruno@clisp.org>
67339
67340         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67341         NetBSD 4, from Ralf Wildenhues.
67342
67343 2007-03-04  Bruno Haible  <bruno@clisp.org>
67344
67345         * lib/vasprintf.h: Update #if logic for the case when the functions
67346         exist but are overridden.
67347
67348 2007-03-04  Bruno Haible  <bruno@clisp.org>
67349
67350         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67351         implementations: glibc-2.4 and MacOS X 10.3.
67352         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67353         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67354         * tests/test-vasprintf-posix.c (test_function): Likewise.
67355
67356 2007-03-04  Bruno Haible  <bruno@clisp.org>
67357
67358         * modules/vasprintf-posix-tests: New file.
67359         * tests/test-vasprintf-posix.c: New file.
67360
67361         * modules/vasprintf-posix: New file.
67362         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67363         defined.
67364         * m4/vasprintf-posix.m4: New file.
67365         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67366         gl_FUNC_VASPRINTF.
67367         (gl_FUNC_VASPRINTF): Invoke it.
67368         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67369         here.
67370         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67371
67372 2007-03-04  Bruno Haible  <bruno@clisp.org>
67373
67374         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67375         REPLACE_GETTIMEOFDAY.
67376         * modules/sys_time (Makefile.am): Likewise.
67377         * m4/sys_time_h.m4: Likewise.
67378         * m4/gettimeofday.m4: Likewise.
67379
67380 2007-03-04  Bruno Haible  <bruno@clisp.org>
67381
67382         * modules/vasnprintf-posix-tests: New file.
67383         * tests/test-vasnprintf-posix.c: New file.
67384
67385         * modules/vasnprintf-posix: New file.
67386         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67387         printf-frexpl.h.
67388         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67389         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67390         REPLACE_VASNPRINTF is defined.
67391         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67392         gl_FUNC_VASNPRINTF.
67393         (gl_FUNC_VASNPRINTF): Invoke it.
67394         * m4/vasnprintf-posix.m4: New file.
67395         * m4/printf.m4: New file.
67396
67397 2007-03-04  Bruno Haible  <bruno@clisp.org>
67398
67399         Compile progreloc.c only if --enable-relocatable is specified.
67400         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67401         if --enable-relocatable was specified.
67402         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67403         lib_SOURCES.
67404
67405 2007-03-04  Jim Meyering  <jim@meyering.net>
67406
67407         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67408         Use it consistently, rather than enumerating errno constants.
67409
67410 2007-03-04  Bruno Haible  <bruno@clisp.org>
67411
67412         * modules/xvasprintf-tests: New file.
67413         * tests/test-xvasprintf.c: New file.
67414
67415         * modules/vasprintf-tests: New file.
67416         * tests/test-vasprintf.c: New file.
67417
67418         * modules/vasnprintf-tests: New file.
67419         * tests/test-vasnprintf.c: New file.
67420
67421         * modules/vsnprintf-tests: New file.
67422         * tests/test-vsnprintf.c: New file.
67423
67424         * modules/snprintf-tests: New file.
67425         * tests/test-snprintf.c: New file.
67426
67427 2007-03-04  Bruno Haible  <bruno@clisp.org>
67428
67429         Compile relocatable.c only if --enable-relocatable is specified.
67430         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67431         gl_RELOCATABLE_LIBRARY.
67432         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67433         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67434         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67435         gl_RELOCATABLE_LIBRARY.
67436         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67437         (Makefile.am): Remove lib_SOURCES.
67438         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67439         gl_RELOCATABLE_LIBRARY.
67440         (Makefile.am): Remove lib_SOURCES.
67441         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67442         always.
67443         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67444         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67445
67446 2007-03-04  Bruno Haible  <bruno@clisp.org>
67447
67448         * modules/argmatch-tests: New file.
67449         * tests/test-argmatch.c: New file.
67450
67451         * tests/test-allocsa.c (main): Halve the number of loop runs.
67452
67453         * modules/alloca-opt-tests: New file.
67454         * tests/test-alloca-opt.c: New file.
67455
67456 2007-03-04  Jim Meyering  <jim@meyering.net>
67457
67458         Work around difference between Linux ACLs and Solaris 10 ZFS.
67459         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67460         for EINVAL.
67461
67462 2007-03-03  Bruno Haible  <bruno@clisp.org>
67463
67464         * modules/relocatable-prog (Depends-on): Add back progreloc's
67465         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67466
67467 2007-03-03  Bruno Haible  <bruno@clisp.org>
67468
67469         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67470         * modules/relocatable-lib: New file.
67471
67472 2007-03-03  Bruno Haible  <bruno@clisp.org>
67473
67474         * modules/relocatable-prog: Renamed from modules/relocatable.
67475         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67476
67477 2007-03-03  Bruno Haible  <bruno@clisp.org>
67478
67479         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67480         m4/relocatable-lib.m4.
67481         (Depends-on): Remove 'relocatable'.
67482         (configure.ac): Add gl_RELOCATABLE_NOP.
67483
67484 2007-03-03  Bruno Haible  <bruno@clisp.org>
67485
67486         * modules/relocatable-prog-wrapper: New file.
67487         * modules/relocatable (Depends-on): Add it. Remove all other
67488         dependencies except progname.
67489         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67490
67491         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67492         (gl_FUNC_STRERROR): Nop.
67493         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67494
67495         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67496         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67497
67498         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67499         (gl_FUNC_READLINK): Update.
67500
67501         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67502
67503 2007-03-03  Bruno Haible  <bruno@clisp.org>
67504
67505         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67506         * modules/xreadlink (Depends-on): Add unistd.
67507         * modules/xreadlink-with-size (Depends-on): Likewise.
67508
67509 2007-03-03  Bruno Haible  <bruno@clisp.org>
67510
67511         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67512         extracted from gt_FUNC_SETENV.
67513         (gt_FUNC_SETENV): Remove macro.
67514         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67515         remove gt_FUNC_SETENV.
67516
67517 2007-03-03  Bruno Haible  <bruno@clisp.org>
67518
67519         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67520         ENABLE_RELOCATABLE here.
67521         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67522
67523 2007-03-03  Bruno Haible  <bruno@clisp.org>
67524
67525         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67526         * tests/test-rbtreehash_list.c: Include progname.h.
67527         (main): Call set_program_name.
67528
67529         * modules/rbtree-oset-tests (Depends-on): Add progname.
67530         * tests/test-rbtree_oset.c: Include progname.h.
67531         (main): Call set_program_name.
67532
67533         * modules/rbtree-list-tests (Depends-on): Add progname.
67534         * tests/test-rbtree_list.c: Include progname.h.
67535         (main): Call set_program_name.
67536
67537         * modules/linked-list-tests (Depends-on): Add progname.
67538         * tests/test-linked_list.c: Include progname.h.
67539         (main): Call set_program_name.
67540
67541 2007-03-03  Bruno Haible  <bruno@clisp.org>
67542
67543         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67544         All uses of __restrict changed to _Restrict_.
67545         * lib/glob_.h (__restrict): Remove macro.
67546
67547 2007-03-02  Bruno Haible  <bruno@clisp.org>
67548
67549         * modules/gettext (configure.ac): Require gettext infrastructure
67550         from version 0.16.1.
67551
67552 2007-03-02  Bruno Haible  <bruno@clisp.org>
67553
67554         * modules/linkedhash-list-tests (Depends-on): Add progname.
67555         * tests/test-linkedhash_list.c: Include progname.h.
67556         (main): Call set_program_name.
67557
67558         * modules/carray-list-tests (Depends-on): Add progname.
67559         * tests/test-carray_list.c: Include progname.h.
67560         (main): Call set_program_name.
67561
67562         * modules/avltreehash-list-tests (Depends-on): Add progname.
67563         * tests/test-avltreehash_list.c: Include progname.h.
67564         (main): Call set_program_name.
67565
67566         * modules/avltree-oset-tests (Depends-on): Add progname.
67567         * tests/test-avltree_oset.c: Include progname.h.
67568         (main): Call set_program_name.
67569
67570         * modules/avltree-list-tests (Depends-on): Add progname.
67571         * tests/test-avltree_list.c: Include progname.h.
67572         (main): Call set_program_name.
67573
67574         * modules/array-oset-tests (Depends-on): Add progname.
67575         * tests/test-array_oset.c: Include progname.h.
67576         (main): Call set_program_name.
67577
67578         * modules/array-list-tests (Depends-on): Add progname.
67579         * tests/test-array_list.c: Include progname.h.
67580         (main): Call set_program_name.
67581
67582         * modules/argp-tests (Depends-on): Add progname.
67583         * tests/test-argp.c: Include argp.h first. Include progname.h.
67584         (main): Call set_program_name.
67585
67586 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67587
67588         * doc/gnulib-tool.texi (Initial import): Reword description of
67589         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67590         limited effect even if defined after the first system include.
67591
67592 2007-03-01  Bruno Haible  <bruno@clisp.org>
67593
67594         * build-aux/config.libpath: Update to libtool-1.5.22.
67595         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67596
67597 2007-03-01  Bruno Haible  <bruno@clisp.org>
67598
67599         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67600         foo_CFLAGS.
67601         Reported by Ralf Wildenhues.
67602
67603 2007-03-01  Bruno Haible  <bruno@clisp.org>
67604
67605         * build-aux/install-reloc: Remove object files left over by some
67606         compilers.
67607         Reported by Ralf Wildenhues.
67608
67609 2007-03-01  Bruno Haible  <bruno@clisp.org>
67610
67611         * build-aux/install-reloc: Break long lines.
67612
67613 2007-03-01  Bruno Haible  <bruno@clisp.org>
67614
67615         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67616         Reported by Ralf Wildenhues.
67617
67618 2007-03-01  Bruno Haible  <bruno@clisp.org>
67619
67620         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67621         include ordering constraints.
67622
67623 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67624
67625         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67626         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67627         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67628         as another example.
67629         * lib/time_.h: Fix misspelling.
67630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67631         Require gl_HEADER_TIME_H_DEFAULTS.
67632         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67633         * m4/time_r.m4 (gl_TIME_R): Likewise.
67634         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67635
67636 2007-03-01  Bruno Haible  <bruno@clisp.org>
67637
67638         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67639         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67640
67641 2007-03-01  Jim Meyering  <jim@meyering.net>
67642
67643         * modules/xreadlink (Maintainer): Add my name.
67644         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67645
67646 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67647             Bruno Haible  <bruno@clisp.org>
67648
67649         * build-aux/install-reloc: Compile also c-ctype.c.
67650         * build-aux/relocatable.sh.in: New file.
67651         * doc/relocatable.texi: New file.
67652         * doc/relocatable-maint.texi: New file.
67653         * doc/gnulib.texi: Include relocatable-maint.texi.
67654         * lib/progreloc.c: Include unistd.h unconditionally.
67655         * lib/relocwrapper.c: Include unistd.h unconditionally.
67656         Include c-ctype.h.
67657         (add_dotbin): Use c_tolower.
67658         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67659         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67660         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67661         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67662         to m4/relocatable-lib.m4.
67663         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67664         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67665         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67666         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67667         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67668         * modules/relocatable: New file.
67669         * modules/relocatable-lib: New file.
67670         * modules/relocatable-script: New file.
67671
67672 2007-02-28  Bruno Haible  <bruno@clisp.org>
67673
67674         Import --enable-relocatable infrastructure.
67675         * build-aux/config.libpath: New file, from GNU gettext.
67676         * build-aux/install-reloc: New file, from GNU gettext.
67677         * build-aux/reloc-ldflags: New file, from GNU gettext.
67678         * lib/relocatable.h: New file, from GNU gettext.
67679         * lib/relocatable.c: New file, from GNU gettext.
67680         * lib/relocwrapper.c: New file, from GNU gettext.
67681         * m4/relocatable.m4: New file, from GNU gettext.
67682
67683 2007-02-28  Bruno Haible  <bruno@clisp.org>
67684
67685         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67686
67687         * modules/xreadlink: New file, from GNU gettext with modifications.
67688         * lib/xreadlink.c: New file, from GNU gettext.
67689         * lib/xreadlink.h: Add comments.
67690         (xreadlink): New declaration.
67691
67692         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67693         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67694         lib/xreadlink-with-size.c.
67695         (configure.ac): Remove gl_XREADLINK invocation.
67696         (Makefile.am): Augment lib_SOURCES.
67697         * m4/xreadlink.m4: Remove file.
67698         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67699         (xreadlink_with_size): Renamed from xreadink.
67700         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67701         * modules/canonicalize (Depends-on): Replace xreadlink with
67702         xreadlink-with-size.
67703         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67704
67705 2007-02-25  Jim Meyering  <jim@meyering.net>
67706
67707         * build-aux/announce-gen: When complaining about excess arguments,
67708         list them.
67709
67710 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         * README: Document signed integer overflow situation more
67713         accurately.
67714
67715 2007-02-25  Bruno Haible  <bruno@clisp.org>
67716
67717         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67718         'a' or 'A' conversion.
67719
67720 2007-02-25  Bruno Haible  <bruno@clisp.org>
67721
67722         * modules/filename: Renamed from modules/pathname.
67723         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67724         lib/concatpath.c with lib/concat-filename.c.
67725         (Makefile.am): Update.
67726         (Include): Replace pathname.h with filename.h.
67727         * lib/filename.h: Renamed from lib/pathname.h.
67728         (concatenated_filename): Renamed from concatenated_pathname.
67729         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67730         (concatenated_filename): Renamed from concatenated_pathname.
67731         * lib/findprog.c: Include filename.h instead of pathname.h.
67732         (find_in_path): Update.
67733         * lib/javacomp.c: Include filename.h instead of pathname.h.
67734         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67735         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67736         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67737         is_oldgcj_14_13_usable, is_javac_usable): Update.
67738         * lib/javaexec.c: Include filename.h instead of pathname.h.
67739         (execute_java_class): Update.
67740         * modules/findprog: Update.
67741         * modules/javacomp: Update.
67742         * modules/javaexec: Update.
67743         * MODULES.html.sh (File system functions): Add 'filename', remove
67744         'pathname'.
67745
67746 2007-02-25  Bruno Haible  <bruno@clisp.org>
67747
67748         * modules/printf-frexpl-tests: New file.
67749         * tests/test-printf-frexpl.c: New file.
67750
67751         * modules/printf-frexpl: New file.
67752         * lib/printf-frexpl.h: New file.
67753         * lib/printf-frexpl.c: New file.
67754         * m4/printf-frexpl.m4: New file.
67755
67756 2007-02-25  Bruno Haible  <bruno@clisp.org>
67757
67758         * modules/printf-frexp-tests: New file.
67759         * tests/test-printf-frexp.c: New file.
67760
67761         * modules/printf-frexp: New file.
67762         * lib/printf-frexp.h: New file.
67763         * lib/printf-frexp.c: New file.
67764         * m4/printf-frexp.m4: New file.
67765
67766 2007-02-25  Bruno Haible  <bruno@clisp.org>
67767
67768         Assume automake >= 1.10 for the tests.
67769         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67770         * modules/arctwo-tests: Likewise.
67771         * modules/argp-tests: Likewise.
67772         * modules/avltree-list-tests: Likewise.
67773         * modules/avltree-oset-tests: Likewise.
67774         * modules/avltreehash-list-tests: Likewise.
67775         * modules/carray-list-tests: Likewise.
67776         * modules/crc-tests: Likewise.
67777         * modules/des-tests: Likewise.
67778         * modules/gc-arcfour-tests: Likewise.
67779         * modules/gc-arctwo-tests: Likewise.
67780         * modules/gc-des-tests: Likewise.
67781         * modules/gc-hmac-md5-tests: Likewise.
67782         * modules/gc-hmac-sha1-tests: Likewise.
67783         * modules/gc-md2-tests: Likewise.
67784         * modules/gc-md4-tests: Likewise.
67785         * modules/gc-md5-tests: Likewise.
67786         * modules/gc-pbkdf2-sha1-tests: Likewise.
67787         * modules/gc-rijndael-tests: Likewise.
67788         * modules/gc-sha1-tests: Likewise.
67789         * modules/gc-tests: Likewise.
67790         * modules/getaddrinfo-tests: Likewise.
67791         * modules/hmac-md5-tests: Likewise.
67792         * modules/hmac-sha1-tests: Likewise.
67793         * modules/linked-list-tests: Likewise.
67794         * modules/linkedhash-list-tests: Likewise.
67795         * modules/lock-tests: Likewise.
67796         * modules/md2-tests: Likewise.
67797         * modules/md4-tests: Likewise.
67798         * modules/md5-tests: Likewise.
67799         * modules/rbtree-list-tests: Likewise.
67800         * modules/rbtree-oset-tests: Likewise.
67801         * modules/rbtreehash-list-tests: Likewise.
67802         * modules/read-file-tests: Likewise.
67803         * modules/rijndael-tests: Likewise.
67804         * modules/stdint-tests: Likewise.
67805         * modules/tls-tests: Likewise.
67806
67807 2007-02-24  Bruno Haible  <bruno@clisp.org>
67808
67809         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67810         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67811         function; instead check whether isnan with a double argument links.
67812         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67813         function; instead check whether isnan with a 'long double' argument
67814         links.
67815         Reported by Eric Blake <ebb9@byu.net>.
67816
67817 2007-02-24  Bruno Haible  <bruno@clisp.org>
67818
67819         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67820         defined.
67821         * lib/isnanl.c: Remove all code. Just include isnan.c.
67822         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67823
67824 2007-02-25  Jim Meyering  <jim@meyering.net>
67825
67826         Avoid conflicting types for 'unsetenv' on FreeBSD.
67827         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67828         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67829         in stdlib.h.
67830
67831 2007-02-24  Bruno Haible  <bruno@clisp.org>
67832
67833         * modules/isnanl-nolibm-tests: New file.
67834         * tests/test-isnanl.c: New file.
67835
67836         * modules/isnanl-nolibm: New file.
67837         * lib/isnanl.h: New file.
67838         * lib/isnanl.c: New file.
67839         * m4/isnanl.m4: New file.
67840
67841 2007-02-24  Bruno Haible  <bruno@clisp.org>
67842
67843         * modules/isnan-nolibm-tests: New file.
67844         * tests/test-isnan.c: New file.
67845
67846         * modules/isnan-nolibm: New file.
67847         * lib/isnan.h: New file.
67848         * lib/isnan.c: New file.
67849         * m4/isnan.m4: New file.
67850
67851 2007-02-24  Bruno Haible  <bruno@clisp.org>
67852
67853         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67854         assume that an exponent fits in 20 bits.
67855
67856 2007-02-24  Jim Meyering  <jim@meyering.net>
67857
67858         * m4/regex.m4: Update the description of the configure-time option,
67859         --without-included-regex, to state accurately what the defaults are,
67860         and perhaps to give people an idea why using this option is risky.
67861
67862 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67865         loops on small arguments.  This attempts to avoid the problem
67866         Bruno Haible reported for AIX 4.3.2 in
67867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67868
67869 2007-02-23  Bruno Haible  <bruno@clisp.org>
67870
67871         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67872         Needed for help2man.
67873
67874 2007-02-23  Karl Berry  <karl@gnu.org>
67875
67876         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67877         exists, foo.h should be cvs-ignored, not committed.
67878
67879 2007-02-23  Eric Blake  <ebb9@byu.net>
67880
67881         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67882         * lib/stat-time.h (includes): Likewise.
67883         * lib/utimecmp.c (includes): Likewise.
67884         * lib/utimens.h (includes): Likewise.
67885         * lib/getdate.y (includes): Also include "timespec.h" for use
67886         internal to the module.
67887         * modules/utimens (Depends-on): Revert yesterday's patch.
67888         * modules/nanosleep (Depends-on): Add missing dependency.
67889
67890 2007-02-22  Bruno Haible  <bruno@clisp.org>
67891
67892         * lib/glob.c: Don't include getlogin_r.h.
67893
67894 2007-02-22  Jim Meyering  <jim@meyering.net>
67895
67896         * modules/utimens (Depends-on): Add timespec, required for
67897         utimens.h's inclusion of timespec.h.
67898
67899 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67900
67901         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67902         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67903         Schwab in
67904         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67905         I'll try to think of a better way to fix the Solaris problem.
67906
67907         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67908         like glibc; on Solaris 10, it fails with errno == EINVAL.
67909         POSIX says the behavior is unspecified if the first argument is NULL,
67910         so play it safe and never pass NULL to the system getcwd.
67911
67912 2007-02-21  Jim Meyering  <jim@meyering.net>
67913
67914         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67915         of gettimeofday.  It would conflict with the one now always
67916         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67917         an IRIX 6.5 build failure.
67918
67919 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67920
67921         Minor fixups to port to Solaris 10 with Sun C 5.8.
67922         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67923         * modules/getcwd (Depends-on): Add dirfd.
67924         * lib/putenv.c (putenv): #undef it.
67925         (rpl_putenv): New decl.
67926         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67927
67928 2007-02-20  Bruno Haible  <bruno@clisp.org>
67929
67930         * modules/stdio-tests: New file.
67931         * tests/test-stdio.c: New file.
67932
67933         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67934         (Depends-on): Add stdio.
67935         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67936         (Include): Use <stdio.h> instead of vsnprintf.h.
67937         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67938         HAVE_DECL_VSNPRINTF.
67939         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67940
67941         * modules/snprintf (Files): Remove lib/snprintf.h.
67942         (Depends-on): Add stdio.
67943         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67944         (Include): Use <stdio.h> instead of snprintf.h.
67945         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67946         HAVE_DECL_SNPRINTF.
67947         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67948         * lib/getaddrinfo.c: Likewise.
67949
67950         * modules/stdio: New file.
67951         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67952         * lib/snprintf.h: Remove file.
67953         * lib/vsnprintf.h: Remove file.
67954         * lib/.cppi-disable: Remove snprintf.h.
67955         * m4/stdio_h.m4: New file.
67956         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67957
67958 2007-02-20  Jim Meyering  <jim@meyering.net>
67959
67960         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67961         used by e.g., mingw.  From Bruno Haible.
67962
67963 2007-02-19  Bruno Haible  <bruno@clisp.org>
67964
67965         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67966         warnings.
67967         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67968
67969 2007-02-19  Bruno Haible  <bruno@clisp.org>
67970
67971         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67972         from mingw users.
67973
67974 2007-02-19  Bruno Haible  <bruno@clisp.org>
67975
67976         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67977         warnings.
67978         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67979
67980 2007-02-19  Jim Meyering  <jim@meyering.net>
67981
67982         Don't use FD after a successful "fdopendir (fd)".
67983         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67984         Reset it by calling dirfd on the just-obtained DIR*.
67985
67986         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67987         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67988
67989 2007-02-18  Bruno Haible  <bruno@clisp.org>
67990
67991         * lib/readlink.c: Include <unistd.h>.
67992         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67993         HAVE_READLINK.
67994         * modules/readlink (Depends-on): Add unistd.
67995         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67996         (Include): Add <unistd.h>.
67997
67998         * lib/getlogin_r.h: Remove file.
67999         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68000         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68001         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68002         HAVE_DECL_GETLOGIN_R.
68003         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68004         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68005         (Include): Use <unistd.h> instead of getlogin_r.h.
68006
68007         * lib/getcwd.h: Remove file.
68008         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68009         * lib/xgetcwd.c: Likewise.
68010         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68011         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68012         * modules/getcwd (Files): Remove lib/getcwd.h.
68013         (Depends-on): Add unistd.
68014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68015         (Include): Use <unistd.h> instad of getcwd.h.
68016
68017         * lib/ftruncate.c: Include <unistd.h> first.
68018         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68019         Set HAVE_FTRUNCATE.
68020         * modules/ftruncate (Depends-on): Add unistd.
68021         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68022
68023         * lib/fchdir.c: Include <unistd.h> first.
68024         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68026         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68027         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68028         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68029
68030         * lib/dup2.c: Include <unistd.h> first.
68031         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68032         HAVE_DUP2.
68033         * modules/dup2 (Depends-on): Add unistd.
68034         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68035
68036         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68037         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68038         REPLACE_CHOWN. Don't define chown as a macro here.
68039         * modules/chown (Depends-on): Add unistd.
68040         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68041
68042         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68043         Add definition for GL_LINK_WARNING.
68044         (chown, dup2): New declarations.
68045         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68046         link warning.
68047         (ftruncate): New declaration.
68048         (getcwd): New declaration, taken from old getcwd.h.
68049         (getlogin_r): New declaration, taken from old getlogin_r.h.
68050         (readlink): New declaration.
68051         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68052         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68053         (gl_PREREQ_UNISTD): Remove macro.
68054         (gl_UNISTD_MODULE_INDICATOR): New macro.
68055         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68056         many new variables. Don't set UNISTD_H.
68057         * modules/unistd (Description): Change.
68058         (Depends-on): Add link-warning.
68059         (configure.ac): Update.
68060         (Makefile.am): Create unistd.h always. Substitute many new variables
68061         into it.
68062
68063 2007-02-18  Bruno Haible  <bruno@clisp.org>
68064
68065         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68066         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68067         HAVE_GETSUBOPT.
68068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68069         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68070         * lib/getsubopt.h: Remove file.
68071         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68072         (Depends-on): Add stdlib.
68073         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68074         (Includes): Use <stdlib.h> instead of getsubopt.h.
68075         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68076         Set HAVE_GETSUBOPT.
68077         * lib/getsubopt.c: Don't include getsubopt.h.
68078
68079 2007-02-18  Bruno Haible  <bruno@clisp.org>
68080
68081         * modules/fchdir (Depends-on): Add dup2.
68082
68083 2007-02-18  Bruno Haible  <bruno@clisp.org>
68084
68085         * lib/stdlib_.h: Handle glibc's special invocation convention
68086         specially.
68087
68088 2007-02-18  Bruno Haible  <bruno@clisp.org>
68089
68090         * modules/stdlib-tests: New file.
68091         * tests/test-stdlib.c: New file.
68092
68093         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68094         (Depends-on): Add stdlib.
68095         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68096         (Includes): Use <stdlib.h> instead of mkstemp.h.
68097         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68098         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68099         * lib/mkstemp.c: Don't include mkstemp.h.
68100         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68101         * lib/stdlib--.h: Don't include mkstemp.h.
68102
68103         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68104         (Depends-on): Add stdlib.
68105         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68106         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68107         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68108         HAVE_MKDTEMP.
68109         * lib/mkdtemp.c: Don't include mkdtemp.h.
68110         * lib/clean-temp.c: Don't include mkdtemp.h.
68111
68112         * modules/exit (Files): Remove lib/exit.h.
68113         (Depends-on): Add stdlib.
68114         (Makefile.am): Remove lib_SOURCES.
68115         (Include): Use <stdlib.h> instead of exit.h.
68116         * lib/argmatch.c: Don't include exit.h.
68117         * lib/execute.c: Likewise.
68118         * lib/pagealign_alloc.c: Likewise.
68119         * lib/pipe.c: Likewise.
68120         * lib/wait-process.c: Likewise.
68121         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68122         * lib/exitfail.c: Likewise.
68123         * lib/savewd.c: Likewise.
68124         * lib/xsetenv.c: Likewise.
68125
68126         * modules/stdlib: New file.
68127         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68128         and extra comments about mkstemp().
68129         * lib/exit.h: Remove file.
68130         * lib/mkdtemp.h: Remove file.
68131         * lib/mkstemp.h: Remove file.
68132         * m4/stdlib_h.m4: New file.
68133         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68134
68135 2007-02-18  Bruno Haible  <bruno@clisp.org>
68136
68137         * modules/math-tests: New file.
68138         * tests/test-math.c: New file.
68139
68140         * modules/math: New file.
68141         * modules/mathl (Files): Remove lib/mathl.h.
68142         (Depends-on): Add math.
68143         (Makefile.am): Don't mention mathl.h.
68144         (Include): Use <math.h> instead of mathl.h.
68145         * lib/math_.h: New file.
68146         * lib/mathl.h: Remove file.
68147         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68148         mathl.h.
68149         * lib/asinl.c: Likewise.
68150         * lib/atanl.c: Likewise.
68151         * lib/ceill.c: Likewise.
68152         * lib/cosl.c: Likewise.
68153         * lib/expl.c: Likewise.
68154         * lib/floorl.c: Likewise.
68155         * lib/frexpl.c: Likewise.
68156         * lib/ldexpl.c: Likewise.
68157         * lib/logl.c: Likewise.
68158         * lib/sincosl.c: Likewise.
68159         * lib/sinl.c: Likewise.
68160         * lib/sqrtl.c: Likewise.
68161         * lib/tanl.c: Likewise.
68162         * lib/trigl.c: Likewise.
68163         * m4/math_h.m4: New file.
68164         * MODULES.html.sh (Mathematics): Add math.
68165
68166 2007-02-17  Bruno Haible  <bruno@clisp.org>
68167
68168         * modules/wctype-tests: New file.
68169         * tests/test-wctype.c: New file.
68170
68171         * modules/wchar-tests: New file.
68172         * tests/test-wchar.c: New file.
68173
68174         * modules/unistd-tests: New file.
68175         * tests/test-unistd.c: New file.
68176
68177         * modules/time-tests: New file.
68178         * tests/test-time.c: New file.
68179
68180         * modules/sysexits-tests: New file.
68181         * tests/test-sysexits.c: New file.
68182
68183         * modules/sys_time-tests: New file.
68184         * tests/test-sys_time.c: New file.
68185
68186         * modules/sys_stat-tests: New file.
68187         * tests/test-sys_stat.c: New file.
68188
68189         * modules/sys_socket-tests: New file.
68190         * tests/test-sys_socket.c: New file.
68191
68192         * modules/sys_select-tests: New file.
68193         * tests/test-sys_select.c: New file.
68194
68195         * modules/string-tests: New file.
68196         * tests/test-string.c: New file.
68197
68198         * modules/stdbool-tests: New file.
68199         * tests/test-stdbool.c: New file.
68200
68201         * modules/netinet_in-tests: New file.
68202         * tests/test-netinet_in.c: New file.
68203
68204         * modules/inttypes-tests: New file.
68205         * tests/test-inttypes.c: New file.
68206
68207         * modules/fcntl-tests: New file.
68208         * tests/test-fcntl.c: New file.
68209
68210         * modules/byteswap-tests: New file.
68211         * tests/test-byteswap.c: New file.
68212
68213         * modules/arpa_inet-tests: New file.
68214         * tests/test-arpa_inet.c: New file.
68215
68216 2007-02-17  Bruno Haible  <bruno@clisp.org>
68217
68218         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68219         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68220         if the corresponding module is not enabled. Emit link warnings if
68221         the function is used nevertheless.
68222         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68223         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68224         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68225         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68226         * modules/inttypes (Depends-on): Add link-warning.
68227         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68228         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68229         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68230         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68231         * modules/imaxdiv (configure.ac): Likewise.
68232         * modules/strtoimax (configure.ac): Likewise.
68233         * modules/strtoumax (configure.ac): Likewise.
68234
68235 2007-02-17  Bruno Haible  <bruno@clisp.org>
68236
68237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68238         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68239         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68240         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68241
68242 2007-02-17  Bruno Haible  <bruno@clisp.org>
68243
68244         * modules/link-warning: New file.
68245         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68246         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68247         * modules/string (Depends-on): Add link-warning.
68248         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68249         string.h.
68250         * MODULES.html.sh (Support for building libraries and executables): Add
68251         link-warning.
68252
68253 2007-02-17  Bruno Haible  <bruno@clisp.org>
68254
68255         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68256         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68257         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68258         long lines.
68259
68260 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68261             Bruno Haible  <bruno@clisp.org>
68262
68263         * modules/tmpfile: New file.
68264         * lib/tmpfile.c: New file.
68265         * m4/tmpfile.m4: New file.
68266         * MODULES.html.sh (func_all_modules): New section "Input/output".
68267
68268 2007-02-15  Bruno Haible  <bruno@clisp.org>
68269
68270         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68271         (supports_delete_on_close): New function.
68272         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68273
68274 2007-02-14  Bruno Haible  <bruno@clisp.org>
68275
68276         * modules/mbspcasecmp-tests: New file.
68277         * tests/test-mbspcasecmp.sh: New file.
68278         * tests/test-mbspcasecmp.c: New file.
68279
68280         New module mbspcasecmp.
68281         * modules/mbspcasecmp: New file.
68282         * lib/mbspcasecmp.c: New file.
68283         * lib/string_.h (strncasecmp): Change warning message.
68284         (mbspcasecmp): New declaration.
68285         * m4/mbspcasecmp.m4: New file.
68286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68287         GNULIB_MBSPCASECMP.
68288         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68289         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68290
68291 2007-02-14  Bruno Haible  <bruno@clisp.org>
68292
68293         * modules/mbsncasecmp-tests: New file.
68294         * tests/test-mbsncasecmp.sh: New file.
68295         * tests/test-mbsncasecmp.c: New file.
68296
68297         New module mbsncasecmp.
68298         * modules/mbsncasecmp: New file.
68299         * lib/mbsncasecmp.c: New file.
68300         * lib/string_.h (mbsncasecmp): New declaration.
68301         * m4/mbsncasecmp.m4: New file.
68302         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68303         GNULIB_MBSNCASECMP.
68304         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68305         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68306
68307 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68310         Verify that it doesn't overlap with our flags.
68311         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68312         do not have the desired effect in multibyte locales; instead, use
68313         mbscasecmp.
68314         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68315         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68316         we don't require GNU fnmatch ourselves (if our users require it, they
68317         should do so explicitly).
68318
68319         Fix regex code so it doesn't rely on strcasecmp.
68320         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68321         Otherwise, include gnulib's langinfo.h.
68322         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68323         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68324         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68325         * modules/regex (FILES): Remove m4/codeset.m4.
68326         (Depends-on): Add localcharset.  Remove strcase.
68327
68328 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68329
68330         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68331         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68332
68333 2007-02-13  Bruno Haible  <bruno@clisp.org>
68334
68335         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68336         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68337
68338 2007-02-12  Bruno Haible  <bruno@clisp.org>
68339
68340         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68341         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68342         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68343         time warning rather than a link error.
68344
68345 2007-02-12  Bruno Haible  <bruno@clisp.org>
68346
68347         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68348         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68350
68351 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68352
68353         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68354         args, not 2.
68355
68356 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68357
68358         New module 'time', so that apps can include <time.h> as per
68359         POSIX and GNU instead of separate include files like time_r.h
68360         and timegm.h.  This implementation tries out a simpler approach
68361         for replacing decls in standard include files (as compared to
68362         the string module), somewhat as an experiment.
68363
68364         * config/srclist.txt: Comment out mktime.c for now.
68365         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68366         since it doesn't apply any more.  Use generic wording instead.
68367         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68368         'time'.
68369         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68370         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68371         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68372         Don't include <sys/types.h>; no longer needed since we assume C89.
68373         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68374         * lib/strftime.c: Likewise.
68375         * lib/time_r.c: Likewise.
68376         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68377         * lib/nanosleep.c: Include <time.h> first, to check interface.
68378         * lib/strptime.c: Likewise.
68379         * lib/time_r.c: Likewise.
68380         * lib/timegm.c: Likewise.
68381         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68382         needed.
68383         * lib/timegm.c: Don't include timegm.h; no longer needed.
68384         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68385         time.h now handles any problems in that area.
68386         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68387         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68388         that time.h defines struct timespec.
68389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68390         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68391         handles that.
68392         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68393         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68394         needed.  Set REPLACE_LOCALTIME.
68395         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68396         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68397         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68398         nanosleep; time_h.m4 now does that.  Don't require
68399         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68400         module handles this now.
68401         * modules/getdate (Depends-on): Remove timespec.  Add time.
68402         * modules/nanosleep (Depends-on): Likewise.
68403         * modules/stat-time (Depends-on): Likewise.
68404         * modules/nanosleep (Include): Include time.h, not timespec.h.
68405         * modules/strptime (Files): Remove lib/strptime.h.
68406         (Depends-on): Add extensions, time.
68407         (Include): Include time.h, not strptime.h.
68408         * modules/time_r (Files): Remove lib/time_r.h.
68409         (Depends-on): Add time.
68410         (Include): Include time.h, not time_r.h.
68411         * modules/timegm: Likewise.
68412         * modules/timespec (Description): Now does timespec-related decls
68413         of our own, instead of struct timespec itself.
68414         (Depends-on): Add time; remove extensions.
68415         (Maintainer): Add self.
68416         * modules/utimecmp (Depends-on): Add time; remove timespec.
68417         * modules/utimens (Depends-on): Likewise.
68418         * modules/xnanosleep (Depends-on): Likewise.
68419
68420 2007-02-11  Bruno Haible  <bruno@clisp.org>
68421
68422         * lib/c-strstr.c: Include allocsa.h.
68423         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68424         * lib/c-strcasestr.c: Include allocsa.h.
68425         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68426         * lib/strcasestr.c: Include allocsa.h.
68427         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68428         * lib/mbsstr.c: Include allocsa.h.
68429         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68430         allocsa/freesa instead of malloc/free.
68431         * lib/mbscasestr.c: Include allocsa.h.
68432         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68433         allocsa/freesa instead of malloc/free.
68434         * modules/c-strstr (Depends-on): Add allocsa.
68435         * modules/c-strcasestr (Depends-on): Likewise.
68436         * modules/strcasestr (Depends-on): Likewise.
68437         * modules/mbsstr (Depends-on): Likewise.
68438         * modules/mbscasestr (Depends-on): Likewise.
68439
68440 2007-02-11  Bruno Haible  <bruno@clisp.org>
68441
68442         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68443
68444         * modules/mbsspn-tests: New file.
68445         * tests/test-mbsspn.sh: New file.
68446         * tests/test-mbsspn.c: New file.
68447
68448 2007-02-11  Bruno Haible  <bruno@clisp.org>
68449
68450         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68451
68452         * modules/mbspbrk-tests: New file.
68453         * tests/test-mbspbrk.sh: New file.
68454         * tests/test-mbspbrk.c: New file.
68455
68456 2007-02-11  Bruno Haible  <bruno@clisp.org>
68457
68458         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68459         unneeded cast.
68460
68461         * modules/mbscspn-tests: New file.
68462         * tests/test-mbscspn.sh: New file.
68463         * tests/test-mbscspn.c: New file.
68464
68465 2007-02-11  Bruno Haible  <bruno@clisp.org>
68466
68467         * modules/mbscasecmp-tests: New file.
68468         * tests/test-mbscasecmp.sh: New file.
68469         * tests/test-mbscasecmp.c: New file.
68470
68471 2007-02-11  Bruno Haible  <bruno@clisp.org>
68472
68473         Ensure O(n) worst-case complexity of mbscasestr.
68474         * lib/mbscasestr.c: Include stdbool.h.
68475         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68476         functions.
68477         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68478         the bookkeeping indicates that it's worth it.
68479         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68480
68481         * modules/mbscasestr-tests: New file.
68482         * tests/test-mbscasestr1.c: New file.
68483         * tests/test-mbscasestr2.sh: New file.
68484         * tests/test-mbscasestr2.c: New file.
68485         * tests/test-mbscasestr3.sh: New file.
68486         * tests/test-mbscasestr3.c: New file.
68487         * tests/test-mbscasestr4.sh: New file.
68488         * tests/test-mbscasestr4.c: New file.
68489         * m4/locale-tr.m4: New file.
68490
68491 2007-02-11  Bruno Haible  <bruno@clisp.org>
68492
68493         Ensure O(n) worst-case complexity of mbsstr.
68494         * lib/mbsstr.c: Include stdbool.h.
68495         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68496         functions.
68497         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68498         bookkeeping indicates that it's worth it.
68499         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68500
68501         * modules/mbsstr-tests: New file.
68502         * tests/test-mbsstr1.c: New file.
68503         * tests/test-mbsstr2.sh: New file.
68504         * tests/test-mbsstr2.c: New file.
68505         * tests/test-mbsstr3.sh: New file.
68506         * tests/test-mbsstr3.c: New file.
68507         * m4/locale-fr.m4: New file.
68508
68509 2007-02-11  Bruno Haible  <bruno@clisp.org>
68510
68511         * lib/mbsrchr.c (mbsrchr): Fix bug.
68512
68513         * modules/mbsrchr-tests: New file.
68514         * tests/test-mbsrchr.sh: New file.
68515         * tests/test-mbsrchr.c: New file.
68516
68517 2007-02-11  Bruno Haible  <bruno@clisp.org>
68518
68519         * lib/mbschr.c (mbschr): Fix bug.
68520
68521         * modules/mbschr-tests: New file.
68522         * tests/test-mbschr.sh: New file.
68523         * tests/test-mbschr.c: New file.
68524         * m4/locale-zh.m4: New file.
68525
68526 2007-02-11  Bruno Haible  <bruno@clisp.org>
68527
68528         Support for copying multibyte string iterators.
68529         * lib/mbiter.h: Include <string.h>.
68530         (mbiter_multi_copy): New function.
68531         (mbi_copy): New macro.
68532         * lib/mbuiter.h: Include <string.h>.
68533         (mbuiter_multi_copy): New function.
68534         (mbui_copy): New macro.
68535
68536 2007-02-11  Bruno Haible  <bruno@clisp.org>
68537
68538         New module mbslen.
68539         * modules/mbslen: New file.
68540         * lib/mbslen.c: New file.
68541         * lib/string_.h (mbslen): New declaration.
68542         * m4/mbslen.m4: New file.
68543         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68544         GNULIB_MBSLEN.
68545         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68546         * MODULES.html.sh (Internationalization functions): Add mbslen.
68547
68548 2007-02-11  Bruno Haible  <bruno@clisp.org>
68549
68550         Ensure O(n) worst-case complexity of strcasestr substitute.
68551         * lib/strcasestr.c: Include stdbool.h.
68552         (knuth_morris_pratt): New function.
68553         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68554         bookkeeping indicates that it's worth it.
68555         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68556
68557         * modules/strcasestr-tests: New file.
68558         * tests/test-strcasestr.c: New file.
68559
68560 2007-02-11  Bruno Haible  <bruno@clisp.org>
68561
68562         Ensure O(n) worst-case complexity of c_strcasestr.
68563         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68564         (knuth_morris_pratt): New function.
68565         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68566         the bookkeeping indicates that it's worth it.
68567         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68568
68569         * modules/c-strcasestr-tests: New file.
68570         * tests/test-c-strcasestr.c: New file.
68571
68572 2007-02-11  Bruno Haible  <bruno@clisp.org>
68573
68574         Ensure O(n) worst-case complexity of c_strstr.
68575         * lib/c-strstr.c: Include stdbool.h, string.h.
68576         (knuth_morris_pratt): New function.
68577         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68578         bookkeeping indicates that it's worth it.
68579         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68580
68581         * lib/c-strstr.c: Complete rewrite for maintainability.
68582
68583         * modules/c-strstr-tests: New file.
68584         * tests/test-c-strstr.c: New file.
68585
68586 2007-02-11  Bruno Haible  <bruno@clisp.org>
68587
68588         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68589         5.2.1 and earlier, whereby \055 was treated just like the range
68590         delimiter '-'.
68591         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68592
68593 2007-02-08  Bruno Haible  <bruno@clisp.org>
68594
68595         * modules/regex (Depends-on): Add stdbool.
68596         Reported by Dalibor Topic <robilad@kaffe.org>.
68597
68598 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68601         Prefer returning from main to exiting from it.
68602         Remove unnecessary parens after sizeof.
68603
68604 2007-02-05  Bruno Haible  <bruno@clisp.org>
68605
68606         New module mbssep.
68607         * modules/mbssep: New file.
68608         * lib/mbssep.c: New file.
68609         * lib/string_.h (strsep): Add a conditional link warning.
68610         (mbssep): New declaration.
68611         * m4/mbssep.m4: New file.
68612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68613         GNULIB_MBSSEP.
68614         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68615         * MODULES.html.sh (Internationalization functions): Add mbssep.
68616
68617 2007-02-05  Bruno Haible  <bruno@clisp.org>
68618
68619         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68620         Optimize search in case of 1 delimiter.
68621
68622 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68623
68624         * lib/acl.h: Include sys/types.h before sys/acl.h.
68625
68626 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68627
68628         Merge upstream fix for glibc bugzilla #3957:
68629
68630         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68631
68632         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68633         bit for RE_HAT_LISTS_NOT_NEWLINE.
68634         (build_charclass_op): Remove bogus comment.
68635
68636 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68637
68638         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68639
68640 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68641
68642         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68643         * lib/memmem.c [!defined _LIBC]: Include config.h.
68644
68645 2007-02-04  Bruno Haible  <bruno@clisp.org>
68646
68647         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68648         warning message.
68649
68650 2007-02-04  Bruno Haible  <bruno@clisp.org>
68651
68652         New module mbstok_r.
68653         * modules/mbstok_r: New file.
68654         * lib/mbstok_r.c: New file.
68655         * lib/string_.h (strtok_r): Change argument names to match the
68656         comments. Add a conditional link warning.
68657         (mbstok_r): New declaration.
68658         * m4/mbstok_r.m4: New file.
68659         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68660         GNULIB_MBSTOK_R.
68661         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68662         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68663
68664 2007-02-04  Bruno Haible  <bruno@clisp.org>
68665
68666         New module mbsspn.
68667         * modules/mbsspn: New file.
68668         * lib/mbsspn.c: New file.
68669         * lib/string_.h (strspn): Add a conditional link warning.
68670         (mbsspn): New declaration.
68671         * m4/mbsspn.m4: New file.
68672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68673         GNULIB_MBSSPN.
68674         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68675         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68676
68677 2007-02-04  Bruno Haible  <bruno@clisp.org>
68678
68679         New module mbspbrk.
68680         * modules/mbspbrk: New file.
68681         * lib/mbspbrk.c: New file.
68682         * lib/string_.h (strpbrk): Add a conditional link warning.
68683         (mbspbrk): New declaration.
68684         * m4/mbspbrk.m4: New file.
68685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68686         GNULIB_MBSPBRK.
68687         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68688         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68689
68690 2007-02-04  Bruno Haible  <bruno@clisp.org>
68691
68692         New module mbscspn.
68693         * modules/mbscspn: New file.
68694         * lib/mbscspn.c: New file.
68695         * lib/string_.h (strcspn): Add a conditional link warning.
68696         (mbscspn): New declaration.
68697         * m4/mbscspn.m4: New file.
68698         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68699         GNULIB_MBSCSPN.
68700         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68701         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68702
68703 2007-02-04  Bruno Haible  <bruno@clisp.org>
68704
68705         New module mbscasestr, reduced goal of strcasestr.
68706         * modules/mbscasestr: New file.
68707         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68708         (mbscasestr): Renamed from strcasestr.
68709         * lib/strcasestr.c: Don't include mbuiter.h.
68710         (strcasestr): Remove support for multibyte locales.
68711         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68712         Change the conditional link warning.
68713         (mbscasestr): New declaration.
68714         * m4/mbscasestr.m4: New file.
68715         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68716         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68717         REPLACE_STRCASESTR.
68718         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68720         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68721         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68722         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68723         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68724         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68725         (Depends-on): Remove mbuiter.
68726         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68727
68728 2007-02-04  Bruno Haible  <bruno@clisp.org>
68729
68730         Simplify handling of strncasecmp.
68731         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68732         the conditional link warning.
68733         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68734         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68735         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68736         * modules/strcase (configure.ac): Don't invoke
68737         gl_STRING_MODULE_INDICATOR.
68738         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68739
68740 2007-02-04  Bruno Haible  <bruno@clisp.org>
68741
68742         New module mbscasecmp, reduced goal of strcasecmp.
68743         * modules/mbscasecmp: New file.
68744         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68745         (mbscasecmp): Renamed from strcasecmp.
68746         * lib/strcasecmp.c: Don't include mbuiter.h.
68747         (strcasecmp): Remove support for multibyte locales.
68748         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68749         Change the conditional link warning.
68750         (mbscasecmp): New declaration.
68751         * m4/mbscasecmp.m4: New file.
68752         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68753         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68754         REPLACE_STRCASECMP.
68755         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68756         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68757         GNULIB_MBSCASECMP.
68758         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68759         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68760         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68761         (Depends-on): Remove mbuiter.
68762         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68763
68764 2007-02-04  Bruno Haible  <bruno@clisp.org>
68765
68766         New module mbsstr. Remove module strstr.
68767         * modules/mbsstr: New file.
68768         * modules/strstr: Remove file.
68769         * lib/mbsstr.c: Renamed from lib/strstr.c.
68770         (mbsstr): Renamed from strstr.
68771         * lib/string_.h (strstr): Remove declaration. Change the conditional
68772         link warning.
68773         (mbsstr): New declaration.
68774         * m4/mbsstr.m4: New file.
68775         * m4/strstr.m4: Remove file.
68776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68777         REPLACE_STRSTR.
68778         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68779         Don't initialize GNULIB_STRSTR.
68780         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68781         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68782         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68783         (Support for systems lacking ANSI C 89): Remove strstr.
68784
68785 2007-02-04  Bruno Haible  <bruno@clisp.org>
68786
68787         New module mbsrchr.
68788         * modules/mbsrchr: New file.
68789         * lib/mbsrchr.c: New file.
68790         * lib/string_.h (strrchr): Add a conditional link warning.
68791         (mbsrchr): New declaration.
68792         * m4/mbsrchr.m4: New file.
68793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68794         GNULIB_MBSRCHR.
68795         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68796         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68797
68798 2007-02-04  Bruno Haible  <bruno@clisp.org>
68799
68800         New module mbschr.
68801         * modules/mbschr: New file.
68802         * lib/mbschr.c: New file.
68803         * lib/string_.h (strchr): Add a conditional link warning.
68804         (mbschr): New declaration.
68805         * m4/mbschr.m4: New file.
68806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68807         GNULIB_MBSCHR.
68808         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68809         * MODULES.html.sh (Internationalization functions): Add mbschr.
68810
68811 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68812
68813         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68814
68815         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68816
68817 2007-02-04  Bruno Haible  <bruno@clisp.org>
68818
68819         New module description section 'configure.ac-early'.
68820         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68821         (func_get_autoconf_early_snippet): New function.
68822         (func_import, func_create_testdir): Use it. Remove special cases for
68823         modules 'extensions' and 'lock'.
68824         * modules/extensions (configure.ac-early): Require
68825         gl_USE_SYSTEM_EXTENSIONS.
68826         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68827
68828 2007-02-04  Bruno Haible  <bruno@clisp.org>
68829
68830         Make use of gcj-4.3's -fsource and -ftarget option.
68831         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68832         and if so try the options -fsource and -ftarget.
68833         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68834         source_version, ftarget_option, target_version arguments.
68835         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68836         (is_envjavac_oldgcj_14_14_usable): Renamed from
68837         is_envjavac_gcj_14_14_usable.
68838         (is_envjavac_oldgcj_14_13_usable): Renamed from
68839         is_envjavac_gcj_14_13_usable.
68840         (is_gcj_present): Update.
68841         (is_gcj_43, is_gcj43_usable): New functions.
68842         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68843         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68844         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68845         try the options -fsource and -ftarget.
68846
68847 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68848
68849         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68850         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68851         larger value.
68852
68853 2007-02-03  Jim Meyering  <jim@meyering.net>
68854
68855         Give tools a better chance to allocate space for very large buffers.
68856         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68857
68858         Make pwd and readlink work also when run with an unreadable parent dir
68859         on systems with openat support.
68860         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68861         provided getcwd function, even when we have openat support.
68862         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68863
68864 2007-02-02  Bruno Haible  <bruno@clisp.org>
68865
68866         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68867         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68868         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68869         portability problems if one of these functions is only used on specific
68870         platforms.
68871         Reported by Paul Eggert.
68872
68873 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68876         is causing more trouble than it's curing.
68877         * lib/regex_internal.h (__mempcpy): Remove.
68878         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68879         (and make the code a tad smaller to boot).
68880         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68881
68882 2007-02-02  Jim Meyering  <jim@meyering.net>
68883
68884         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68885         section, not in the Makefile.am: one.
68886
68887 2007-02-02  Eric Blake  <ebb9@byu.net>
68888
68889         * lib/strchrnul.c: Always include config.h first.
68890
68891         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68892         gnulib strstr is not necessary here.
68893
68894 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68895
68896         * m4/socklen.m4: Fix typo.
68897
68898 2007-02-02  Eric Blake  <ebb9@byu.net>
68899
68900         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68901         * modules/netinet_in (Makefile.am): Likewise.
68902
68903 2007-02-01  Bruno Haible  <bruno@clisp.org>
68904
68905         * lib/string_.h (GL_LINK_WARNING): New macro.
68906         (strcasecmp, strstr, strcasestr): If provided by the system,
68907         conditionally define as a macro that leads to a warning instead of to
68908         an error.
68909         (strncasecmp): Conditionally define as a macro that leads to a warning.
68910
68911 2007-02-01  Karl Berry  <karl@gnu.org>
68912
68913         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68914
68915 2007-02-01  Bruno Haible  <bruno@clisp.org>
68916
68917         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68918         renamings.
68919
68920 2007-02-01  Eric Blake  <ebb9@byu.net>
68921
68922         * modules/regex (Depends-on): Revert dependence on mempcpy.
68923         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68924         module's definition of mempcpy.
68925         Reported by Paul Eggert.
68926
68927 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68928
68929         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68930         the symbol XYZ before redefining it.  This fixes a problem with
68931         programs that don't use XYZ, when compiled on systems that define
68932         XYZ to something else.
68933
68934 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68935
68936         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68937         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68938         writeable to group or other and (2) is intended to have a special
68939         mode bit that is set or cleared.  In such a case, the directory
68940         should be neither group- nor other-writeable until the special
68941         mode bits are right.
68942
68943 2007-01-31  Eric Blake  <ebb9@byu.net>
68944
68945         * modules/mountlist (Depends-on): Add strstr.
68946
68947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68948         bug.
68949         * modules/string (Makefile.am): Remove redundant replacement.
68950         * modules/regex (Depends-on): Add mempcpy.
68951
68952 2007-01-31  Bruno Haible  <bruno@clisp.org>
68953
68954         New module description field 'Link'.
68955         * gnulib-tool (func_usage): Document --extract-link-directive.
68956         (sed_extract_prog): Recognize 'Link' directive.
68957         (func_get_link_directive): New function.
68958         (func_import): Show summary of link directives.
68959         Handle --extract-link-directive option.
68960         * modules/acl (Link): New section.
68961         * modules/clock-time (Link): New section.
68962         * modules/euidaccess (Link): New section.
68963         * modules/gettext (Link): New section.
68964         * modules/iconv (Link): New section.
68965         * modules/lock (Link): New section.
68966         * modules/nanosleep (Link): New section.
68967         * modules/readline (Link): New section.
68968
68969 2007-01-27  Bruno Haible  <bruno@clisp.org>
68970
68971         Enforce the use of gnulib modules for unportable <string.h> functions.
68972         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68973         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68974         (gl_HEADER_STRING_H_BODY): Require it.
68975         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68976         the symbol XYZ to one that gives a link error.
68977         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68978         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68979         * modules/mempcpy (configure.ac): Likewise.
68980         * modules/memrchr (configure.ac): Likewise.
68981         * modules/stpcpy (configure.ac): Likewise.
68982         * modules/stpncpy (configure.ac): Likewise.
68983         * modules/strcase (configure.ac): Likewise.
68984         * modules/strcasestr (configure.ac): Likewise.
68985         * modules/strchrnul (configure.ac): Likewise.
68986         * modules/strdup (configure.ac): Likewise.
68987         * modules/strndup (configure.ac): Likewise.
68988         * modules/strnlen (configure.ac): Likewise.
68989         * modules/strpbrk (configure.ac): Likewise.
68990         * modules/strsep (configure.ac): Likewise.
68991         * modules/strstr (configure.ac): Likewise.
68992         * modules/strtok_r (configure.ac): Likewise.
68993
68994 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68995
68996         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68997
68998 2007-01-30  Jim Meyering  <jim@meyering.net>
68999
69000         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69001
69002 2007-01-29  Bruno Haible  <bruno@clisp.org>
69003
69004         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69005         * lib/execute.c: Likewise.
69006         * lib/pipe.c: Likewise.
69007         * lib/printf-args.h: Likewise.
69008         * lib/printf-args.c: Likewise.
69009         * lib/printf-parse.c: Likewise.
69010         * lib/vasnprintf.c: Likewise.
69011
69012 2007-01-29  Eric Blake  <ebb9@byu.net>
69013
69014         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69015         declaration.
69016
69017 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         * lib/strptime.h (strptime): Use 'restrict' for args where
69020         POSIX requires this.
69021         * lib/strptime.c (strptime): Likewise.
69022         Change license notice from LGPL to GPL, since gnulib-tool will
69023         change this as needed.
69024         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69025         defined.
69026         Include "strptime.h" first, to check interface.
69027         Do not #undef _LIBC and _NL_CURRENT.
69028         Do not include <stdlib.h>; no longer needed.
69029         Include "time_r.h" and declare ptime_locale_status
69030         only if _LIBC is not defined.
69031         (__P): Remove unused macro.
69032         (match_string): Bring back glibc version, but use it only if _LIBC
69033         is defined.
69034         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69035         Remove unnecessary assertion and abort() call.
69036         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69037         * m4/strptime.m4: Fix serial number comment.
69038         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69039         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69040         (Depends-on): Add time_r.
69041
69042 2007-01-29  Bruno Haible  <bruno@clisp.org>
69043
69044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69045         strptime.
69046         * modules/strptime (Depends-on): Add stdbool.
69047         * lib/strptime.h: Include <time.h> always. Add comments.
69048
69049 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69050
69051         * modules/strptime: New file.
69052         * lib/strptime.h: New file.
69053         * lib/strptime.c: New file.
69054         * m4/strptime.m4: New file.
69055
69056 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69057
69058         * MODULES.html.sh: New module mpsort.
69059         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69060
69061         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69062         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69063         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69064         All uses changed.
69065         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69066         All uses changed.
69067         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69068         to _Restrict_.
69069         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69070         the parameter matches the prototype.
69071
69072 2007-01-28  Jim Meyering  <jim@meyering.net>
69073
69074         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69075         sys/time.h here, reverting that part of the previous patch:
69076         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69077
69078 2007-01-28  Bruno Haible  <bruno@clisp.org>
69079
69080         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69081         value of $(SYS_TIME_H).
69082         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69083         remove it conditionally, too. [added by Jim Meyering]
69084         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69086         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69087         GETTIMEOFDAY_REPLACEMENT to 1.
69088
69089 2007-01-28  Bruno Haible  <bruno@clisp.org>
69090
69091         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69092         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69093         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69094         Set UNISTD_H instead of UNISTD_H2.
69095         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69096
69097 2007-01-28  Bruno Haible  <bruno@clisp.org>
69098
69099         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69100         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69101
69102 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69103
69104         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69105         (func_create_testdir): Ensure C locale for `grep' and `tr'
69106         character ranges.
69107         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69108         ACLOCAL_AMFLAGS parsing state machine.
69109
69110 2007-01-27  Bruno Haible  <bruno@clisp.org>
69111
69112         * modules/unistr/base: Update.
69113
69114 2007-01-27  Bruno Haible  <bruno@clisp.org>
69115
69116         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69117         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69118         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69119         modules/unistr/u32-mbtouc.
69120         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69121         * lib/unistr.h: Update.
69122         * lib/linebreak.c: Update.
69123         * modules/unistr/u32-mbtouc: Renamed from
69124         modules/unistr/u32-mbtouc-safe.
69125         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69126         * lib/unistr.h: Update.
69127         * lib/unistr/u32-to-u8.c: Update.
69128         * lib/unistr/u32-to-u16.c: Update.
69129
69130 2007-01-27  Bruno Haible  <bruno@clisp.org>
69131
69132         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69133         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69134         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69135         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69136         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69137         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69138         modules/unistr/u16-mbtouc.
69139         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69140         * lib/unistr.h: Update.
69141         * lib/linebreak.c: Update.
69142         * modules/linebreak: Update.
69143         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69144         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69145         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69146         * modules/unistr/u16-mbtouc: Renamed from
69147         modules/unistr/u16-mbtouc-safe.
69148         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69149         * lib/unistr.h: Update.
69150         * lib/unistr/u16-to-u8.c: Update.
69151         * modules/unistr/u16-to-u8: Update.
69152         * lib/unistr/u16-to-u32.c: Update.
69153         * modules/unistr/u16-to-u32: Update.
69154
69155 2007-01-27  Bruno Haible  <bruno@clisp.org>
69156
69157         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69158         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69159         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69160         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69161         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69162         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69163         modules/unistr/u8-mbtouc.
69164         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69165         * lib/unistr.h: Update.
69166         * lib/striconveh.c: Update.
69167         * modules/striconveh: Update.
69168         * lib/linebreak.c: Update.
69169         * modules/linebreak: Update.
69170         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69171         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69172         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69173         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69174         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69175         * lib/unistr.h: Update.
69176         * lib/striconveh.c: Update.
69177         * modules/striconveh: Update.
69178         * lib/unistr/u8-to-u16.c: Update.
69179         * modules/unistr/u8-to-u16: Update.
69180         * lib/unistr/u8-to-u32.c: Update.
69181         * modules/unistr/u8-to-u32: Update.
69182
69183 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69184
69185         Sync from Libtool.
69186         * lib/argz.c: Do not include strings.h nor memory.h, include
69187         string.h unconditionally.  Patch by Simon Josefsson.
69188
69189 2007-01-27  Bruno Haible  <bruno@clisp.org>
69190
69191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69192         from gl_HEADER_STRING_H_BODY.
69193         (gl_HEADER_STRING_H_BODY): Require it.
69194         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69195         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69196         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69197         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69198         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69199         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69201         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69202         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69203         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69204         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69205         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69206         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69207         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69208         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69209
69210 2007-01-27  Bruno Haible  <bruno@clisp.org>
69211
69212         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69213         check_PROGRAMS into noinst_PROGRAMS.
69214         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69215         check_PROGRAMS in this case.
69216         (func_import): Set for_test to false.
69217         (func_create_testdir): Set for_test to true.
69218
69219 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69220             Bruno Haible  <bruno@clisp.org>
69221
69222         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69223         (Depends-on): Add string.
69224         (Includes): Use <string.h> instead of strcasestr.h.
69225         * modules/string (Makefile.am): Also substitute the value of
69226         REPLACE_STRCASESTR.
69227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69228         assume strcasestr is declared in <string.h> not <strings.h>. Also
69229         set REPLACE_STRCASESTR.
69230         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69231         REPLACE_STRCASESTR.
69232         * lib/strcasestr.h: Remove file.
69233         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69234         * lib/string_.h (strcasestr): New declaration.
69235
69236 2007-01-27  Bruno Haible  <bruno@clisp.org>
69237
69238         * lib/string_.h: Use 'extern'.
69239
69240 2007-01-27  Jim Meyering  <jim@meyering.net>
69241
69242         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69243         of set-but-not-used local, "q".
69244
69245         * lib/mempcpy.c: Include <config.h> before <string.h>.
69246         This fixes a compilation error on HP-UX, due to the system's
69247         "restrict"-using mempcpy prototype.
69248
69249 2007-01-26  Bruno Haible  <bruno@clisp.org>
69250
69251         Small optimization.
69252         * lib/javacomp.c: Include c-strstr.h.
69253          (is_envjavac_gcj): Use c_strstr instead of strstr.
69254         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69255
69256 2007-01-26  Bruno Haible  <bruno@clisp.org>
69257
69258         * MODULES.html.sh (Unicode string functions): Add the new modules.
69259
69260         * modules/uniconv/u32-strconv-to-locale: New file.
69261         * lib/uniconv/u32-strconv-to-locale.c: New file.
69262
69263         * modules/uniconv/u16-strconv-to-locale: New file.
69264         * lib/uniconv/u16-strconv-to-locale.c: New file.
69265
69266         * modules/uniconv/u8-strconv-to-locale: New file.
69267         * lib/uniconv/u8-strconv-to-locale.c: New file.
69268
69269         * modules/uniconv/u32-strconv-from-locale: New file.
69270         * lib/uniconv/u32-strconv-from-locale.c: New file.
69271
69272         * modules/uniconv/u16-strconv-from-locale: New file.
69273         * lib/uniconv/u16-strconv-from-locale.c: New file.
69274
69275         * modules/uniconv/u8-strconv-from-locale: New file.
69276         * lib/uniconv/u8-strconv-from-locale.c: New file.
69277
69278         * modules/uniconv/u32-strconv-to-enc: New file.
69279         * lib/uniconv/u32-strconv-to-enc.c: New file.
69280         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69281         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69282
69283         * modules/uniconv/u16-strconv-to-enc: New file.
69284         * lib/uniconv/u16-strconv-to-enc.c: New file.
69285         * lib/uniconv/u-strconv-to-enc.h: New file.
69286         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69287         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69288
69289         * modules/uniconv/u8-strconv-to-enc: New file.
69290         * lib/uniconv/u8-strconv-to-enc.c: New file.
69291         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69292         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69293
69294         * modules/uniconv/u32-strconv-from-enc: New file.
69295         * lib/uniconv/u32-strconv-from-enc.c: New file.
69296         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69297         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69298
69299         * modules/uniconv/u16-strconv-from-enc: New file.
69300         * lib/uniconv/u16-strconv-from-enc.c: New file.
69301         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69302         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69303
69304         * modules/uniconv/u8-strconv-from-enc: New file.
69305         * lib/uniconv/u8-strconv-from-enc.c: New file.
69306         * lib/uniconv/u-strconv-from-enc.h: New file.
69307         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69308         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69309
69310         * modules/uniconv/u32-conv-from-enc: New file.
69311         * lib/uniconv/u32-conv-from-enc.c: New file.
69312         * modules/uniconv/u32-conv-from-enc-tests: New file.
69313         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69314
69315         * modules/uniconv/u16-conv-from-enc: New file.
69316         * lib/uniconv/u16-conv-from-enc.c: New file.
69317         * lib/uniconv/u-conv-from-enc.h: New file.
69318         * modules/uniconv/u16-conv-from-enc-tests: New file.
69319         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69320
69321         * modules/uniconv/u8-conv-from-enc: New file.
69322         * lib/uniconv/u8-conv-from-enc.c: New file.
69323         * modules/uniconv/u8-conv-from-enc-tests: New file.
69324         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69325
69326         * modules/uniconv/base: New file.
69327         * lib/uniconv.h: New file.
69328
69329 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69330
69331         * doc/gnulib-tool.texi (Initial import): Update to match current
69332         behavior with strdup module.
69333         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69334         * lib/memmem.h: Remove; all uses removed.  This is now done
69335         by <string.h>.
69336         * lib/mempcpy.h: Likewise.
69337         * lib/memrchr.h: Likewise.
69338         * lib/stpcpy.h: Likewise.
69339         * lib/stpncpy.h: Likewise.
69340         * lib/strcase.h: Likewise.
69341         * lib/strchrnul.h: Likewise.
69342         * lib/strdup.h: Likewise.
69343         * lib/strndup.h: Likewise.
69344         * lib/strnlen.h: Likewise.
69345         * lib/strpbrk.h: Likewise.
69346         * lib/strsep.h: Likewise.
69347         * lib/strstr.h: Likewise.
69348         * lib/strtok_r.h: Likewise.
69349         * lib/string_.h: New file.
69350         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69351         Rely on <string.h> instead.
69352         * lib/canon-host.c: Likewise.
69353         * lib/chdir-long.c: Likewise.
69354         * lib/concatpath.c: Likewise.
69355         * lib/exclude.c: Likewise.
69356         * lib/fchdir.c: Likewise.
69357         * lib/getaddrinfo.c: Likewise.
69358         * lib/getcwd.c: Likewise.
69359         * lib/getsubopt.c: Likewise.
69360         * lib/glob.c: Likewise.
69361         * lib/hard-locale.c: Likewise.
69362         * lib/iconvme.c: Likewise.
69363         * lib/javacomp.c: Likewise.
69364         * lib/mempcpy.c: Likewise.
69365         * lib/memrchr.c: Likewise.
69366         * lib/regex_internal.h: Likewise.
69367         * lib/stpncpy.c: Likewise.
69368         * lib/strcasecmp.c: Likewise.
69369         * lib/strchrnul.c: Likewise.
69370         * lib/strdup.c: Likewise.
69371         * lib/striconv.c: Likewise.
69372         * lib/striconveh.c: Likewise.
69373         * lib/striconveha.c: Likewise.
69374         * lib/strncasecmp.c: Likewise.
69375         * lib/strndup.c: Likewise.
69376         * lib/strnlen.c: Likewise.
69377         * lib/strsep.c: Likewise.
69378         * lib/strstr.c: Likewise.
69379         * lib/strtok_r.c: Likewise.
69380         * lib/userspec.c: Likewise.
69381         * lib/w32spawn.h: Likewise.
69382         * lib/xstrndup.c: Likewise.
69383         * lib/mountlist.c (strstr): Remove decl.
69384         * m4/string_h.m4: New file.
69385         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69386         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69387         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69388         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69389         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69390         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69391         Set REPLACE_STRCASECMP if necessary.
69392         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69393         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69394         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69395         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69396         HAVE_DECL_STRDUP if necessary.
69397         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69398         since gl_FUNC_STRNDUP does that now.
69399         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69400         Check for decl here...
69401         (gl_PREREQ_STRNLEN): ... not here.
69402         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69403         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69404         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69405         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69406         necessary.
69407         * modules/string: New file.
69408         * modules/memmem (Files): Remove special-purpose include file.
69409         (Depends-on): Add string.
69410         (Include): Include <string.h>, not the removed file.
69411         * modules/mempcpy: Likewise.
69412         * modules/memrchr: Likewise.
69413         * modules/stpcpy: Likewise.
69414         * modules/stpncpy: Likewise.
69415         * modules/strcase: Likewise.
69416         * modules/strchrnul: Likewise.
69417         * modules/strdup: Likewise.
69418         * modules/strndup: Likewise.
69419         * modules/strnlen: Likewise.
69420         * modules/strpbrk: Likewise.
69421         * modules/strsep: Likewise.
69422         * modules/strstr: Likewise.
69423         * modules/strtok_r: Likewise.
69424         * tests/test-dirname.c: Don't include "strdup.h", since
69425         <string.h> now suffices.
69426         * tests/test-memmem.c: Don't include "memmem.h", since
69427         <string.h> now suffices.
69428
69429 2007-01-25  Bruno Haible  <bruno@clisp.org>
69430
69431         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69432         *resultp is 0.
69433
69434         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69435         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69436         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69437         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69438
69439         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69440         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69441         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69442         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69443         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69444         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69445
69446 2007-01-24  Bruno Haible  <bruno@clisp.org>
69447
69448         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69449         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69450         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69451         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69452         gl_FUNC_FTS_CORE.
69453         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69454         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69455         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69456         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69457         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69458         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69459         gl_FUNC_FCHOWNAT.
69460         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69461         gl_FUNC_STRFTIME.
69462         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69463         Reported by Ralf Wildenhues.
69464
69465 2007-01-24  Bruno Haible  <bruno@clisp.org>
69466
69467         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69468         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69469         gl_GETADDRINFO.
69470         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69471         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69472         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69473
69474 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69475
69476         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69477         Don't use 'exit'; just return from 'main'.
69478         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69479
69480         * lib/fnmatch_.h: Readjust white space and comments to match
69481         glibc, to avoid spurious diffs.
69482
69483 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69486         2004-12-01 change by Jakub Jelinek, since this code won't compile
69487         if !LIBC.  Problem reported by Bob Proulx.
69488
69489 2007-01-23  Bruno Haible  <bruno@clisp.org>
69490
69491         * lib/striconveh.c: Include c-strcaseeq.h.
69492         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69493         * modules/striconveh (Depends-on): Add c-strcaseeq.
69494
69495 2007-01-23  Bruno Haible  <bruno@clisp.org>
69496
69497         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69498
69499         * modules/c-strcaseeq: New file.
69500         * lib/c-strcaseeq.h: New file.
69501
69502         * modules/streq: New file.
69503         * lib/streq.h: New file.
69504
69505 2007-01-23  Bruno Haible  <bruno@clisp.org>
69506
69507         * modules/striconveha-tests: New file.
69508         * tests/test-striconveha.c: New file.
69509
69510         * lib/striconveha.h: Include <stdbool.h>.
69511         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69512         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69513         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69514         (mem_iconveha): New function.
69515         (str_iconveha_notranslit): Renamed from str_iconveha.
69516         (str_iconveha): New function.
69517         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69518         c-strcase.
69519
69520 2007-01-23  Bruno Haible  <bruno@clisp.org>
69521
69522         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69523         encodings without forgiving before trying any encoding with handler.
69524         (str_iconveha): Try all encodings without forgiving before trying any
69525         encoding with handler.
69526
69527 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69528
69529         Import the following changes from libc.
69530
69531         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69532
69533         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69534
69535         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69536
69537         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69538         normal_bracket label.
69539
69540         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69541
69542         [BZ #361]
69543         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69544         to normal_bracket after fetching the next character.
69545
69546 2007-01-22  Bruno Haible  <bruno@clisp.org>
69547
69548         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69549         argument.
69550         * lib/striconveh.c (iconv_carefully_1): New function.
69551         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69552         argument.
69553         (str_cd_iconveh): Update.
69554         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69555         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69556         * tests/test-striconveh.c (MAGIC): New macro.
69557         (new_offsets): New function.
69558         (main): Test call with and without offsets.
69559
69560 2007-01-22  Bruno Haible  <bruno@clisp.org>
69561
69562         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69563         * modules/sys_select (Makefile.am): Likewise.
69564         * modules/sys_socket (Makefile.am): Likewise.
69565         * modules/sys_time (Makefile.am): Likewise.
69566
69567 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69568
69569         * modules/gettimeofday (License): Change from GPL to LGPL, since
69570         gettimeofday is a library function.
69571
69572 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69573
69574         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69575
69576 2007-01-21  Bruno Haible  <bruno@clisp.org>
69577
69578         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69579
69580 2007-01-21  Bruno Haible  <bruno@clisp.org>
69581
69582         * modules/striconveha: New file.
69583         * lib/striconveha.h: New file.
69584         * lib/striconveha.c: New file.
69585         * MODULES.html.sh (Internationalization functions): Add striconveha.
69586         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69587         string.
69588         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69589
69590 2007-01-21  Bruno Haible  <bruno@clisp.org>
69591
69592         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69593         * lib/striconveh.c (str_iconveh): Likewise.
69594
69595 2007-01-21  Bruno Haible  <bruno@clisp.org>
69596
69597         * lib/striconveh.h (mem_iconveh): New declaration.
69598         * lib/striconveh.c (mem_iconveh): New function.
69599         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69600
69601 2007-01-21  Bruno Haible  <bruno@clisp.org>
69602
69603         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69604
69605         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69606         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69607         original result buffer.
69608         (str_cd_iconveh): Update.
69609         * tests/test-striconveh.c (main): Update.
69610
69611         * lib/striconv.h (mem_cd_iconv): Change specification.
69612         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69613         result buffer.
69614         (str_cd_iconv): Update.
69615         * tests/test-striconv.c (main): Update.
69616
69617 2007-01-21  Bruno Haible  <bruno@clisp.org>
69618
69619         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69620
69621 2007-01-20  Jim Meyering  <jim@meyering.net>
69622
69623         * lib/userspec.c (parse_with_separator): If a user or group string
69624         starts with "+", skip the corresponding name-to-ID look-up, since
69625         such a look-up must fail: user and group names may not include "+".
69626
69627 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69628
69629         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69630         since we now assume the sys_time module.
69631         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69632         check for sys/time.h; no longer needed.
69633         * modules/poll (Depends-on): Depend on sys_time.
69634
69635 2007-01-18  Bruno Haible  <bruno@clisp.org>
69636
69637         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69638         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69639
69640         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69641         gettimeofday.
69642
69643         * tests/test-gettimeofday.c: Include <time.h>.
69644         (dummy): Remove variable.
69645
69646         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69647         gl_HEADER_SYS_TIME_H.
69648         (gl_HEADER_SYS_TIME_H): New macro.
69649
69650         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69651         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69652         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69653         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69654         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69655         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69656         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69657         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69658         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69659         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69660         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69661
69662         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69663         last change; it caused a compilation error when cross-compiling to
69664         Cygwin.
69665
69666 2007-01-18  Jim Meyering  <jim@meyering.net>
69667
69668         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69669         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69670         than the race-prone "test -d sys || mkdir sys".
69671         (configure.ac): Use AC_PROG_MKDIR_P.
69672         * modules/sys_select: Likewise.
69673         * modules/sys_socket: Likewise.
69674         * modules/sys_time: Likewise.
69675
69676 2007-01-18  Eric Blake  <ebb9@byu.net>
69677
69678         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69679         replace gettimeofday.
69680         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69681         name, to avoid infinite recursion.
69682
69683 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69684
69685         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69686         module sys_time.
69687         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69688         assume timespec.h defines struct timeval.
69689         * lib/settime.c: Likewise.
69690         * lib/utimens.c: Likewise.
69691         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69692         since we now assume the gettimeofday module.
69693         * lib/tempname.c (__gen_tempname): Likewise.
69694         * lib/gettimeofday.h: Remove.
69695         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69696         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69697         Include <time.h>, for 'time()'.
69698         (localtime_buffer_addr): Also use this workaround if
69699         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69700         to simplify the uses.  All uses changed.
69701         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69702         that #undef is inside {}, and 'const' follows type name consistently.
69703         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69704         (gettimeofday): Do not use the maximum possible value for
69705         tv->tv_usec, since that might break usages other than ls.c.
69706         Instead, we'll leave ls.c alone.  This undoes today's patch
69707         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69708         we've never observed the problem but might as well keep the
69709         canary.
69710         * lib/nanosleep.c: Include timespec.h first, for interface check.
69711         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69712         now assume the sys_time module.
69713         * lib/tempname.c: Likewise.
69714         * lib/timespec.h: Likewise.
69715         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69716         needed.
69717         * lib/strftime.c: Likewise.
69718         * lib/timespec.h: Likewise.
69719         * lib/posixtm.c: Include posixtm.h first, for interface check.
69720         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69721         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69722         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69723         * lib/sys_time_.h: New file.
69724         * lib/timespec.h (struct timespec): Use long int, not long.
69725         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69726         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69727         Remove obsolescent call to AC_HEADER_TIME.
69728         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69730         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69731         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69732         Likewise.
69733         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69734         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69735         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69736         into the sys_time module.  Check for gettimeofday just once.
69737         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69738         for gettimeofday signature to just check the signature.  Merely
69739         compile it, since linking doesn't test signature.  Improve test for
69740         whether gettimeofday.o is actually needed.
69741         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69742         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69743         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69744         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69745         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69746         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69747         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69748         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69749         than worrying about sys/time.h.
69750         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69751         Don't bother worrying about TIME_WITH_SYS_TIME.
69752         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69753         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69754         * m4/sys_time_h.m4: New file.
69755         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69756         Don't include sys/time.h.  Return from main rather than exiting.
69757         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69758         all uses changed.
69759         * modules/gethrxtime (Depends-on): Add sys_time.
69760         * modules/gettime (Depends-on): Likewise.
69761         * modules/gettimeofday (Depends-on): Likewise.
69762         * modules/nanosleep (Depends-on): Likewise.
69763         * modules/settime (Depends-on): Likewise.
69764         * modules/tempname (Depends-on): Likewise.
69765         * modules/utimens (Depends-on): Likewise.
69766         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69767         (Include): Change back to <sys/time.h>.
69768         (Maintainer): Add self.
69769         * modules/sys_time: New file.
69770         * modules/tempname (Depends-on): Add gettimeofday.
69771         * tests/test-gettimeofday.c: Include <sys/time.h>
69772         rather than gettimeofday.h.
69773
69774 2007-01-17  Bruno Haible  <bruno@clisp.org>
69775
69776         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69777         the license default to GPL.
69778         (func_create_testdir): Don't complain if a module is LGPL and its
69779         tests module depends on GPLed modules.
69780
69781 2007-01-17  Bruno Haible  <bruno@clisp.org>
69782
69783         * lib/gettimeofday.c (gettimeofday): Add code for the case
69784         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69785         maximum possible value for tv->tv_usec, rather than the minimum one.
69786
69787 2005-10-08  Martin Lambers  <marlam@marlam.de>
69788 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69789 2007-01-16  Bruno Haible  <bruno@clisp.org>
69790
69791         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69792         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69793         gl_FUNC_GETTIMEOFDAY.
69794         (Include): Add gettimeofday.h.
69795         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69796         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69797         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69798         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69799         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69800         * lib/gettimeofday.h: New file.
69801         * lib/gettimeofday.c: Include <sys/timeb.h>.
69802         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69803         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69804         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69805         fall back on time().
69806
69807         * tests/test-gettimeofday.c: New file.
69808         * modules/gettimeofday-tests: New file.
69809
69810 2007-01-16  Eric Blake  <ebb9@byu.net>
69811
69812         * modules/fnmatch (Depends-on): Depend on wchar.
69813         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69814         * m4/fnmatch.m4: Likewise.
69815         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69816         * m4/mbchar.m4: Likewise.
69817         * modules/mbswidth (Depends-on): Depend on wchar.
69818         * lib/mbswidth.c: Assume <wchar.h>.
69819         * m4/mbswidth.m4: Likewise.
69820         * modules/quotearg (Depends-on): Depend on wchar.
69821         * lib/quotearg.c: Assume <wchar.h>.
69822         * m4/quotearg.m4: Likewise.
69823         * modules/regex (Depends-on): Depend on wchar.
69824         * lib/regex_internal.h: Assume <wchar.h>.
69825         * m4/regex.m4: Likewise.
69826         * modules/stdint (Depends-on): Depend on wchar.
69827         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69828         * m4/stdint.m4: Likewise.
69829         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69830         * modules/strftime (Depends-on): Depend on wchar.
69831         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69832         * modules/strtol (Depends-on): Depend on wchar.
69833         * lib/strtol.c: Assume <wchar.h>.
69834         * modules/wcwidth (Depends-on): Depend on wchar.
69835         * lib/wcwidth.h: Assume <wchar.h>.
69836         * m4/wcwidth.m4: Likewise.
69837
69838 2007-01-16  Bruno Haible  <bruno@clisp.org>
69839
69840         * modules/csharpexec-script: New, created from...
69841         * modules/csharpexec: ... this.
69842
69843 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69844
69845         * modules/javaexec-script: New, created from...
69846         * modules/javaexec: ... this.
69847
69848 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69849
69850         * modules/poll (Dependencies): Add sys_select.
69851
69852 2007-01-15  Jim Meyering  <jim@meyering.net>
69853
69854         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69855         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69856         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69857         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69858
69859 2007-01-15  Bruno Haible  <bruno@clisp.org>
69860
69861         * modules/striconveh: New file.
69862         * lib/striconveh.h: New file.
69863         * lib/striconveh.c: New file.
69864         * MODULES.html.sh (Internationalization functions): Add striconveh.
69865
69866         * modules/striconveh-tests: New file.
69867         * tests/test-striconveh.c: New file.
69868
69869 2007-01-15  Bruno Haible  <bruno@clisp.org>
69870
69871         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69872         not from GNU libiconv or GNU libc.
69873
69874 2007-01-15  Bruno Haible  <bruno@clisp.org>
69875
69876         * doc/gnulib-intro.texi (Copyright): Explain the different license
69877         terms for module descriptions, autoconf macros, tests, documentation.
69878
69879 2007-01-14  Bruno Haible  <bruno@clisp.org>
69880
69881         * modules/striconv-tests: New file.
69882         * tests/test-striconv.c: New file.
69883
69884 2007-01-14  Bruno Haible  <bruno@clisp.org>
69885
69886         * modules/iconv-tests: New file.
69887         * tests/test-iconv.c: New file.
69888
69889 2007-01-14  Bruno Haible  <bruno@clisp.org>
69890
69891         * gnulib-tool (func_get_license): For test modules, use the license of
69892         the main module.
69893
69894 2007-01-14  Bruno Haible  <bruno@clisp.org>
69895
69896         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69897         if iconv is found to exist.
69898
69899 2007-01-14  Bruno Haible  <bruno@clisp.org>
69900
69901         * modules/c-ctype-tests: New file.
69902         * tests/test-c-ctype.c: New file.
69903
69904 2007-01-14  Bruno Haible  <bruno@clisp.org>
69905
69906         * modules/binary-io-tests: New file.
69907         * tests/test-binary-io.sh: New file.
69908         * tests/test-binary-io.c: New file.
69909
69910 2007-01-14  Bruno Haible  <bruno@clisp.org>
69911
69912         * modules/array-oset-tests: New file.
69913         * tests/test-array_oset.c: New file.
69914
69915 2007-01-14  Bruno Haible  <bruno@clisp.org>
69916
69917         * modules/array-list-tests: New file.
69918         * tests/test-array_list.c: New file.
69919
69920 2007-01-14  Bruno Haible  <bruno@clisp.org>
69921
69922         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69923         and make.
69924         Reported by Simon Josefsson in
69925         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69926
69927 2007-01-14  Bruno Haible  <bruno@clisp.org>
69928
69929         * modules/allocsa-tests: New file.
69930         * tests/test-allocsa.c: New file.
69931
69932 2007-01-14  Bruno Haible  <bruno@clisp.org>
69933
69934         * modules/fchdir (Depends-on): Add absolute-header.
69935         * modules/unistd (Depends-on): Likewise.
69936
69937 2006-12-30  Bruno Haible  <bruno@clisp.org>
69938
69939         * modules/fchdir: New file.
69940         * modules/unistd (Files): Add lib/unistd_.h.
69941         (Makefile.am): Generate unistd.h from unistd_.h.
69942         * lib/fchdir.c: New file.
69943         * lib/dirent_.h: New file.
69944         * lib/unistd_.h: New file.
69945         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69946         * m4/fchdir.m4: New file.
69947         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69948         (gl_HEADER_UNISTD): Invoke it.
69949         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69950         function.
69951         * lib/backupfile.c (opendir, closedir): Undefine.
69952         * lib/chown.c (open, close): Undefine.
69953         * lib/clean-temp.c (open, close): Undefine.
69954         * lib/copy-file.c (open, close): Undefine.
69955         * lib/execute.c (open, close): Undefine.
69956         * lib/fsusage.c (open, close): Undefine.
69957         * lib/gc-gnulib.c (open, close): Undefine.
69958         * lib/getcwd.c (opendir, closedir): Undefine.
69959         * lib/glob.c (opendir, closedir): Undefine.
69960         * lib/javacomp.c (open, close): Undefine.
69961         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69962         * lib/openat-proc.c (open, close): Undefine.
69963         * lib/pagealign_alloc.c (open, close): Undefine.
69964         * lib/pipe.c (open, close): Undefine.
69965         * lib/progreloc.c (open, close): Undefine.
69966         * lib/savedir.c (opendir, closedir): Undefine.
69967         * lib/utime.c (open, close): Undefine.
69968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69969
69970 2007-01-10  Bruno Haible  <bruno@clisp.org>
69971
69972         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69973
69974 2007-01-12  Eric Blake  <ebb9@byu.net>
69975
69976         Provide a robust <wchar.h>.  Further simplifications are now
69977         possible in other modules, but not included here.
69978         * modules/wchar: New module.
69979         * m4/wchar.m4: New file.
69980         * lib/wchar_.h: Likewise.
69981         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69982         of the new module.
69983         * MODULES.html.sh (Extended multibyte and wide character utilities):
69984         New section.
69985
69986 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69989         to a reasonable default for memory allocation.
69990         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69991         file system that reports garbage st_size values for symlinks.
69992         Problem reported by Liyang Hu.
69993
69994 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69995
69996         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69997         Emacs .#* auto-save files).
69998
69999 2007-01-11  Bruno Haible  <bruno@clisp.org>
70000
70001         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70002         directory.
70003
70004 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         Use @...@ consistently in lib/wctype_.h.
70007         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70008         on it being set to 1 or 0.
70009         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70010         go back to AC_SUBSTing it.
70011         * modules/wctype (Makefile.am): Undo previous change.
70012
70013 2007-01-10  Eric Blake  <ebb9@byu.net>
70014
70015         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70016         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70017         * modules/wctype (Makefile.am): Likewise.
70018         Reported by Chris McGuire.
70019
70020 2007-01-10  Jim Meyering  <jim@meyering.net>
70021
70022         fts.c: a small readability/maintainability improvement
70023         * lib/fts.c (fts_read): Make this code slightly more readable and
70024         maintainable by hoisting the "sp->fts_cur = p" assignments to
70025         immediately follow the statements that set P.  Derived from
70026         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70027
70028 2007-01-10  Eric Blake  <ebb9@byu.net>
70029
70030         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70031         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70033         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70034         Reported by Chris McGuire.
70035
70036 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70037
70038         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70039         in sed script.
70040
70041 2007-01-09  Bruno Haible  <bruno@clisp.org>
70042
70043         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70044         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70045         variables.
70046         (func_module): Use them.
70047
70048 2007-01-09  Bruno Haible  <bruno@clisp.org>
70049
70050         * modules/unistr/base: New file.
70051         * lib/unistr.h: New file.
70052
70053         * modules/unistr/u8-to-u16: New file.
70054         * lib/unistr/u8-to-u16.c: New file.
70055
70056         * modules/unistr/u8-to-u32: New file.
70057         * lib/unistr/u8-to-u32.c: New file.
70058
70059         * modules/unistr/u16-to-u8: New file.
70060         * lib/unistr/u16-to-u8.c: New file.
70061
70062         * modules/unistr/u16-to-u32: New file.
70063         * lib/unistr/u16-to-u32.c: New file.
70064
70065         * modules/unistr/u32-to-u8: New file.
70066         * lib/unistr/u32-to-u8.c: New file.
70067
70068         * modules/unistr/u32-to-u16: New file.
70069         * lib/unistr/u32-to-u16.c: New file.
70070
70071         * modules/unistr/u8-check: New file.
70072         * modules/unistr/u16-check: New file.
70073         * modules/unistr/u32-check: New file.
70074         * lib/unistr/u8-check.c: New file.
70075         * lib/unistr/u16-check.c: New file.
70076         * lib/unistr/u32-check.c: New file.
70077
70078         * modules/unistr/u8-chr: New file.
70079         * modules/unistr/u16-chr: New file.
70080         * modules/unistr/u32-chr: New file.
70081         * lib/unistr/u8-chr.c: New file.
70082         * lib/unistr/u16-chr.c: New file.
70083         * lib/unistr/u32-chr.c: New file.
70084
70085         * modules/unistr/u8-cmp: New file.
70086         * modules/unistr/u16-cmp: New file.
70087         * modules/unistr/u32-cmp: New file.
70088         * lib/unistr/u8-cmp.c: New file.
70089         * lib/unistr/u16-cmp.c: New file.
70090         * lib/unistr/u32-cmp.c: New file.
70091
70092         * modules/unistr/u8-cpy: New file.
70093         * modules/unistr/u16-cpy: New file.
70094         * modules/unistr/u32-cpy: New file.
70095         * lib/unistr/u8-cpy.c: New file.
70096         * lib/unistr/u16-cpy.c: New file.
70097         * lib/unistr/u32-cpy.c: New file.
70098         * lib/unistr/u-cpy.h: New file.
70099
70100         * modules/unistr/u8-cpy-alloc: New file.
70101         * modules/unistr/u16-cpy-alloc: New file.
70102         * modules/unistr/u32-cpy-alloc: New file.
70103         * lib/unistr/u8-cpy-alloc.c: New file.
70104         * lib/unistr/u16-cpy-alloc.c: New file.
70105         * lib/unistr/u32-cpy-alloc.c: New file.
70106         * lib/unistr/u-cpy-alloc.h: New file.
70107
70108         * modules/unistr/u8-endswith: New file.
70109         * modules/unistr/u16-endswith: New file.
70110         * modules/unistr/u32-endswith: New file.
70111         * lib/unistr/u8-endswith.c: New file.
70112         * lib/unistr/u16-endswith.c: New file.
70113         * lib/unistr/u32-endswith.c: New file.
70114         * lib/unistr/u-endswith.h: New file.
70115
70116         * modules/unistr/u8-mblen: New file.
70117         * modules/unistr/u16-mblen: New file.
70118         * modules/unistr/u32-mblen: New file.
70119         * lib/unistr/u8-mblen.c: New file.
70120         * lib/unistr/u16-mblen.c: New file.
70121         * lib/unistr/u32-mblen.c: New file.
70122
70123         * modules/unistr/u8-mbtouc: New file.
70124         * modules/unistr/u16-mbtouc: New file.
70125         * modules/unistr/u32-mbtouc: New file.
70126         * lib/unistr/u8-mbtouc.c: New file.
70127         * lib/unistr/u16-mbtouc.c: New file.
70128         * lib/unistr/u32-mbtouc.c: New file.
70129
70130         * modules/unistr/u8-mbtouc-safe: New file.
70131         * modules/unistr/u16-mbtouc-safe: New file.
70132         * modules/unistr/u32-mbtouc-safe: New file.
70133         * lib/unistr/u8-mbtouc-safe.c: New file.
70134         * lib/unistr/u16-mbtouc-safe.c: New file.
70135         * lib/unistr/u32-mbtouc-safe.c: New file.
70136
70137         * modules/unistr/u8-move: New file.
70138         * modules/unistr/u16-move: New file.
70139         * modules/unistr/u32-move: New file.
70140         * lib/unistr/u8-move.c: New file.
70141         * lib/unistr/u16-move.c: New file.
70142         * lib/unistr/u32-move.c: New file.
70143         * lib/unistr/u-move.h: New file.
70144
70145         * modules/unistr/u8-next: New file.
70146         * modules/unistr/u16-next: New file.
70147         * modules/unistr/u32-next: New file.
70148         * lib/unistr/u8-next.c: New file.
70149         * lib/unistr/u16-next.c: New file.
70150         * lib/unistr/u32-next.c: New file.
70151
70152         * modules/unistr/u8-prev: New file.
70153         * modules/unistr/u16-prev: New file.
70154         * modules/unistr/u32-prev: New file.
70155         * lib/unistr/u8-prev.c: New file.
70156         * lib/unistr/u16-prev.c: New file.
70157         * lib/unistr/u32-prev.c: New file.
70158
70159         * modules/unistr/u8-set: New file.
70160         * modules/unistr/u16-set: New file.
70161         * modules/unistr/u32-set: New file.
70162         * lib/unistr/u8-set.c: New file.
70163         * lib/unistr/u16-set.c: New file.
70164         * lib/unistr/u32-set.c: New file.
70165         * lib/unistr/u-set.h: New file.
70166
70167         * modules/unistr/u8-startswith: New file.
70168         * modules/unistr/u16-startswith: New file.
70169         * modules/unistr/u32-startswith: New file.
70170         * lib/unistr/u8-startswith.c: New file.
70171         * lib/unistr/u16-startswith.c: New file.
70172         * lib/unistr/u32-startswith.c: New file.
70173         * lib/unistr/u-startswith.h: New file.
70174
70175         * modules/unistr/u8-stpcpy: New file.
70176         * modules/unistr/u16-stpcpy: New file.
70177         * modules/unistr/u32-stpcpy: New file.
70178         * lib/unistr/u8-stpcpy.c: New file.
70179         * lib/unistr/u16-stpcpy.c: New file.
70180         * lib/unistr/u32-stpcpy.c: New file.
70181         * lib/unistr/u-stpcpy.h: New file.
70182
70183         * modules/unistr/u8-stpncpy: New file.
70184         * modules/unistr/u16-stpncpy: New file.
70185         * modules/unistr/u32-stpncpy: New file.
70186         * lib/unistr/u8-stpncpy.c: New file.
70187         * lib/unistr/u16-stpncpy.c: New file.
70188         * lib/unistr/u32-stpncpy.c: New file.
70189         * lib/unistr/u-stpncpy.h: New file.
70190
70191         * modules/unistr/u8-strcat: New file.
70192         * modules/unistr/u16-strcat: New file.
70193         * modules/unistr/u32-strcat: New file.
70194         * lib/unistr/u8-strcat.c: New file.
70195         * lib/unistr/u16-strcat.c: New file.
70196         * lib/unistr/u32-strcat.c: New file.
70197         * lib/unistr/u-strcat.h: New file.
70198
70199         * modules/unistr/u8-strchr: New file.
70200         * modules/unistr/u16-strchr: New file.
70201         * modules/unistr/u32-strchr: New file.
70202         * lib/unistr/u8-strchr.c: New file.
70203         * lib/unistr/u16-strchr.c: New file.
70204         * lib/unistr/u32-strchr.c: New file.
70205
70206         * modules/unistr/u8-strcmp: New file.
70207         * modules/unistr/u16-strcmp: New file.
70208         * modules/unistr/u32-strcmp: New file.
70209         * lib/unistr/u8-strcmp.c: New file.
70210         * lib/unistr/u16-strcmp.c: New file.
70211         * lib/unistr/u32-strcmp.c: New file.
70212
70213         * modules/unistr/u8-strcpy: New file.
70214         * modules/unistr/u16-strcpy: New file.
70215         * modules/unistr/u32-strcpy: New file.
70216         * lib/unistr/u8-strcpy.c: New file.
70217         * lib/unistr/u16-strcpy.c: New file.
70218         * lib/unistr/u32-strcpy.c: New file.
70219         * lib/unistr/u-strcpy.h: New file.
70220
70221         * modules/unistr/u8-strcspn: New file.
70222         * modules/unistr/u16-strcspn: New file.
70223         * modules/unistr/u32-strcspn: New file.
70224         * lib/unistr/u8-strcspn.c: New file.
70225         * lib/unistr/u16-strcspn.c: New file.
70226         * lib/unistr/u32-strcspn.c: New file.
70227         * lib/unistr/u-strcspn.h: New file.
70228
70229         * modules/unistr/u8-strdup: New file.
70230         * modules/unistr/u16-strdup: New file.
70231         * modules/unistr/u32-strdup: New file.
70232         * lib/unistr/u8-strdup.c: New file.
70233         * lib/unistr/u16-strdup.c: New file.
70234         * lib/unistr/u32-strdup.c: New file.
70235         * lib/unistr/u-strdup.h: New file.
70236
70237         * modules/unistr/u8-strlen: New file.
70238         * modules/unistr/u16-strlen: New file.
70239         * modules/unistr/u32-strlen: New file.
70240         * lib/unistr/u8-strlen.c: New file.
70241         * lib/unistr/u16-strlen.c: New file.
70242         * lib/unistr/u32-strlen.c: New file.
70243         * lib/unistr/u-strlen.h: New file.
70244
70245         * modules/unistr/u8-strmblen: New file.
70246         * modules/unistr/u16-strmblen: New file.
70247         * modules/unistr/u32-strmblen: New file.
70248         * lib/unistr/u8-strmblen.c: New file.
70249         * lib/unistr/u16-strmblen.c: New file.
70250         * lib/unistr/u32-strmblen.c: New file.
70251
70252         * modules/unistr/u8-strmbtouc: New file.
70253         * modules/unistr/u16-strmbtouc: New file.
70254         * modules/unistr/u32-strmbtouc: New file.
70255         * lib/unistr/u8-strmbtouc.c: New file.
70256         * lib/unistr/u16-strmbtouc.c: New file.
70257         * lib/unistr/u32-strmbtouc.c: New file.
70258
70259         * modules/unistr/u8-strncat: New file.
70260         * modules/unistr/u16-strncat: New file.
70261         * modules/unistr/u32-strncat: New file.
70262         * lib/unistr/u8-strncat.c: New file.
70263         * lib/unistr/u16-strncat.c: New file.
70264         * lib/unistr/u32-strncat.c: New file.
70265         * lib/unistr/u-strncat.h: New file.
70266
70267         * modules/unistr/u8-strncmp: New file.
70268         * modules/unistr/u16-strncmp: New file.
70269         * modules/unistr/u32-strncmp: New file.
70270         * lib/unistr/u8-strncmp.c: New file.
70271         * lib/unistr/u16-strncmp.c: New file.
70272         * lib/unistr/u32-strncmp.c: New file.
70273
70274         * modules/unistr/u8-strncpy: New file.
70275         * modules/unistr/u16-strncpy: New file.
70276         * modules/unistr/u32-strncpy: New file.
70277         * lib/unistr/u8-strncpy.c: New file.
70278         * lib/unistr/u16-strncpy.c: New file.
70279         * lib/unistr/u32-strncpy.c: New file.
70280         * lib/unistr/u-strncpy.h: New file.
70281
70282         * modules/unistr/u8-strnlen: New file.
70283         * modules/unistr/u16-strnlen: New file.
70284         * modules/unistr/u32-strnlen: New file.
70285         * lib/unistr/u8-strnlen.c: New file.
70286         * lib/unistr/u16-strnlen.c: New file.
70287         * lib/unistr/u32-strnlen.c: New file.
70288         * lib/unistr/u-strnlen.h: New file.
70289
70290         * modules/unistr/u8-strpbrk: New file.
70291         * modules/unistr/u16-strpbrk: New file.
70292         * modules/unistr/u32-strpbrk: New file.
70293         * lib/unistr/u8-strpbrk.c: New file.
70294         * lib/unistr/u16-strpbrk.c: New file.
70295         * lib/unistr/u32-strpbrk.c: New file.
70296         * lib/unistr/u-strpbrk.h: New file.
70297
70298         * modules/unistr/u8-strrchr: New file.
70299         * modules/unistr/u16-strrchr: New file.
70300         * modules/unistr/u32-strrchr: New file.
70301         * lib/unistr/u8-strrchr.c: New file.
70302         * lib/unistr/u16-strrchr.c: New file.
70303         * lib/unistr/u32-strrchr.c: New file.
70304
70305         * modules/unistr/u8-strspn: New file.
70306         * modules/unistr/u16-strspn: New file.
70307         * modules/unistr/u32-strspn: New file.
70308         * lib/unistr/u8-strspn.c: New file.
70309         * lib/unistr/u16-strspn.c: New file.
70310         * lib/unistr/u32-strspn.c: New file.
70311         * lib/unistr/u-strspn.h: New file.
70312
70313         * modules/unistr/u8-strstr: New file.
70314         * modules/unistr/u16-strstr: New file.
70315         * modules/unistr/u32-strstr: New file.
70316         * lib/unistr/u8-strstr.c: New file.
70317         * lib/unistr/u16-strstr.c: New file.
70318         * lib/unistr/u32-strstr.c: New file.
70319         * lib/unistr/u-strstr.h: New file.
70320
70321         * modules/unistr/u8-strtok: New file.
70322         * modules/unistr/u16-strtok: New file.
70323         * modules/unistr/u32-strtok: New file.
70324         * lib/unistr/u8-strtok.c: New file.
70325         * lib/unistr/u16-strtok.c: New file.
70326         * lib/unistr/u32-strtok.c: New file.
70327         * lib/unistr/u-strtok.h: New file.
70328
70329         * modules/unistr/u8-uctomb: New file.
70330         * modules/unistr/u16-uctomb: New file.
70331         * modules/unistr/u32-uctomb: New file.
70332         * lib/unistr/u8-uctomb.c: New file.
70333         * lib/unistr/u16-uctomb.c: New file.
70334         * lib/unistr/u32-uctomb.c: New file.
70335
70336         * MODULES.html.sh (Unicode string functions): Add the new modules.
70337
70338 2007-01-08  Bruno Haible  <bruno@clisp.org>
70339
70340         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70341         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70342         subdirectories.
70343
70344 2007-01-08  Karl Berry  <karl@gnu.org>
70345
70346         * doc/error.texi: mention that main() fns must set program_name
70347         when progname is used.
70348
70349 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70352         WCTYPE_H is empty, for the benefit of builds from non-distclean
70353         directories.  Problem reported by Eric Blake in
70354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70355
70356 2007-01-08  Bruno Haible  <bruno@clisp.org>
70357
70358         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70359         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70360         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70361         PROVIDE_CANONICALIZE_FILENAME_MODE.
70362         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70363
70364 2007-01-08  Bruno Haible  <bruno@clisp.org>
70365
70366         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70367         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70368         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70369         * lib/fts.c: Likewise.
70370         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70371
70372 2006-12-25  Bruno Haible  <bruno@clisp.org>
70373
70374         * modules/utf8-ucs4-safe: New file.
70375         * lib/utf8-ucs4-safe.h: New file.
70376         * lib/unistr/utf8-ucs4-safe.c: New file.
70377
70378         * modules/utf16-ucs4-safe: New file.
70379         * lib/utf16-ucs4-safe.h: New file.
70380         * lib/unistr/utf16-ucs4-safe.c: New file.
70381
70382         * MODULES.html.sh (Unicode string functions): Add the new modules.
70383
70384 2007-01-08  Bruno Haible  <bruno@clisp.org>
70385
70386         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70387         (Depends-on): Add unitypes.
70388         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70389         (u8_mbtouc_aux): Move out to separate file.
70390         (u8_mbtouc): Use ucs4_t, uint8_t types.
70391         * lib/unistr/utf8-ucs4.c: New file.
70392
70393         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70394         (Depends-on): Add unitypes.
70395         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70396         (u16_mbtouc_aux): Move out to separate file.
70397         (u16_mbtouc): Use ucs4_t, uint16_t types.
70398         * lib/unistr/utf16-ucs4.c: New file.
70399
70400         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70401         (Depends-on): Add unitypes.
70402         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70403         (u8_uctomb_aux): Move out to separate file.
70404         (u8_uctomb): Use ucs4_t, uint8_t types.
70405         * lib/unistr/ucs4-utf8.c: New file.
70406
70407         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70408         (Depends-on): Add unitypes.
70409         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70410         (u16_uctomb_aux): Move out to separate file.
70411         (u16_uctomb): Use ucs4_t, uint16_t types.
70412         * lib/unistr/ucs4-utf16.c: New file.
70413
70414 2006-12-25  Bruno Haible  <bruno@clisp.org>
70415
70416         * modules/unitypes: New file.
70417         * lib/unitypes.h: New file.
70418         * MODULES.html.sh (func_all_modules): New section "Unicode string
70419         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70420         this section. Add unitypes.
70421
70422 2007-01-08  Bruno Haible  <bruno@clisp.org>
70423
70424         Avoid variable names that conflict with those from libtool.
70425         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70426         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70427         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70428         library_names_spec to acl_library_names_spec, hardcode_* to
70429         acl_hardcode_*.
70430         Reported by Ralf Wildenhues.
70431
70432 2007-01-08  Bruno Haible  <bruno@clisp.org>
70433
70434         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70435         definition.
70436         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70437         definition.
70438         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70439         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70440         definition.
70441         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70442         definition.
70443         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70444         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70445         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70446         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70447         definition.
70448         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70449         definition.
70450         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70451         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70452         GC_USE_<algorithm>.
70453         * lib/gc-libgcrypt.c: Likewise.
70454         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70455         * modules/gc-arctwo (configure.ac): Likewise.
70456         * modules/gc-des (configure.ac): Likewise.
70457         * modules/gc-hmac-md5 (configure.ac): Likewise.
70458         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70459         * modules/gc-md2 (configure.ac): Likewise.
70460         * modules/gc-md4 (configure.ac): Likewise.
70461         * modules/gc-md5 (configure.ac): Likewise.
70462         * modules/gc-random (configure.ac): Likewise.
70463         * modules/gc-rijndael (configure.ac): Likewise.
70464         * modules/gc-sha1 (configure.ac): Likewise.
70465
70466 2007-01-08  Bruno Haible  <bruno@clisp.org>
70467
70468         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70469         macro definition.
70470         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70471         definition.
70472         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70473         definition.
70474         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70475         * modules/fcntl-safer (configure.ac): Likewise.
70476         * modules/fopen-safer (configure.ac): Likewise.
70477         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70478         GNULIB_FWRITEERROR macro definition.
70479
70480 2007-01-08  Bruno Haible  <bruno@clisp.org>
70481
70482         * m4/gnulib-common.m4: New file.
70483         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70484         (func_get_filelist): Add m4/gnulib-common.m4.
70485
70486 2007-01-08  Bruno Haible  <bruno@clisp.org>
70487
70488         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70489         command.
70490
70491 2007-01-08  Jim Meyering  <jim@meyering.net>
70492
70493         Use a more robust test for a "can't happen" condition.
70494         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70495         narrowed the st_size value.  Presuming the "can't happen" condition
70496         is true, that narrowing could conceivably convert an invalid st_size
70497         value into a valid one.  Instead, use a change based on Matthew
70498         Woehlke's original patch.
70499
70500         Slight readability improvement: use an assert-like macro
70501         in place of literal "abort ()" uses.
70502         * lib/fts.c (fts_assert): Define.
70503         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70504         Use this macro instead of a bare 'abort'.
70505
70506 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70507
70508         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70509         simply work around them.
70510         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70511         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70512         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70513         declaring.
70514         Don't bother to define as macros, since the standard doesn't require it.
70515         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70516         longer worry about IRIX 5.3.
70517         (HAVE_WCTYPE_CTMP_BUG): Remove.
70518
70519 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70522         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70523         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70524         Problems reported by Georg Schwarz for IRIX 5.3.
70525
70526         * gnulib-tool (autoconf_minversion): Take the maximum version number
70527         found, not the minimum.  Problem reported by James Youngman.
70528
70529 2007-01-03  Karl Berry  <karl@gnu.org>
70530
70531         * doc/error.texi: new file, explaining interaction with progname.
70532         * doc/gnulib.texi: include it.  Update copyright.
70533
70534 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70535
70536         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70537         AC_CANONICAL_HOST, to improve autobuild outputs.
70538
70539 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70540             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70541
70542         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70543         sockets, server sockets, and other file descriptors.  Count errors
70544         to compute the return value.  Reorder the code a bit to be easier
70545         to follow.  Don't set event bits that were not requested (except
70546         POLLERR and POLLHUP).
70547
70548 2007-01-01  Bruno Haible  <bruno@clisp.org>
70549
70550         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70551
70552 2007-01-03  Jim Meyering  <jim@meyering.net>
70553
70554         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70555
70556 2007-01-02  Bruno Haible  <bruno@clisp.org>
70557
70558         * modules/settime (Include): Require timespec.h.
70559         * modules/nanosleep (Include): Likewise.
70560
70561 2007-01-01  Bruno Haible  <bruno@clisp.org>
70562
70563         * gnulib-tool (func_emit_copyright_notice): Bump year.
70564         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70565
70566 2007-01-01  Bruno Haible  <bruno@clisp.org>
70567
70568         Improve support for OpenBSD.
70569         * build-aux/config.rpath (libname_spec): Export.
70570         (library_names_spec): New variable. Export.
70571         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70572         library_names_spec from the config.rpath output. Locate shared library
70573         through the name pattern in library_names_spec.
70574
70575 2007-01-01  Eric Blake  <ebb9@byu.net>
70576
70577         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70578
70579 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70582         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70583         assume the C locale, and avoid an "eval" that could cause trouble.
70584         Problem with SORT reported by Bob Proulx.
70585
70586         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70587         Define.  Trivial patch from Henning Nielsen Lund, originally
70588         sent to bug-grep@gnu.org today.
70589
70590 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70593         struct stat.  Problem reported by Henning Nielsen Lund.
70594         * lib/acl.c: Include acl.h first, to check interface.  Don't
70595         bother to include sys/types.h and sys/stat.h again.
70596
70597 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70598
70599         Import the following change from libc; problem reported by
70600         Sven Verdoolaege.
70601
70602         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70603
70604         [BZ #1373]
70605         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70606
70607 2006-12-28  Jim Meyering  <jim@meyering.net>
70608
70609         * build-aux/announce-gen: Do not assume that the package
70610         builds any of tar.gz, tar.bz2, and .xdelta files.
70611         Suggestion from Simon Josefsson.
70612
70613 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70614
70615         * modules/announce-gen: New file.
70616
70617 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70618
70619         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70620         handles its gotchas now.
70621         * lib/mbswidth.c: Likewise.
70622         * lib/wcwidth.h: Likewise.
70623         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70624         and iswcntrl; the wctype module does this stuff now.
70625         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70626         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70627         * modules/mbchar (Depends-on): Add wctype.
70628         * modules/mbswidth (Depends-on): Likewise.
70629         * modules/wcwidth (Depends-on): Likewise.
70630
70631 2006-12-27  Eric Blake  <ebb9@byu.net>
70632
70633         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70634         module uses more than what <wctype.h> is required to provide.
70635
70636 2006-12-26  Eric Blake  <ebb9@byu.net>
70637
70638         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70639
70640 2006-12-26  Eric Blake  <ebb9@byu.net>
70641
70642         * modules/absolute-header: New module.
70643         * modules/fcntl (Depends-on): Depend on it.
70644         * modules/inttypes (Depends-on): Likewise.
70645         * modules/stdint (Depends-on): Likewise.
70646         * modules/sys_stat (Depends-on): Likewise.
70647         * modules/wctype (Depends-on): Likewise.
70648         * MODULES.html.sh (Support for building libraries and
70649         executables): Document it.
70650
70651 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70652
70653         * gnulib-tool (SED): Remove, undoing previous change.
70654         The problem was that it broke coreutils on Solaris, because
70655         "sed --posix" leaked into a makefile.
70656         (sed): New alias, if 'alias' and GNU sed.
70657
70658 2006-12-24  Jim Meyering  <jim@meyering.net>
70659
70660         Work around an fchownat bug in glibc-2.4:
70661         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70662         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70663         in spite of the -P option.
70664         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70665         New macros.
70666         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70667         * modules/openat (Files): Add lib/fchownat.c.
70668         * lib/openat.c (fchownat): Don't define here.  Move to...
70669         * lib/fchownat.c: ...this new file.
70670
70671 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70672
70673         Fix bug reported by Bruno Haible in
70674         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70675         where quotearg.c didn't compile on Mac OS X 10.2 because it
70676         lacks <wchar.h> and wint_t.
70677         * lib/wctype_.h (__wctype_wint_t): New type.
70678         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70679         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70680         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70681         Arg is now of type __wctype_wint_t, not wint_t.
70682         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70683         substitute HAVE_WINT_T.
70684         * modules/wctype (Files): Add m4/wint_t.m4.
70685         (wctype.h): Substitute HAVE_WINT_T.
70686
70687 2006-12-23  Bruno Haible  <bruno@clisp.org>
70688
70689         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70690
70691 2006-12-23  Bruno Haible  <bruno@clisp.org>
70692
70693         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70694         S_ISLNK.
70695         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70696         mingw.
70697
70698 2006-12-22  Bruno Haible  <bruno@clisp.org>
70699
70700         * lib/copy-file.c: Include acl.h.
70701         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70702         Close the file descriptors only after being done with copy_acl.
70703         * modules/copy-file (Depends-on): Add acl.
70704
70705 2006-12-22  Bruno Haible  <bruno@clisp.org>
70706
70707         * gnulib-tool (SED): New variable.
70708         Use $SED instead of sed everywhere.
70709
70710 2006-12-22  Bruno Haible  <bruno@clisp.org>
70711
70712         * modules/no-c++: New file.
70713         * m4/no-c++.m4: New file.
70714         * MODULES.html.sh (Support for building libraries and executables):
70715         Add no-c++.
70716
70717 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70720         Include <limits.h>, and use its INT_MAX to rewrite the
70721         j loop so that it does not overflow 'int'.  Problem reported by
70722         Ralf Wildenhues in
70723         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70724         Play it safe by shifting left by 1 rather than multiplying by 2,
70725         as GCC is less likely to optimize this away when the value
70726         is signed (when it assumes overflow leads to undefined behavior).
70727         Also, don't assume time_t uses two's complement.
70728
70729 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * MODULES.html.sh: New module wctype.
70732         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70733         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70734         <wctype.h>, since the new wctype module should fix this.
70735         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70736         the wctype module should arrange for it.
70737         * lib/regex_internal.h: Likewise.
70738         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70739         since the wctype module should handle this now.
70740         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70741         * modules/fnmatch (Depends-on): Add wctype.
70742         * modules/quotearg (Depends-on): Likewise.
70743         * modules/regex (Depends-on): Likewise.
70744
70745 2006-12-19  Bruno Haible  <bruno@clisp.org>
70746
70747         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70748         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70749
70750 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70751
70752         * modules/savewd (Depends-on): Fix dependency on fcntl.
70753
70754 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70755
70756         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70757         conforms to C99, rather than relying on the user's environment
70758         setting of STDINT_H.
70759
70760 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70761         and Eric Blake  <ebb9@byu.net>
70762
70763         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70764         This is more consistent with the other defines here.
70765         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70766         Port to z/OS.  Problem reported by Paul Gilmartin.
70767         Change local vars to use gl_ prefix rather than ac_.
70768         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70769         with other defines.
70770         * modules/double-slash-root: New module.
70771         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70772         (Depends-on): Add double-slash-root.
70773         * MODULES.html.sh (File system functions): Mention new module.
70774
70775 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70776
70777         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70778         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70779         This is for the benefit of gzip, which doesn't do i18n.
70780
70781 2006-12-12  Jim Meyering  <jim@meyering.net>
70782
70783         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70784         Reported by Andreas Schwab <schwab@suse.de>.
70785
70786 2006-12-12  Bruno Haible  <bruno@clisp.org>
70787
70788         Merge these changes.
70789         2006-09-05  Bruno Haible  <bruno@clisp.org>
70790         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70791         iconv_alloc succeeded.
70792         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70793         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70794         test for " && dest " at the end - dest is always != NULL there. Call
70795         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70796         with 2xNULL arguments, also to flush the state storage. Handle the
70797         IRIX iconv behaviour. Realloc the final result, to throw away unused
70798         memory.
70799
70800 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70801
70802         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70803         and fchmodat unconditionally, since glibc 2.4 has them.
70804         Problem reported by Arkadiusz Miskiewicz.
70805
70806 2006-12-10  Bruno Haible  <bruno@clisp.org>
70807
70808         * gnulib-tool (func_import): Show the include files only for those
70809         modules that are copied and specified.
70810         Reported by Karl Berry.
70811
70812 2006-12-08  Jim Meyering  <jim@meyering.net>
70813
70814         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70815         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70816
70817         * build-aux/announce-gen: Add two new options, both optional:
70818         --bootstrap-tools=TOOL_LIST
70819               a comma-separated list of tools, e.g.,
70820               autoconf,automake,bison,gnulib
70821         --gnulib-snapshot-date=DATE
70822               if gnulib is in the bootstrap tool list,
70823               then report this as the snapshot date.
70824               If not specified, use the current date/time.
70825               If you specify a date here, be sure it's UTC.
70826
70827 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70828
70829         * tests/test-argp-2.sh: Fix test to match actual output.
70830         (func_compare): Fix sed script to be portable.
70831
70832 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70833
70834         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70835         workaround for this case.  It is not autoconfigured now; offhand
70836         it's hard to see how to autoconfigure it.
70837
70838 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70841         a directory that is about to be chowned.  Such a directory's
70842         initial file permissions should permit the owner only and this
70843         should not be changed until after the chown, since the group and
70844         other bits would be incorrect if they granted permission before
70845         the chown.
70846
70847         Fix porting problem for iswctype reported by Georg Schwarz in:
70848         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70849         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70850         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70851         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70852         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70853
70854 2006-12-03  Jim Meyering  <jim@meyering.net>
70855
70856         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70857         p->fts_statp may not yet be defined.
70858         (fts_read): Instead, set it in the caller, once p->fts_statp is
70859         sure to be defined, and corresponds to a top-level directory.
70860         This bug made du -x fail.  Here's the coreutils test case:
70861         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70862         Reported by Mike Frysinger.
70863
70864 2006-12-01  Jim Meyering  <jim@meyering.net>
70865
70866         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70867         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70868         Reported by Simon Josefsson.
70869
70870 2006-11-30  Jim Meyering  <jim@meyering.net>
70871
70872         * m4/warning.m4: Use the all-permissive copyright notice
70873         recommended by RMS (rather than LGPL).
70874         * m4/vararrays.m4: Likewise.
70875         * m4/flexmember.m4: Likewise.
70876
70877 2006-11-29  Bruno Haible  <bruno@clisp.org>
70878
70879         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70880         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70881         using +=.
70882         Reported by Simon Josefsson <simon@josefsson.org>.
70883
70884 2006-11-28  James Youngman <jay@gnu.org>
70885
70886         * README: Advise users that they might find the bug-gnulib@gnu.org
70887         and autotools-announce@gnu.org mailing lists useful.
70888
70889 2006-11-28  Bruno Haible  <bruno@clisp.org>
70890
70891         * m4/ptrdiff_max.m4: Remove file.
70892
70893 2006-11-21  Bruno Haible  <bruno@clisp.org>
70894
70895         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70896         _AC_COMPUTE_INT.
70897         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70898         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70899         _AC_COMPUTE_INT.
70900         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70901         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70902         _AC_COMPUTE_INT.
70903         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70904
70905 2006-11-28  Jim Meyering  <jim@meyering.net>
70906
70907         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70908         warning from "gcc -Wshadow" about shadowing the builtin.
70909
70910 2006-11-27  Bruno Haible  <bruno@clisp.org>
70911
70912         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70913         _AC_COMPUTE_INT.
70914         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70915
70916 2006-11-27  Bruno Haible  <bruno@clisp.org>
70917             Paul Eggert  <eggert@cs.ucla.edu>
70918
70919         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70920
70921 2006-11-26  Bruno Haible  <bruno@clisp.org>
70922
70923         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70924         noinst_LTLIBRARIES.
70925
70926 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70927             Bruno Haible  <bruno@clisp.org>
70928
70929         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70930         if compiling with "gcc -ansi".
70931
70932 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70933
70934         Fix some incompatibilities with gcc -ansi -pedantic.
70935         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70936         if compiling pedantically with GCC, unless it's C99 or later.
70937         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70938         it mishandles gcc -ansi -pedantic as well.
70939         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70940         if gcc -pedantic.
70941         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70942         initializers for struct if -pedantic, unless it's C99 or later.
70943
70944 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70945
70946         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70947         Don't close an fd more than once. Identical atimes indicate
70948         success, not failure.
70949
70950 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70951
70952         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70953
70954 2006-11-23  Jim Meyering  <jim@meyering.net>
70955
70956         * build-aux/announce-gen: New file.  From coreutils.
70957
70958 2006-11-22  Jim Meyering  <jim@meyering.net>
70959
70960         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70961         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70962         (fts_read): Use a temporary to narrow the overused st_size member
70963         before using it in a switch statement.  Reported by Matthew Woehlke.
70964
70965         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70966         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70967
70968 2006-11-20  Bruno Haible  <bruno@clisp.org>
70969
70970         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70971         changequote instead of pairs of brackets.
70972         Reported by Andreas Schwab <schwab@suse.de>.
70973
70974 2006-11-21  Jim Meyering  <jim@meyering.net>
70975
70976         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70977         so as to remain compatible with older compilers.
70978         Patch from Michael Deutschmann.
70979
70980 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70981
70982         * MODULES.html.sh (File system functions): Add openat.
70983
70984         * lib/openat.h (rpl_fstatat): New macro, if
70985         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70986         (fstatat): Define to rpl_fstatat under the same conditions,
70987         unless COMPILING_FSTATAT.
70988         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70989         seems to have the bug.
70990         * lib/fstatat.c: New file.
70991         * modules/openat (Files): Add it.
70992
70993 2006-11-20  Bruno Haible  <bruno@clisp.org>
70994
70995         * Makefile: New file.
70996
70997 2006-11-20  Jim Meyering  <jim@meyering.net>
70998
70999         The beginnings of syntax-related checks for gnulib.
71000         * lib/Makefile: New file.
71001         * lib/t-idcache: New script.  Ensure that the two halves of
71002         idcache.c stay in sync.
71003
71004         * lib/idcache.c: Adjust comments in user- and group- portions to
71005         be more accurate, and to be consistent with one another.
71006
71007 2006-11-20  Jim Meyering  <jim@meyering.net>
71008
71009         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71010         continue using the flexible array member (thus, this module performs
71011         half as many malloc calls), with the addition that...
71012         (getgroup, getuser): Consistently record a non-match via an empty
71013         "name" string, and map an empty string match to a NULL return value.
71014         * modules/idcache (Depends-on): Re-add flexmember.
71015
71016         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71017         (getuidbyname, getgroup, getgidbyname): Likewise.
71018
71019         Use cleaner syntax: NULL rather than 0.
71020         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71021
71022 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71023
71024         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71025         It mishandled the case where the group was missing.
71026         Problem reported by Greg Schafer.
71027         * modules/idcache: Likewise.
71028
71029 2006-11-18  Jim Meyering  <jim@meyering.net>
71030
71031         * check-module (%exempt_header): Add exception for some
71032         conditionally-included headers.
71033
71034         * modules/i-ring (Depends-on): Add verify.
71035         (License): Change to LGPL.
71036
71037 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71040         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71041         and inttostr.h.  Use snprintf rather than uinttostr, so that
71042         LGPLed code doesn't depend on GPLed.
71043
71044 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71045
71046         * modules/inline (License): Change from GPL to LGPL.
71047
71048 2006-11-17  Jim Meyering  <jim@meyering.net>
71049
71050         * modules/d-type (License): Switch to LGPL.
71051
71052 2006-11-15  Bruno Haible  <bruno@clisp.org>
71053
71054         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71055
71056 2006-11-15  Eric Blake  <ebb9@byu.net>
71057
71058         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71059         the module dependency.
71060
71061 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71062             Bruno Haible  <bruno@clisp.org>
71063
71064         * gnulib-tool (func_create_testdir): Add license consistency check.
71065
71066 2006-11-15  Eric Blake  <ebb9@byu.net>
71067
71068         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71069         random "(cached)" in configure output.
71070
71071 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71072
71073         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71074         test for conforming inttypes.h is both announced and cached.
71075
71076         * MODULES.html.sh (seen_modules, seen_files): New variables.
71077         (func_module): Rewrite to use a few less gnulib-tool and sed
71078         invocations.  Avoid a couple of quadratic algorithms for ...
71079         (missed_modules, missed_files): ... these, with ...
71080         (func_append, func_tmpdir): ... these new functions, from
71081         gnulib-tool.  Analogously, install traps for cleanup.
71082
71083         * tests/test-gc.c (main): Remove unused variables.
71084         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71085
71086 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71087
71088         * modules/inttostr (License): Change to LGPL.
71089
71090 2006-11-14  Eric Blake  <ebb9@byu.net>
71091
71092         * modules/tempname (License): Change to LGPL.
71093
71094 2006-11-14  Eric Blake  <ebb9@byu.net>
71095
71096         * doc/functions.texi (Function Portability): *printf functions on
71097         Cygwin now understand all POSIX size specifiers.
71098
71099 2006-11-14  Bruno Haible  <bruno@clisp.org>
71100
71101         * modules/c-ctype (License): Change to LGPL.
71102
71103 2006-11-12  Bruno Haible  <bruno@clisp.org>
71104
71105         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71106         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71107         for GNOME libraries, for which the include files are installed in
71108         subdirectories of $prefix/include.
71109
71110 2006-11-12  Bruno Haible  <bruno@clisp.org>
71111
71112         * m4/lib-link.m4: Require at least autoconf-2.54.
71113         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71114         name to underscores for the --with option.
71115
71116 2006-11-13  Bruno Haible  <bruno@clisp.org>
71117
71118         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71119         the tests directory.
71120         Reported by Ralf Wildenhues.
71121
71122 2006-11-13  Bruno Haible  <bruno@clisp.org>
71123
71124         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71125         (func_emit_initmacro_end): Undo the override here.
71126         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71127         Works around the famous automake error in coreutils.
71128
71129 2006-11-13  Eric Blake  <ebb9@byu.net>
71130
71131         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71132         element, not its node.
71133
71134 2006-11-12  Bruno Haible  <bruno@clisp.org>
71135
71136         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71137         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71138
71139 2006-11-12  Bruno Haible  <bruno@clisp.org>
71140
71141         * gnulib-tool: New option --local-symlink.
71142         (func_usage): Document it.
71143         (lsymbolic): New variable.
71144         (func_import, func_create_testdir): If --symlink was not specified,
71145         test whether --local-symlink was specified and the file comes from
71146         the local_gnulib_dir.
71147
71148 2006-11-12  Bruno Haible  <bruno@clisp.org>
71149
71150         * gnulib-tool (func_ln): New function.
71151         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71152
71153 2006-11-12  Bruno Haible  <bruno@clisp.org>
71154
71155         Finish support for source files in subdirectories.
71156         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71157         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71158         AUTOMAKE_OPTIONS.
71159         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71160
71161 2006-11-12  Bruno Haible  <bruno@clisp.org>
71162
71163         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71164         EXTRA_lib_SOURCES augmentation.
71165         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71166
71167 2006-11-12  Jim Meyering  <jim@meyering.net>
71168
71169         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71170         file descriptors.  This also averts a failure on systems with
71171         native openat support when a traversed directory lacks "x" access.
71172         * lib/fts_.h: Include "i-ring.h"
71173         (struct FTS) [fts_fd_ring]: New member.
71174         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71175         (FCHDIR): Add parentheses.
71176         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71177         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71178         When descending, rather than simply closing the previous
71179         fts_cwd_fd value, push that file descriptor onto the ring.
71180         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71181         (fts_open): Initialize the new fd_ring member.
71182         (fts_close): Clear the ring.
71183         (fts_safe_changedir): When possible, use our new fd_ring to skip
71184         the diropen and fstat and dev/ino comparison that would normally
71185         accompany a virtual `chdir ("..")'.
71186
71187         * modules/fts (Depends-on): Add i-ring.
71188         * modules/i-ring: New module.
71189         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71190         * m4/i-ring.m4: New file.
71191
71192 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71193
71194         * gnulib-tool (func_create_testdir): Fix replacement of
71195         `build-aux' in configure.ac.  Run autotools in gltests
71196         subdirectory.
71197         (func_create_testdir, func_create_megatestdir, test): There is
71198         no need for '--force' in most autotool invocations in a new
71199         tree.  Actually fail the whole test if any of the tools, or the
71200         configure or make stages fail.
71201
71202         Sync from Automake.
71203         * build-aux/gnupload: Revert last change.  Add pointer to upload
71204         instructions of the GNU Maintenance Instructions.
71205         Suggestion by Karl Berry.
71206
71207 2006-11-10  Jim Meyering  <jim@meyering.net>
71208
71209         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71210
71211 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71214         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71215         (bind_textdomain_codeset) [! ENABLE_NLS]:
71216         Evaluate all the arguments.  That way, callers get compatible behavior
71217         if the arguments have side effects.  Also, it avoids some GCC
71218         diagnostics in some cases; Joel E. Denny reported problems when Bison
71219         was configured with --enable-gcc-warnigs.
71220
71221 2006-11-10  Jim Meyering  <jim@meyering.net>
71222
71223         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71224         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71225         account.
71226
71227 2006-11-10  Jim Meyering  <jim@meyering.net>
71228
71229         * modules/inline: New file/module.
71230         * modules/xalloc (Files): Remove m4/inline.m4.
71231         (Depends-on): Add inline, instead.
71232         * modules/oset: Likewise.
71233         * modules/list: Likewise.
71234
71235 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71238         Problem reported by Matthew Woehlke.
71239
71240 2006-11-09  Bruno Haible  <bruno@clisp.org>
71241
71242         * lib/tempname.c (gen_tempname): Remove variant that invokes
71243         __gen_tempname.
71244         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71245         __gen_tempname.
71246
71247 2006-11-08  Bruno Haible  <bruno@clisp.org>
71248
71249         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71250         to 'yes' instead of 'cross-compiling'.
71251
71252 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71253
71254         * lib/quotearg.h (quotearg_free): New decl.
71255         * lib/quotearg.c (quotearg_free): New function.
71256         (slot0, nslots, slotvec0, slotvec):
71257         Now file-scope so that quotearg_free can get at them.
71258
71259 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71260
71261         Sync from Automake.
71262         * build-aux/gnupload: Add missing 'gnu' to example URL.
71263         Report by Karl Berry.
71264
71265 2006-11-08  Bruno Haible  <bruno@clisp.org>
71266
71267         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71268         Suggested by Paul Eggert.
71269
71270 2006-11-08  Jim Meyering  <jim@meyering.net>
71271
71272         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71273         It's already included if !_LIBC.
71274         (fts_safe_changedir): Add a comment.
71275
71276 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71277
71278         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71279         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71280         Matthew Woehlke.
71281
71282         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71283         definitions up, to avoid colliding with change below.
71284         (static_inline) [HAVE_INLINE]: New macro.
71285         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71286         Provide extern decls when !HAVE_INLINE.  Do not define unless
71287         static_inline is defined, either by us or by xmalloc.c.  Use
71288         static_inline rather than static inline.
71289         (XCALLOC): Optimize sizeof(T) = 1 case.
71290         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71291
71292 2006-11-07  Bruno Haible  <bruno@clisp.org>
71293
71294         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71295         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71296         AC_C_INLINE.
71297         * modules/xalloc (Files): Add m4/inline.m4.
71298
71299 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71300
71301         * README: Fix typo.
71302         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71303         (Miscellanous Notes): ...from this.
71304
71305 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71308         Mention that offsetof should be used instead of sizeof.
71309         From Bruno Haible.
71310
71311 2006-11-07  Bruno Haible  <bruno@clisp.org>
71312
71313         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71314
71315 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71316
71317         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71318         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71319         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71320         (gl_tree_add_before, gl_tree_add_after):
71321         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71322         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71323         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71324         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71325         (gl_linked_add_after, gl_linked_add_at): Likewise.
71326         * lib/gl_anyrbtree_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): Likewise.
71329         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71330         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71331         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71332
71333 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71334
71335         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71336
71337 2006-11-06  Bruno Haible  <bruno@clisp.org>
71338
71339         * m4/inline.m4: New file.
71340         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71341         * modules/list (Files): Add m4/inline.m4.
71342         * modules/oset (Files): Likewise.
71343
71344 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71345
71346         * lib/idcache.c: Include <stddef.h>, for offsetof.
71347         (struct userid.name): Change from char * to a flexible array member.
71348         All uses changed.
71349         * modules/idcache (Depends-on): Add flexmember.
71350
71351         * MODULES.html.sh (Core language properties): New module flexmember.
71352         * modules/flexmember, m4/flexmember.m4: New files.
71353
71354         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71355         inline functions that are identical with the old xnmalloc_inline,
71356         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71357         that we can avoid some unnecessary integer multiplications and
71358         divisions in the common case where the element size is known at
71359         compile time.
71360         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71361         needed.
71362         (xnboundedmalloc): Remove.
71363         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71364         arguments, for consistency with rest of this header.
71365         (xcharalloc): Rewrite using XNMALLOC.
71366         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71367         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71368         versions have been moved to lib/xalloc.h and renamed to be the
71369         non-*_inline versions.
71370         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71371         and xnrealloc functions, since those functions are now inline and
71372         now call us.
71373         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71374         renaming described above.
71375         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71376         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71377         captures the dependency in AC_C_INLINE.
71378
71379         New module canonicalize-lgpl, proposed by Charles Wilson in
71380         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71381         with a few small changes afterwards.
71382         * MODULES.html.sh (File system functions): New module
71383         canonicalize-lgpl.
71384         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71385         and canonicalize_file_name.
71386         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71387         * modules/canonicalize-lgpl: New files.
71388
71389 2006-11-05  Bruno Haible  <bruno@clisp.org>
71390
71391         * gnulib-tool (func_import, func_create_testdir): Create directories
71392         also for files in subdirectories of lib/.
71393
71394 2006-11-05  Bruno Haible  <bruno@clisp.org>
71395
71396         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71397         ANSI C compliant.
71398
71399 2006-11-03  Bruno Haible  <bruno@clisp.org>
71400
71401         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71402         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71403         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71404         (xnboundedmalloc): New inline function.
71405         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71406         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71407         xmalloc.
71408         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71409         xmalloc.
71410         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71411         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71412         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71413         xmalloc.
71414         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71415         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71416         xmalloc.
71417         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71418         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71419         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71420         xmalloc.
71421         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71422         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71423         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71424         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71425         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71426         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71427         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71428
71429 2006-11-03  Bruno Haible  <bruno@clisp.org>
71430
71431         * lib/c-ctype.h [C++]: Define functions without name mangling.
71432         * lib/fwriteerror.h [C++]: Likewise.
71433         * lib/gcd.h [C++]: Likewise.
71434         * lib/linebreak.h [C++]: Likewise.
71435
71436 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71439         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71440         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71441         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71442         Check for functions and headers just once.
71443         Check for declaration of canonicalize_file_name.
71444         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71445
71446 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71447
71448         * gnulib-tool (func_import): Fix typo in actioncmd.
71449
71450 2006-11-02  Bruno Haible  <bruno@clisp.org>
71451
71452         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71453         newline sequence in the Makefile.am snippet as a space, like "make"
71454         does.
71455         Reported by Roger Persson <perrog@gmail.com>.
71456
71457 2006-11-01  Bruno Haible  <bruno@clisp.org>
71458
71459         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71460         already declared in <string.h>.
71461         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71462
71463 2006-11-01  Bruno Haible  <bruno@clisp.org>
71464
71465         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71466         * lib/strcase.h: Include <string.h>.
71467         (strcasecmp): Define to rpl_strcasecmp here.
71468
71469 2006-11-01  Bruno Haible  <bruno@clisp.org>
71470
71471         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71472
71473 2006-11-01  Eric Blake  <ebb9@byu.net>
71474
71475         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71476
71477         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71478
71479 2006-10-29  Bruno Haible  <bruno@clisp.org>
71480
71481         Make it compile in C++ mode.
71482         * lib/full-write.c (full_rw): Add a cast.
71483
71484 2006-11-01  Bruno Haible  <bruno@clisp.org>
71485
71486         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71487         be POSIX compliant.
71488         Reported by Roger Persson <perrog@gmail.com>.
71489
71490 2006-11-01  Eric Blake  <ebb9@byu.net>
71491
71492         * lib/getopt_.h: Fix comments.
71493
71494 2006-10-31  Eric Blake  <ebb9@byu.net>
71495
71496         * modules/tmpdir (Depends-on): Add sys_stat.
71497         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71498         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71499         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71500         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71501         tempname.
71502
71503 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71504
71505         Avoid some C++ diagnostics reported by Bruno Haible.
71506         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71507         xmalloc.
71508         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71509         (struct slotvec): Move to top level.
71510         (quotearg_n_options): Rewrite to avoid xmalloc.
71511         * lib/xalloc.h (xcharalloc): New function.
71512         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71513         [defined __cplusplus]: Add function template that provides result
71514         type propagation.  This part of the change is from Bruno Haible.
71515
71516 2006-10-29  Bruno Haible  <bruno@clisp.org>
71517
71518         Make it compile in C++ mode.
71519         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71520         * lib/strnlen1.c (strnlen1): Cast memchr result.
71521         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71522         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71523         (create_temp_dir): Rename local variable 'template'.
71524         (compile_csharp_using_sscli): Add cast.
71525         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71526         * lib/findprog.c (find_in_path): Likewise.
71527         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71528         * lib/wait-process.c (register_slave_subprocess): Likewise.
71529
71530 2006-10-22  Bruno Haible  <bruno@clisp.org>
71531
71532         * modules/tsearch: New file.
71533         * lib/tsearch.h: New file.
71534         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71535         * m4/tsearch.m4: New file.
71536         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71537
71538 2006-10-29  Eric Blake  <ebb9@byu.net>
71539
71540         * lib/arcfour.c: Assume config.h.
71541         * lib/arctwo.c: Likewise.
71542         * lib/base64.c: Likewise.
71543         * lib/check-version.c: Likewise.
71544         * lib/crc.c: Likewise.
71545         * lib/des.c: Likewise.
71546         * lib/gc-gnulib.c: Likewise.
71547         * lib/gc-libgcrypt.c: Likewise.
71548         * lib/gc-pbkdf2-sha1.c: Likewise.
71549         * lib/getaddrinfo.c: Likewise.
71550         * lib/getdelim.c: Likewise.
71551         * lib/getline.c: Likewise.
71552         * lib/hmac-md5.c: Likewise.
71553         * lib/hmac-sha1.c: Likewise.
71554         * lib/iconvme.c: Likewise.
71555         * lib/md2.c: Likewise.
71556         * lib/md4.c: Likewise.
71557         * lib/memxor.c: Likewise.
71558         * lib/read-file.c: Likewise.
71559         * lib/readline.c: Likewise.
71560         * lib/rijndael-alg-fst.c: Likewise.
71561         * lib/rijndael-api-fst.c: Likewise.
71562         * lib/xgetdomainname.c: Likewise.
71563
71564 2006-10-28  Eric Blake  <ebb9@byu.net>
71565
71566         * lib/xstrndup.c: Assume config.h.
71567
71568 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71571         stat-macros.h is now for our own macros, whereas stat_h is for
71572         macros in the <sys/stat.h> name space.
71573         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71574         (STAT_MACROS_H): Remove.
71575         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71576         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71577         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71578         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71579         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71580         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71581         Move these macros to ...
71582         * lib/stat_.h: here.  Don't include stat-macros.h.
71583         * lib/canonicalize.c: Don't include stat-macros.h.
71584         * lib/chown.c: Likewise.
71585         * lib/euidaccess.c: Likewise.
71586         * lib/file-type.c: Likewise.
71587         * lib/filemode.c: Likewise.
71588         * lib/glob.c: Likewise.
71589         * lib/isapipe.c: Likewise.
71590         * lib/lchown.c: Likewise.
71591         * lib/lstat.c: Likewise.
71592         * lib/mkdir-p.c: Likewise.
71593         * lib/rmdir.c: Likewise.
71594         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71595         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71596         unless mkdir isn't declared, to speed up 'configure'.
71597         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71598         would define all the S_* symbols.
71599         * modules/canonicalize (Depends-on):
71600         Depend on sys_stat, not stat-macros.
71601         * modules/chown: Likewise.
71602         * modules/euidaccess: Likewise.
71603         * modules/filemode: Likewise.
71604         * modules/file-type: Likewise.
71605         * modules/glob: Likewise.
71606         * modules/isapipe: Likewise.
71607         * modules/lchown: Likewise.
71608         * modules/lstat: Likewise.
71609         * modules/mkancesdirs: Likewise.
71610         * modules/rmdir: Likewise.
71611         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71612         * modules/modechange: Likewise.
71613         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71614         (configure.ac): Remove gl_STAT_MACROS.
71615         * modules/sys_stat (Depends-on): Remove stat-macros.
71616
71617 2006-10-27  Bruno Haible  <bruno@clisp.org>
71618
71619         * m4/signed.m4: Remove file.
71620         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71621         invocation.
71622         * modules/vasnprintf (Files): Remove m4/signed.m4.
71623
71624 2006-10-27  Bruno Haible  <bruno@clisp.org>
71625
71626         Update to GNU gettext 0.16.
71627         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71628         m4/inttypes-h.m4, m4/signed.m4.
71629         * m4/gettext.m4: Update to GNU gettext 0.16.
71630         * m4/intl.m4: New file, from GNU gettext.
71631         * m4/intldir.m4: New file, from GNU gettext.
71632         * config/srclist.txt: Update
71633
71634 2006-10-27  Eric Blake  <ebb9@byu.net>
71635
71636         * MODULES.html.sh: Document tempname.
71637         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71638         dependencies.
71639         (Files): Move lib/tempname.c...
71640         * modules/tempname: ...to this new module.
71641         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71642         (gl_PREREQ_TEMPNAME): Move...
71643         * m4/tempname.m4: ...to this new file.
71644         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71645         * modules/sys_stat (Depends-on): Add stat-macros.
71646         * lib/stat_.h (includes): Pick up stat macros.
71647         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71648         if stat macros are broken.
71649         * lib/tempname.c (includes): No need to include "stat-macros.h".
71650         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71651         (direxists, __path_search) [!_LIBC]: Don't compile these in
71652         gnulib; the tmpdir module covers that.
71653         * lib/tempname.h: New file.
71654
71655 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71656
71657         * COPYING: Explain how gnulib-tool converts licence headers.
71658         Almost all wording by Eric Blake.
71659
71660 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71661
71662         * lib/mbchar.h (is_basic_table): Make read-only.
71663         * lib/mbchar.c (is_basic_table): Likewise.
71664         Reported by John Darrington.
71665
71666 2006-10-25  Bruno Haible  <bruno@clisp.org>
71667
71668         * lib/progname.h (set_program_name): Undefine before defining.
71669
71670 2006-10-25  Bruno Haible  <bruno@clisp.org>
71671
71672         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71673         false for non-gcc C++ compilers.
71674         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71675
71676 2006-10-24  Bruno Haible  <bruno@clisp.org>
71677
71678         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71679         iconv implementations like Irix iconv.
71680
71681 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71682
71683         * modules/vararrays: New file.
71684         * m4/vararrays.m4: New file, taken from diffutils.
71685         * MODULES.html.sh: New module vararrays.
71686
71687 2006-10-24  Karl Berry  <karl@gnu.org>
71688
71689         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71690         Don't call GNU Unix.
71691
71692 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71693
71694         * users.txt: Add Libtool.
71695
71696         Sync from Libtool:
71697
71698         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71701         to gnulib's policy of including config.h unconditionally.
71702
71703 2006-10-24  Bruno Haible  <bruno@clisp.org>
71704
71705         * modules/wcwidth (Files): Add m4/wint_t.m4.
71706         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71707         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71708
71709 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71710
71711         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71712         to pacify GCC with some -W flags enabled.  Problem reported by
71713         Bruno Haible.
71714
71715 2006-10-24  Jim Meyering  <jim@meyering.net>
71716
71717         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71718         Reported by Karl Berry.
71719
71720 2006-10-23  Bruno Haible  <bruno@clisp.org>
71721
71722         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71723
71724 2006-10-24  Bruno Haible  <bruno@clisp.org>
71725
71726         * lib/gl_list.h: Use C comment style, not C++ comment style.
71727
71728 2006-10-23  Eric Blake  <ebb9@byu.net>
71729
71730         * lib/getaddrinfo.c (includes): Add missing include.
71731
71732 2006-10-23  Bruno Haible  <bruno@clisp.org>
71733             Paul Eggert  <eggert@cs.ucla.edu>
71734
71735         Ability to rename obstack_free.
71736         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71737         obstack_free.
71738         (obstack_free): Invoke the __obstack_free macro.
71739         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71740
71741 2006-10-23  Bruno Haible  <bruno@clisp.org>
71742             Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71745         __argc, __argv from the declaration. (They are defined as macros on
71746         mingw.)
71747
71748 2006-10-22  Bruno Haible  <bruno@clisp.org>
71749
71750         * doc/gnulib-intro.texi: New file.
71751         * doc/gnulib.texi: Include it.
71752
71753 2006-10-21  Bruno Haible  <bruno@clisp.org>
71754
71755         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71756         "Introduction", "Miscellanous Notes", "Particular Modules".
71757
71758 2006-10-21  Bruno Haible  <bruno@clisp.org>
71759
71760         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71761         Change mostlyclean-local rule to avoid sh syntax error from bash
71762         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71763
71764 2006-10-23  Jim Meyering  <jim@meyering.net>
71765
71766         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71767         in place of snprintf.
71768
71769         * modules/inttostr (Files): Add lib/uinttostr.c.
71770         * lib/uinttostr.c (inttostr): New file/function.
71771         * lib/inttostr.h (uinttostr): Declare.
71772         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71773         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71774         Add uinttostr.
71775         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71776
71777 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71778
71779         * lib/canonicalize.c (ELOOP): Define if not already defined.
71780         Problem reported by Bruno Haible in
71781         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71782
71783 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71784
71785         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71786         Problem reported by Perry Smith and Ville Laurikari.
71787
71788         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71789         uses.
71790
71791 2006-10-19  Bruno Haible  <bruno@clisp.org>
71792
71793         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71794         for mingw.
71795
71796 2006-10-19  Bruno Haible  <bruno@clisp.org>
71797
71798         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71799         Needed for mingw.
71800
71801 2006-10-19  Bruno Haible  <bruno@clisp.org>
71802
71803         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71804
71805 2006-10-19  Bruno Haible  <bruno@clisp.org>
71806
71807         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71808         it.
71809
71810 2006-10-19  Bruno Haible  <bruno@clisp.org>
71811
71812         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71813         invocation.
71814
71815 2006-10-19  Bruno Haible  <bruno@clisp.org>
71816
71817         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71818         mountlist by default.
71819
71820 2006-10-16  Bruno Haible  <bruno@clisp.org>
71821
71822         * lib/c-strstr.c: Include c-strstr.h.
71823
71824 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71825
71826         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71827         in a slash.
71828
71829 2006-10-18  Bruno Haible  <bruno@clisp.org>
71830
71831         * lib/lock.h [C++]: Wrap definitions in extern "C".
71832
71833 2006-10-18  Bruno Haible  <bruno@clisp.org>
71834
71835         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71836         gl_LIBOBJS list.
71837
71838 2006-10-18  Bruno Haible  <bruno@clisp.org>
71839
71840         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71841
71842 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71843
71844         * lib/xstrtol.h: Include gettext.h.
71845         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71846         Problem reported by Eric Blake.
71847         * modules/xstrtol (Depends-on): Add gettext-h.
71848
71849 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71850
71851         * lib/strftime.c (advance): New macro.
71852         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71853         incomplete type, so you can't add 0 to it.  Problem and patch
71854         reported by Eelco Dolstra for dietlibc.
71855
71856 2006-10-18  Jim Meyering  <jim@meyering.net>
71857
71858         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71859         type for a local, and rename it: s/up/user_proc/.
71860
71861 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71862
71863         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71864         READ_UTMP_USER_PROCESS.
71865         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71866
71867 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71868
71869         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71870         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71871
71872 2006-10-17  Eric Blake  <ebb9@byu.net>
71873
71874         * lib/sigprocmask.c (sigprocmask): Fix typo.
71875
71876         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71877
71878         * modules/clean-temp (Makefile.am): Don't add to make output...
71879         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71880         config.h.
71881
71882 2006-10-17  Bruno Haible  <bruno@clisp.org>
71883
71884         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71885         differently if DEFAULT_TEXT_DOMAIN is set.
71886
71887 2006-10-16  Bruno Haible  <bruno@clisp.org>
71888
71889         * lib/clean-temp.c: Include fwriteerror.h.
71890
71891 2006-10-16  Bruno Haible  <bruno@clisp.org>
71892
71893         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71894
71895 2006-10-16  Bruno Haible  <bruno@clisp.org>
71896
71897         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71898         * lib/sigprocmask.h: Include <sys/types.h>.
71899         (sigset_t): Use the system's definition if present.
71900
71901 2006-10-17  Eric Blake  <ebb9@byu.net>
71902
71903         * lib/xvasprintf.c (includes): Assume config.h.
71904         * lib/xasprintf.c (includes): Likewise.
71905
71906 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71907
71908         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71909         at least as wide as intmax_t.
71910
71911 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71912
71913         (Imported from Automake.)
71914         * build-aux/gnupload: Update to version 1.1 of directive file.
71915
71916 2006-10-16  Eric Blake  <ebb9@byu.net>
71917
71918         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71919         match Automake 1.10a.
71920
71921 2006-10-14  Bruno Haible  <bruno@clisp.org>
71922
71923         * modules/sigprocmask: New file.
71924         * lib/sigprocmask.h: New file.
71925         * lib/sigprocmask.c: New file.
71926         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71927         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71928         request sigprocmask.o.
71929         (gl_PREREQ_SIGPROCMASK): New macro.
71930         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71931         (Depends-on): Add sigprocmask.
71932         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71933         gt_SIGNALBLOCKING. Test for 'raise' only once.
71934         * lib/fatal-signal.c: Include sigprocmask.h.
71935         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71936         unblock_fatal_signals): Define always.
71937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71938         sigprocmask.
71939
71940 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71941
71942         Sync from Automake.
71943         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71944         which incorrectly sets the mode of an existing destination
71945         directory.  In some cases the unpatched install-sh could do the
71946         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71947         system.  We hope this is rare in practice, but it's clearly worth
71948         fixing.  Problem reported by Alex Unleashed in
71949         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71950         Also, don't bother to check for -m bugs unless we're using -m;
71951         suggested by Stepan Kasal.
71952
71953 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71954
71955         Sync from Automake.
71956         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71957         `-c' flag, so they appear at the same position as in %FASTDEP%
71958         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71959         which ignores unknown options only after the first non-option.
71960         Bug report against M4 by Nelson H. F. Beebe.
71961
71962 2006-10-13  Jim Meyering  <jim@meyering.net>
71963
71964         Fix a bug in yesterday's change.
71965         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71966         p->fts_statp->st_dev would be used uninitialized.
71967         Ensures that we always call fts_stat on the very first entry.
71968         Miklos Szeredi reported that find -xdev stopped working.
71969
71970 2006-10-12  Bruno Haible  <bruno@clisp.org>
71971
71972         * gnulib-tool (func_get_automake_snippet): Append an automatically
71973         computed EXTRA_DIST augmentation.
71974         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71975         * modules/alloca-opt (Makefile.am): Likewise.
71976         * modules/allocsa (Makefile.am): Likewise.
71977         * modules/arcfour (Makefile.am): Likewise.
71978         * modules/arctwo (Makefile.am): Likewise.
71979         * modules/argmatch (Makefile.am): Likewise.
71980         * modules/argz (Makefile.am): Likewise.
71981         * modules/atexit (Makefile.am): Likewise.
71982         * modules/backupfile (Makefile.am): Likewise.
71983         * modules/byteswap (Makefile.am): Likewise.
71984         * modules/c-strtod (Makefile.am): Likewise.
71985         * modules/c-strtold (Makefile.am): Likewise.
71986         * modules/calloc (Makefile.am): Likewise.
71987         * modules/canon-host (Makefile.am): Likewise.
71988         * modules/canonicalize (Makefile.am): Likewise.
71989         * modules/chdir-long (Makefile.am): Likewise.
71990         * modules/chdir-safer (Makefile.am): Likewise.
71991         * modules/check-version (Makefile.am): Likewise.
71992         * modules/chown (Makefile.am): Likewise.
71993         * modules/cloexec (Makefile.am): Likewise.
71994         * modules/close-stream (Makefile.am): Likewise.
71995         * modules/closeout (Makefile.am): Likewise.
71996         * modules/crc (Makefile.am): Likewise.
71997         * modules/csharpexec (Makefile.am): Likewise.
71998         * modules/cycle-check (Makefile.am): Likewise.
71999         * modules/des (Makefile.am): Likewise.
72000         * modules/dev-ino (Makefile.am): Likewise.
72001         * modules/dirfd (Makefile.am): Likewise.
72002         * modules/dirname (Makefile.am): Likewise.
72003         * modules/dup2 (Makefile.am): Likewise.
72004         * modules/eealloc (Makefile.am): Likewise.
72005         * modules/error (Makefile.am): Likewise.
72006         * modules/euidaccess (Makefile.am): Likewise.
72007         * modules/exclude (Makefile.am): Likewise.
72008         * modules/exitfail (Makefile.am): Likewise.
72009         * modules/fcntl-safer (Makefile.am): Likewise.
72010         * modules/fcntl (Makefile.am): Likewise.
72011         * modules/file-type (Makefile.am): Likewise.
72012         * modules/fileblocks (Makefile.am): Likewise.
72013         * modules/filemode (Makefile.am): Likewise.
72014         * modules/filenamecat (Makefile.am): Likewise.
72015         * modules/fnmatch (Makefile.am): Likewise.
72016         * modules/fopen-safer (Makefile.am): Likewise.
72017         * modules/fpending (Makefile.am): Likewise.
72018         * modules/fprintftime (Makefile.am): Likewise.
72019         * modules/free (Makefile.am): Likewise.
72020         * modules/fsusage (Makefile.am): Likewise.
72021         * modules/ftruncate (Makefile.am): Likewise.
72022         * modules/fts (Makefile.am): Likewise.
72023         * modules/gc-arcfour (Makefile.am): Likewise.
72024         * modules/gc-des (Makefile.am): Likewise.
72025         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72026         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72027         * modules/gc-md4 (Makefile.am): Likewise.
72028         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72029         * modules/gc-sha1 (Makefile.am): Likewise.
72030         * modules/gc (Makefile.am): Likewise.
72031         * modules/getaddrinfo (Makefile.am): Likewise.
72032         * modules/getcwd (Makefile.am): Likewise.
72033         * modules/getdelim (Makefile.am): Likewise.
72034         * modules/getdomainname (Makefile.am): Likewise.
72035         * modules/getgroups (Makefile.am): Likewise.
72036         * modules/gethostname (Makefile.am): Likewise.
72037         * modules/gethrxtime (Makefile.am): Likewise.
72038         * modules/getline (Makefile.am): Likewise.
72039         * modules/getloadavg (Makefile.am): Likewise.
72040         * modules/getlogin_r (Makefile.am): Likewise.
72041         * modules/getndelim2 (Makefile.am): Likewise.
72042         * modules/getopt (Makefile.am): Likewise.
72043         * modules/getpagesize (Makefile.am): Likewise.
72044         * modules/getpass-gnu (Makefile.am): Likewise.
72045         * modules/getpass (Makefile.am): Likewise.
72046         * modules/getsubopt (Makefile.am): Likewise.
72047         * modules/gettime (Makefile.am): Likewise.
72048         * modules/gettimeofday (Makefile.am): Likewise.
72049         * modules/getugroups (Makefile.am): Likewise.
72050         * modules/getusershell (Makefile.am): Likewise.
72051         * modules/glob (Makefile.am): Likewise.
72052         * modules/group-member (Makefile.am): Likewise.
72053         * modules/hard-locale (Makefile.am): Likewise.
72054         * modules/hash (Makefile.am): Likewise.
72055         * modules/hmac-md5 (Makefile.am): Likewise.
72056         * modules/hmac-sha1 (Makefile.am): Likewise.
72057         * modules/human (Makefile.am): Likewise.
72058         * modules/idcache (Makefile.am): Likewise.
72059         * modules/imaxabs (Makefile.am): Likewise.
72060         * modules/imaxdiv (Makefile.am): Likewise.
72061         * modules/inet_ntop (Makefile.am): Likewise.
72062         * modules/inet_pton (Makefile.am): Likewise.
72063         * modules/intprops (Makefile.am): Likewise.
72064         * modules/inttostr (Makefile.am): Likewise.
72065         * modules/inttypes (Makefile.am): Likewise.
72066         * modules/isapipe (Makefile.am): Likewise.
72067         * modules/javaversion (Makefile.am): Likewise.
72068         * modules/lchmod (Makefile.am): Likewise.
72069         * modules/lchown (Makefile.am): Likewise.
72070         * modules/localcharset (Makefile.am): Likewise.
72071         * modules/long-options (Makefile.am): Likewise.
72072         * modules/lstat (Makefile.am): Likewise.
72073         * modules/malloc (Makefile.am): Likewise.
72074         * modules/mathl (Makefile.am): Likewise.
72075         * modules/mbchar (Makefile.am): Likewise.
72076         * modules/md2 (Makefile.am): Likewise.
72077         * modules/md4 (Makefile.am): Likewise.
72078         * modules/md5 (Makefile.am): Likewise.
72079         * modules/memcasecmp (Makefile.am): Likewise.
72080         * modules/memchr (Makefile.am): Likewise.
72081         * modules/memcmp (Makefile.am): Likewise.
72082         * modules/memcoll (Makefile.am): Likewise.
72083         * modules/memcpy (Makefile.am): Likewise.
72084         * modules/memmem (Makefile.am): Likewise.
72085         * modules/memmove (Makefile.am): Likewise.
72086         * modules/mempcpy (Makefile.am): Likewise.
72087         * modules/memrchr (Makefile.am): Likewise.
72088         * modules/memset (Makefile.am): Likewise.
72089         * modules/memxor (Makefile.am): Likewise.
72090         * modules/mkancesdirs (Makefile.am): Likewise.
72091         * modules/mkdir-p (Makefile.am): Likewise.
72092         * modules/mkdir (Makefile.am): Likewise.
72093         * modules/mkdtemp (Makefile.am): Likewise.
72094         * modules/mkstemp (Makefile.am): Likewise.
72095         * modules/mktime (Makefile.am): Likewise.
72096         * modules/modechange (Makefile.am): Likewise.
72097         * modules/mountlist (Makefile.am): Likewise.
72098         * modules/nanosleep (Makefile.am): Likewise.
72099         * modules/obstack (Makefile.am): Likewise.
72100         * modules/openat (Makefile.am): Likewise.
72101         * modules/pagealign_alloc (Makefile.am): Likewise.
72102         * modules/pathmax (Makefile.am): Likewise.
72103         * modules/physmem (Makefile.am): Likewise.
72104         * modules/poll (Makefile.am): Likewise.
72105         * modules/posixtm (Makefile.am): Likewise.
72106         * modules/posixver (Makefile.am): Likewise.
72107         * modules/putenv (Makefile.am): Likewise.
72108         * modules/quote (Makefile.am): Likewise.
72109         * modules/quotearg (Makefile.am): Likewise.
72110         * modules/raise (Makefile.am): Likewise.
72111         * modules/read-file (Makefile.am): Likewise.
72112         * modules/readline (Makefile.am): Likewise.
72113         * modules/readlink (Makefile.am): Likewise.
72114         * modules/readtokens (Makefile.am): Likewise.
72115         * modules/readutmp (Makefile.am): Likewise.
72116         * modules/realloc (Makefile.am): Likewise.
72117         * modules/regex (Makefile.am): Likewise.
72118         * modules/rename-dest-slash (Makefile.am): Likewise.
72119         * modules/rename (Makefile.am): Likewise.
72120         * modules/rijndael (Makefile.am): Likewise.
72121         * modules/rmdir (Makefile.am): Likewise.
72122         * modules/rpmatch (Makefile.am): Likewise.
72123         * modules/safe-read (Makefile.am): Likewise.
72124         * modules/safe-write (Makefile.am): Likewise.
72125         * modules/same-inode (Makefile.am): Likewise.
72126         * modules/same (Makefile.am): Likewise.
72127         * modules/save-cwd (Makefile.am): Likewise.
72128         * modules/savedir (Makefile.am): Likewise.
72129         * modules/setenv (Makefile.am): Likewise.
72130         * modules/settime (Makefile.am): Likewise.
72131         * modules/sha1 (Makefile.am): Likewise.
72132         * modules/sig2str (Makefile.am): Likewise.
72133         * modules/snprintf (Makefile.am): Likewise.
72134         * modules/stat-macros (Makefile.am): Likewise.
72135         * modules/stat-time (Makefile.am): Likewise.
72136         * modules/stdbool (Makefile.am): Likewise.
72137         * modules/stdint (Makefile.am): Likewise.
72138         * modules/stdlib-safer (Makefile.am): Likewise.
72139         * modules/stpcpy (Makefile.am): Likewise.
72140         * modules/stpncpy (Makefile.am): Likewise.
72141         * modules/strcase (Makefile.am): Likewise.
72142         * modules/strcasestr (Makefile.am): Likewise.
72143         * modules/strchrnul (Makefile.am): Likewise.
72144         * modules/strcspn (Makefile.am): Likewise.
72145         * modules/strdup (Makefile.am): Likewise.
72146         * modules/strerror (Makefile.am): Likewise.
72147         * modules/strftime (Makefile.am): Likewise.
72148         * modules/strndup (Makefile.am): Likewise.
72149         * modules/strnlen (Makefile.am): Likewise.
72150         * modules/strpbrk (Makefile.am): Likewise.
72151         * modules/strsep (Makefile.am): Likewise.
72152         * modules/strstr (Makefile.am): Likewise.
72153         * modules/strtod (Makefile.am): Likewise.
72154         * modules/strtoimax (Makefile.am): Likewise.
72155         * modules/strtok_r (Makefile.am): Likewise.
72156         * modules/strtol (Makefile.am): Likewise.
72157         * modules/strtoll (Makefile.am): Likewise.
72158         * modules/strtoul (Makefile.am): Likewise.
72159         * modules/strtoull (Makefile.am): Likewise.
72160         * modules/strtoumax (Makefile.am): Likewise.
72161         * modules/strverscmp (Makefile.am): Likewise.
72162         * modules/sys_socket (Makefile.am): Likewise.
72163         * modules/sys_stat (Makefile.am): Likewise.
72164         * modules/sysexits (Makefile.am): Likewise.
72165         * modules/time_r (Makefile.am): Likewise.
72166         * modules/timegm (Makefile.am): Likewise.
72167         * modules/timespec (Makefile.am): Likewise.
72168         * modules/tmpfile-safer (Makefile.am): Likewise.
72169         * modules/trim (Makefile.am): Likewise.
72170         * modules/unistd-safer (Makefile.am): Likewise.
72171         * modules/unlinkdir (Makefile.am): Likewise.
72172         * modules/unlocked-io (Makefile.am): Likewise.
72173         * modules/userspec (Makefile.am): Likewise.
72174         * modules/utime (Makefile.am): Likewise.
72175         * modules/utimecmp (Makefile.am): Likewise.
72176         * modules/utimens (Makefile.am): Likewise.
72177         * modules/vasnprintf (Makefile.am): Likewise.
72178         * modules/vasprintf (Makefile.am): Likewise.
72179         * modules/vsnprintf (Makefile.am): Likewise.
72180         * modules/xalloc (Makefile.am): Likewise.
72181         * modules/xgetcwd (Makefile.am): Likewise.
72182         * modules/xnanosleep (Makefile.am): Likewise.
72183         * modules/xreadlink (Makefile.am): Likewise.
72184         * modules/xstrtod (Makefile.am): Likewise.
72185         * modules/xstrtol (Makefile.am): Likewise.
72186         * modules/xstrtold (Makefile.am): Likewise.
72187         * modules/yesno (Makefile.am): Likewise.
72188         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72189
72190 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72191
72192         * modules/error (Makefile.am): Distribute files through
72193         EXTRA_DIST, not lib_SOURCES.
72194
72195 2006-10-12  Eric Blake  <ebb9@byu.net>
72196
72197         * modules/error (Makefile.am): Distribute files in /lib.
72198         * modules/obstack (Makefile.am): Likewise.
72199
72200 2006-10-12  Bruno Haible  <bruno@clisp.org>
72201
72202         * modules/acl (Makefile.am): Distribute all files in lib/ through
72203         EXTRA_DIST.
72204         * modules/arcfour (Makefile.am): Likewise.
72205         * modules/arctwo (Makefile.am): Likewise.
72206         * modules/argmatch (Makefile.am): Likewise.
72207         * modules/argz (Makefile.am): Likewise.
72208         * modules/atexit (Makefile.am): Likewise.
72209         * modules/backupfile (Makefile.am): Likewise.
72210         * modules/c-strtod (Makefile.am): Likewise.
72211         * modules/c-strtold (Makefile.am): Likewise.
72212         * modules/calloc (Makefile.am): Likewise.
72213         * modules/canon-host (Makefile.am): Likewise.
72214         * modules/canonicalize (Makefile.am): Likewise.
72215         * modules/chdir-long (Makefile.am): Likewise.
72216         * modules/chdir-safer (Makefile.am): Likewise.
72217         * modules/check-version (Makefile.am): Likewise.
72218         * modules/chown (Makefile.am): Likewise.
72219         * modules/cloexec (Makefile.am): Likewise.
72220         * modules/close-stream (Makefile.am): Likewise.
72221         * modules/closeout (Makefile.am): Likewise.
72222         * modules/crc (Makefile.am): Likewise.
72223         * modules/cycle-check (Makefile.am): Likewise.
72224         * modules/des (Makefile.am): Likewise.
72225         * modules/dirfd (Makefile.am): Likewise.
72226         * modules/dirname (Makefile.am): Likewise.
72227         * modules/dup2 (Makefile.am): Likewise.
72228         * modules/euidaccess (Makefile.am): Likewise.
72229         * modules/exclude (Makefile.am): Likewise.
72230         * modules/exitfail (Makefile.am): Likewise.
72231         * modules/fcntl-safer (Makefile.am): Likewise.
72232         * modules/file-type (Makefile.am): Likewise.
72233         * modules/fileblocks (Makefile.am): Likewise.
72234         * modules/filemode (Makefile.am): Likewise.
72235         * modules/filenamecat (Makefile.am): Likewise.
72236         * modules/fnmatch (Makefile.am): Likewise.
72237         * modules/fopen-safer (Makefile.am): Likewise.
72238         * modules/fpending (Makefile.am): Likewise.
72239         * modules/fprintftime (Makefile.am): Likewise.
72240         * modules/free (Makefile.am): Likewise.
72241         * modules/fsusage (Makefile.am): Likewise.
72242         * modules/ftruncate (Makefile.am): Likewise.
72243         * modules/fts (Makefile.am): Likewise.
72244         * modules/gc (Makefile.am): Likewise.
72245         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72246         * modules/getaddrinfo (Makefile.am): Likewise.
72247         * modules/getcwd (Makefile.am): Likewise.
72248         * modules/getdelim (Makefile.am): Likewise.
72249         * modules/getdomainname (Makefile.am): Likewise.
72250         * modules/getgroups (Makefile.am): Likewise.
72251         * modules/gethostname (Makefile.am): Likewise.
72252         * modules/gethrxtime (Makefile.am): Likewise.
72253         * modules/getline (Makefile.am): Likewise.
72254         * modules/getloadavg (Makefile.am): Likewise.
72255         * modules/getlogin_r (Makefile.am): Likewise.
72256         * modules/getopt (Makefile.am): Likewise.
72257         * modules/getpass (Makefile.am): Likewise.
72258         * modules/getpass-gnu (Makefile.am): Likewise.
72259         * modules/getsubopt (Makefile.am): Likewise.
72260         * modules/gettime (Makefile.am): Likewise.
72261         * modules/gettimeofday (Makefile.am): Likewise.
72262         * modules/getugroups (Makefile.am): Likewise.
72263         * modules/getusershell (Makefile.am): Likewise.
72264         * modules/glob (Makefile.am): Likewise.
72265         * modules/group-member (Makefile.am): Likewise.
72266         * modules/hard-locale (Makefile.am): Likewise.
72267         * modules/hash (Makefile.am): Likewise.
72268         * modules/hmac-md5 (Makefile.am): Likewise.
72269         * modules/hmac-sha1 (Makefile.am): Likewise.
72270         * modules/human (Makefile.am): Likewise.
72271         * modules/idcache (Makefile.am): Likewise.
72272         * modules/imaxabs (Makefile.am): Likewise.
72273         * modules/imaxdiv (Makefile.am): Likewise.
72274         * modules/inet_ntop (Makefile.am): Likewise.
72275         * modules/inet_pton (Makefile.am): Likewise.
72276         * modules/inttostr (Makefile.am): Likewise.
72277         * modules/isapipe (Makefile.am): Likewise.
72278         * modules/lchown (Makefile.am): Likewise.
72279         * modules/long-options (Makefile.am): Likewise.
72280         * modules/lstat (Makefile.am): Likewise.
72281         * modules/malloc (Makefile.am): Likewise.
72282         * modules/mathl (Makefile.am): Likewise.
72283         * modules/mbchar (Makefile.am): Likewise.
72284         * modules/md2 (Makefile.am): Likewise.
72285         * modules/md4 (Makefile.am): Likewise.
72286         * modules/md5 (Makefile.am): Likewise.
72287         * modules/memcasecmp (Makefile.am): Likewise.
72288         * modules/memchr (Makefile.am): Likewise.
72289         * modules/memcmp (Makefile.am): Likewise.
72290         * modules/memcoll (Makefile.am): Likewise.
72291         * modules/memcpy (Makefile.am): Likewise.
72292         * modules/memmem (Makefile.am): Likewise.
72293         * modules/memmove (Makefile.am): Likewise.
72294         * modules/mempcpy (Makefile.am): Likewise.
72295         * modules/memrchr (Makefile.am): Likewise.
72296         * modules/memset (Makefile.am): Likewise.
72297         * modules/memxor (Makefile.am): Likewise.
72298         * modules/mkancesdirs (Makefile.am): Likewise.
72299         * modules/mkdir (Makefile.am): Likewise.
72300         * modules/mkdir-p (Makefile.am): Likewise.
72301         * modules/mkdtemp (Makefile.am): Likewise.
72302         * modules/mkstemp (Makefile.am): Likewise.
72303         * modules/mktime (Makefile.am): Likewise.
72304         * modules/modechange (Makefile.am): Likewise.
72305         * modules/mountlist (Makefile.am): Likewise.
72306         * modules/nanosleep (Makefile.am): Likewise.
72307         * modules/openat (Makefile.am): Likewise.
72308         * modules/pagealign_alloc (Makefile.am): Likewise.
72309         * modules/physmem (Makefile.am): Likewise.
72310         * modules/poll (Makefile.am): Likewise.
72311         * modules/posixtm (Makefile.am): Likewise.
72312         * modules/posixver (Makefile.am): Likewise.
72313         * modules/putenv (Makefile.am): Likewise.
72314         * modules/quote (Makefile.am): Likewise.
72315         * modules/quotearg (Makefile.am): Likewise.
72316         * modules/raise (Makefile.am): Likewise.
72317         * modules/read-file (Makefile.am): Likewise.
72318         * modules/readline (Makefile.am): Likewise.
72319         * modules/readlink (Makefile.am): Likewise.
72320         * modules/readtokens (Makefile.am): Likewise.
72321         * modules/readutmp (Makefile.am): Likewise.
72322         * modules/realloc (Makefile.am): Likewise.
72323         * modules/regex (Makefile.am): Likewise.
72324         * modules/rename (Makefile.am): Likewise.
72325         * modules/rename-dest-slash (Makefile.am): Likewise.
72326         * modules/rijndael (Makefile.am): Likewise.
72327         * modules/rmdir (Makefile.am): Likewise.
72328         * modules/rpmatch (Makefile.am): Likewise.
72329         * modules/safe-read (Makefile.am): Likewise.
72330         * modules/safe-write (Makefile.am): Likewise.
72331         * modules/same (Makefile.am): Likewise.
72332         * modules/save-cwd (Makefile.am): Likewise.
72333         * modules/savedir (Makefile.am): Likewise.
72334         * modules/setenv (Makefile.am): Likewise.
72335         * modules/settime (Makefile.am): Likewise.
72336         * modules/sha1 (Makefile.am): Likewise.
72337         * modules/sig2str (Makefile.am): Likewise.
72338         * modules/snprintf (Makefile.am): Likewise.
72339         * modules/stdlib-safer (Makefile.am): Likewise.
72340         * modules/stpcpy (Makefile.am): Likewise.
72341         * modules/stpncpy (Makefile.am): Likewise.
72342         * modules/strcase (Makefile.am): Likewise.
72343         * modules/strcasestr (Makefile.am): Likewise.
72344         * modules/strchrnul (Makefile.am): Likewise.
72345         * modules/strcspn (Makefile.am): Likewise.
72346         * modules/strdup (Makefile.am): Likewise.
72347         * modules/strerror (Makefile.am): Likewise.
72348         * modules/strftime (Makefile.am): Likewise.
72349         * modules/strndup (Makefile.am): Likewise.
72350         * modules/strnlen (Makefile.am): Likewise.
72351         * modules/strpbrk (Makefile.am): Likewise.
72352         * modules/strsep (Makefile.am): Likewise.
72353         * modules/strstr (Makefile.am): Likewise.
72354         * modules/strtod (Makefile.am): Likewise.
72355         * modules/strtoimax (Makefile.am): Likewise.
72356         * modules/strtok_r (Makefile.am): Likewise.
72357         * modules/strtol (Makefile.am): Likewise.
72358         * modules/strtoll (Makefile.am): Likewise.
72359         * modules/strtoul (Makefile.am): Likewise.
72360         * modules/strtoull (Makefile.am): Likewise.
72361         * modules/strtoumax (Makefile.am): Likewise.
72362         * modules/strverscmp (Makefile.am): Likewise.
72363         * modules/time_r (Makefile.am): Likewise.
72364         * modules/timegm (Makefile.am): Likewise.
72365         * modules/tmpfile-safer (Makefile.am): Likewise.
72366         * modules/unistd-safer (Makefile.am): Likewise.
72367         * modules/unlinkdir (Makefile.am): Likewise.
72368         * modules/userspec (Makefile.am): Likewise.
72369         * modules/utime (Makefile.am): Likewise.
72370         * modules/utimecmp (Makefile.am): Likewise.
72371         * modules/utimens (Makefile.am): Likewise.
72372         * modules/vasnprintf (Makefile.am): Likewise.
72373         * modules/vasprintf (Makefile.am): Likewise.
72374         * modules/vsnprintf (Makefile.am): Likewise.
72375         * modules/xalloc (Makefile.am): Likewise.
72376         * modules/xgetcwd (Makefile.am): Likewise.
72377         * modules/xnanosleep (Makefile.am): Likewise.
72378         * modules/xreadlink (Makefile.am): Likewise.
72379         * modules/xstrtod (Makefile.am): Likewise.
72380         * modules/xstrtol (Makefile.am): Likewise.
72381         * modules/xstrtold (Makefile.am): Likewise.
72382         * modules/yesno (Makefile.am): Likewise.
72383
72384 2006-10-12  Jim Meyering  <jim@meyering.net>
72385
72386         * m4/getloadavg.m4: Revert the change below.
72387
72388         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72389         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72390         fail with a symlink, which is what coreutils' ./bootstrap now
72391         creates by default.
72392
72393 2006-10-12  Bruno Haible  <bruno@clisp.org>
72394
72395         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72396         mingw.
72397         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72398         MSVC and mingw explicitly.
72399
72400 2006-10-11  Simon Josefsson  <jas@extundo.com>
72401             Bruno Haible  <bruno@clisp.org>
72402
72403         Add support for multiple gnulib-tool invocations in the scope of a
72404         single configure.ac file.
72405         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72406         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72407         with the same contents as the _LIBADD variable.
72408         (func_emit_initmacro_start, func_emit_initmacro_end,
72409         func_emit_initmacro_done): New functions.
72410         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72411         gl_LIBOBJS and gl_LTLIBOBJS.
72412
72413 2006-10-11  Bruno Haible  <bruno@clisp.org>
72414
72415         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72416         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72417         autoreconf. Instead, invoke autopoint explicitly but move back the
72418         *.m4 files from gnulib.
72419
72420 2006-10-11  Bruno Haible  <bruno@clisp.org>
72421
72422         * gnulib-tool (func_usage): Make module names after --create-testdir
72423         optional.
72424         (func_create_testdir): If no module was specified, use nearly all
72425         modules.
72426
72427 2006-10-12  Jim Meyering  <jim@meyering.net>
72428
72429         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72430         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72431         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72432         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72433         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72434         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72435         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72436         (fts_set_stat_required): New function.
72437         (fts_open): Defer the calls to fts_stat, if possible or requested.
72438         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72439         into fts_stat itself.
72440         (fts_read): Perform any required (deferred) fts_stat call.
72441         (fts_build): Likewise, for the directory we're about to open and read.
72442         In the readdir loop, carefully decide whether each entry will require
72443         an eventual call to fts_stat, using dirent.d_type info if available.
72444         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72445         a command line argument into this function.  Update all callers.
72446         Map a return value of FTS_DOT to FTS_D for a command line argument.
72447         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72448         Thanks to Miklos Szeredi for his tenacity and for the initial
72449         bug report about "find" failing on a FUSE-based file system.
72450
72451         * lib/fts.c (fts_open): Use consistent indentation.
72452
72453 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72454
72455         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72456         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72457         reported by Jim Meyering.  All uses of cache variables renamed
72458         to match Autoconf's.
72459         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72460         the other one.
72461
72462         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72463         Fix misspelling in diagnostic.
72464
72465 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72468         defined.  Problem reported by Matthew Woehlke.
72469
72470         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72471         Add support for Tandem NonStop R series.
72472         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72473         Use new macro.
72474
72475         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72476         (has_trailing_slash): Omit size arg; all callers changed.
72477         Omit 'inline', since it doesn't help performance and we'd
72478         need to configure it.
72479         Don't count //, ///, etc. as having a trailing slash.
72480         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72481         (rpl_rename_dest_slash): On failure, use rename's errno rather
72482         than (in some cases) an incorrect or junk errno.
72483         Simplify code by removing need to compute length; this does
72484         cause it to make two passes instead of one over the file name,
72485         but it's worth it.
72486
72487         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72488         change, since Autoconf's version may no longer be appropriate now
72489         that we are using CVS Autoconf's version.  Add support for Tandem.
72490
72491 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72492             Bruno Haible  <bruno@clisp.org>
72493
72494         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72495         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72496         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72497         gl_AC_TYPE_LONG_LONG.
72498
72499         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72500         instead of HAVE_LONG_LONG.
72501         * lib/printf-args.c (printf_fetchargs): Likewise.
72502         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72503         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72504         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72505         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72506         gl_AC_TYPE_LONG_LONG.
72507
72508 2006-10-11  Bruno Haible  <bruno@clisp.org>
72509
72510         * m4/longlong.m4: Add comments.
72511         * m4/ulonglong.m4: Likewise.
72512
72513 2006-10-10  Bruno Haible  <bruno@clisp.org>
72514
72515         Make it possible to #define stpcpy, strdup to aliases.
72516         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72517         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72518
72519 2006-10-10  Bruno Haible  <bruno@clisp.org>
72520
72521         Make it possible to #define gcd to an alias.
72522         * lib/gcd.c: Include config.h.
72523
72524 2006-10-10  Bruno Haible  <bruno@clisp.org>
72525
72526         Make it possible to #define c_isascii to an alias.
72527         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72528         defined. Undefine the macros before defining them, to avoid gcc
72529         warnings.
72530         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72531         define NO_C_CTYPE_MACROS early.
72532
72533 2006-10-10  Bruno Haible  <bruno@clisp.org>
72534
72535         Make it possible to #define set_program_name to an alias.
72536         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72537         ENABLE_RELOCATABLE early.
72538
72539 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72540
72541         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72542         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72543         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72544         More generally, don't assume that 64-bit signed int is available
72545         if unsigned int is, and vice versa.
72546         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72547         unsigned symbols, not on their signed counterparts.
72548         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72549         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72550         (UINT64_C, UINTMAX_C):
72551         Likewise.
72552         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72553         unsigned counterparts.
72554         (Have_long_long, Unsigned): New macros.
72555         (Int): Renamed from INT.
72556         (strtoimax): Use the new macros.
72557         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72558         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72559         * modules/inttypes (inttypes.h): Substitute
72560         HAVE_UNSIGNED_LONG_LONG_INT.
72561         * modules/stdint (stdint.h): Likewise.
72562         (Files): Add m4/ulonglong.m4.
72563
72564 2006-10-10  Bruno Haible  <bruno@clisp.org>
72565
72566         Fix a gcc -Wshadow warning.
72567         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72568         to 'bucket'.
72569         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72570         gl_linked_indexof_from_to): Likewise.
72571         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72572         Likewise.
72573         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72574         Likewise.
72575         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72576         Reported by Eric Blake.
72577
72578 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72581         for NetBSD.  Problem reported by Bruno Haible.
72582
72583 2006-10-09  Jim Meyering  <jim@meyering.net>
72584
72585         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72586         Patch from Bruno Haible.
72587
72588 2006-10-09  Jim Meyering  <jim@meyering.net>
72589
72590         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72591         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72592         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72593
72594 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72595
72596         Don't include <config.h> twice; this doesn't work in some cases,
72597         e.g., when config.h has "#define intmax_t long long int" and
72598         we include <config.h>, <inttypes.h>, <config.h> in that order.
72599         Problem reported by Matthew Woehlke in:
72600         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72601         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72602         * lib/fts-cycle.c: Don't include config.h.
72603         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72604         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72605         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72606         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72607         inttypes.h.
72608         * lib/xstrtoumax.c: Likewise.
72609         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72610         __strtol and the like, so that this module is more like its siblings.
72611         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72612         Remove; no longer needed now that we assume gnulib inttypes.h.
72613
72614 2006-10-08  Bruno Haible  <bruno@clisp.org>
72615
72616         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72617         option.
72618
72619 2006-10-07  Jim Meyering  <jim@meyering.net>
72620
72621         * modules/inttypes (inttypes.h): Revert what seems to have been
72622         an inadvertent part of today's change: use "|", not "/" in the
72623         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72624
72625 2006-10-07  Bruno Haible  <bruno@clisp.org>
72626
72627         * modules/sublist: New file.
72628
72629 2006-10-07  Bruno Haible  <bruno@clisp.org>
72630
72631         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72632         * modules/argz (argz.h): Likewise.
72633         * modules/arpa_inet (arpa/inet.h): Likewise.
72634         * modules/byteswap (byteswap.h): Likewise.
72635         * modules/configmake (configmake.h): Likewise.
72636         * modules/fcntl (fcntl.h): Likewise.
72637         * modules/fnmatch (fnmatch.h): Likewise.
72638         * modules/getopt (getopt.h): Likewise.
72639         * modules/glob (glob.h): Likewise.
72640         * modules/inttypes (inttypes.h): Likewise.
72641         * modules/netinet_in (netinet/in.h): Likewise.
72642         * modules/poll (poll.h): Likewise.
72643         * modules/stdbool (stdbool.h): Likewise.
72644         * modules/stdint (stdint.h): Likewise.
72645         * modules/sys_select (sys/select.h): Likewise.
72646         * modules/sys_socket (sys/socket.h): Likewise.
72647         * modules/sys_stat (sys/stat.h): Likewise.
72648         * modules/sysexits (sysexits.h): Likewise.
72649         * modules/unistd (unistd.h): Likewise.
72650         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72651         Add a "DO NOT EDIT" comment to the generated file.
72652         (func_import): Likewise for gnulib-comp.m4.
72653
72654 2006-10-07  Bruno Haible  <bruno@clisp.org>
72655
72656         * lib/gl_sublist.h: New file.
72657         * lib/gl_sublist.c: New file.
72658
72659 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72660
72661         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72662         name (relative to the original working directory) and the file
72663         name component (relative to the temporary working directory).  All
72664         callers changed.
72665         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72666         * lib/mkdir-p.c (make_dir_parents): Likewise.
72667         * lib/mkdir-p.h (make_dir_parents): Likewise.
72668
72669 2006-10-06  Eric Blake  <ebb9@byu.net>
72670
72671         Define several macros for use by the clean-temp module.
72672         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72673         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72674         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72675
72676         * lib/clean-temp.h (close_stream_temp): New declaration.
72677         * lib/clean-temp.c (includes): Pull in headers according to what
72678         other modules are in use.
72679         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72680
72681 2006-10-06  Bruno Haible  <bruno@clisp.org>
72682
72683         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72684         instead of fopen, fwriteerror.
72685
72686 2006-10-06  Bruno Haible  <bruno@clisp.org>
72687
72688         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72689         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72690         int.
72691         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72692         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72693         Return an error indicator.
72694         Suggested by Eric Blake.
72695
72696 2006-10-06  Bruno Haible  <bruno@clisp.org>
72697
72698         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72699         Reported by Eric Blake.
72700
72701 2006-10-06  Bruno Haible  <bruno@clisp.org>
72702
72703         * modules/closeout (Description): Mention stderr too.
72704
72705 2006-10-06  Bruno Haible  <bruno@clisp.org>
72706         and Paul Eggert  <eggert@cs.ucla.edu>
72707
72708         * lib/closeout.c (close_stdout): Also close stderr.
72709         * lib/closeout.h: Update comment.
72710
72711 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72712
72713         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72714         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72715         * lib/dirchownmod.c: Include lchown.h.
72716         * lib/lchown.c: Don't include files that lchown.h now includes.
72717         Don't declare chown, since lchown.h now does that.
72718         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72719         (lchown): Define to rpl_chown if lchown is declared but
72720         does not exist.  Declare using a prototype if lchown is not
72721         declared.  Add a copyright notice.
72722         * lib/mkstemp.h: Include <unistd.h>.
72723         * lib/openat.c: Include lchown.h.
72724
72725         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72726         we now test for that separately.
72727         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72728         rather than O_NOFOLLOW, when testing whether it's possible to
72729         avoid a race condition reliably.
72730         * lib/savewd.c (savewd_chdir): Likewise.
72731
72732         Remove macros that are no longer needed now that stdint.h is
72733         reliable.
72734         * lib/fsusage.c (UINTMAX_MAX): Remove.
72735         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72736         * lib/utimecmp.c (SIZE_MAX): Remove.
72737
72738         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72739
72740         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72741         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72742         O_NOATIME works.
72743
72744 2006-10-05  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/gl_list.h (gl_sortedlist_search_from_to,
72747         gl_sortedlist_indexof_from_to): New declarations.
72748         (gl_list_implementation): New fields sortedlist_search_from_to,
72749         sortedlist_indexof_from_to.
72750         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72751         inline functions.
72752         * lib/gl_list.c (gl_sortedlist_search_from_to,
72753         gl_sortedlist_indexof_from_to): New functions.
72754         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72755         function.
72756         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72757         (gl_array_sortedlist_search_from_to): New function.
72758         (gl_array_list_implementation): Update.
72759         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72760         function.
72761         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72762         (gl_carray_sortedlist_search_from_to): New function.
72763         (gl_carray_list_implementation): Update.
72764         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72765         gl_linked_sortedlist_indexof_from_to): New functions.
72766         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72767         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72768         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72769         gl_tree_sortedlist_indexof_from_to): New functions.
72770         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72771         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72772         Update.
72773         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72774         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72775         Update.
72776
72777 2006-10-05  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72780         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72781         (struct gl_list_implementation): Add fields search_from_to,
72782         indexof_from_to. Remove fields search, indexof.
72783         (gl_list_search): Use the search_from_to method.
72784         (gl_list_search_from, gl_list_search_from_to): New functions.
72785         (gl_list_indexof): Use the indexof_from_to method.
72786         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72787         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72788         (gl_list_search_from, gl_list_search_from_to): New functions.
72789         (gl_list_indexof): Use the indexof_from_to method.
72790         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72791         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72792         gl_array_indexof. Add start_index, end_index arguments.
72793         (gl_array_search_from_to): Renamed from gl_array_search. Add
72794         start_index, end_index arguments.
72795         (gl_array_remove, gl_array_list_implementation): Update.
72796         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72797         gl_carray_indexof. Add start_index, end_index arguments.
72798         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72799         start_index, end_index arguments.
72800         (gl_carray_remove, gl_carray_list_implementation): Update.
72801         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72802         gl_linked_search. Add start_index, end_index arguments.
72803         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72804         start_index, end_index arguments.
72805         (gl_linked_remove): Update.
72806         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72807         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72808         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72809         field to 'size_t'.
72810         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72811         gl_tree_search. Add start_index, end_index arguments.
72812         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72813         start_index, end_index arguments.
72814         (gl_tree_remove): Update.
72815         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72816         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72817         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72818         function.
72819         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72820         gl_tree_search. Add start_index, end_index arguments.
72821         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72822         start_index, end_index arguments.
72823         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72824         Update.
72825         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72826
72827 2006-10-05  Bruno Haible  <bruno@clisp.org>
72828
72829         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72830
72831         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72832         fwriteerror_temp): New declarations.
72833         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72834         (descriptors): New variable.
72835         (cleanup): First, close the descriptors.
72836         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72837         fclose_temp, fwriteerror_temp): New functions.
72838
72839 2006-10-04  Jim Meyering  <jim@meyering.net>
72840
72841         * lib/fts.c (fts_open): Tiny comment change.
72842
72843 2006-10-04  Bruno Haible  <bruno@clisp.org>
72844
72845         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72846         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72847         gl_LOCK_BODY.
72848         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72849         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72850         gl_LOCK_EARLY_BODY.
72851         (gl_LOCK): Require gl_LOCK_BODY.
72852
72853 2006-10-04  Bruno Haible  <bruno@clisp.org>
72854
72855         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72856         (gl_oset_search_atleast): New declaration.
72857         (struct gl_oset_implementation): Add field 'search_atleast'.
72858         (gl_oset_search_atleast): New inline function.
72859         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72860         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72861         (gl_array_oset_implementation): Update.
72862         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72863         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72864         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72865
72866 2006-10-04  Bruno Haible  <bruno@clisp.org>
72867
72868         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72869
72870 2006-10-03  Bruno Haible  <bruno@clisp.org>
72871
72872         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72873         from gl_avltreehash_list_implementation.
72874
72875 2006-10-03  Bruno Haible  <bruno@clisp.org>
72876
72877         * lib/gl_oset.c (gl_oset_add): Fix return type.
72878
72879 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72880
72881         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72882
72883 2006-10-02  Eric Blake  <ebb9@byu.net>
72884
72885         * modules/strnlen (Depends-on): Add extensions.
72886
72887 2006-10-02  Eric Blake  <ebb9@byu.net>
72888
72889         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72890         definition in 2.60+.
72891
72892 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72893
72894         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72895         checks.
72896
72897 2006-10-02  Bruno Haible  <bruno@clisp.org>
72898
72899         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72900         to the AUTOMAKE_OPTIONS.
72901         Reported by Jim Meyering.
72902
72903 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72904
72905         Work around bug in Solaris 10 /proc file system:
72906         /proc/self/fd/NNN/.. isn't the parent directory of
72907         the directory whose file descriptor is NNN.  This needs to
72908         be worked around at run time, not compile time, since a
72909         program might be built on Solaris 8, where things work, and
72910         run on Solaris 10.
72911         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72912         to use the following interface instead:
72913         (OPENAT_BUFFER_SIZE): New macro.
72914         (openat_proc_name): New function.
72915         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72916         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72917         Likewise.
72918         * lib/openat-proc.c: New file.
72919         * modules/openat (Files): Add lib/openat-proc.c.
72920         (Depends-on): Add same-inode, stdbool.
72921         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72922
72923 2006-09-29  Bruno Haible  <bruno@clisp.org>
72924
72925         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72926         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72927         argument. Set stdout_closed before testing for ferror, not after.
72928         (fwriteerror, fwriteerror_no_ebadf): New functions.
72929
72930 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72931
72932         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72933
72934 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72935
72936         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72937         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72938
72939 2006-09-28  Jim Meyering  <jim@meyering.net>
72940
72941         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72942         Include <unistd.h>.
72943
72944 2006-09-28  Bruno Haible  <bruno@clisp.org>
72945
72946         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72947         * modules/linkedhash-list (Depends-on): Likewise.
72948         * modules/rbtreehash-list (Depends-on): Likewise.
72949
72950 2006-09-28  Bruno Haible  <bruno@clisp.org>
72951
72952         * lib/strndup.h: Simplify the redefinition of strndup.
72953         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72954         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72955
72956 2006-09-28  Bruno Haible  <bruno@clisp.org>
72957
72958         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72959         * lib/gl_linkedhash_list.c: Likewise.
72960         * lib/gl_rbtreehash_list.c: Likewise.
72961
72962 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72963
72964         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72965         getaddrinfo.
72966
72967         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72968         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72969         it causes <stdio_ext.h> to cause a compile-time error.
72970         Problem reported by Nelson H. F. Beebe.
72971         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72972         of HAVE_DECL___PENDING.
72973
72974         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72975         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72976         declaration.
72977
72978 2006-09-27  Jim Meyering  <jim@meyering.net>
72979
72980         This file could end up with a definition for a function
72981         named __strndup, rather than rpl_strndup on a system with
72982         incomplete weak_alias support.
72983         * lib/strndup.c (strndup): Rename from __strndup.
72984         Remove #defines that used to map __strndup to strndup.
72985         Don't use K&R prototypes.
72986         Remove LIBC-related code, since this file is not sync'd with glibc.
72987         * lib/strndup.h: Revamp, accordingly.
72988         * m4/strndup.m4: Modernize.
72989
72990 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72991
72992         * modules/savewd (Depends-on): Add 'raise'.
72993         * lib/savewd.c: Include <signal.h>, for 'raise'.
72994
72995 2006-09-26  Jim Meyering  <jim@meyering.net>
72996
72997         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72998         when we detect Darwin 8.7.0's acl_get_file bug.
72999         Rearrange to perform the new (below) run-test while $LIBS
73000         contains any acl-related library.  Set USE_ACL at the end.
73001         (gl_ACL_GET_FILE): New function.
73002
73003 2006-09-26  Eric Blake  <ebb9@byu.net>
73004
73005         * lib/verror.c: Include <config.h> unconditionally.
73006
73007 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73008
73009         * modules/clock-time (Maintainer): Add self.
73010         * modules/getlogin_r (Depends-on): Add extensions.
73011
73012 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73013
73014         * modules/clock-time: New module.
73015         * modules/nanosleep (Depends-on): Add clock-time.
73016         * modules/gethrxtime (Depends-on): Likewise.
73017         * modules/gettime (Depends-on): Likewise.
73018         * modules/settime (Depends-on): Likewise.
73019
73020         * modules/fts-lgpl: Depend on openat.
73021         * modules/mkancesdirs: Depend on savewd.
73022         * modules/mkdir-p: Likewise.
73023
73024 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73025
73026         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73027
73028         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73029         `gl_have_arbitrary_file_name_length_limit' to
73030         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73031         actually works between configure runs.
73032
73033 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73034             Bruno Haible  <bruno@clisp.org>
73035
73036         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73037
73038 2006-09-25  Jim Meyering  <jim@meyering.net>
73039
73040         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73041         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73042
73043 2006-09-25  Eric Blake  <ebb9@byu.net>
73044
73045         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73046         exec's in 2006-09-18 patch when shuffling fds.
73047
73048 2006-09-25  Bruno Haible  <bruno@clisp.org>
73049
73050         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73051         Reported by Jim Meyering.
73052
73053 2006-09-24  Jim Meyering  <jim@meyering.net>
73054
73055         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73056         compare a pointer against a literal "0".  That caused failures with
73057         at least HP-UX's hpcc.
73058
73059 2006-09-22  Simon Josefsson  <jas@extundo.com>
73060
73061         * modules/gc-sha1:
73062         * modules/gc-md4:
73063         * modules/gc-hmac-sha1:
73064         * modules/gc-hmac-md5:
73065         * modules/gc-des:
73066         * modules/gc-arcfour: Distribute more files.
73067
73068 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73069
73070         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73071         (gl_linked_iterator_from_to): Initialize struct completely.
73072         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73073         (gl_tree_iterator_from_to): Likewise
73074         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73075         * lib/gl_array_list.c [lint] (gl_array_iterator)
73076         (gl_array_iterator_from_to): Likewise.
73077         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73078         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73079         (gl_carray_iterator_from_to): Likewise.
73080
73081         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73082         * lib/md4.c (md4_process_block): Remove unused variable.
73083         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73084         parentheses for clarity.
73085
73086 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73087
73088         * modules/bison-i18n (Depends-on): Add gettext.
73089
73090 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73091
73092         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73093         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73094         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73095         also add missing comma that caused broken test.
73096         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73097         stdlib.h, for `abort'.
73098         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73099         variables.
73100         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73101         include unistd.h if present, for `rmdir'.
73102         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73103         variables.
73104         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73105         in the process include standard headers for prototypes.
73106         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73107         gets declared on GNU/Linux.
73108         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73109         unistd.h, for `rmdir'.
73110         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73111
73112         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73113         always true.
73114         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73115
73116         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73117
73118 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73119
73120         * gnulib-tool (func_version): Create output all at once.  This
73121         may help avoid triggering unnecessary SIGPIPEs, and at any
73122         rate it doesn't hurt.
73123
73124 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73125             Bruno Haible  <bruno@clisp.org>
73126
73127         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73128         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73129         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73130
73131         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73132         (gl_FUNC_VASPRINTF): Invoke it.
73133
73134 2006-09-22  Bruno Haible  <bruno@clisp.org>
73135
73136         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73137         getloadavg.c as first argument.
73138
73139 2006-09-22  Bruno Haible  <bruno@clisp.org>
73140
73141         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73142         at the beginning of the gl_INIT macro.
73143         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73144         gl_GETLOADAVG.
73145
73146 2006-09-22  Bruno Haible  <bruno@clisp.org>
73147
73148         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73149         module.
73150         Suggested by Ralf Wildenhues.
73151
73152 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73153
73154         Import this patch from libc:
73155
73156         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73157
73158         * lib/regex_internal.c (re_string_reconstruct): Handle
73159         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73160         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73161         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73162         re_string_context_at.
73163
73164         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73165         now requires it.
73166         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73167         gl_REGEX now does it for us.
73168         (gl_REGEX): Add test taken from
73169         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73170
73171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73172         Check that large offsets work.  Modernize Autoconf usages.
73173         Prefer "yes" to mean a good thing rather than a bad.
73174         Don't put "#define mkstemp" in config.h, as this might interfere
73175         with standard system headers that "#define mkstemp mkstemp64".
73176
73177         * modules/mkstemp (Depends-on): Add extensions, so that
73178         mkstemp is visible on some platforms.
73179         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73180         (Include): Change to "mkstemp.h" from <stdlib.h>.
73181         (Files): Add mkstemp.h.
73182
73183         * lib/mkstemp.h: New file, since some standard headers
73184         #define mkstemp.
73185         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73186         Include "mkstemp.h".
73187         Make the _LIBC code resemble glibc original more,
73188         e.g., use K&R style.
73189         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73190         (mkstemp): Remove, since mkstemp.h does this for us.
73191         * lib/stdlib--.h: Include mkstemp.h.
73192
73193         Import this patch from libc:
73194
73195         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73196
73197         * lib/tempname.c (__gen_tempname): Change attempts_min
73198         into a macro.  Use preprocessor to decide how to initialize
73199         attempts [Coverity CID 67].
73200
73201 2006-09-20  Bruno Haible  <bruno@clisp.org>
73202
73203         * lib/mkdtemp.c: Import from libc.
73204         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73205                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73206                 attempts_min into a macro.  Use preprocessor to decide how to
73207                 initialize attempts [Coverity CID 67].
73208         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73209                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73210                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73211
73212 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73213
73214         * gnulib-tool (func_exit): New function, to allow to pass the
73215         exit status portably through the trap.  Use everywhere.
73216         (--help, --version): Signal a write error.
73217         (trap): catch SIGPIPE, for write errors.
73218         Exit at the end of the trap, with the correct exit status.
73219
73220 2006-09-19  Karl Berry  <karl@gnu.org>
73221
73222         * doc/gnulib.texi: note about the license texinfo files.
73223
73224 2006-09-19  Eric Blake  <ebb9@byu.net>
73225
73226         * gnulib-tool: Avoid space-tab.
73227
73228 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73229
73230         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73231         that prevented coreutils 6.1 from building.  Problem reported
73232         by Petter Reinholdtsen.
73233
73234 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73235
73236         * gnulib-tool (avoidlist): Fix typo that broke options like
73237         --avoid=lock that are used by coreutils bootstrap.
73238
73239 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73240
73241         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73242         more systematically.
73243
73244 2006-09-18  Jim Meyering  <jim@meyering.net>
73245
73246         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73247
73248 2006-09-18  Bruno Haible  <bruno@clisp.org>
73249
73250         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73251
73252 2006-09-18  Bruno Haible  <bruno@clisp.org>
73253
73254         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73255         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73256         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73257         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73258         * m4/gettext.m4: Require autoconf >= 2.52.
73259         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73260         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73261         of gl_cv_header_inttypes_h.
73262
73263 2006-09-18  Bruno Haible  <bruno@clisp.org>
73264
73265         * lib/javaversion.c: Include configmake.h.
73266
73267 2006-09-18  Bruno Haible  <bruno@clisp.org>
73268
73269         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73270         avoid that the while loops be executed in a subshell.
73271
73272 2006-09-18  Bruno Haible  <bruno@clisp.org>
73273
73274         * MODULES.html.sh (func_module): Break long lines.
73275         Suggested by Bruce Korb <bkorb@gnu.org>.
73276
73277 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73278
73279         Speed up by a factor of 1.12.
73280         * gnulib-tool (nl): New variable.
73281         (func_import): Rewrite include directive extraction to only read each
73282         directive once.
73283
73284 2006-09-17  Bruno Haible  <bruno@clisp.org>
73285
73286         * modules/javaversion (Makefile.am): Remove DEFS setting.
73287         (Depends-on): Add configmake, for PKGDATADIR definition.
73288
73289 2006-09-17  Bruno Haible  <bruno@clisp.org>
73290
73291         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73292
73293 2006-09-17  Bruno Haible  <bruno@clisp.org>
73294
73295         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73296         (func_modules_transitive_closure, func_modules_add_dummy,
73297         func_modules_to_filelist, func_import, func_create_testdir,
73298         func_create_megatestdir, ...): Use it wherever possible.
73299         Suggested by Ralf Wildenhues.
73300
73301 2006-09-16  Karl Berry  <karl@gnu.org>
73302
73303         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73304         to avoid sectioning errors.
73305         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73306         [ifinfo]: blank line after @center-ed titles.
73307         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73308         Spell FSF address consistently with others.
73309         (These changes approved by rms.)
73310
73311 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73312
73313         Speed up by a factor of 1.61.
73314         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73315         already checked module names again.
73316
73317 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73318
73319         Speed up by a factor of 1.13.
73320         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73321         for new_files, and the input to func_add_or_update.
73322
73323 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73324
73325         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73326         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73327
73328 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73329
73330         * modules/mkancesdirs (Depends-on): Add fcntl.
73331         * modules/savewd: New file.
73332         * MODULES.html.sh (File system functions): Add savewd.
73333
73334         * modules/configmake (Makefile.am): Add support for the
73335         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73336
73337 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73338
73339         * m4/savewd.m4: New file.
73340
73341 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73342
73343         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73344         (dirchownmod): New arg FD.  All callers changed.
73345         Use FD rather than opening the directory ourself, as opening is
73346         now the caller's responsibility.
73347         * lib/dirchownmod.h: Likewise.
73348         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73349         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73350         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73351         (test_dir): Remove.
73352         (mkancesdirs): Return length of prefix of FILE that has already
73353         been made, or -2 if there is a child doing the work.  Redo
73354         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73355         ".", and treat ".." specially since it might stray back into
73356         already-created areas.  Use a subprocess if necessary.  New arg
73357         WD; all users changed.  MAKE_DIR function should now return 1
73358         if it creates a directory that is not readable.  Return -2 if
73359         a child process is spun off.
73360         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73361         Adjust signature to match code.
73362         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73363         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73364         all users changed.
73365         * lib/savewd.c, lib/savewd.h: New files.
73366
73367 2006-09-15  Jim Meyering  <jim@meyering.net>
73368
73369         * modules/rename-dest-slash: New module.
73370         * MODULES.html.sh (posix_compat): Add it here.
73371
73372         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73373
73374 2006-09-15  Jim Meyering  <jim@meyering.net>
73375
73376         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73377         file.
73378
73379         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73380
73381 2006-09-15  Jim Meyering  <jim@meyering.net>
73382
73383         * lib/rename-dest-slash.c (has_trailing_slash): Use
73384         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73385         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73386         test before testing whether SRC is a directory.
73387         Suggestions from Bruno Haible.
73388
73389         Avoid a warning about an unused variable.
73390         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73391         into the #ifdef block where it's used.
73392
73393         * lib/rename-dest-slash.c: New file.
73394
73395 2006-09-14  Bruno Haible  <bruno@clisp.org>
73396
73397         * lib/allocsa.c: Include <config.h> unconditionally.
73398         * lib/asnprintf.c: Likewise.
73399         * lib/asprintf.c: Likewise.
73400         * lib/c-strcasecmp.c: Likewise.
73401         * lib/c-strcasestr.c: Likewise.
73402         * lib/c-strncasecmp.c: Likewise.
73403         * lib/c-strstr.c: Likewise.
73404         * lib/classpath.c: Likewise.
73405         * lib/clean-temp.c: Likewise.
73406         * lib/concatpath.c: Likewise.
73407         * lib/copy-file.c: Likewise.
73408         * lib/csharpcomp.c: Likewise.
73409         * lib/csharpexec.c: Likewise.
73410         * lib/execute.c: Likewise.
73411         * lib/fatal-signal.c: Likewise.
73412         * lib/findprog.c: Likewise.
73413         * lib/fwriteerror.c: Likewise.
73414         * lib/gl_array_list.c: Likewise.
73415         * lib/gl_array_oset.c: Likewise.
73416         * lib/gl_avltree_list.c: Likewise.
73417         * lib/gl_avltree_oset.c: Likewise.
73418         * lib/gl_avltreehash_list.c: Likewise.
73419         * lib/gl_carray_list.c: Likewise.
73420         * lib/gl_linked_list.c: Likewise.
73421         * lib/gl_linkedhash_list.c: Likewise.
73422         * lib/gl_list.c: Likewise.
73423         * lib/gl_oset.c: Likewise.
73424         * lib/gl_rbtree_list.c: Likewise.
73425         * lib/gl_rbtree_oset.c: Likewise.
73426         * lib/gl_rbtreehash_list.c: Likewise.
73427         * lib/imaxabs.c: Likewise.
73428         * lib/imaxdiv.c: Likewise.
73429         * lib/javacomp.c: Likewise.
73430         * lib/javaexec.c: Likewise.
73431         * lib/javaversion.c: Likewise.
73432         * lib/linebreak.c: Likewise.
73433         * lib/localcharset.c: Likewise.
73434         * lib/lock.c: Likewise.
73435         * lib/mbchar.c: Likewise.
73436         * lib/mbswidth.c: Likewise.
73437         * lib/mkdtemp.c: Likewise.
73438         * lib/pipe.c: Likewise.
73439         * lib/printf-args.c: Likewise.
73440         * lib/printf-parse.c: Likewise.
73441         * lib/progname.c: Likewise.
73442         * lib/progreloc.c: Likewise.
73443         * lib/readlink.c: Likewise.
73444         * lib/sh-quote.c: Likewise.
73445         * lib/stpcpy.c: Likewise.
73446         * lib/stpncpy.c: Likewise.
73447         * lib/strcasecmp.c: Likewise.
73448         * lib/strcasestr.c: Likewise.
73449         * lib/strcspn.c: Likewise.
73450         * lib/striconv.c: Likewise.
73451         * lib/strncasecmp.c: Likewise.
73452         * lib/strnlen1.c: Likewise.
73453         * lib/strstr.c: Likewise.
73454         * lib/strtok_r.c: Likewise.
73455         * lib/tls.c: Likewise.
73456         * lib/tmpdir.c: Likewise.
73457         * lib/unicodeio.c: Likewise.
73458         * lib/unsetenv.c: Likewise.
73459         * lib/vasnprintf.c: Likewise.
73460         * lib/vasprintf.c: Likewise.
73461         * lib/wait-process.c: Likewise.
73462         * lib/xallocsa.c: Likewise.
73463         * lib/xsetenv.c: Likewise.
73464         * lib/xstriconv.c: Likewise.
73465
73466 2006-09-13  Simon Josefsson  <jas@extundo.com>
73467
73468         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73469         that internally, suggested by Ralf Wildenhues
73470         <Ralf.Wildenhues@gmx.de>.
73471
73472 2006-09-13  Simon Josefsson  <jas@extundo.com>
73473
73474         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73475         @LIBOBJS@.
73476         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73477
73478 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73481         longer worry about uses that don't define HAVE_CONFIG_H.
73482         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73483         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73484         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73485         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73486         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73487         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73488         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73489         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73490         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73491         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73492         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73493         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73494         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73495         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73496         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73497         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73498         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73499         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73500         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73501         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73502         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73503         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73504         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73505         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73506         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73507         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73508         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73509         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73510         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73511         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73512         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73513         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73514         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73515         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73516         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73517         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73518         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73519         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73520         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73521         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73522         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73523         Likewise.
73524
73525 2006-09-13  Eric Blake  <ebb9@byu.net>
73526
73527         * lib/getopt.c: Fix typo in last commit.
73528
73529 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73530
73531         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73532         dgettext.
73533
73534 2006-09-12  Jim Meyering  <jim@meyering.net>
73535
73536         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73537         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73538         Reported by Nelson H. F. Beebe.
73539
73540 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73541
73542         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73543         program_invocation_name and program_invocation_short_name are
73544         initialized.
73545         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73546         and program_invocation_short_name to argp.h, so they are visible
73547         to user programs.
73548         * lib/argp.h: Likewise
73549
73550 2006-09-10  Bruno Haible  <bruno@clisp.org>
73551
73552         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73553         m4/inttypes_h.m4, m4/uintmax_t.m4.
73554
73555 2006-09-10  Bruno Haible  <bruno@clisp.org>
73556
73557         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73558         gl_AC_TYPE_UINTMAX_T.
73559
73560 2006-09-10  Bruno Haible  <bruno@clisp.org>
73561
73562         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73563
73564 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73565
73566         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73567         convention.  Text proposed by Bruno Haible.
73568         (struct argp_option): Document the use of N_() wrappers.
73569
73570         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73571         '\v', and translate the two parts separately, instead of feeding
73572         the whole string to gettext.  This allows to exclude
73573         '\v' from the strings visible to the translator by writing doc
73574         strings as N_("..") "\v" N_("..").
73575
73576 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * config/srclist.txt: Undo latest change; the bug was fixed.
73579
73580 2006-09-09  Bruno Haible  <bruno@clisp.org>
73581
73582         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73583         assignments if building a library without libtool.
73584         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73585         in func_emit_lib_Makefile_am.
73586         (func_import): When building a static library libfoo.a, arrange to
73587         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73588         (func_create_testdir): Likewise.
73589         * modules/gc (configure.ac, Makefile.am): If building statically,
73590         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73591         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73592         * modules/striconv (configure.ac, Makefile.am): Likewise.
73593         Based on a suggestion by Ralf Wildenhues.
73594
73595 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73598         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73599         Also:
73600
73601         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73602         Add year_2050_test to catch glibc bug 2821
73603         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73604
73605         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73606         Prefer #ifdef to #if.
73607
73608         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73609         Return from 'main' instead of calling 'exit'.
73610
73611 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73614         returned the maximum time_t value rather than (time_t) -1.
73615         Problem originally reported by William Bardwell
73616         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73617
73618         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73619         Moved to here ...
73620         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73621         ... from here.
73622
73623 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73626         2821 is fixed.
73627
73628 2006-09-08  Jim Meyering  <jim@meyering.net>
73629
73630         Don't make generated files read-only.  That would bother too many
73631         people.  However, do retain the ability to work when targets are
73632         read-only: remove the destination and temporary files before writing
73633         them (when generated via sed or echo), or by using the -f option for
73634         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73635         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73636         * modules/byteswap, modules/configmake, modules/fcntl:
73637         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73638         * modules/localcharset, modules/netinet_in, modules/poll:
73639         * modules/stdbool, modules/stdint, modules/sys_select:
73640         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73641
73642 2006-09-08  Jim Meyering  <jim@meyering.net>
73643
73644         Avoid new build failure on FreeBSD 6.0.
73645         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73646         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73647         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73648
73649 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73650
73651         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73652
73653 2006-09-07  Jim Meyering  <jim@meyering.net>
73654
73655         Fix global typo in last change: use chmod u-w, not chmod u-x.
73656         Spotted by Paul Eggert and Bruce Korb.
73657         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73658         * modules/byteswap, modules/configmake, modules/fcntl:
73659         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73660         * modules/localcharset, modules/netinet_in, modules/poll:
73661         * modules/stdbool, modules/stdint, modules/sys_select:
73662         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73663
73664 2006-09-06  Jim Meyering  <jim@meyering.net>
73665
73666         Make generated files be read-only.
73667         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73668         Ensure that each generated file is now read-only.
73669         * modules/argz: Likewise.
73670         * modules/arpa_inet: Likewise.
73671         * modules/byteswap: Likewise.
73672         * modules/configmake: Likewise.
73673         * modules/fcntl: Likewise.
73674         * modules/fnmatch: Likewise.
73675         * modules/getopt: Likewise.
73676         * modules/glob: Likewise.
73677         * modules/inttypes: Likewise.
73678         * modules/netinet_in: Likewise.
73679         * modules/poll: Likewise.
73680         * modules/stdbool: Likewise.
73681         * modules/stdint: Likewise.
73682         * modules/sys_select: Likewise.
73683         * modules/sys_socket: Likewise.
73684         * modules/sys_stat: Likewise.
73685         * modules/sysexits: Likewise.
73686         * modules/localcharset: Same as above, but continue using temporary
73687         file named "t-$@" (why different?) rather than the "$@-t" used
73688         everywhere else.
73689
73690         * modules/sysexits (Makefile.am): Replace literal occurrences
73691         of "sysexit.h" more readable, and more consistent, "$@".
73692
73693 2006-09-06  Bruno Haible  <bruno@clisp.org>
73694
73695         * modules/striconv: New file.
73696         * modules/xstriconv: New file.
73697         * MODULES.html.sh (Internationalization functions): Add striconv,
73698         xstriconv.
73699
73700 2006-09-06  Bruno Haible  <bruno@clisp.org>
73701
73702         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73703         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73704         not using libtool correctly.
73705
73706 2006-09-06  Bruno Haible  <bruno@clisp.org>
73707
73708         * lib/striconv.h: New file.
73709         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73710         iconvstring.c.
73711         * lib/xstriconv.h: New file.
73712         * lib/xstriconv.c: New file.
73713
73714 2006-09-06  Bruno Haible  <bruno@clisp.org>
73715
73716         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73717         lib_..._LDFLAGS.
73718
73719 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73720
73721         * lib/argz_.h: Sync from Libtool.
73722
73723         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73724                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73725
73726         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73727
73728 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73729
73730         * modules/trim: New file.
73731
73732 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73733
73734         * lib/trim.h: New file.
73735         * lib/trim.c: New file.
73736
73737 2006-09-05  Bruno Haible  <bruno@clisp.org>
73738
73739         * MODULES.html.sh (String handling): Add trim.
73740
73741 2006-09-04  Karl Berry  <karl@gnu.org>
73742
73743         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73744         until next release.
73745
73746 2006-09-03  Bruno Haible  <bruno@clisp.org>
73747
73748         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73749         correctly.
73750
73751 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73752
73753         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73754         not gl_GETLOADAVG.  Omit unneeded semicolons.
73755         Problems reported by Ralf Wildenhues in
73756         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73757         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73758         at the end, which is the usual gnulib style.
73759
73760         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73761         of doing all the work ourselves.
73762         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73763         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73764
73765 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73766
73767         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73768         Problem reported by Ralf Wildenhues in
73769         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73770
73771         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73772         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73773
73774 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73775
73776         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73777         yesterday's patch by changing test -n to test -z.
73778
73779 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73780
73781         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73782         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73783         the former is now obsolescent.
73784
73785         * modules/chdir-long (Depends-on): Add fcntl.
73786
73787 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73790         obsolescent, and programs should use gnulib instead.
73791         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73792         but with prefixes changed.
73793
73794 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73795
73796         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73797         or stdbool.h, because they might not exist while configuring.
73798
73799         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73800         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73801         does that for us.
73802         (O_DIRECTORY): Remove.
73803
73804 2006-08-31  Eric Blake  <ebb9@byu.net>
73805
73806         * gnulib-tool: Don't let emacs change spaces to TAB.
73807
73808 2006-08-31  Bruno Haible  <bruno@clisp.org>
73809
73810         * gnulib-tool: When calling func_import more than once, do it in a
73811         subshell.
73812         Reported by Eric Blake <ebb9@byu.net>.
73813
73814 2006-08-31  Bruno Haible  <bruno@clisp.org>
73815
73816         * gnulib-tool (nl): Remove variable.
73817         (sed_transform_lib_file): Use more robust test for config-h module.
73818         (func_import): Fix typo in 2006-08-25 patch.
73819
73820 2006-08-31  Bruno Haible  <bruno@clisp.org>
73821
73822         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73823         specified, augment Makefile.am variables instead of assigning them.
73824
73825 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         Work around a bug in both the Linux and SunOS 64-bit kernels:
73828         nanosleep mishandles sleeps for longer than 2**31 seconds.
73829         Problem reported by Frank v Waveren in
73830         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73832         Check for nanosleep bug.
73833         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73834
73835 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         Work around a bug in both the Linux and SunOS 64-bit kernels:
73838         nanosleep mishandles sleeps for longer than 2**31 seconds.
73839         Problem reported by Frank v Waveren in
73840         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73841         * lib/nanosleep.c (BILLION): New constant.
73842         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73843         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73844         implementation.
73845
73846 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73847
73848         * modules/nanosleep (Depends-on): Add gettime.
73849
73850 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73851         and Simon Josefsson  <jas@extundo.com>
73852         and Oskar Liljeblad  <oskar@osk.mine.nu>
73853
73854         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73855         * gnulib-tool (func_import): New license type 'unmodifiable license
73856         text'.
73857         * modules/fdl: Use it.  Longer description.
73858         * module/gpl, module/lgpl: New files.
73859
73860 2006-08-30  Jim Meyering  <jim@meyering.net>
73861
73862         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73863         shadowing the parameter.
73864
73865 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73866
73867         Sync from Libtool:
73868
73869         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73870
73871         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73872         sharing with gnulib.  Report by Eric Blake.
73873
73874 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73875
73876         * modules/isapipe: New file.
73877         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73878
73879 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73880
73881         * modules/configmake (Makefile.am): Add a comment, and omit
73882         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73883         by Bruno Haible.
73884
73885 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73886
73887         * m4/isapipe.m4: New file.
73888
73889 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73890
73891         * lib/isapipe.c, lib/isapipe.h: New files.
73892
73893 2006-08-29  Jim Meyering  <jim@meyering.net>
73894
73895         * modules/configmake (Makefile.am): Make configmake.h depend on
73896         Makefile.  Otherwise, a stale configmake.h could hang around.
73897
73898 2006-08-29  Eric Blake  <ebb9@byu.net>
73899
73900         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73901         resolution of upstream bug 3044.
73902
73903 2006-08-29  Bruno Haible  <bruno@clisp.org>
73904
73905         * modules/localcharset (Depends-on): Add configmake.
73906         (Makefile.am): Remove setting of LIBDIR through DEFS.
73907
73908 2006-08-29  Bruno Haible  <bruno@clisp.org>
73909
73910         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73911         defined.
73912
73913 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73914
73915         * modules/fcntl: New file.
73916         * modules/chdir-safer (Depends-on): Add fcntl.
73917         * modules/fts: Likewise.
73918         * modules/mkdir-p: Likewise.
73919
73920         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73921         This undoes the most recent change, since we're now addressing the
73922         problem in a different way.
73923
73924         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73925         into output, since the output might be called Makefile.am even
73926         if $makefile_name is something different.
73927         (func_import): Use $makefile_am rather than
73928         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73929         empty.
73930
73931         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73932
73933 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73936         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73937         recent change to stdint.m4, since we're now addressing the problem in a
73938         different way.
73939
73940 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73941
73942         * m4/fcntl_h.m4: New file.
73943
73944 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73945
73946         * lib/fcntl_.h: New file.
73947         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73948         the fcntl module.
73949         * lib/dirchownmod.c: Likewise.
73950         * lib/fts.c: Likewise.
73951
73952         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73953         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73954         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73955         just before including <inttypes.h>, to avoid circular inclusion.
73956
73957 2006-08-28  Jim Meyering  <jim@meyering.net>
73958
73959         * doc/visibility.texi: Actually read and correct the grammar of the
73960         sentence affected by yesterday's change.
73961
73962 2006-08-28  Eric Blake  <ebb9@byu.net>
73963
73964         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73965         needs wrapper.
73966
73967 2006-08-28  Eric Blake  <ebb9@byu.net>
73968
73969         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73970
73971 2006-08-28  Eric Blake  <ebb9@byu.net>
73972
73973         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73974
73975 2006-08-28  Bruno Haible  <bruno@clisp.org>
73976
73977         * modules/c-strstr: New file, from GNU gettext.
73978         * MODULES.html.sh (String handling): Add c-strstr.
73979
73980 2006-08-28  Bruno Haible  <bruno@clisp.org>
73981
73982         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73983         macros.
73984         Reported by Eric Blake.
73985
73986 2006-08-28  Bruno Haible  <bruno@clisp.org>
73987
73988         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73989         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73990         * lib/vasprintf.c: Include errno.h, limits.h.
73991         (EOVERFLOW): New fallback definition.
73992         (vasprintf): Test here whether the string length is > INT_MAX.
73993         * lib/vsnprintf.c: Include errno.h, limits.h.
73994         (EOVERFLOW): New fallback definition.
73995         (vsnprintf): Fix bug when generated string was too long for the buffer.
73996         Test here whether the string length is > INT_MAX.
73997
73998 2006-08-28  Bruno Haible  <bruno@clisp.org>
73999
74000         * lib/inttypes_.h (SCNX*): Remove definitions.
74001         Reported by Eric Blake.
74002
74003 2006-08-28  Bruno Haible  <bruno@clisp.org>
74004
74005         * lib/c-strstr.h: New file, from GNU gettext.
74006         * lib/c-strstr.c: New file, from GNU gettext.
74007
74008 2006-08-28  Bruno Haible  <bruno@clisp.org>
74009
74010         * gnulib-tool: Reorder some statements.
74011
74012 2006-08-28  Bruno Haible  <bruno@clisp.org>
74013
74014         * gnulib-tool: New option --makefile-name.
74015         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74016         $makefile_name.
74017         (func_import): Write $makefile_name to the cache file, and read it from
74018         there unless explicitly specified. Use $makefile_name as file name
74019         instead of Makefile.am. Adjust the recommendations accordingly.
74020
74021 2006-08-28  Bruno Haible  <bruno@clisp.org>
74022
74023         * gnulib-tool (func_verify_module): Check against misapplying patch.
74024
74025 2006-08-28  Bruno Haible  <bruno@clisp.org>
74026
74027         * gnulib-tool (func_relativize, func_relconcat): New functions.
74028         Give an error if --local-dir is given with --update.
74029         Remove trailing slashes from $local_gnulib_dir.
74030         (func_import): Store the relativized $local_gnulib_dir in
74031         gnulib-cache.m4, and read it from there if not specified explicitly.
74032
74033 2006-08-28  Bruno Haible  <bruno@clisp.org>
74034
74035         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74036         is the current directory. Respect also $local_gnulib_dir.
74037
74038 2006-08-28  Bruno Haible  <bruno@clisp.org>
74039             Simon Josefsson  <jas@extundo.com>
74040
74041         BeOS portability.
74042         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74043
74044 2006-08-27  Jim Meyering  <jim@meyering.net>
74045
74046         * doc/visibility.texi: Remove duplicate word: "pointer".
74047
74048 2006-08-26  Bruno Haible  <bruno@clisp.org>
74049
74050         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74051         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74052         (Makefile.am): Create inttypes.h from inttypes_.h.
74053         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74054
74055         * modules/imaxabs: New file.
74056
74057         * modules/imaxdiv: New file.
74058
74059 2006-08-26  Bruno Haible  <bruno@clisp.org>
74060
74061         * m4/inttypes.m4: New file.
74062         * m4/_inttypes_h.m4: Remove file.
74063         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74064         PRI_MACROS_BROKEN.
74065         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74066
74067         * m4/imaxabs.m4: New file.
74068
74069         * m4/imaxdiv.m4: New file.
74070
74071 2006-08-26  Bruno Haible  <bruno@clisp.org>
74072
74073         * lib/inttypes_.h: New file.
74074         * lib/inttypes.h: Remove file.
74075         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74076
74077         * lib/imaxabs.c: New file.
74078
74079         * lib/imaxdiv.c: New file.
74080
74081 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74082
74083         New config-h module, so that "make" output needn't be cluttered
74084         by -DHAVE_CONFIG_H.
74085         * MODULES.html.sh (Support for building libraries and executables):
74086         Add config-h.
74087         * modules/config-h: New file.
74088         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74089         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74090         the config-h module is used.
74091
74092         New configmake module, so that "make" output needn't be cluttered
74093         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74094         * MODULES.html.sh (Support for building libraries and executables):
74095         Add configmake.
74096         * modules/configmake: New file.
74097
74098 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74099
74100         * m4/config-h.m4: New file.
74101
74102 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74103
74104         * config/srclist.txt: Add elisp-comp.
74105
74106 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * MODULES.html.sh (Support for building libraries and executables):
74109         Add elisp-comp.
74110         * build-aux/elisp-comp: New file.
74111         * modules/elisp-comp: New file.
74112
74113 2006-08-24  Bruno Haible  <bruno@clisp.org>
74114
74115         * gnulib-tool (func_create_testdir): Use non-default values of
74116         sourcebase and m4base.
74117
74118 2006-08-24  Bruno Haible  <bruno@clisp.org>
74119
74120         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74121         HTML structure.
74122
74123 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74124
74125         * modules/openat (Depends-on): Add lchown.
74126
74127 2006-08-23  Bruno Haible  <bruno@clisp.org>
74128
74129         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74130         of gl_LOCK_EARLY instead of gl_LOCK.
74131
74132 2006-08-23  Bruno Haible  <bruno@clisp.org>
74133
74134         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74135         on OSF/1 to no.
74136         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74137
74138 2006-08-23  Bruno Haible  <bruno@clisp.org>
74139
74140         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74141         as unusable.
74142
74143         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74144         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74145         (gl_LOCK): New macro.
74146
74147 2006-08-22  Simon Josefsson  <jas@extundo.com>
74148
74149         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74150         to md5 module.
74151
74152 2006-08-22  Simon Josefsson  <jas@extundo.com>
74153
74154         * MODULES.html.sh: Add "Support for maintaining and release
74155         projects".
74156
74157         * build-aux/gnupload: New file, from coreutils.
74158
74159 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74160
74161         Avoid the need for AC_LIBSOURCES in m4 macros.
74162         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74163         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74164         * modules/check-version (EXTRA_DIST): Add check-version.h.
74165         * modules/crc (EXTRA_DIST): Add crc.h.
74166         * modules/des (EXTRA_DIST): Add des.h.
74167         * modules/gc (EXTRA_DIST): Add gc.h.
74168         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74169         * modules/getline (EXTRA_DIST): Add getline.h.
74170         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74171         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74172         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74173         * modules/md2 (EXTRA_DIST): Add md2.h.
74174         * modules/md4 (EXTRA_DIST): Add md4.h.
74175         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74176         * modules/read-file (EXTRA_DIST): Add read-file.h.
74177         * modules/readline (EXTRA_DIST): Add readline.h.
74178         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74179         rijndael-api-fst.h.
74180
74181 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74182
74183         * m4/rijndael.m4 (gl_ARCFOUR):
74184         * m4/arctwo.m4 (gl_ARCTWO):
74185         * m4/check-version.m4 (gl_CHECK_VERSION):
74186         * m4/crc.m4 (gl_CRC):
74187         * m4/des.m4 (gl_DES):
74188         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74189         * m4/gc.m4 (gl_GC):
74190         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74191         * m4/getline.m4 (gl_FUNC_GETLINE):
74192         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74193         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74194         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74195         * m4/md2.m4 (gl_MD2):
74196         * m4/md4.m4 (gl_MD4):
74197         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74198         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74199         * m4/readline.m4 (gl_FUNC_READLINE):
74200         * m4/rijndael.m4 (gl_RIJNDAEL):
74201         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74202         to get the necessary .h files and whatnot.
74203
74204 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74205
74206         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74207         gnulib rather than the other way around.
74208         * config/srclistvars.sh (COREUTILS): Remove.
74209
74210 2006-08-22  Jim Meyering  <jim@meyering.net>
74211
74212         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74213
74214         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74215
74216 2006-08-22  Eric Blake  <ebb9@byu.net>
74217
74218         * modules/regexprops-generic: New file.
74219         * MODULES.html.sh (Support for building documentation): List it.
74220
74221 2006-08-22  Eric Blake  <ebb9@byu.net>
74222
74223         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74224         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74225         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74226         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74227
74228 2006-08-22  Bruno Haible  <bruno@clisp.org>
74229
74230         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74231         and lib_LTLIBRARIES like the other lib_* variables.
74232
74233 2006-08-22  Bruno Haible  <bruno@clisp.org>
74234
74235         * build-aux/x-to-1.in: New file, from GNU gettext.
74236
74237 2006-08-22  Bruno Haible  <bruno@clisp.org>
74238
74239         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74240         <utmpx.h> exists.
74241
74242 2006-08-22  Bruno Haible  <bruno@clisp.org>
74243
74244         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74245         <utmpx.h> exists.
74246
74247 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74248
74249         BeOS portability.
74250         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74251         exist.
74252         Problem reported by Bruno Haible.
74253
74254 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74255
74256         Avoid the need for AC_LIBSOURCES in m4 macros.
74257         * modules/acl (EXTRA_DIST): Add acl.h.
74258         * modules/argmatch (Files): Add m4/argmatch.m4.
74259         (configure.ac): Add gl_ARGMATCH.
74260         (EXTRA_DIST): Renamed from lib_SOURCES, for
74261         consistency with the other modules.  Remove argmatch.c.
74262         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74263         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74264         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74265         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74266         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74267         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74268         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74269         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74270         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74271         * modules/closeout (EXTRA_DIST): Add closeout.h.
74272         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74273         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74274         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74275         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74276         dirname.h; remove basename.c and stripslash.c.
74277         * modules/exclude (EXTRA_DIST): Add exclude.h.
74278         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74279         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74280         * modules/file-type (EXTRA_DIST): Add file-type.h.
74281         * modules/filemode (EXTRA_DIST): Add filemode.h.
74282         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74283         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74284         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74285         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74286         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74287         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74288         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74289         * modules/getdate (EXTRA_DIST): Add getdate.c.
74290         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74291         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74292         * modules/getpass (EXTRA_DIST): Add getpass.h.
74293         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74294         * modules/group-member (EXTRA_DIST): Add group-member.h.
74295         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74296         * modules/hash (EXTRA_DIST): Add hash.h.
74297         * modules/human (EXTRA_DIST): Add human.h.
74298         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74299         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74300         * modules/lchown (EXTRA_DIST): Add lchown.h.
74301         * modules/long-options (EXTRA_DIST): Add long-options.h.
74302         * modules/lstat (EXTRA_DIST): Add lstat.h.
74303         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74304         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74305         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74306         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74307         * modules/memxor (EXTRA_DIST): Add memxor.h.
74308         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74309         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74310         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74311         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74312         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74313         * modules/physmem (EXTRA_DIST): Add physmem.h.
74314         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74315         * modules/posixver (EXTRA_DIST): Add posixver.h.
74316         * modules/quote (EXTRA_DIST): Add quote.h.
74317         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74318         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74319         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74320         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74321         regex_internal.h regexec.c.
74322         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74323         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74324         * modules/same (EXTRA_DIST): Add same.h.
74325         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74326         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74327         * modules/savedir (EXTRA_DIST): Add savedir.h.
74328         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74329         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74330         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74331         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74332         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74333         * modules/strdup (EXTRA_DIST): Add strdup.h.
74334         * modules/strftime (EXTRA_DIST): Add strftime.h.
74335         * modules/strndup (EXTRA_DIST): Add strndup.h.
74336         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74337         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74338         * modules/time_r (EXTRA_DIST): Add time_r.h.
74339         * modules/timespec (EXTRA_DIST): Add timespec.h.
74340         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74341         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74342         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74343         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74344         * modules/userspec (EXTRA_DIST): Add userspec.h.
74345         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74346         * modules/utimens (EXTRA_DIST): Add utimens.h.
74347         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74348         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74349         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74350         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74351         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74352         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74353         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74354         * modules/yesno (EXTRA_DIST): Add yesno.h.
74355
74356 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74359
74360         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74361         * m4/dev-ino.m4, same-inode.m4: Remove.
74362
74363         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74364         * m4/acl.m4 (AC_FUNC_ACL):
74365         * m4/backupfile.m4 (gl_BACKUPFILE):
74366         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74367         * m4/canon-host.m4 (gl_CANON_HOST):
74368         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74369         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74370         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74371         * m4/cloexec.m4 (gl_CLOEXEC):
74372         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74373         * m4/closeout.m4 (gl_CLOSEOUT):
74374         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74375         * m4/dirname.m4 (gl_DIRNAME):
74376         * m4/exclude.m4 (gl_EXCLUDE):
74377         * m4/exitfail.m4 (gl_EXITFAIL):
74378         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74379         * m4/file-type.m4 (gl_FILE_TYPE):
74380         * m4/filemode.m4 (gl_FILEMODE):
74381         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74382         * m4/fpending.m4 (gl_FUNC_FPENDING):
74383         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74384         * m4/fts.m4 (gl_FUNC_FTS):
74385         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74386         * m4/getdate.m4 (gl_GETDATE):
74387         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74388         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74389         * m4/getpass.m4 (gl_FUNC_GETPASS):
74390         * m4/gettime.m4 (gl_GETTIME):
74391         * m4/getugroups.m4 (gl_GETUGROUPS):
74392         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74393         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74394         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74395         * m4/hash.m4 (gl_HASH):
74396         * m4/idcache.m4 (gl_IDCACHE):
74397         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74398         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74399         * m4/long-options.m4 (gl_LONG_OPTIONS):
74400         * m4/lstat.m4 (gl_FUNC_LSTAT):
74401         * m4/md5.m4 (gl_MD5):
74402         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74403         * m4/memcoll.m4 (gl_MEMCOLL):
74404         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74405         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74406         * m4/memxor.m4 (gl_MEMXOR):
74407         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74408         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74409         * m4/modechange.m4 (gl_MODECHANGE):
74410         * m4/mountlist.m4 (gl_MOUNTLIST):
74411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74412         * m4/openat.m4 (gl_FUNC_OPENAT):
74413         * m4/pathmax.m4 (gl_PATHMAX):
74414         * m4/physmem.m4 (gl_PHYSMEM):
74415         * m4/posixtm.m4 (gl_POSIXTM):
74416         * m4/posixver.m4 (gl_POSIXVER):
74417         * m4/quote.m4 (gl_QUOTE):
74418         * m4/quotearg.m4 (gl_QUOTEARG):
74419         * m4/readtokens.m4 (gl_READTOKENS):
74420         * m4/readutmp.m4 (gl_READUTMP):
74421         * m4/regex.m4 (gl_REGEX):
74422         * m4/safe-read.m4 (gl_SAFE_READ):
74423         * m4/safe-write.m4 (gl_SAFE_WRITE):
74424         * m4/same.m4 (gl_SAME):
74425         * m4/save-cwd.m4 (gl_SAVE_CWD):
74426         * m4/savedir.m4 (gl_SAVEDIR):
74427         * m4/settime.m4 (gl_SETTIME):
74428         * m4/sha1.m4 (gl_SHA1):
74429         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74430         * m4/stat-macros.m4 (gl_STAT_MACROS):
74431         * m4/stat-time.m4 (gl_STAT_TIME):
74432         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74433         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74434         * m4/strdup.m4 (gl_FUNC_STRDUP):
74435         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74436         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74437         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74438         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74439         * m4/time_r.m4 (gl_TIME_R):
74440         * m4/timespec.m4 (gl_TIMESPEC):
74441         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74442         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74443         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74444         * m4/userspec.m4 (gl_USERSPEC):
74445         * m4/utimecmp.m4 (gl_UTIMECMP):
74446         * m4/utimens.m4 (gl_UTIMENS):
74447         * m4/xalloc.m4 (gl_XALLOC):
74448         * m4/xgetcwd.m4 (gl_XGETCWD):
74449         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74450         * m4/xreadlink.m4 (gl_XREADLINK):
74451         * m4/xstrtod.m4 (gl_XSTRTOD):
74452         * m4/yesno.m4 (gl_YESNO):
74453         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74454         to get the necessary .h files and whatnot.
74455
74456 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74457             Bruno Haible  <bruno@clisp.org>
74458
74459         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74460         /bin/sh understanding of '!' conditional negation.
74461
74462 2006-08-21  Jim Meyering  <jim@meyering.net>
74463
74464         * modules/openat (Depends-on): Really alphabetize.
74465
74466         * modules/acl (Depends-on): Add error and quote.
74467
74468         * check-module (find_included_lib_files): Add at-func.c to the
74469         ok-to-include-more-than-once white list.
74470
74471         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74472
74473 2006-08-21  Bruno Haible  <bruno@clisp.org>
74474
74475         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74476         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74477         Reported by Martin Lambers <marlam@marlam.de>.
74478
74479 2006-08-21  Bruno Haible  <bruno@clisp.org>
74480
74481         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74482         specify an installation location, don't emit a noinst_LIBRARIES or
74483         noinst_LTLIBRARIES assignment.
74484
74485 2006-08-21  Bruno Haible  <bruno@clisp.org>
74486
74487         BeOS portability.
74488         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74489         BeOS has mbrtowc() but no <wctype.h>.
74490
74491 2006-08-21  Bruno Haible  <bruno@clisp.org>
74492
74493         BeOS portability.
74494         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74495         exist.
74496
74497 2006-08-21  Bruno Haible  <bruno@clisp.org>
74498
74499         BeOS portability.
74500         * lib/mbchar.h: Include <wctype.h> only if it exists.
74501
74502 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         Remove files that are no longer needed by their respective modules.
74505         * m4/obstack.m4: Remove.
74506         * m4/strerror_r.m4: Remove.
74507         * m4/uint32_t.m4: Remove.
74508         * m4/uintptr_t.m4: Remove.
74509         * m4/ullong_max.m4: Remove.
74510         * m4/xstrtoimax.m4: Remove.
74511         * m4/xstrtoumax.m4: Remove.
74512
74513         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74514         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74515         dependencies now capture this.
74516
74517         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74518         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74519         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74520         * m4/human.m4 (gl_HUMAN): Likewise.
74521         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74522         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74523
74524         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74525
74526         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74527         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74528         stdint.
74529         * m4/human.m4 (gl_HUMAN): Likewise.
74530         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74531         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74532         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74533         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74534         * m4/xstrtol (gl_XSTRTOL): Likewise.
74535
74536         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74537         AC_TYPE_LONG_LONG_INT.
74538         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74539         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74540         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74541         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74542
74543         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74544         on stdbool.
74545
74546         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74547         (gl_PREREQ_XSTRTOUL): Remove.
74548
74549         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74550
74551         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74552         mode.
74553
74554 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         Add and change modules to make it easier for coreutils to use
74557         gnulib-tool.
74558         * modules/backupfile (Files): Remove m4/d-ino.m4.
74559         (Depends-on): Add d-ino.
74560         * modules/cycle-check (Depends-on): Add stdint.
74561         (lib_SOURCES): Add cycle-check.h.
74562         * modules/d-ino: New module.
74563         * modules/d-type: New module.
74564         * modules/error (Files): Remove m4/strerror_r.m4.
74565         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74566         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74567         m4/inttypes_h.m4, m4/uintmax_t.m4.
74568         (Depends-on): Add stdint.
74569         (lib_SOURCES): Add fsusage.h.
74570         * modules/getcwd (Files): Remove d-ino.m4.
74571         (Depends-on): Add d-ino.
74572         * modules/getndelim2 (Depends-on): Add stdint.
74573         * modules/glob (Files): Remove m4/d-type.m4.
74574         (Depends-on): Add d-type.
74575         * modules/host-os: New module.
74576         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74577         m4/inttypes_h.m4, m4/uintmax_t.m4.
74578         * Depends-on: Add stdint.
74579         (lib_SOURCES): Add human.h.
74580         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74581         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74582         m4/uintmax_t.m4, m4/ulonglong.m4.
74583         (Depends-on): Add stdint.
74584         (EXTRA_DIST): Add inttostr.h.
74585         * modules/lchmod: New module.
74586         * modules/link-follow: New module.
74587         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74588         (Depends-on): Add lchmod.
74589         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74590         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74591         (Depends-on): Add stdint.
74592         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74593         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74594         (Depends-on): Add stdint.
74595         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74596         * modules/perl: New module.
74597         * modules/regex (Depends-on): Add stdint.
74598         * modules/rmdir-errno: New module.
74599         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74600         m4/intmax_t.m4.
74601         (Depends-on): Add stdint.
74602         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74603         m4/uintmax_t.m4.
74604         (Depends-on): Add stdint.
74605         * modules/unlink-busy: New module.
74606         * modules/utimecmp (Depends-on): Add stdint.
74607         * modules/uptime: New module.
74608         * modules/winsz-ioctl: New module.
74609         * modules/winsz-termios: New module.
74610         * modules/xnanosleep (Depends-on): Add nanosleep.
74611         * modules/ullong_max: Remove.
74612         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74613         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74614         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74615         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74616         (Depends-on): Add inttypes.
74617         (lib_SOURCES): Add xstrtol.h.
74618         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74619         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74620         * MODULES.html.sh: Move 'assert' into the assert section.
74621         Move 'dummy' into the linking section.
74622         Remove ullong_max.
74623         Add section for compatibility checks for POSIX:2001 functions,
74624         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74625         winsz-ioctl, and winsz-termios into it.
74626         Add lchmod.
74627         Add top-level Misc section and put host-os, perl, and uptime
74628         into it.
74629
74630 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74631
74632         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74633         now assume the stdint module.  Do not include inttypes.h.
74634         * lib/fsusage.h: Likewise.
74635         * lib/getndelim2.c: Likewise.
74636         * lib/human.h: Likewise.
74637         * lib/inttostr.h: Likewise.
74638         * lib/obstack.c: Likewise.
74639         * lib/regex_internal.h: Likewise.
74640         * lib/tempname.c: Likewise.
74641         * lib/utimecmp.c: Likewise.
74642         * lib/xstrtol.h: Likewise.
74643
74644         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74645
74646         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74647         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74648         * lib/xtime.h: Likewise.
74649
74650 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         * modules/openat (Files): Add lib/fchmodat.c.
74653         Fixes problem reported by Jay Youngman.
74654
74655 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74656
74657         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74658         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74659
74660 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74661             Bruno Haible  <bruno@clisp.org>
74662
74663         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74664         and is a script that invokes bison. Tighten the code. Add comments.
74665
74666 2006-08-18  Jim Meyering  <jim@meyering.net>
74667
74668         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74669         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74670         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74671         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74672
74673 2006-08-18  Bruno Haible  <bruno@clisp.org>
74674
74675         * modules/bison-i18n: New file.
74676         * MODULES.html.sh (Internationalization functions): Add it.
74677
74678 2006-08-18  Bruno Haible  <bruno@clisp.org>
74679
74680         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74681         sys/statvfs.h. When getmntinfo was found, check its declaration and
74682         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74683
74684 2006-08-18  Bruno Haible  <bruno@clisp.org>
74685
74686         * m4/bison-i18n.m4: New file, from bison.
74687
74688 2006-08-18  Bruno Haible  <bruno@clisp.org>
74689
74690         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74691         (ME_DUMMY): Treat "kernfs" as a dummy.
74692         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74693
74694 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74695
74696         Update from coreutils.
74697
74698         2006-08-15  Jim Meyering  <jim@meyering.net>
74699
74700         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74701
74702         2006-01-17  Jim Meyering  <jim@meyering.net>
74703
74704         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74705
74706         2006-01-11  Jim Meyering  <jim@meyering.net>
74707
74708         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74709         Check for the lchmod function.
74710
74711 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         Update from coreutils.
74714
74715         * lib/__fpending.h: Add copyright notice.
74716         * lib/fprintftime.h: Likewise.
74717         * lib/savedir.c: Use (C) in copyright notice.
74718         * lib/savedir.h: Likewise.
74719
74720         2006-08-15  Jim Meyering  <jim@meyering.net>
74721
74722         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74723         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74724         in support of the EXPECTED_ERRNO macro.
74725         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74726         definitions.  Instead, define the appropriate symbols and include
74727         "at-func.c".
74728         * lib/mkdirat.c (mkdirat): Likewise.
74729         * lib/fchmodat.c (fchmodat): Likewise.
74730         (ENOSYS): Remove definition.
74731         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74732         it.  Don't include "unistd--.h" -- it wasn't ever used.
74733
74734         2006-01-17  Jim Meyering  <jim@meyering.net>
74735
74736         Rewrite fts.c not to change the current working directory,
74737         by using openat, fstatat, fdopendir, etc..
74738
74739         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74740         (HAVE_OPENAT_SUPPORT): Define.
74741         [_LIBC] (fchdir): Don't undef or define; no longer used.
74742         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74743         Now, this `function' always succeeds, and consumes its file descriptor
74744         parameter -- so callers must not close such FDs.  Update callers.
74745         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74746         (diropen): Add parameter, SP.  Adjust all callers.
74747         Implement using diropen_fd, rather than open.
74748         (fts_open): Initialize new member, fts_cwd_fd.
74749         Remove fts_rft-setting code.
74750         (fts_close): Close fts_cwd_fd, if necessary.
74751         (__opendir2): Define in terms of opendir or opendirat,
74752         depending on whether the FST_NOCHDIR flag is set.
74753         (fts_build): Since fts_safe_changedir consumes its FD, and since
74754         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74755         and close the dup'd file descriptor upon failure.
74756         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74757         (fts_safe_changedir): Tweak semantics to reflect that this function
74758         now calls cwd_advance_fd and hence consumes its FD argument.
74759         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74760         [struct FTS] (fts_rft): Remove now-unused member.
74761         [struct FTS] (fts_cycle.state): Improve comment.
74762
74763         * lib/openat.c (openat_needs_fchdir): New function.
74764         * lib/openat.h (openat_needs_fchdir): Declare it.
74765
74766 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74767
74768         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74769         Problem and fix reported by Pádraig Brady in
74770         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74771
74772 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74773
74774         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74775
74776 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * lib/memcoll.c (memcoll): Optimize for the common case where the
74779         arguments are bytewise equal.
74780
74781 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74782
74783         * doc/regexprops-generic.texi: Add a copyright notice.
74784
74785 2006-08-15  Bruno Haible  <bruno@clisp.org>
74786
74787         * modules/tmpdir (License): Change to LGPL.
74788
74789 2006-08-15  Bruno Haible  <bruno@clisp.org>
74790
74791         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74792         module.
74793
74794 2006-08-14  Simon Josefsson  <jas@extundo.com>
74795
74796         * config/srclist.txt: Add gnupload.
74797
74798 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74799
74800         Change copyright notice from LGPL 2 to GPL 2, since that's the
74801         standard form used in the gnulib repository.
74802         * tests/test-lock.c: Likewise.
74803         * tests/test-stdint.c: Likewise.
74804         * tests/test-tls.c: Likewise.
74805
74806         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74807         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74808         Add copyright notice.
74809
74810         * check-module: Add copyright notice.  Output a copyright
74811         notice if "--version" is specified.
74812         * modules/COPYING: New file.
74813         * tests/test-getaddrinfo.c: Add copyright notice.
74814         * tests/test-verify.c: Likewise.
74815
74816 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74817
74818         Change copyright notice from LGPL 2 to GPL 2, since that's the
74819         standard form used in the gnulib repository.
74820         * lib/lock.c: LGPL -> GPL.
74821         * lib/lock.h: Likewise.
74822         * lib/strnlen1.c: Likewise.
74823         * lib/strnlen1.h: Likewise.
74824         * lib/tls.c: Likewise.
74825         * lib/tls.h: Likewise.
74826         * lib/tmpdir.c: Likewise.
74827
74828         * lib/TODO: Remove; this belongs only in coreutils.
74829
74830 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74831
74832         Add copyright notices to long-enough files that lack them, since
74833         otherwise the files aren't clearly free.  Use the same notice that
74834         getdate.texi already uses.
74835         * doc/alloca-opt.texi: Add copyright notice.
74836         * doc/alloca.texi: Likewise.
74837         * doc/ctime.texi: Likewise.
74838         * doc/functions.texi: Likewise.
74839         * doc/gcd.texi: Likewise.
74840         * doc/gnulib-tool.texi: Likewise.
74841         * doc/inet_ntoa.texi: Likewise.
74842         * doc/visibility.texi: Likewise.
74843
74844         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74845         * doc/quote.texi: Add copyright notice.
74846
74847         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74848         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74849         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74850         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74851         is now obsolete, and give a pointer to the Sun list.
74852         Add copyright notice.
74853
74854 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74855
74856         * config/srclistvars.sh: Add copyright notice.
74857
74858 2006-08-14  Eric Blake  <ebb9@byu.net>
74859
74860         Import the following change from libc:
74861
74862         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74863
74864         Upstream bug 2997.
74865         * lib/misc/error.c: Add space between program name and message if file
74866         name is missing.
74867
74868 2006-08-12  Karl Berry  <karl@gnu.org>
74869
74870         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74871         remove, these originate in gnulib now.
74872
74873 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74874
74875         * doc/Makefile (standards.info standards.html standards.dvi):
74876         Also depend on make-stds.texi.
74877
74878 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74881         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74882
74883         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74884         in wchar_t.  Problem reported by Eric Blake.
74885
74886         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74887         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74888         Also, help the compiler to keep LEN in a register.
74889
74890 2006-08-11  Eric Blake  <ebb9@byu.net>
74891
74892         * users.txt: Sort.  Add tar.
74893
74894 2006-08-11  Bruno Haible  <bruno@clisp.org>
74895
74896         * users.txt: New file.
74897
74898 2006-08-11  Bruno Haible  <bruno@clisp.org>
74899
74900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74901         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74902
74903 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74904
74905         * modules/snprintf (Depends-on): Remove minmax.
74906         (Maintainer): Add self and Bruno.
74907
74908 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74911         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74912         (EOVERFLOW): Define if the system does not.
74913         Do not include "minmax.h"; it wasn't used.
74914         (snprintf): Don't assume size_t promotes to an unsigned type.
74915         Fix bug when generated string was too long for the buffer: the
74916         buffer's contents are supposed to be the initial prefix of the
74917         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74918         exceeds INT_MAX; do the check ourselves.
74919
74920         Import the following changes from libc:
74921
74922         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74923
74924         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74925         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74926         set wc to the byte which couldn't be converted.
74927         (re_string_reconstruct): Don't clear valid_raw_len before calling
74928         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74929         tip_context using re_string_context_at.
74930
74931         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74932
74933         * lib/posix/regex.h: g++ still cannot handled [restrict].
74934
74935         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74936
74937         * lib/posix/regex.h: Remove special handling for VMS.
74938
74939 2006-08-10  Jim Meyering  <jim@meyering.net>
74940
74941         * modules/same-inode: New module.
74942         * modules/dev-ino: New module.
74943         * modules/cycle-check: Depend on these modules, rather than simply
74944         including their .h files.
74945         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74946         required via m4/cycle-check.m4.
74947         * modules/same: Depend on new same-inode module, rather than
74948         including same-inode.h.
74949         * modules/chdir-safer: New file.
74950
74951         * modules/chown (Depends-on): Add stat-macros.
74952
74953 2006-08-10  Jim Meyering  <jim@meyering.net>
74954
74955         * m4/cycle-check.m4: New file.
74956         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74957         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74958
74959 2006-08-10  Eric Blake  <ebb9@byu.net>
74960
74961         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74962         in from original proposal.
74963
74964 2006-08-10  Eric Blake  <ebb9@byu.net>
74965         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74966
74967         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74968         namespace.
74969
74970 2006-08-10  Bruno Haible  <bruno@clisp.org>
74971
74972         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74973         as well.
74974
74975 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74976
74977         Sync from coreutils.
74978
74979         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74980
74981         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74982         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74983
74984 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         * modules/restrict: Remove; no longer needed now that we assume
74987         Autoconf 2.59 or later.
74988         * MODULES.html.sh: Remove 'restrict'.
74989         * modules/argp (Depends-on): Remove 'restrict'.
74990         * modules/base64 (Depends-on): Likewise.
74991         * modules/gc (Depends-on): Likewise.
74992         * modules/getaddrinfo (Depends-on): Likewise.
74993         * modules/glob (Depends-on): Likewise.
74994         * modules/inet_ntop (Depends-on): Likewise.
74995         * modules/inet_pton (Depends-on): Likewise.
74996         * modules/memxor (Depends-on): Likewise.
74997         * modules/regex (Depends-on): Likewise.
74998         * modules/strtok_r (Depends-on): Likewise.
74999         * modules/time_r (Depends-on): Likewise.
75000
75001 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75002
75003         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75004         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75005         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75006         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75007         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75008         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75009         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75010         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75011
75012         Merge from coreutils.
75013         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75014         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75015         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75016         * m4/time_r.m4 (gl_TIME_R): Likewise.
75017
75018 2006-08-09  Karl Berry  <karl@gnu.org>
75019
75020         * config/srclist.txt: no more gettext-tools, per Bruno.
75021
75022 2006-08-08  Eric Blake  <ebb9@byu.net>
75023
75024         * modules/verror: New module.
75025         * MODULES.html.sh: Document it.
75026
75027 2006-08-08  Eric Blake  <ebb9@byu.net>
75028
75029         * lib/verror.h, lib/verror.c: New files.
75030
75031 2006-08-08  Eric Blake  <ebb9@byu.net>
75032
75033         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75034         verror_at_line output complies with GNU Coding Standards even when
75035         file is NULL.
75036
75037 2006-08-07  Bruno Haible  <bruno@clisp.org>
75038
75039         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75040         versions of AIX.
75041         Reported by Ralf Wildenhues.
75042
75043 2006-08-07  Bruno Haible  <bruno@clisp.org>
75044
75045         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75046         in an AC_DEFUN. Needed so that the autoconf snippets can use
75047         AC_REQUIRE.
75048
75049 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75050
75051         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75052         Initialize pkgdata_DATA.
75053         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75054         overriding it.
75055
75056 2006-08-06  Eric Blake  <ebb9@byu.net>
75057
75058         * lib/error.h: Fold in some upstream changes from glibc.
75059         * lib/error.c: Likewise.
75060
75061 2006-08-04  Bruno Haible  <bruno@clisp.org>
75062
75063         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75064         Make the mostlyclean-local rule depend on mostlyclean-generic.
75065         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75066
75067 2006-07-31  Bruno Haible  <bruno@clisp.org>
75068
75069         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75070         <stdlib.h>, <string.h>.
75071
75072 2006-07-30  Bruno Haible  <bruno@clisp.org>
75073
75074         * modules/readlink (License): Change to LGPL.
75075
75076 2006-07-30  Bruno Haible  <bruno@clisp.org>
75077
75078         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75079         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75080         set PKGDATADIR to point to it.
75081
75082 2006-07-30  Bruno Haible  <bruno@clisp.org>
75083
75084         * modules/csharpexec (configure.ac): Comment out macro invocation.
75085         * modules/javaexec (configure.ac): Likewise.
75086         * modules/javacomp-script (configure.ac): Likewise.
75087
75088         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75089
75090 2006-07-30  Bruno Haible  <bruno@clisp.org>
75091
75092         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75093         linked-list.
75094
75095 2006-07-30  Bruno Haible  <bruno@clisp.org>
75096
75097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75098
75099 2006-07-30  Bruno Haible  <bruno@clisp.org>
75100
75101         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75102         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75103         get removed.
75104
75105 2006-07-29  Bruno Haible  <bruno@clisp.org>
75106
75107         Make it possible for gnulib-tool to work with locally modified or
75108         augmented gnulib repositories.
75109         * gnulib-tool (func_usage): Document --local-dir option.
75110         (local_gnulib_dir): New variable.
75111         Handle --local-dir option.
75112         (func_lookup_file): New function.
75113         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75114         (func_get_description, func_get_filelist, func_get_description,
75115         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75116         func_get_automake_snippet, func_get_include_directive,
75117         func_get_license, func_get_maintainer): Use func_lookup_file.
75118         (func_import, func_create_testdir): Use func_lookup_file.
75119
75120 2006-07-29  Bruno Haible  <bruno@clisp.org>
75121
75122         * modules/setenv (Depends-on): Add unistd.
75123
75124 2006-07-29  Bruno Haible  <bruno@clisp.org>
75125
75126         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75127
75128 2006-07-29  Bruno Haible  <bruno@clisp.org>
75129
75130         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75131
75132 2006-07-29  Bruno Haible  <bruno@clisp.org>
75133
75134         * gnulib-tool (import, update): If there is no Makefile.am, look at
75135         aclocal.m4, instead of bailing out.
75136
75137 2006-07-29  Bruno Haible  <bruno@clisp.org>
75138
75139         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75140         Categorize the options by when they are useful.
75141
75142 2006-07-29  Bruno Haible  <bruno@clisp.org>
75143
75144         * gnulib-tool (func_usage): Document option --no-libtool.
75145         Handle option --no-libtool.
75146         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75147         for changed semantics of $libtool variable.
75148         (func_import): Likewise. If libtool is not used, show this through
75149         an option --no-libtool.
75150         (func_create_testdir): Update.
75151
75152 2006-07-29  Bruno Haible  <bruno@clisp.org>
75153
75154         * gnulib-tool (func_import): Extend error message about missing
75155         --doc-base.
75156
75157 2006-07-29  Bruno Haible  <bruno@clisp.org>
75158
75159         * gnulib-tool (func_import): Don't create the $docbase directory if
75160         there is no file to store there.
75161
75162 2006-07-29  Bruno Haible  <bruno@clisp.org>
75163
75164         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75165         relevant, look for configure.ac there, not in the current directory.
75166         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75167
75168 2006-07-29  Bruno Haible  <bruno@clisp.org>
75169
75170         * gnulib-tool (SORT): New variable.
75171         (func_usage): Undocument --assume-autoconf option.
75172         Remove --assume-autoconf option handling.
75173         (autoconf_minversion): Determine from the contents of configure.ac.
75174         (func_import): Remove autoconf_minversion handling.
75175         Suggested by Eric Blake.
75176
75177 2006-07-29  Bruno Haible  <bruno@clisp.org>
75178
75179         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75180
75181 2006-07-29  Bruno Haible  <bruno@clisp.org>
75182
75183         * config/srclist.txt (*setenv.[ch]): Remove rules.
75184
75185 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75186
75187         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75188
75189 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75190
75191         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75192         arpa/inet.h.
75193
75194 2006-07-28  Simon Josefsson  <jas@extundo.com>
75195
75196         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75197         * modules/inet_pton (Depends-on): Likewise.
75198
75199 2006-07-28  Simon Josefsson  <jas@extundo.com>
75200
75201         * m4/netinet_in_h.m4: New file.
75202
75203 2006-07-28  Simon Josefsson  <jas@extundo.com>
75204
75205         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75206         #include's.
75207
75208 2006-07-28  Simon Josefsson  <jas@extundo.com>
75209
75210         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75211         #include's.
75212
75213 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75214
75215         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75216         setgid on directories only if they set these bits.
75217         * lib/modechange.h: Remove obsolete comment about masks.
75218
75219 2006-07-28  Eric Blake  <ebb9@byu.net>
75220
75221         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75222         macro expansion.
75223
75224 2006-07-28  Bruno Haible  <bruno@clisp.org>
75225
75226         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75227
75228 2006-07-28  Bruno Haible  <bruno@clisp.org>
75229
75230         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75231
75232 2006-07-28  Bruno Haible  <bruno@clisp.org>
75233
75234         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75235         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75236         Define fallbacks.
75237         Avoids link error on FreeBSD 4.x.
75238         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75239
75240         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75241         encoding.
75242         * lib/mbswidth.c (iswcntrl): Likewise.
75243
75244 2006-07-27  Bruno Haible  <bruno@clisp.org>
75245
75246         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75247         test.
75248
75249 2006-07-27  Bruno Haible  <bruno@clisp.org>
75250
75251         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75252         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75253         defined.
75254
75255 2006-07-26  Eric Blake  <ebb9@byu.net>
75256
75257         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75258
75259 2006-07-26  Eric Blake  <ebb9@byu.net>
75260
75261         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75262         like mingw that lack mkstemp.
75263         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75264         avoid compilation warning on mingw.
75265
75266 2006-07-26  Bruno Haible  <bruno@clisp.org>
75267
75268         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75269         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75270         INT_FAST*_MIN, INTPTR_MIN.
75271
75272 2006-07-25  Bruno Haible  <bruno@clisp.org>
75273
75274         * modules/version-etc (Depends-on): Add stdarg.
75275
75276 2006-07-25  Bruno Haible  <bruno@clisp.org>
75277
75278         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75279         complex commands.
75280
75281 2006-07-25  Bruno Haible  <bruno@clisp.org>
75282
75283         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75284         defined in <stdarg.h> or config.h.
75285
75286 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75287
75288         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75289         (gl_STDIO_SAFER): Remove.
75290
75291 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75292
75293         * MODULES.html.sh (File stream based Input/Output):
75294         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75295         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75296         * modules/fopen-safer, modules/tmpfile-safer: New files.
75297         * modules/stdio-safer: Remove.
75298
75299 2006-07-24  Bruno Haible  <bruno@clisp.org>
75300
75301         * modules/tmpdir: New file.
75302         * MODULES.html.sh (File system functions): Add it.
75303
75304 2006-07-24  Bruno Haible  <bruno@clisp.org>
75305
75306         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75307         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75308
75309 2006-07-24  Bruno Haible  <bruno@clisp.org>
75310
75311         * modules/clean-temp: New file.
75312
75313 2006-07-24  Bruno Haible  <bruno@clisp.org>
75314
75315         * m4/tmpdir.m4: New file, from GNU gettext.
75316
75317 2006-07-24  Bruno Haible  <bruno@clisp.org>
75318
75319         * lib/tmpdir.h: New file, from GNU gettext.
75320         * lib/tmpdir.c: New file, from GNU gettext.
75321
75322 2006-07-24  Bruno Haible  <bruno@clisp.org>
75323
75324         * lib/clean-temp.h: New file, from GNU gettext.
75325         * lib/clean-temp.c: New file, from GNU gettext.
75326
75327 2006-07-23  Eric Blake  <ebb9@byu.net>
75328
75329         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75330         (Depends-on): Add binary-io.
75331
75332 2006-07-23  Eric Blake  <ebb9@byu.net>
75333
75334         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75335
75336 2006-07-23  Eric Blake  <ebb9@byu.net>
75337
75338         * lib/tmpfile-safer.c: New file.
75339         * lib/stdio-safer.h (fopen_safer): Add prototype.
75340         * lib/stdio--.h (tmpfile): Make safer.
75341
75342 2006-07-23  Bruno Haible  <bruno@clisp.org>
75343
75344         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75345         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75346         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75347         gl_linked_remove_at): Use it.
75348
75349 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75350         and Simon Josefsson <jas@extundo.com>
75351
75352         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75353
75354         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75355
75356 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         * modules/close-stream: New file.
75359         * modules/closeout (Description): Make it clear that it exits
75360         with a diagnostic on error.
75361         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75362         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75363
75364 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75365
75366         * m4/close-stream.m4: New file.
75367
75368 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75369
75370         * lib/close-stream.c, lib/close-stream.h: New files.
75371
75372 2006-07-22  Bruno Haible  <bruno@clisp.org>
75373
75374         Merge from GNU gettext 0.15.
75375
75376         2006-05-01  Bruno Haible  <bruno@clisp.org>
75377
75378                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75379
75380         2006-07-22  Bruno Haible  <bruno@clisp.org>
75381
75382                 * modules/javaversion: New file.
75383                 * MODULES.html.sh (Java): Add javaversion.
75384
75385         2006-03-12  Bruno Haible  <bruno@clisp.org>
75386
75387                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75388
75389         2005-12-04  Bruno Haible  <bruno@clisp.org>
75390
75391                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75392                 (untested).
75393
75394         2006-06-21  Bruno Haible  <bruno@clisp.org>
75395
75396                 Avoid warnings from recent versions of mcs.
75397                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75398                 -o, -L, -r any more. Use options documented since mcs-1.0
75399                 instead. Similarly for -g.
75400
75401         2005-12-04  Bruno Haible  <bruno@clisp.org>
75402
75403                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75404                 .resources, not .resource.
75405
75406         2005-07-09  Bruno Haible  <bruno@clisp.org>
75407
75408                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75409                 add a .dll suffix.
75410                 Reported by Mark Junker <mjscod@gmx.de>.
75411
75412         2006-07-22  Bruno Haible  <bruno@clisp.org>
75413
75414                 * modules/gettext: Upgrade to gettext-0.15.
75415                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75416                 m4/visibility.m4.
75417                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75418
75419 2006-07-22  Bruno Haible  <bruno@clisp.org>
75420
75421         Merge from GNU gettext 0.15.
75422
75423         2006-03-25  Bruno Haible  <bruno@clisp.org>
75424
75425                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75426
75427         2006-07-21  Bruno Haible  <bruno@clisp.org>
75428
75429                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75430                 "1.1".
75431
75432         2006-05-09  Bruno Haible  <bruno@clisp.org>
75433
75434                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75435                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75436                 for the conftestver execution.
75437
75438         2006-05-01  Bruno Haible  <bruno@clisp.org>
75439
75440                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75441                 optional target-version argument. Verify that the compiler
75442                 groks source of the specified source-version, or add -source
75443                 option as necessary. Verify that the compiler produces
75444                 bytecode in the specified target-version, or add -target and
75445                 -source options as necessary. Make the result of the test
75446                 available as variable CONF_JAVAC. Also log error output in
75447                 config.log.
75448
75449         2006-03-11  Bruno Haible  <bruno@clisp.org>
75450
75451                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75452
75453         2006-05-09  Bruno Haible  <bruno@clisp.org>
75454
75455                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75456                 CLASSPATH_SEPARATOR to a semicolon.
75457
75458         2006-03-12  Bruno Haible  <bruno@clisp.org>
75459
75460                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75461                 available as variable CONF_JAVA, for subsequent autoconf
75462                 tests. Also log error output in config.log.
75463
75464         2006-07-19  Bruno Haible  <bruno@clisp.org>
75465
75466                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75467                 that getline works on glibc2 systems. Needed to avoid trouble
75468                 in relocatable.c.
75469                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75470
75471         2005-12-04  Bruno Haible  <bruno@clisp.org>
75472
75473                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75474                 launcher (untested).
75475
75476         2005-12-04  Bruno Haible  <bruno@clisp.org>
75477
75478                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75479
75480         2006-07-22  Bruno Haible  <bruno@clisp.org>
75481
75482                 * gettext.m4: Update from GNU gettext-0.15.
75483                 * nls.m4: Likewise.
75484                 * po.m4: Likewise.
75485                 * inttypes-pri.m4: Likewise.
75486                 * inttypes-h.m4: Renamed from inttypes.m4.
75487                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75488
75489 2006-07-22  Bruno Haible  <bruno@clisp.org>
75490
75491         Merge from GNU gettext 0.15.
75492
75493         2005-07-05  Bruno Haible  <bruno@clisp.org>
75494
75495                 * printf-args.c (printf_fetchargs): Work around broken
75496                 definition of wint_t on mingw.
75497
75498         2005-02-12  Bruno Haible  <bruno@clisp.org>
75499
75500                 * xallocsa.h: Add extern "C" for C++.
75501
75502         2006-05-17  Bruno Haible  <bruno@clisp.org>
75503
75504                 Cygwin portability.
75505                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75506
75507         2006-04-30  Bruno Haible  <bruno@clisp.org>
75508
75509                 * progreloc.c: Include <mach-o/dyld.h> if available.
75510                 (find_executable): Use _NSGetExecutablePath when possible.
75511
75512         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75513
75514                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75515                 function.
75516
75517         2005-12-29  Bruno Haible  <bruno@clisp.org>
75518
75519                 * progreloc.c (set_program_name_and_installdir): Fix
75520                 compilation error.
75521
75522         2005-12-04  Bruno Haible  <bruno@clisp.org>
75523
75524                 Cygwin portability.
75525                 * progreloc.c: Include <windows.h> also on Cygwin.
75526                 (find_executable): Add support for Cygwin.
75527                 (set_program_name_and_installdir): Handle also platforms with
75528                 nonempty EXEEXT.
75529
75530         2006-07-11  Bruno Haible  <bruno@clisp.org>
75531
75532                 * javacomp.c: Fix a comment.
75533                 Reported by Jim Meyering.
75534
75535         2006-04-30  Bruno Haible  <bruno@clisp.org>
75536
75537                 * javacomp.h (compile_java_class): Add source_version,
75538                 target_version arguments.
75539                 * javacomp.c: Rewritten to choose only a compiler that
75540                 respects the specified source_version and target_version.
75541
75542         2006-06-27  Bruno Haible  <bruno@clisp.org>
75543
75544                 Assume correct S_ISDIR macro.
75545                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75546
75547         2006-07-22  Bruno Haible  <bruno@clisp.org>
75548
75549                 * javaversion.h: New file, from GNU gettext.
75550                 * javaversion.c: New file, from GNU gettext.
75551                 * javaversion.java: New file, from GNU gettext.
75552                 * javaversion.class: New file, from GNU gettext.
75553
75554         2006-05-17  Bruno Haible  <bruno@clisp.org>
75555
75556                 Cygwin portability.
75557                 * javaexec.c (execute_java_class): Test for jview program
75558                 also on Cygwin.
75559
75560         2006-04-09  Bruno Haible  <bruno@clisp.org>
75561
75562                 * fatal-signal.c: Don't include string.h.
75563                 (at_fatal_signal): Use a copying loop instead of memcpy.
75564
75565         2005-12-04  Bruno Haible  <bruno@clisp.org>
75566
75567                 * csharpexec.c: Add support for 'clix' launcher (untested).
75568                 (execute_csharp_using_sscli): New function.
75569                 (execute_csharp_program): Call it.
75570
75571         2006-06-21  Bruno Haible  <bruno@clisp.org>
75572
75573                 Avoid warnings from recent versions of mcs.
75574                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75575                 -o, -L, -r any more. Use options documented since mcs-1.0
75576                 instead. Similarly for -g.
75577
75578         2005-07-09  Bruno Haible  <bruno@clisp.org>
75579
75580                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75581                 add a .dll suffix.
75582                 Reported by Mark Junker <mjscod@gmx.de>.
75583
75584         2006-06-17  Bruno Haible  <bruno@clisp.org>
75585
75586                 * config.charset: Update for NetBSD 3.0.
75587
75588         2006-05-17  Bruno Haible  <bruno@clisp.org>
75589
75590                 Cygwin portability.
75591                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75592
75593         2006-05-16  Bruno Haible  <bruno@clisp.org>
75594
75595                 * localcharset.c [CYGWIN]: Include <windows.h>.
75596                 (get_charset_aliases): For Cygwin, return the same CPxxx
75597                 aliases list as under WIN32.
75598                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75599                 the environment variables. Fall back to GetACP().
75600
75601         2006-04-05  Bruno Haible  <bruno@clisp.org>
75602
75603                 * config.charset: Update Juan Manuel Guerrero's address.
75604
75605         2005-02-12  Bruno Haible  <bruno@clisp.org>
75606
75607                 * allocsa.h: Add extern "C" for C++.
75608
75609         2005-02-10  Bruno Haible  <bruno@clisp.org>
75610
75611                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75612                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75613
75614         2006-07-22  Bruno Haible  <bruno@clisp.org>
75615
75616                 * gettext.h: Update to GNU gettext-0.15.
75617
75618 2006-07-22  Bruno Haible  <bruno@clisp.org>
75619
75620         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75621         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75622         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75623
75624 2006-07-21  Eric Blake  <ebb9@byu.net>
75625
75626         * modules/stdlib-safer: New file.
75627         * MODULES.html.sh (File stream based Input/Output): Add
75628         stdlib-safer.
75629
75630 2006-07-21  Eric Blake  <ebb9@byu.net>
75631
75632         * lib/stdlib-safer.h: New file from coreutils, required by
75633         stdlib--.h.
75634
75635 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75636
75637         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75638
75639 2006-07-20  Bruno Haible  <bruno@clisp.org>
75640
75641         * gnulib-tool: Recognize new option --assume-autoconf.
75642         (autoconf_minversion): New variable.
75643         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75644
75645 2006-07-20  Bruno Haible  <bruno@clisp.org>
75646
75647         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75648
75649 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75650
75651         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75652         Reindent and repaginate.
75653
75654 2006-07-19  Derek Price  <derek@ximbiot.com>
75655
75656         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75657         Correct grammar.
75658
75659 2006-07-17  Bruno Haible  <bruno@clisp.org>
75660
75661         * modules/list: New file.
75662         * modules/array-list: New file.
75663         * modules/carray-list, modules/carray-list-tests: New files.
75664         * modules/linked-list, modules/linked-list-tests: New files.
75665         * modules/avltree-list, modules/avltree-list-tests: New files.
75666         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75667         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75668         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75669         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75670         * modules/oset: New file.
75671         * modules/array-oset: New file.
75672         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75673         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75674         * tests/test-carray_list.c: New file.
75675         * tests/test-linked_list.c: New file.
75676         * tests/test-avltree_list.c: New file.
75677         * tests/test-rbtree_list.c: New file.
75678         * tests/test-linkedhash_list.c: New file.
75679         * tests/test-avltreehash_list.c: New file.
75680         * tests/test-rbtreehash_list.c: New file.
75681         * tests/test-avltree_oset.c: New file.
75682         * tests/test-rbtree_oset.c: New file.
75683         * MODULES.html.sh (Container data structures): New section.
75684
75685 2006-07-17  Bruno Haible  <bruno@clisp.org>
75686
75687         * m4/gl_list.m4: New file.
75688
75689 2006-07-17  Bruno Haible  <bruno@clisp.org>
75690
75691         * lib/gl_list.h: New file.
75692         * lib/gl_list.c: New file.
75693         * lib/gl_array_list.h: New file.
75694         * lib/gl_array_list.c: New file.
75695         * lib/gl_carray_list.h: New file.
75696         * lib/gl_carray_list.c: New file.
75697         * lib/gl_linked_list.h: New file.
75698         * lib/gl_linked_list.c: New file.
75699         * lib/gl_anylinked_list1.h: New file.
75700         * lib/gl_anylinked_list2.h: New file.
75701         * lib/gl_avltree_list.h: New file.
75702         * lib/gl_avltree_list.c: New file.
75703         * lib/gl_anyavltree_list1.h: New file.
75704         * lib/gl_anyavltree_list2.h: New file.
75705         * lib/gl_rbtree_list.h: New file.
75706         * lib/gl_rbtree_list.c: New file.
75707         * lib/gl_anyrbtree_list1.h: New file.
75708         * lib/gl_anyrbtree_list2.h: New file.
75709         * lib/gl_anytree_list1.h: New file.
75710         * lib/gl_anytree_list2.h: New file.
75711         * lib/gl_linkedhash_list.h: New file.
75712         * lib/gl_linkedhash_list.c: New file.
75713         * lib/gl_anyhash_list1.h: New file.
75714         * lib/gl_anyhash_list2.h: New file.
75715         * lib/gl_avltreehash_list.h: New file.
75716         * lib/gl_avltreehash_list.c: New file.
75717         * lib/gl_rbtreehash_list.h: New file.
75718         * lib/gl_rbtreehash_list.c: New file.
75719         * lib/gl_anytreehash_list1.h: New file.
75720         * lib/gl_anytreehash_list2.h: New file.
75721
75722         * lib/gl_oset.h: New file.
75723         * lib/gl_oset.c: New file.
75724         * lib/gl_array_oset.h: New file.
75725         * lib/gl_array_oset.c: New file.
75726         * lib/gl_avltree_oset.h: New file.
75727         * lib/gl_avltree_oset.c: New file.
75728         * lib/gl_rbtree_oset.h: New file.
75729         * lib/gl_rbtree_oset.c: New file.
75730         * lib/gl_anytree_oset.h: New file.
75731
75732 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75733
75734         * m4/mkancesdirs.m4: New file.
75735         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75736         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75737         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75738         it.
75739
75740 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75741
75742         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75743         * lib/mkancesdirs.h: New files.
75744         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75745         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75746         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75747         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75748         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75749         callers changed.  Revamp internals significantly, by not
75750         attempting to create directories that are temporarily more
75751         permissive than the final results.  Do not attempt to use
75752         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75753         This removes some race conditions, fixes some bugs, and simplifies
75754         things.  Use new dirchownmod function to do owner and mode changes.
75755         * lib/mkdir-p.h: Likewise.
75756         * lib/modechange.c (octal_to_mode): New function.
75757         (struct mode_change): New member mentioned.
75758         (make_node_op_equals): New arg mentioned.  All callers changed.
75759         (mode_compile): Keep track of which mode bits the user has explicitly
75760         mentioned.
75761         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75762         New arg PMODE_BITS, to keep track of which mode bits the user
75763         mentioned; it treats S_ISUID and S_ISGID speciall.
75764         All callers changed.
75765         * lib/modechange.h: Likewise.
75766
75767 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75768
75769         * MODULES.html.sh: Add mkancestors.
75770         * modules/mkancesdirs: New module.
75771         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75772         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75773         The chdir-safer and afs files are now orphans; I'll remove them
75774         unless someone speaks up.
75775         Add lib/dirchownmod.c, lib/dirchownmod.h.
75776         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75777         Add lchown, mkancesdirs.
75778         (Maintainer): Add self.
75779
75780 2006-07-15  Karl Berry  <karl@gnu.org>
75781
75782         * gnulib-tool: help message wording/arrangement.
75783
75784 2006-07-14  Simon Josefsson  <jas@extundo.com>
75785
75786         * doc/gnulib.texi (Libtool and Windows): New section.
75787
75788 2006-07-12  Simon Josefsson  <jas@extundo.com>
75789
75790         * modules/gendocs (License): Fix license, approved by Karl.
75791
75792 2006-07-12  Eric Blake  <ebb9@byu.net>
75793
75794         * MODULES.html.sh: Add gendocs.
75795
75796 2006-07-11  Eric Blake  <ebb9@byu.net>
75797
75798         * modules/fdl: New module, to install doc/fdl.texi.
75799         * MODULES.html.sh: Add new section for documentation modules.
75800         * gnulib-tool: Avoid space-tab.
75801         (--doc-base): New option, to manage files from doc.
75802
75803 2006-07-11  Eric Blake  <ebb9@byu.net>
75804
75805         * m4/absolute-header.m4: Fix comments to match recent change.
75806
75807 2006-07-11  Eric Blake  <ebb9@byu.net>
75808
75809         * gnulib-tool: List --doc-base before --tests-base.
75810
75811 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75812
75813         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75814
75815 2006-07-11  Bruno Haible  <bruno@clisp.org>
75816
75817         * README: Mention where to put documentation.
75818
75819 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75820
75821         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75822
75823 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75824
75825         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75826         to stdint.m4.
75827
75828 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75831         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75832         "no/such/file/stdint.h" when there is no such file, so that
75833         the resulting C code can be parsed by dodgy compilers.
75834         Problems reported by Bob Proulx.
75835
75836 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75837
75838         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75839         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75840         macros into the GNU _D_EXACT_NAMLEN.
75841         * lib/savedir.c:  Likewise.
75842         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75843
75844 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75845         and Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75848         * m4/savedir.m4:
75849         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75850         macros into the GNU _D_EXACT_NAMLEN.
75851
75852 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75855         around the absolute name, to work around a problem with the HP-UX
75856         11.23 native C compiler, reported by Bob Proulx.
75857
75858 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75859
75860         * doc/maintain.texi, make-stds.texi: Sync from
75861         <http://savannah.gnu.org/projects/gnustandards>.
75862
75863 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75864
75865         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75866
75867 2006-07-09  Jim Meyering  <jim@meyering.net>
75868
75869         * m4/glob.m4: Remove a doubled word in a comment.
75870
75871 2006-07-09  Jim Meyering  <jim@meyering.net>
75872
75873         * lib/argp-pv.c: Remove a doubled word in a comment.
75874         * lib/check-version.c (check_version): Likewise.
75875         * lib/javacomp.c (compile_java_class): Likewise.
75876
75877 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75878
75879         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75880         for the benefit of people using Autoconf 2.60.  If you want to
75881         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75882         (or m4/onceonly.m4, if pre-2.57) manually.
75883
75884 2006-07-08  Jim Meyering  <jim@meyering.net>
75885
75886         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75887         comment.
75888         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75889         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75890         comment.
75891
75892 2006-07-08  Jim Meyering  <jim@meyering.net>
75893
75894         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75895
75896 2006-07-07  Simon Josefsson  <jas@extundo.com>
75897
75898         * tests/test-crc.c: Change expected crc value, the test vector
75899         were probably computed using the old broken crc.c?
75900
75901 2006-07-06  Simon Josefsson  <jas@extundo.com>
75902
75903         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75904         now the canonical place for the M4 file).
75905
75906         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75907         from the sys_socket dependency now.
75908
75909         * modules/inet_pton (Files): Ditto.
75910
75911         * modules/inet_ntop (Files): Ditto.
75912
75913 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75914
75915         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75916         not gl_PREREQ_GETUSERSHELL.
75917
75918 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75919
75920         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75921         with only one argument, for Autoconf 2.60.
75922         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75923         expand to nothing, so add a shell command to avoid syntax error.
75924         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75925
75926 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75927
75928         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75929
75930 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75931
75932         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75933         no longer needed.  Check for isblank decl.
75934         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75935         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75936         of existence.
75937
75938 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75939
75940         * lib/getloadavg.c: Use __VMS, not VMS.
75941         * lib/getopt.c: Likewise.
75942         * lib/getpagesize.h: Likewise.
75943         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75944         and probably does not work.
75945
75946 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75947
75948         * lib/.cppi-disable: Add wcwidth.
75949         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75950         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75951         (ISGRAPH): Remove.  All uses changed to isgraph.
75952         (FOLD) [!defined _LIBC]: Remove special case.
75953         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75954         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75955         HAVE_ISBLANK.
75956         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75957         case.
75958
75959 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75960
75961         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75962         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75963         brackets.  Other minor changes to suppress some compiler
75964         warnings.
75965
75966 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75967         and Paul Eggert  <eggert@cs.ucla.edu>
75968
75969         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75970         of invoking obsolescent AC_HEADER_DIRENT macro.
75971         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75972         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75973         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75974         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75975         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75976         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75977         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75978         * m4/readdir.m4: Remove; no longer needed.
75979
75980 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75981         and Paul Eggert  <eggert@cs.ucla.edu>
75982
75983         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75984         Don't worry about this obsolete case any more.
75985         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75986         directories.
75987         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75988         worry about this obsolete case any more.
75989         * lib/fts.c: Likewise.
75990         * lib/getcwd.c: Likewise.
75991         * lib/glob.h: Likewise.
75992         * lib/savedir.c: Likewise.
75993
75994 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75995
75996         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75997         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75998         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75999         needed.
76000         All uses removed.
76001         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76002         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76003         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76004         needed.
76005         * m4/getdate.m4 (gl_GETDATE): Likewise.
76006         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76007         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76008         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76009         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76010         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76011         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76012         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76013         needed.
76014
76015 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * lib/memcasecmp.c: Include <limits.h>.
76018         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76019         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76020         Don't assume isdigit succeeds only on '0' through '9'.
76021
76022 2006-07-05  Eric Blake  <ebb9@byu.net>
76023
76024         * modules/getaddrinfo (Depends-on): Add snprintf.
76025
76026 2006-07-05  Eric Blake  <ebb9@byu.net>
76027
76028         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76029         to avoid 'header present but could not be compiled' on cygwin.
76030
76031 2006-07-05  Eric Blake  <ebb9@byu.net>
76032
76033         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76034         missing from netdb.h.
76035         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76036
76037 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76038
76039         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76040         no longer needed.
76041         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76042         * m4/getdate.m4 (gl_GETDATE): Likewise.
76043         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76044         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76045         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76046         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76047         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76048
76049 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76050
76051         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76052         All uses of is_space replaced by isspace.
76053         * lib/exit.h: Don't talk about STDC_HEADERS.
76054         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76055         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76056         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76057         replaced by isprint etc.
76058         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76059         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76060         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76061         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76062         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76063         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76064
76065 2006-07-05  Bruno Haible  <bruno@clisp.org>
76066
76067         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76068         the function exists, before testing against AIX.
76069         Reported by Martin Lambers <marlam@marlam.de>.
76070
76071 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76074         From Mark D. Baushke.
76075
76076 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76077
76078         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76079         to the absolute name, not just one, to bypass Sun C 5.8's
76080         "warning: #include of /usr/include/... may be non-portable".
76081
76082 2006-07-04  Eric Blake  <ebb9@byu.net>
76083
76084         * modules/dirname-tests: New test module.
76085         * tests/test-dirname.c: New file, replacing dirname.c
76086         TEST_DIRNAME section that was recently deleted.
76087
76088 2006-07-04  Bruno Haible  <bruno@clisp.org>
76089
76090         Assume ANSI C header files and <ctype.h> functions.
76091         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76092         (mbsnwidth): Use isprint, iscntrl instead.
76093
76094 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76095
76096         Merge from coreutils.
76097         * MODULES.html.sh: Add xstrtold.
76098         * modules/xstrtold: New file.
76099         * modules/cycle-check (Files): Add lib/same-inode.h.
76100         * modules/dirname (Files): Add m4/double-slash-root.m4.
76101         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76102         * modules/mkdir-p (Files): Add lib/same-inode.h.
76103         * modules/same (Files): Add lib/same-inode.h.
76104
76105 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76106
76107         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76108         This is to keep the terminology clean; POSIX talks about
76109         "absolute pathnames", not "full pathnames", but the GNU
76110         Coding Standards say to use "path" for something else;
76111         so use "absolute" to keep both sides happy.
76112         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76113         Set gl_absolute_header, not gl_full_header_path.
76114         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76115         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76116         All uses changed.
76117
76118         Merge from coreutils.
76119
76120         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76121
76122         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76123         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76124         want to require the building of c-strtod.o.
76125         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76126         needs -lm directly.
76127         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76128
76129         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76130
76131         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76132         --as-needed option if available.  Problem reported by Albert Chin in
76133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76134         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76135         cc merely issues a bunch of annoying warnings for --as-needed
76136         (this problem was reported by Bob Proulx).  Also, try linking with
76137         -lm to detect a bug in binutils 2.16 (this problem was reported
76138         by Ralf Wildenhues).
76139
76140         2006-06-18  Jim Meyering  <jim@meyering.net>
76141
76142         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76143         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76144         macro.
76145         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76146         also check for glibc-2.4's abort-inducing bug.
76147
76148         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76149         Low-probability clean-up should be to use rmdir to get rid of
76150         the just-created directory, not unlink.
76151
76152         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76153         configure fail, and request a bug report to inform us about it.
76154         Add a comment that, barring reports to the contrary, in 2007 we'll
76155         assume ftruncate is universally available.
76156
76157         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76158
76159         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76160
76161         2006-03-12  Jim Meyering  <jim@meyering.net>
76162
76163         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76164         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76165         * m4/same.m4 (gl_SAME): Likewise.
76166         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76167
76168         2006-03-11  Eric Blake  <ebb9@byu.net>
76169
76170         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76171         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76172         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76173         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76174
76175 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76176
76177         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76178         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76179         reported by Mark D. Baushke, one in
76180         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76181
76182         Merge from coreutils.
76183
76184         * lib/.cppi-disable: Add stdint_.h.
76185         * lib/.cvsignore: Add stdint.h.
76186
76187         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76188
76189         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76190         both double and long double versions.
76191         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76192         * lib/xstrtold.c: New file.
76193         * lib/xstrtod.h (xstrtold): New decl.
76194
76195         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         * lib/filemode.c (setst): Remove.
76198         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76199         (arguably) clearer, and the generated code is a bit smaller on my
76200         Debian GNU/Linux stable x86 host.
76201
76202         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76203
76204         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76205         Assume that filemode.h includes sys/types.h and sys/stat.h.
76206         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76207         (ftypelet): Reorder to put common cases first, for efficiency.
76208         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76209         to do 'M'.
76210         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76211         of 10, for compatibility with FreeBSD.  All callers changed.
76212         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76213         types that can't be deduced solely from st_mode.  First arg is now a
76214         const pointer.
76215         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76216         (strmode): Renamed from mode_string.
76217         (filemodestring): New decl.
76218         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76219         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76220         needed.
76221         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76222
76223         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76224
76225         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76226         fsusage.h now does that.  Include fsusage.h first, to test interface.
76227         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76228         at most one method (the old code could have generated decls that
76229         didn't conform to C89, not that this was ever exercised).
76230         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76231
76232         2006-03-19  Jim Meyering  <jim@meyering.net>
76233
76234         Work even in a chroot where d_ino values for entries in "/"
76235         don't match the stat.st_ino values for the same names.
76236         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76237         number, iterate through all entries again, using lstat instead.
76238         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76239         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76240
76241         * lib/getcwd.c (__getcwd): Clarify a comment.
76242         Use memcpy in place of a call to strcpy.
76243
76244         2006-03-12  Jim Meyering  <jim@meyering.net>
76245
76246         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76247         matches that of the current directory (which we're about to chdir ".."
76248         out of), then save the dev-ino of the parent, instead.
76249
76250         * lib/same-inode.h (SAME_INODE): New file/macro.
76251         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76252         Include "same-inode.h", instead.
76253         * lib/same.c: Likewise.
76254         * lib/cycle-check.h: Include "same-inode.h".
76255         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76256         * lib/cycle-check.c (SAME_INODE): Remove definition.
76257         * lib/root-dev-ino.h: Include "same-inode.h".
76258
76259         2006-03-11  Eric Blake  <ebb9@byu.net>
76260
76261         * lib/same.c (same_name): s/base_name/last_component/
76262         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76263         * lib/filenamecat.c (file_name_concat): Likewise.
76264
76265         2006-03-11  Eric Blake  <ebb9@byu.net>,
76266                     Paul Eggert  <eggert@cs.ucla.edu>
76267
76268         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76269         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76270         drive prefix.
76271         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76272         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76273         (last_component): New method.
76274         * lib/dirname.c (dir_len): Determine when drive letters need a
76275         subsequent slash.  Preserve // when it is special.
76276         (dir_name): Don't append dot when drive letter is absolute.
76277         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76278         * lib/basename.c (base_name): New semantics - malloc the result.
76279         Preserve // when it is special.  Preserve relative files that look
76280         like drive letters.
76281         (base_len): Preserve // when it is special.
76282         (last_component): New method, similar to old base_name semantics.
76283         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76284         base_name.  Strip redundant slashes from ///.
76285
76286 2006-07-03  Jim Meyering  <jim@meyering.net>
76287
76288         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76289         macro is used before the first cycle_check call.
76290
76291 2006-07-03  Eric Blake  <ebb9@byu.net>
76292
76293         * modules/dirname (Depends-on): Add xstrndup.
76294
76295 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76296
76297         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76298         test cases, so that config.log is a bit easier to follow.
76299
76300 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76301
76302         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76303         both are 64 bits, since this seems to be the tradition, and this
76304         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76305         we ever run into a host that prefers long long to long in this
76306         case, we'll need another configure-time test.  Problem reported by
76307         Jim Meyering.
76308
76309 2006-07-02  Eric Blake  <ebb9@byu.net>
76310
76311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76312
76313 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76314
76315         * modules/inttypes (Depends-on): No longer depends on stdint.
76316         * modules/stdint (Description): Say more about assumptions.
76317         Say that the fast types might differ.  Say macros are used.
76318         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76319         (Makefile.am): Revise list of substituted symbols to match
76320         new stdint.m4.
76321         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76322         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76323         * tests/test-stdint.c (verify_same_types)
76324         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76325         the code conforms to C99/C89.
76326         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76327         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76328
76329 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76330
76331         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76332         but fix a bug, by requiring at least 64 bits.
76333         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76334         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76335         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76336         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76337
76338         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76339         changes.  Make 2.59 a prerequisite.  Check and substitute for
76340         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76341         inttypes.h.  Do not use special include files; just use the
76342         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76343         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76344         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76345         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76346         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76347         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76348         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76349         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76350         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76351         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76352         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76353         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76354         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76355         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76356         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76357         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76358         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76359         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76360         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76361         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76362         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76363         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76364         not check for things that C99 does not require, e.g., int8_t.  If
76365         a test isn't needed unless <stdint.h> isn't working, and is
76366         unlikely to be needed for any other reason, then don't do it
76367         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76368         size_t, since we assume C89 freestanding at least.  Do not check
76369         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76370         the right thing even if the types are not defined.  Instead use:
76371         (gl_STDINT_TYPE_PROPERTIES): New macro.
76372         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76373         testing whether <sys/types.h> clashes, as Autoconf does this for
76374         us now.  All uses removed.
76375         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76376         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76377         (gl_CHECK_TYPE_SAME):
76378         Remove; no longer needed.
76379         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76380         exists, since we'll return 0 anyway in that case.
76381         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76382
76383 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76386         possible collision with system files.
76387         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76388         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76389         WCHAR_MIN and WCHAR_MAX in this case.
76390         (<stddef.h>): Do not include; no longer needed.
76391         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76392         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76393         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76394         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76395         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76396         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76397         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76398         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76399         !defined(__c99))]: Include in this case too, since it's harmless
76400         now.
76401         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76402         dangerous to do so.
76403         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76404         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76405         (_STDINT_MIN, _STDINT_MAX): New macros.
76406         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76407         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76408         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76409         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76410         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76411         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76412         macros, not typedefs; this simplifies things quite a bit.
76413         Use long int for all types narrower than int64_t.
76414         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76415         Define in terms of long long int or int64_t or long int,
76416         not int64_t or int32_t.  This saves some compile-time testing.
76417         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76418         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76419         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76420         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76421         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76422         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76423         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76424         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76425         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76426         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76427         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76428         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76429         undef any previous version and define our own version, for
76430         simplicity and consistency with the new macros for types.
76431         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76432         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76433         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76434         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76435         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76436         @WINT_T_SUFFIX@ to keep things simple here.
76437         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76438         Simplify by assuming typical 8/16/32/64 host, since we're
76439         already doing that elsewhere anyway.
76440         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76441         and assume long long int is 64 bits if available.  This
76442         speeds up 'configure'.
76443
76444 2006-07-01  Eric Blake  <ebb9@byu.net>
76445
76446         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76447         Reported by Andreas Buening.
76448
76449 2006-07-01  Eric Blake  <ebb9@byu.net>
76450
76451         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76452
76453 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76454
76455         * lib/getaddrinfo.c: fixed typo
76456
76457 2006-06-29  Jim Meyering  <jim@meyering.net>
76458
76459         * modules/strftime (Maintainer): Add my name, since with the
76460         FPRINTFTIME changes strftime.c has forked from glibc.
76461
76462 2006-06-29  Eric Blake  <ebb9@byu.net>
76463
76464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76465
76466 2006-06-29  Eric Blake  <ebb9@byu.net>
76467
76468         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76469
76470 2006-06-29  Eric Blake  <ebb9@byu.net>
76471
76472         * lib/stat_.h: New file.
76473
76474 2006-06-29  Eric Blake  <ebb9@byu.net>
76475
76476         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76477         unused static function.
76478
76479 2006-06-29  Eric Blake  <ebb9@byu.net>
76480
76481         * doc/functions.texi (Function Portability): Document missing lstat
76482         on mingw.
76483
76484 2006-06-29  Eric Blake  <ebb9@byu.net>
76485
76486         * MODULES.html.sh: Add sys_stat.
76487         * modules/sys_stat: New module.
76488         * modules/mkstemp (Depends-on): Add sys_stat.
76489
76490 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76491
76492         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76493
76494 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76495
76496         * m4/c-bs-a.m4: Removed.
76497
76498 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76499
76500         * lib/strftime.c: Assume strftime() exists.
76501
76502 2006-06-29  Derek Price  <derek@ximbiot.com>
76503
76504         * modules/c-bs-a: Removed - \a is C89.
76505         * MODULES.html.sh: Remove c-bs-a.
76506
76507 2006-06-29  Bruno Haible  <bruno@clisp.org>
76508
76509         * modules/wcwidth (License): Change to LGPL.
76510
76511 2006-06-28  Simon Josefsson  <jas@extundo.com>
76512
76513         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76514         on _WIN32.
76515
76516         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76517         getnameinfo.
76518
76519 2006-06-28  Simon Josefsson  <jas@extundo.com>
76520
76521         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76522
76523 2006-06-28  Simon Josefsson  <jas@extundo.com>
76524
76525         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76526         functions there.  It will succeed on Windows XP, but on Windows
76527         2000 and (presumably) earlier, it will fail, and use the internal
76528         re-implementation.
76529         (use_win32_p): New function.
76530         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76531         Support AI_NUMERICSERV to disable getservbyname.
76532         (getnameinfo): New function, only supports
76533         NI_NUMERICHOST|NI_NUMERICSERV for now.
76534
76535         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76536         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76537         getnameinfo.
76538
76539 2006-06-28  Eric Blake  <ebb9@byu.net>
76540
76541         * modules/wcwidth: New file.
76542         * modules/mbchar (Depends-on): Add wcwidth.
76543         * modules/mbswidth (Depends-on): Add wcwidth.
76544         * MODULES.html.sh: Add wcwidth.
76545
76546 2006-06-28  Eric Blake  <ebb9@byu.net>
76547
76548         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76550
76551 2006-06-28  Eric Blake  <ebb9@byu.net>
76552
76553         * lib/xvasprintf.h: Fix comments.
76554
76555 2006-06-28  Eric Blake  <ebb9@byu.net>
76556
76557         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76558         * lib/mbswidth.c (wcwidth): Move from here...
76559         * lib/wcwidth.h: ...to this new file.
76560
76561 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76562
76563         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76564
76565         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76566         it's obsolete.
76567         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76568
76569 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76570
76571         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76572         Autoconf 2.60 says this stuff was obsolete.
76573
76574 2006-06-28  Bruno Haible  <bruno@clisp.org>
76575
76576         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76577
76578 2006-06-28  Bruno Haible  <bruno@clisp.org>
76579
76580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76581         gt_TYPE_WCHAR_T.
76582
76583 2006-06-28  Bruno Haible  <bruno@clisp.org>
76584
76585         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76586         declaration for wcwidth.
76587         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76588
76589 2006-06-28  Bruno Haible  <bruno@clisp.org>
76590
76591         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76592         (mkdir): Define using _mkdir.
76593
76594 2006-06-28  Bruno Haible  <bruno@clisp.org>
76595
76596         * lib/getaddrinfo.h: Fix POSIX URL.
76597         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76598         _WIN32.
76599         (use_win32_p): Make static.
76600         (getaddrinfo): Reject service name if it is empty or does not consist
76601         solely of decimal digits, or if its value is > 65535.
76602         (getnameinfo): Remove useless casts.
76603
76604 2006-06-27  Simon Josefsson  <jas@extundo.com>
76605
76606         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76607         Eggert and Martin Lambers.
76608
76609 2006-06-27  Simon Josefsson  <jas@extundo.com>
76610
76611         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76612         Eggert and Martin Lambers.
76613
76614 2006-06-27  Bruno Haible  <bruno@clisp.org>
76615
76616         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76617         result to 0, not to empty.
76618         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76619
76620 2006-06-27  Bruno Haible  <bruno@clisp.org>
76621
76622         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76623
76624 2006-06-26  Simon Josefsson  <jas@extundo.com>
76625
76626         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76627         present.
76628
76629 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76632         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76633         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76634
76635 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76636
76637         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76638
76639 2006-06-26  Bruno Haible  <bruno@clisp.org>
76640
76641         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76642
76643 2006-06-26  Bruno Haible  <bruno@clisp.org>
76644
76645         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76646
76647 2006-06-26  Bruno Haible  <bruno@clisp.org>
76648
76649         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76650         SGI C compiler in pre-C99 mode.
76651         Suggested by Mark D. Baushke and Larry Jones.
76652
76653 2006-06-26  Bruno Haible  <bruno@clisp.org>
76654
76655         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76656         WCHAR_MAX.
76657         Reported by Mark D. Baushke and Larry Jones.
76658
76659 2006-06-26  Bruno Haible  <bruno@clisp.org>
76660
76661         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76662         in pre-C99 mode.
76663         Suggested by Mark D. Baushke and Larry Jones.
76664
76665 2006-06-23  Simon Josefsson  <jas@extundo.com>
76666             Bruno Haible  <bruno@clisp.org>
76667
76668         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76669         Emit mostlyclean-local rule.
76670         (func_emit_tests_Makefile_am): Likewise.
76671         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76672
76673 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76674
76675         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76676
76677 2006-06-23  Bruno Haible  <bruno@clisp.org>
76678
76679         * tests/test-stdint.c: Update to match ISO C 99 Technical
76680         Corrigendum 1.
76681
76682 2006-06-23  Bruno Haible  <bruno@clisp.org>
76683
76684         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76685
76686 2006-06-23  Bruno Haible  <bruno@clisp.org>
76687
76688         * lib/stdint_.h: Treat IRIX like OpenBSD.
76689
76690 2006-06-23  Bruno Haible  <bruno@clisp.org>
76691
76692         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76693         ISO C 99 Technical Corrigendum 1.
76694
76695 2006-06-22  Simon Josefsson  <jas@extundo.com>
76696
76697         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76698         MinGW.
76699
76700 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76701
76702         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76703         needed.  Some compiler complained about some of them.  Problem reported
76704         by Larry Jones in
76705         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76706
76707 2006-06-21  Simon Josefsson  <jas@extundo.com>
76708
76709         * tests/test-getaddrinfo.c: New file.
76710
76711         * modules/getaddrinfo-tests: New file.
76712
76713         * MODULES.html.sh: Add inet_pton.
76714
76715         * modules/inet_pton: New file.
76716
76717 2006-06-21  Simon Josefsson  <jas@extundo.com>
76718
76719         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76720         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76721         of using the (limited) gnulib implementation on Windows XP.
76722
76723         * m4/inet_pton.m4: New file.
76724
76725 2006-06-21  Simon Josefsson  <jas@extundo.com>
76726
76727         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76728         variable.
76729
76730         * lib/socket_.h: Don't define WINVER.
76731
76732         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76733         slightly modified to work in gnulib.
76734
76735 2006-06-21  Simon Josefsson  <jas@extundo.com>
76736
76737         * doc/gnulib.texi (Windows sockets): Add.
76738
76739 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76740
76741         * lib/read-file.c (fread_file): Start with buffer allocation of
76742         0 bytes rather than 1 byte; this simplifies the code.
76743         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76744         code to free buffer and save/restore errno.
76745         (internal_read_file): Remove unused local.
76746
76747 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76750         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76751         Problem reported by Denis Excoffier in
76752         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76753
76754 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76755
76756         * modules/sys_socket, modules/socklen: Include sys/types since
76757         FreeBSD 4.x's sys/socket.h needs it.
76758
76759 2006-06-19  Simon Josefsson  <jas@extundo.com>
76760
76761         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76762
76763 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76764
76765         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76766
76767 2006-06-19  Bruno Haible  <bruno@clisp.org>
76768
76769         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76770         and FULL_PATH_INTTYPES_H in angle brackets.
76771         Reported by Mark D. Baushke <mdb@gnu.org>.
76772
76773 2006-06-17  Eric Blake  <ebb9@byu.net>
76774
76775         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76776         errno.
76777
76778 2006-06-17  Bruno Haible  <bruno@clisp.org>
76779
76780         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76781         <sys/inttypes.h>.
76782
76783 2006-06-17  Bruno Haible  <bruno@clisp.org>
76784
76785         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76786         whether errno is declared. Assume <errno.h> declares errno.
76787
76788 2006-06-17  Bruno Haible  <bruno@clisp.org>
76789
76790         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76791
76792 2006-06-17  Bruno Haible  <bruno@clisp.org>
76793
76794         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76795         problem on Solaris 2.5.1.
76796
76797 2006-06-16  Eric Blake  <ebb9@byu.net>
76798
76799         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76800         * lib/unicodeio.c [!defined errno]: Likewise.
76801         * lib/strtol.c [!defined errno]: Likewise.
76802         * lib/strtod.c [!defined errno]: Likewise.
76803
76804 2006-06-15  Eric Blake  <ebb9@byu.net>
76805
76806         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76807
76808 2006-06-15  Eric Blake  <ebb9@byu.net>
76809
76810         * config/srclist.txt (ssize_t.m4): Lose sync.
76811
76812 2006-06-15  Bruno Haible  <bruno@clisp.org>
76813
76814         * modules/stdint (Files): Include m4/full-header-path.m4,
76815         m4/size_max.m4, m4/wchar_t.m4.
76816         (Makefile.am): Many more substitutions.
76817         * modules/stdint-tests: New file.
76818         * tests/test-stdint.c: New file.
76819
76820 2006-06-15  Bruno Haible  <bruno@clisp.org>
76821
76822         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76823         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76824         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76825         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76826         gl_CHECK_TYPE_SAME): New macros.
76827
76828 2006-06-15  Bruno Haible  <bruno@clisp.org>
76829
76830         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76831
76832 2006-06-15  Bruno Haible  <bruno@clisp.org>
76833
76834         * lib/stdint_.h: Rewritten to be fully auto-configured.
76835         Fixes bug on HP-UX/IA64.
76836
76837 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76838
76839         * lib/getdate.y (__attribute__): Don't define if already defined.
76840         Problem reported by Larry Jones.
76841         * lib/utimens.c (__attribute__): Likewise.
76842
76843 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76844
76845         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76846         reported by Andreas Schwab.
76847
76848 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76849             Bruno Haible  <bruno@clisp.org>
76850
76851         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76852         check for the declaration of strnlen and a run test that exposes the
76853         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76854         rpl_strndup.
76855
76856 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76857             Bruno Haible  <bruno@clisp.org>
76858
76859         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76860
76861 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76862
76863         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76864         compile test, for Tru64 4.0D.
76865
76866 2006-05-28  Karl Berry  <karl@gnu.org>
76867
76868         * config/srclist.txt (printf-args.c): lose sync.
76869
76870 2006-05-26  Martin Lambers  <marlam@marlam.de>
76871
76872         * lib/getpass.c: Updates the test for the native W32 API, and adds
76873         missing includes, thus fixing compilation warnings.
76874
76875 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76876
76877         * lib/exclude.c (exclude_fnmatch): New function.
76878         (excluded_file_name): Call exclude_fnmatch.
76879         * lib/exclude.h (excluded_file_name): New prototype
76880
76881 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76882
76883         * lib/tempname.c (small_open, large_open): New macros.
76884         (__open, __open64) [!_LIBC]: Remove.
76885         (__gen_tempname): Use small_open and large_open instead of __open
76886         and __open64.  This fixes a portability bug on HP-UX 11.11i
76887         reported by Simon Wing-Tang in
76888         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76889
76890 2006-05-24  Bruno Haible  <bruno@clisp.org>
76891
76892         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76893         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76894         Reported by Thorsten Maerz <torte@netztorte.de> via
76895         Aaron Stone <aaron@serendipity.cx>.
76896
76897 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76900         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76901         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76902         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76903         not really conditional on the cache.
76904         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76905
76906 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76907
76908         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76909         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76910         (my_usleep): Don't mishandle maximum value.
76911
76912 2006-05-19  Jim Meyering  <jim@meyering.net>
76913
76914         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76915
76916 2006-05-17  Bruno Haible  <bruno@clisp.org>
76917
76918         Cygwin portability.
76919         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76920
76921 2006-05-17  Bruno Haible  <bruno@clisp.org>
76922
76923         * lib/stdint_.h: Fix recognition of Cygwin.
76924
76925 2006-05-15  Bruno Haible  <bruno@clisp.org>
76926
76927         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76928         on libtool patch by Ralf Wildenhues.
76929
76930 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76931
76932         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76933         test for C99 conformance; (bool) 0.5 is an integer constant
76934         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76935         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76936
76937 2006-05-11  Simon Josefsson  <jas@extundo.com>
76938
76939         * m4/xvasprintf.m4: Fix obvious typo.
76940
76941 2006-05-11  Jim Meyering  <jim@meyering.net>
76942
76943         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76944         James Lemley.
76945
76946 2006-05-10  Simon Josefsson  <jas@extundo.com>
76947
76948         * lib/md4.c: Typo fix, update copyright years.
76949         (K1, K2): Don't use L because it turn computations into 64-bit on
76950         64-bit platforms.
76951
76952 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76953
76954         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76955         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76956         unwanted sign propagation, e.g., on hosts with 64-bit int.
76957         There still are some problems with reeelly weird theoretical hosts
76958         (e.g., 33-bit int) but it's not worth worrying about now.
76959         * lib/sha1.c (rol): Likewise.
76960         (K1, K2, K3, K4): Remove unnecessary L suffix.
76961
76962 2006-05-10  Bruno Haible  <bruno@clisp.org>
76963
76964         * lib/des.c: Cast to avoid warnings.
76965
76966 2006-05-09  Bruno Haible  <bruno@clisp.org>
76967
76968         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76969         (Depends-on): Depend also on xsize, stdarg.
76970         (configure.ac): Add gl_XVASPRINTF.
76971
76972 2006-05-09  Bruno Haible  <bruno@clisp.org>
76973
76974         * m4/xvasprintf.m4: New file.
76975
76976 2006-05-09  Bruno Haible  <bruno@clisp.org>
76977
76978         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76979         (EOVERFLOW): Define fallback value.
76980         (xstrcat): New function.
76981         (xvasprintf): Recognize the special case of a string concatenation.
76982
76983 2006-05-08  Eric Blake  <ebb9@byu.net>
76984
76985         * gnulib-tool (func_version): Base copyright year on CVS date.
76986         (func_emit_copyright_notice): New function.
76987         (func_emit_lib_Makefile_am): Use it.
76988         (func_emit_tests_Makefile_am): Likewise.
76989         (func_import): Likewise.
76990
76991 2006-05-08  Bruno Haible  <bruno@clisp.org>
76992
76993         * modules/stdarg: New file.
76994         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76995
76996 2006-05-08  Bruno Haible  <bruno@clisp.org>
76997
76998         * m4/stdarg.m4: New file, from GNU gettext.
76999
77000 2006-05-08  Bruno Haible  <bruno@clisp.org>
77001
77002         * config/srclist.txt (build-aux/config.rpath): different from latest
77003         release.
77004
77005 2006-05-08  Bruno Haible  <bruno@clisp.org>
77006
77007         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77008
77009 2006-05-05  Jim Meyering  <jim@meyering.net>
77010
77011         * m4/warning.m4: New file, derived from bison's file by the same name.
77012
77013 2006-05-03  Bruno Haible  <bruno@clisp.org>
77014
77015         * lib/stdint_.h: Shorter URL.
77016         * lib/inttypes.h: Likewise.
77017
77018 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77019
77020         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77021
77022 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * lib/verify.h: Document the internals better.  Most of this change
77025         was written by Bruno Haible.
77026
77027 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77028
77029         * doc/verify.texi: New file, partly based on a proposal by
77030         Bruno Haible.
77031
77032 2006-05-02  Bruno Haible  <bruno@clisp.org>
77033
77034         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77035         test from here...
77036         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77037
77038 2006-04-29  Bruno Haible  <bruno@clisp.org>
77039
77040         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77041         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77042
77043 2006-04-29  Bruno Haible  <bruno@clisp.org>
77044
77045         * gnulib-tool: Make --update option actually work.
77046
77047 2006-04-29  Bruno Haible  <bruno@clisp.org>
77048
77049         * doc/gcd.texi: New file.
77050         * doc/gnulib.texi: Include it.
77051
77052 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         * lib/getdate.y (get_date): When adding relative date, start with the
77055         initial time, not with the result of the first mktime call.
77056
77057 2006-04-25  Bruno Haible  <bruno@clisp.org>
77058
77059         * gnulib-tool (func_import): Output the include directives in three
77060         blocks, sorted separately.
77061         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77062
77063 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77064
77065         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77066         to define main with arguments, for C++.  Reported by Eric Blake.
77067         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77068         Prefer 'int main ()' to 'int main (void)', for C++.
77069         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77070         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77071         for 'main', for C99 and C++.
77072
77073 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77074
77075         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77076         Don't assume that exit status -1 is valid.
77077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77078         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77079         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77080         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77081         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77082         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77083         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77084         functions can be used without declaring them, or that you can
77085         exit with status -1.
77086         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77087
77088 2006-04-24  Karl Berry  <karl@gnu.org>
77089
77090         * config/srclist.txt (longdouble.m4): sync lost.
77091
77092 2006-04-24  Eric Blake  <ebb9@byu.net>
77093
77094         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77095
77096 2006-04-24  Bruno Haible  <bruno@clisp.org>
77097
77098         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77099         poll() implementation in AIX.
77100         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77101
77102 2006-04-24  Bruno Haible  <bruno@clisp.org>
77103
77104         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77105         assigned exactly once.
77106
77107 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77108             Bruno Haible  <bruno@clisp.org>
77109
77110         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77111         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77112         for AM_CPPFLAGS.
77113
77114 2006-04-23  Bruno Haible  <bruno@clisp.org>
77115
77116         * modules/copy-file: Depend on unistd.
77117         * modules/execute: Likewise.
77118         * modules/fatal-signal: Likewise.
77119         * modules/findprog: Likewise.
77120         * modules/mkdtemp : Likewise.
77121         * modules/pipe: Likewise.
77122         * modules/wait-process: Likewise.
77123
77124 2006-04-23  Bruno Haible  <bruno@clisp.org>
77125
77126         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77127         condition was already detected.
77128         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77129
77130 2006-04-23  Bruno Haible  <bruno@clisp.org>
77131
77132         * lib/copy-file.c: Include <unistd.h> unconditionally.
77133         * lib/execute.c: Likewise.
77134         * lib/fatal-signal.c: Likewise.
77135         * lib/findprog.c: Likewise.
77136         * lib/mkdtemp.c: Likewise.
77137         * lib/pipe.h: Likewise.
77138         * lib/pipe.c: Likewise.
77139         * lib/wait-process.h: Likewise.
77140
77141 2006-04-23  Bruno Haible  <bruno@clisp.org>
77142
77143         * gnulib-tool (func_usage): Fix --import description. Document
77144         --update.
77145         (func_import): Create temporary file in a temporary directory, if
77146         --dry-run is specified. Silence errors from 'grep' when there are no
77147         m4 files in $m4dir.
77148         (func_create_testdir): Silence errors from 'grep' when there are no
77149         m4 files in $m4dir.
77150         Reported by Karl Berry <karl@freefriends.org>.
77151
77152 2006-04-20  Bruno Haible  <bruno@clisp.org>
77153
77154         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77155         one argument, so that the code will be portable to Autoconf 2.60.
77156         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77157         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77158         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77159
77160 2006-04-19  Derek Price  <derek@ximbiot.com>
77161             Eric Blake  <ebb9@byu.net>
77162
77163         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77164         rather than "/full/path.h".  Update comment to match.  Shorten &
77165         generalize m4_translit call via AS_TR_CPP.
77166
77167 2006-04-19  Derek Price  <derek@ximbiot.com>
77168             Eric Blake  <ebb9@byu.net>
77169
77170         * lib/inttypes.h: Correct grammar in comment.
77171
77172 2006-04-18  Derek Price  <derek@ximbiot.com>
77173             Paul Eggert  <eggert@cs.ucla.edu>
77174
77175         * modules/inttypes: New file.
77176         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77177
77178 2006-04-18  Derek Price  <derek@ximbiot.com>
77179             Paul Eggert  <eggert@cs.ucla.edu>
77180
77181         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77182         New files.
77183
77184 2006-04-18  Derek Price  <derek@ximbiot.com>
77185             Paul Eggert  <eggert@cs.ucla.edu>
77186
77187         * lib/inttypes.h: New file.
77188         * lib/strtoimax.c: Assume <inttypes.h>.
77189
77190 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77191
77192         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77193         isn't mounted.  Problem reported by Kir Kolyshkin.
77194
77195 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77196
77197         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77198         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77199         Derek R. Price.
77200         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77201         implementation.
77202
77203 2006-04-12  Eric Blake  <ebb9@byu.net>
77204
77205         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77206         is now done automatically by the corresponding Autoconf macro.
77207
77208 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77209
77210         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77211         time_r.h.
77212
77213 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77214
77215         Merge regex changes from libc, removing some of our
77216         POSIX-conformance changes that were rejected and redoing them in a
77217         less-intrusive way.
77218
77219         * lib/regcomp.c (re_compile_internal, init_dfa):
77220         Length arg is now size_t, not Idx.  All uses changed.
77221         (peek_token): Forward decl now says internal_function.
77222         (__re_error_msgid, __re_error_msgid_idx):
77223         Now static rather than extern with attribute_hidden.
77224         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77225         For some reason libc prefers K&R style defns for external functions.
77226         (regerror) [!defined _LIBC]: Likewise.
77227         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77228         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77229         (build_range_exp, build_collating_symbol):
77230         Use K&R-style defn.
77231         (re_compile_fastmap): Use '\0' to memset, not 0.
77232         (utf8_sb_map): Make the calculations more obvious.
77233         (init_dfa, parse_bracket_exp, build_charclass_op):
77234         Call calloc and cast result, as glibc does.
77235         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77236         (build_range_exp, build_collating_symbol):
77237         Now internal functions.
77238
77239         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77240
77241         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77242         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77243         Don't depend on VMS; depend on __VMS instead, for POSIX
77244         namespace cleanness.
77245         (regoff_t): Define to ssize_t, not long int.
77246
77247         Remove the REG_ macros named below.  Instead, make the old names
77248         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77249         __USE_GNU_REGEX.
77250         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77251         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77252         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77253         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77254         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77255         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77256         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77257         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77258         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77259         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77260         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77261         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77262         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77263         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77264         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77265         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77266         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77267         (REG_NREGS):
77268         Remove.  All uses replaced by the old RE_* names.
77269         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77270         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77271         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77272         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77273         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77274         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77275         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77276         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77277         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77278         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77279         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77280         Don't bother having these macros be independent of each others'
77281         values, since they no longer exist in the POSIX name space.
77282
77283         Rename the following member names back to their old names,
77284         unless !__USE_GNU_REGEX.  All uses changed back.
77285         (buffer): Renamed from re_buffer.
77286         (allocated): Renamed from re_allocated.
77287         (used): Renamed from re_used.
77288         (syntax): Renamed from re_syntax.
77289         (fastmap): Renamed from re_fastmap.
77290         (translate): Renamed from re_translate.
77291         (can_be_null): Renamed from re_can_be_null.
77292         (regs_allocated): Renamed from re_regs_allocated.
77293         (fastmap_accurate): Renamed from re_fastmap_accurate.
77294         (no_sub): Renamed from re_no_sub.
77295         (not_bol): Renamed from re_not_bol.
77296         (not_eol): Renamed from re_not_eol.
77297         (newline_anchor): Renamed from re_newline_anchor.
77298         (num_regs): Renamed from rm_num_regs.
77299         (start): Renamed from rm_start.
77300         (end): Renamed from rm_end.
77301
77302         (free_state): Move up a bit.
77303
77304         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77305         #define to be empty.
77306         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77307         when that is what is intended.
77308         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77309         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77310         (MAX): New macro.
77311         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77312         All uses changed back to re_malloc, etc.  It's now the caller's
77313         responsibility to check for overflow; all callers changed.
77314         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77315         (re_x2nrealloc): Remove.
77316         (free_state): Remove decl.
77317
77318         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77319         (re_set_registers, re_exec):
77320         Use K&R-style defn.
77321
77322         2006-01-31  Roland McGrath  <roland@redhat.com>
77323
77324         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77325         Reported by Mike Frysinger <vapier@gentoo.org>.
77326
77327         2006-01-15  Andreas Jaeger  <aj@suse.de>
77328
77329         [BZ #1950]
77330         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77331         build_wcs_upper_buffer change.
77332         (build_wcs_upper_buffer): Change return type.
77333
77334         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77335
77336         * lib/regex_internal.h: Include <stdint.h> if available.
77337
77338         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77339
77340         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77341
77342         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77343
77344         * lib/regcomp.c: Adjust for changed secondary hash function.
77345
77346         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77347
77348         * lib/regex.h: Pretty printing.
77349         Clean up namespace a bit.
77350
77351         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77352
77353         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77354         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77355
77356         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77357                     Ulrich Drepper  <drepper@redhat.com>
77358
77359         [BZ #1302]
77360         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77361         changed.
77362         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77363
77364         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77365
77366         [BZ #281]
77367         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77368         * lib/regcomp.c: Remove unnecessary uses of
77369         unsigned RE_TRANSLATE_TYPE.
77370         * lib/regex_internal.h: Likewise.
77371         * lib/regex_internal.c: Likewise.
77372         * lib/regexec.c: Likewise.
77373         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77374
77375         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77376
77377         * lib/regexec.c (find_recover_state): Remove unnecessary
77378         initialization.
77379         (transit_state_bkref): Make DFA a const pointer.
77380         (get_subexp): Likewise.
77381         (check_arrival): Likewise.
77382         (update_cur_sifted_state): Likewise.
77383         (re_search_internal): Likewise.
77384         (prune_impossible_nodes): Likewise.
77385         (acquire_init_state_context): Likewise.
77386         (proceed_next_node): Likewise.
77387         (set_regs): Likewise.
77388         (free_fail_stack_return): Likewise.
77389         (check_arrival_expand_ecl): Mark DFA parameter as const.
77390         (check_arrival_expand_ecl_sub): Likewise.
77391         (check_subexp_limits): Likewise.
77392         (sub_epsilon_src_nodes):  Likewise.
77393         (add_epsilon_src_nodes):  Likewise.
77394         (merge_state_array): Likewise.
77395         (update_regs): Likewise.
77396         (build_trtable): Likewise.
77397         (sift_states_backward): Mark MCTX parameter as const.
77398         (build_sifted_states): Likewise.
77399         (update_cur_sifted_state): Likewise.
77400         (sift_states_mkref): Likewise.
77401         (check_arrival_expand_ecl): Mark eclosure as const.
77402         (check_dst_limits_calc_pos_1): Likewise.
77403         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77404         pointer.
77405
77406         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77407
77408         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77409         (transit_state_sb): Likewise.
77410         (transit_state_mb): Likewise.
77411         (sift_states_iter_mb): Likewise.
77412         (check_arrival_add_next_nodes): Likewise.
77413         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77414         [_LIBC] (re_search_2_stub): Use mempcpy.
77415
77416         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77417         mbrtowc for very simple UTF-8 case.
77418
77419         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77420         a pointer-to-const.
77421         (re_acquire_state_context): Likewise.
77422         * lib/regex_internal.h: Adjust prototypes.
77423
77424         * lib/regex.c: Prevent using C++ compilers.
77425
77426         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77427         (re_acquire_state_context): Likewise.
77428
77429 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * modules/regex (Depends-on): Add ssize_t.
77432
77433 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77436         translation table.
77437
77438 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77439
77440         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77441
77442 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77443             Bruno Haible  <bruno@clisp.org>
77444
77445         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77446         <sys/types.h> and <inttypes.h>.
77447
77448 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77449
77450         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77451         `__error_t_defined', so argp.h will not typedef the former.
77452
77453 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77454
77455         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77456         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77457         glibc names.  Even if glibc is changed to conform to POSIX, the
77458         traditional names will be available anyway, since regex depends on
77459         the extensions module.  Also, fix a longstanding typo in the
77460         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77461         reported by Emanuele Giaquinta.  Also, change sense of cached
77462         variable, so that the message makes sense.
77463
77464 2006-03-24  Simon Josefsson  <jas@extundo.com>
77465
77466         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77467         including some doc fixes.
77468         (base64_encode_alloc): Fix +1 bug on allocation failures.
77469
77470 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77471
77472         * lib/base64.c (base64_encode): Do not read past end of array with
77473         unsanitized input on systems with CHAR_BIT > 8.
77474
77475 2006-03-24  Eric Blake  <ebb9@byu.net>
77476
77477         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77478
77479 2006-03-22  Karl Berry  <karl@gnu.org>
77480
77481         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77482         * config/srclistvars.sh (COREUTILS): new var.
77483
77484 2006-03-17  Jim Meyering  <jim@meyering.net>
77485
77486         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77487         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77488
77489 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77490
77491         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77492         no longer needs it.  Instead, check that regoff_t is as least
77493         as wide as ptrdiff_t.
77494
77495         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77496         so that our regex.h stays compatible with the installed regex.
77497         This is helpful for installers who configure --without-included-regex.
77498         Problem reported by Emanuele Giaquinta.
77499
77500 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77501
77502         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77503         Typedef to long int, not to off_, as POSIX will likely change
77504         in that direction.
77505
77506 2006-03-15  Eric Blake  <ebb9@byu.net>
77507
77508         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77509
77510 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77511
77512         * lib/argp-help.c (validate_uparams): Fix typo
77513         * lib/argp-parse.c (argp_default_options): Consistently begin help
77514         messages with a lowercase letter.
77515
77516 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77519         overrun buffers and shouldn't be used (much as gets shouldn't be
77520         used).
77521         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77522
77523 2006-03-08  Simon Josefsson  <jas@extundo.com>
77524
77525         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77526         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77527
77528 2006-03-08  Simon Josefsson  <jas@extundo.com>
77529
77530         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77531         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77532
77533 2006-03-08  Simon Josefsson  <jas@extundo.com>
77534
77535         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77536         signal that configure disabled the device.
77537
77538 2006-03-08  Simon Josefsson  <jas@extundo.com>
77539
77540         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77541         languages.
77542
77543 2006-03-07  Simon Josefsson  <jas@extundo.com>
77544
77545         * modules/getopt (Depends-on): Add unistd.
77546
77547         * modules/unistd: New file.
77548
77549 2006-03-07  Simon Josefsson  <jas@extundo.com>
77550
77551         * modules/gc-random: New file.
77552
77553 2006-03-07  Simon Josefsson  <jas@extundo.com>
77554
77555         * m4/unistd_h.m4: New file.
77556
77557 2006-03-07  Simon Josefsson  <jas@extundo.com>
77558
77559         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77560         test to be side-effect free by storing the result in the cache
77561         variable gl_cv_lib_readline, and moving the assignment of
77562         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77563         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77564
77565 2006-03-07  Simon Josefsson  <jas@extundo.com>
77566
77567         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77568         error on missing devices (the functions will return an error).
77569
77570         * m4/gc.m4: Move random stuff to gc-random.m4
77571
77572 2006-03-07  Simon Josefsson  <jas@extundo.com>
77573
77574         * lib/unistd_.h: New file.
77575
77576 2006-03-07  Simon Josefsson  <jas@extundo.com>
77577
77578         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77579
77580 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77583         Problem reported by Juan Manuel Guerrero.
77584
77585 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77586
77587         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77588         the unistd module.
77589         * lib/getlogin_r.c: Likewise.
77590         * lib/getlogin_r.h: Likewise.
77591         * lib/glob.c: Likewise.
77592         * lib/pagealign_alloc.c: Likewise.
77593         * lib/unistd_.h: Remove; no longer needed.
77594
77595 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77596
77597         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77598         Add unistd.
77599         * modules/c-stack (Depends-on): Add unistd.
77600         * modules/getlogin_r: Likewise.
77601         * modules/glob: Likewise.
77602         * modules/pagealign_alloc: Likewise.
77603         * modules/unistd (Files): Remove lib/unistd_.h.
77604         (EXTRA_DIST): Remove.
77605         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77606         need unistd_.h.
77607         (MOSTLYCLEANFILES): Remove unistd.h-t.
77608
77609 2006-03-03  Simon Josefsson  <jas@extundo.com>
77610
77611         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77612
77613 2006-03-03  Simon Josefsson  <jas@extundo.com>
77614
77615         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77616         libidn and bison.
77617
77618 2006-03-03  Simon Josefsson  <jas@extundo.com>
77619
77620         * build-aux/maint.mk: Add indent target.
77621
77622 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77623
77624         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77625         our replacement poll.h in any case, to avoid a differing
77626         declaration from a system header.  Seen on AIX.
77627
77628 2006-03-01  Simon Josefsson  <jas@extundo.com>
77629
77630         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77631         <kasal@ucw.cz>.
77632
77633 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77634
77635         * modules/gettime (Depends-on): Add extensions module.
77636         * modules/nanosleep (Depends-on): Likewise.
77637         * modules/settime (Depends-on): Likewise.
77638
77639 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77640
77641         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77642         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77643         pedantically.
77644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77645         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77646
77647         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77648         not "==".  Reported by Ralf Wildenhues.
77649
77650 2006-03-01  Karl Berry  <karl@gnu.org>
77651
77652         * doc/Copyright/request-*: new files, synced from gnuorg.
77653
77654 2006-03-01  Karl Berry  <karl@gnu.org>
77655
77656         * config/srclist.txt (Copyright/*): new entries.
77657
77658 2006-02-28  Simon Josefsson  <jas@extundo.com>
77659
77660         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77661
77662 2006-02-27  Simon Josefsson  <jas@extundo.com>
77663
77664         * lib/base64.h: Indent #define's.  From Jim Meyering
77665         <jim@meyering.net>.
77666
77667 2006-02-27  Jim Meyering  <jim@meyering.net>
77668
77669         Revert the change of 2006-02-24, so these files can continue
77670         to be sync'd from gettext.
77671         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77672         of `config.h'.
77673
77674 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77675
77676         * modules/intprops: New file.
77677         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77678         Add intprops.
77679         * modules/getloadavg (Files): Remove lib/intprops.h.
77680         (Depends-on): Add intprops.
77681         * modules/human: Likewise.
77682         * modules/inttostr: Likewise.
77683         * modules/openat: Likewise.
77684         * modules/sig2str: Likewise.
77685         * modules/userspec: Likewise.
77686         * modules/utimecmp: Likewise.
77687         * modules/xnanosleep: Likewise.
77688         * modules/xstrtol: Likewise.
77689
77690 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77691
77692         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77693         * modules/lock-tests (TESTS): Use $(EXEEXT).
77694         * modules/tls-tests: Likewise.
77695         * modules/argp-tests: Likewise.
77696         (check_PROGRAMS): New var, replacing...
77697         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77698
77699 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77700
77701         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77702         `config.h'.
77703
77704 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77705
77706         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77707
77708 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77709
77710         Sync from coreutils.
77711         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77712         gl_CHDIR_SAFER.
77713
77714 2006-02-22  Jim Meyering  <jim@meyering.net>
77715
77716         Sync from coreutils.
77717         * m4/chdir-safer.m4: New file.
77718
77719 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77720
77721         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77722         AT_FDCWD exceeds INT_MAX.
77723         * lib/openat.h (AT_FDCWD): Likewise.
77724
77725 2006-02-17  Eric Blake  <address@hidden>
77726
77727         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77728
77729 2006-02-16  Simon Josefsson  <jas@extundo.com>
77730
77731         * modules/getaddrinfo (Depends-on): Add sys_socket.
77732
77733 2006-02-15  Simon Josefsson  <jas@extundo.com>
77734
77735         * build-aux/maint.mk: Add dsyntax-check rule.
77736
77737 2006-02-15  Eric Blake  <ebb9@byu.net>
77738
77739         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77740         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77741         'present but cannot compile' warnings on cygwin.
77742         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77743         use ws2tcpip.h if sys/socket.h works.
77744         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77745         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77746
77747 2006-02-14  Simon Josefsson  <jas@extundo.com>
77748
77749         * modules/maintainer-makefile (Files): Rename.
77750
77751         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77752         and (the local) Makefile.cfg to maint-cfg.mk.
77753
77754         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77755         to the latter.
77756
77757         * modules/maintainer-makefile: New module.
77758
77759         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77760         severaly stripped to make it possible to build it up from scratch
77761         with reliable tests.
77762
77763         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77764         fixes to permit overriding the default actions when configure and
77765         makefile are not available.
77766
77767 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77768
77769         Sync from coreutils.
77770         * modules/lstat (Depends-on): Don't depend on xalloc.
77771         (License): Change from GPL to LGPL, since this is now simply a
77772         replacement for a libc function.
77773
77774 2006-02-14  Jim Meyering  <jim@meyering.net>
77775
77776         Sync from coreutils.
77777
77778         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77779         failure on deficient systems, and simplify gnulib lgpl dependencies.
77780         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77781         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77782
77783         * lib/xalloc-die.c: Remove unused definition of N_.
77784
77785 2006-02-14  Jim Meyering  <jim@meyering.net>
77786
77787         Sync from coreutils.
77788         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77789         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77790         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77791         double-quote uses of that variable, to accommodate the rare case in
77792         which getmntent is available in none of the libraries checked.  This
77793         happens at least on FreeBSD 5.0.
77794
77795 2006-02-13  Simon Josefsson  <jas@extundo.com>
77796
77797         * gnulib-tool (Usage): Fix --import, from
77798         karl@freefriends.org (Karl Berry).
77799
77800 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77801
77802         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77803
77804 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77805
77806         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77807         "autoupdate" on 2005-12-12.
77808
77809 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77810
77811         * modules/closeout (Depends-on): Remove atexit.
77812
77813 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77814
77815         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77816         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77817
77818 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77819
77820         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77821         __EXTENSIONS__ if this causes compilation to fail.  Problem
77822         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77823         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77824
77825 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77826
77827         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77828         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77829         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77830         All uses changed.
77831
77832 2006-01-26  Simon Josefsson  <jas@extundo.com>
77833
77834         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77835         prototype is visible on mingw32.
77836
77837         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77838         for mingw32.
77839
77840         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77841         mingw32).
77842
77843 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77844
77845         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77846         attempt to open for write; this always fails, at least on POSIX
77847         hosts.  This reinstates the 2006-01-09 change, which was
77848         inadvertently removed.
77849
77850 2006-01-26  Bruno Haible  <bruno@clisp.org>
77851
77852         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77853         Reported by Paul Eggert.
77854
77855 2006-01-26  Bruno Haible  <bruno@clisp.org>
77856             Paul Eggert  <eggert@cs.ucla.edu>
77857
77858         * lib/stdbool_.h (_Bool)
77859         [(! (defined __cplusplus || defined __BEOS__)
77860           && !defined __GNUC__
77861           && !(defined __HP_cc || defined __xlc__
77862                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77863                || defined __sgi))]:
77864         #define to signed char in these cases too; this simplifies
77865         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77866         etc., separately) and makes it more conservative.
77867
77868 2006-01-25  Simon Josefsson  <jas@extundo.com>
77869
77870         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77871         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77872         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77873
77874 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77875
77876         * lib/argp-namefrob.h: Bugfix. Remove stray #
77877
77878 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77879
77880         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77881         so that we test the test.
77882         Check for yet another HP-UX cc bug involving *bool |= bool.
77883
77884 2006-01-25  Karl Berry  <karl@gnu.org>
77885
77886         * config/srclist.txt (vasnprintf.c): sync lost.
77887
77888 2006-01-25  Jim Meyering  <jim@meyering.net>
77889
77890         Sync from the stable (b5) branch of coreutils:
77891
77892         * lib/fts.c (fts_children): Don't let close() clobber errno from
77893         failed fchdir().
77894
77895         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77896         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77897         a dangling symlink.  That can also happen at least for ELOOP.
77898         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77899         FYI, this bug predates the inclusion of fts.c in coreutils.
77900
77901         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77902         in their own block, so pre-c99 compilers don't object.
77903
77904         Avoid the double-free (first in fts_read, second in fts_close) that
77905         would occur when an `active' directory is made inaccessible (e.g.,
77906         via chmod a-x) during a traversal.
77907         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77908         before returning.  Reproduce this failure by
77909         mkdir -p a/b; cd a; chmod a-x . b
77910         Reported by Stavros Passas.
77911
77912 2006-01-25  Jim Meyering  <jim@meyering.net>
77913
77914         * lib/fileblocks.c: Remove more useless parentheses.
77915         * lib/readutmp.h: Likewise.
77916
77917 2006-01-25  Bruno Haible  <bruno@clisp.org>
77918
77919         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77920         warnings.
77921         Reported by Paul Eggert.
77922
77923 2006-01-25  Bruno Haible  <bruno@clisp.org>
77924
77925         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77926         rid of a trap command. For Solaris sh.
77927         Reported by Mark D. Baushke <mdb@gnu.org>.
77928
77929 2006-01-24  Simon Josefsson  <jas@extundo.com>
77930
77931         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77932         Bruno.
77933
77934 2006-01-24  Karl Berry  <karl@gnu.org>
77935
77936         * config/srclist.txt (argp-namefrob.h): sync lost.
77937
77938 2006-01-24  Jim Meyering  <jim@meyering.net>
77939
77940         * modules/openat (Files): Add lib/intprops.h.
77941         From Mark D. Baushke.
77942
77943 2006-01-24  Jim Meyering  <jim@meyering.net>
77944
77945         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77946         Reported by Mark D. Baushke.
77947
77948 2006-01-24  Jim Meyering  <jim@meyering.net>
77949
77950         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77951
77952 2006-01-24  Bruno Haible  <bruno@clisp.org>
77953
77954         * modules/strnlen (Maintainer): Change from glibc to all.
77955
77956 2006-01-24  Bruno Haible  <bruno@clisp.org>
77957
77958         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77959         Patch by Paul Eggert.
77960
77961 2006-01-24  Bruno Haible  <bruno@clisp.org>
77962
77963         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77964         already has it.
77965         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77966         2005-11-26.
77967
77968         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77969         'signed char' to avoid problems with the built-in _Bool type.
77970         Reported by Paul Eggert on 2005-11-26.
77971
77972 2006-01-24  Bruno Haible  <bruno@clisp.org>
77973
77974         * gnulib-tool (func_import): Avoid constructing complicated sed
77975         expressions inside backquote.
77976         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77977
77978 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77979
77980         These changes imported from libc.
77981         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77982         test and two separate function calls.
77983         * lib/strndup.c (__strndup): Add libc_hidden_def.
77984
77985 2006-01-23  Simon Josefsson  <jas@extundo.com>
77986
77987         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77988         Remove the test_*_SOURCES variable: automake infers it by default.
77989         * modules/tls-tests: Likewise.
77990
77991 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77992
77993         Work around porting bugs reported by Dieter in
77994         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77995         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77996         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77997         Include "getopt.h" first, to check interface.
77998         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77999         !HAVE_DECL_GETENV.
78000         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78001         (__strndup): Revert to K&R-style function dfns, the glibc style.
78002         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78003         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78004         Include strnlen.h first, to get prototype properly.
78005         (strnlen): Renamed from __strnlen.
78006         Remove weak alias.
78007
78008 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78009
78010         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78011
78012 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78013
78014         * config/srclist.txt: Adjust to reflect glibc reorganization.
78015         This affects only comments.
78016
78017 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78018
78019          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78020          Reported by Bruce Korb <bkorb@gnu.org>.
78021
78022 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78023
78024         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78025         to pacify gcc -Wswitch-default.
78026
78027 2006-01-22  Bruno Haible  <bruno@clisp.org>
78028
78029         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78030         temporary buffer for sprintf, take into account the precision also
78031         for 'd', 'i', 'u', 'o', 'x', 'X'.
78032
78033 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78034
78035         * modules/argp-tests: New module
78036         * tests/test-argp.c: New file
78037         * tests/test-argp-2.sh: New file
78038
78039 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78040
78041         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78042         (__argp_base_name): Removed
78043         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78044         typo.
78045         (__argp_base_name): Provide macro definition or extern declaration
78046         depending on the configuration
78047
78048 2006-01-20  Simon Josefsson  <jas@extundo.com>
78049
78050         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78051
78052 2006-01-20  Simon Josefsson  <jas@extundo.com>
78053
78054         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78055
78056 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78057
78058         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78059         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78060         Suggested by Bruno Haible.
78061
78062 2006-01-20  Karl Berry  <karl@gnu.org>
78063
78064         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78065         until changes propagate, I guess.
78066
78067 2006-01-19  Simon Josefsson  <jas@extundo.com>
78068
78069         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78070
78071 2006-01-19  Simon Josefsson  <jas@extundo.com>
78072
78073         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78074
78075 2006-01-19  Simon Josefsson  <jas@extundo.com>
78076
78077         * gnulib-tool: Set check_PROGRAMS.
78078
78079         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78080         modules/des-tests, modules/gc-arcfour-tests,
78081         modules/gc-arctwo-tests, modules/gc-des-tests,
78082         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78083         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78084         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78085         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78086         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78087         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78088         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78089         test_*_SOURCES.
78090
78091 2006-01-18  Simon Josefsson  <jas@extundo.com>
78092
78093         * modules/socklen (Depends-on): Depend on sys_socket.
78094
78095 2006-01-18  Simon Josefsson  <jas@extundo.com>
78096
78097         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78098         modules/des-tests, modules/gc-arcfour-tests,
78099         modules/gc-arctwo-tests, modules/gc-des-tests,
78100         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78101         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78102         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78103         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78104         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78105         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78106         $(EXEEXT) to automake TESTS variable, for mingw32.
78107
78108 2006-01-17  Simon Josefsson  <jas@extundo.com>
78109
78110         * modules/socklen (Include): Need sys/socket.h.
78111
78112 2006-01-17  Bruno Haible  <bruno@clisp.org>
78113
78114         * modules/ssize_t (Include): Add <sys/types.h>.
78115
78116 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78117
78118         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78119         it's not portable and it doesn't work with cross-compiles.
78120         Problem reported by Bruno Haible.  Fix missing-$ typo in
78121         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78122         -zignore from being used with Sun's C compiler.
78123
78124 2006-01-12  Simon Josefsson  <jas@extundo.com>
78125
78126         * lib/base64.c: Fix warning, reported by Bruno Haible
78127         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78128
78129 2006-01-12  Bruno Haible  <bruno@clisp.org>
78130
78131         * modules/ldd: New file.
78132         * build-aux/ldd.sh.in: New file.
78133         * MODULES.html.sh (Support for building libraries and executables): Add
78134         ldd.
78135
78136 2006-01-12  Bruno Haible  <bruno@clisp.org>
78137
78138         * m4/ldd.m4: New file.
78139
78140 2006-01-12  Bruno Haible  <bruno@clisp.org>
78141
78142         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78143         endless loop while replacing $auxdir with build-aux.
78144
78145 2006-01-11  Simon Josefsson  <jas@extundo.com>
78146
78147         * lib/stdint_.h (SIZE_MAX): Add missing (.
78148
78149 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78150
78151         Sync from coreutils.
78152         * lib/md5.c: Fix commentary typos.
78153         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78154         * lib/md5.h (__attribute__): Remove; unused.
78155         * lib/sha1.c: Fix commentary to match md5 better.
78156         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78157         so that we don't need to worry about alignment.  All uses changed.
78158         This merges the 2005-10-28 md5 change into sha1.
78159
78160 2006-01-11  Jim Meyering  <jim@meyering.net>
78161
78162         Sync from coreutils.
78163         * lib/md5.c (OP): Fix spacing.
78164
78165 2006-01-11  Bruno Haible  <bruno@clisp.org>
78166
78167         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78168         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78169         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78170
78171 2006-01-11  Bruno Haible  <bruno@clisp.org>
78172
78173         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78174         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78175         the "early" section as well.
78176
78177 2006-01-11  Bruno Haible  <bruno@clisp.org>
78178
78179         Avoid "ar: no archive members specified" error on MacOS X.
78180         * gnulib-tool (func_modules_add_dummy): New function.
78181         (func_import, func_create_testdir): Invoke it.
78182
78183 2006-01-11  Bruno Haible  <bruno@clisp.org>
78184
78185         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78186         with $auxdir in AC_CONFIG_FILES statements.
78187
78188 2006-01-11  Bruno Haible  <bruno@clisp.org>
78189
78190         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78191         Initialize also noinst_HEADERS to empty.
78192
78193 2006-01-11  Bruno Haible  <bruno@clisp.org>
78194
78195         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78196         variables.
78197         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78198         autoreconf.
78199
78200 2006-01-11  Bruno Haible  <bruno@clisp.org>
78201
78202         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78203         overridable by the user.
78204         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78205
78206 2006-01-10  Simon Josefsson  <jas@extundo.com>
78207
78208         * modules/sys_socket: New file.
78209
78210 2006-01-10  Simon Josefsson  <jas@extundo.com>
78211
78212         * m4/sys_socket_h.m4: New file.
78213
78214 2006-01-10  Simon Josefsson  <jas@extundo.com>
78215
78216         * lib/socket_.h: New file.
78217
78218 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78219
78220         * modules/readutmp (Maintainer): Add myself.
78221
78222 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78223
78224         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78225         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78226         People who are still concerned with buggy memcmp implementations
78227         can invoke gl_FUNC_MEMCMP themselves.
78228
78229 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78230
78231         * lib/regex_internal.h (BITSET_WORD_BITS):
78232         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78233         preprocessor mishandles large unsigned values as if they were signed.
78234         Problem reported by Claudio Fontana in
78235         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78236
78237 2006-01-10  Jim Meyering  <jim@meyering.net>
78238
78239         Avoid the double-free (first in fts_read, second in fts_close) that
78240         would occur when an `active' directory is made inaccessible (e.g.,
78241         via chmod a-x) during a traversal.
78242         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78243         before returning.  Reproduce this failure by
78244         mkdir -p a/b; cd a; chmod a-x . b
78245         Reported by Stavros Passas.
78246
78247         Sync from coreutils.
78248         * lib/sha1.c: Tweak grammar in a comment.
78249
78250 2006-01-10  Jim Meyering  <jim@meyering.net>
78251
78252         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78253         Patch by Joerg Sonnenberger.
78254
78255 2006-01-10  Bruno Haible  <bruno@clisp.org>
78256
78257         * modules/readutmp: Depend on module free.
78258         * modules/strtok_r: Depend on module restrict.
78259
78260 2006-01-10  Bruno Haible  <bruno@clisp.org>
78261
78262         * modules/gettext (configure.ac): Add an invocation of
78263         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78264
78265 2006-01-10  Bruno Haible  <bruno@clisp.org>
78266
78267         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78268         Reported by Werner Lemberg <wl@gnu.org>.
78269
78270 2006-01-10  Bruno Haible  <bruno@clisp.org>
78271
78272         * lib/localcharset.c: Update from GNU gettext.
78273
78274 2006-01-10  Bruno Haible  <bruno@clisp.org>
78275
78276         * lib/argp.h (__const): Remove macro. Use const instead.
78277         * lib/argp-fmtstream.h (__const): Likewise.
78278         * lib/glob_.h (__const): Remove macro.
78279         * lib/glob-libc.h: Use const instead of __const.
78280
78281 2006-01-10  Bruno Haible  <bruno@clisp.org>
78282
78283         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78284         variable.
78285         Needed to avoid an automake error regarding the 'gettext' module.
78286
78287 2006-01-09  Simon Josefsson  <jas@extundo.com>
78288
78289         * modules/inet_ntop (Depends-on): Add restrict.
78290
78291 2006-01-09  Simon Josefsson  <jas@extundo.com>
78292
78293         * modules/gc-rijndael-tests (License): Put under LGPL.
78294
78295         * modules/gc-des-tests (License): Likewise.
78296
78297         * modules/gc-arcfour-tests (License): Likewise.
78298
78299         * modules/gc-arctwo-tests (License): Likewise.
78300
78301         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78302
78303         * modules/gc-hmac-sha1-tests (Files): Likewise.
78304
78305         * modules/gc-hmac-md5-tests (License): Likewise.
78306
78307         * modules/gc-sha1-tests (License): Likewise.
78308
78309         * modules/gc-md5-tests (License): Likewise.
78310
78311         * modules/gc-md4-tests (License): Likewise.
78312
78313         * modules/gc-md2-tests (License): Likewise.
78314
78315         * modules/gc-tests (License): Likewise.
78316
78317         * modules/des-tests (License): Likewise.
78318
78319         * modules/md4-tests (License): Likewise.
78320
78321         * modules/md2-tests (License): Likewise.
78322
78323 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78324
78325         Sync from coreutils:
78326
78327         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78328         * modules/lib-ignore: New file.
78329         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78330         chdir-safer.m4, lchmod.m4.
78331         * modules/openat: Add mkdirat.c, openat-priv.h.
78332
78333 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78334
78335         Sync from coreutils.
78336         * m4/lib-ignore.m4: New file.
78337         * m4/lchmod.m4: New file.
78338
78339 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78340
78341         Sync from coreutils.
78342         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78343         for write access: POSIX says that must fail.
78344         * lib/fts.c (diropen): Likewise.
78345         * lib/save-cwd.c (save_cwd): Likewise.
78346         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78347         well, for minor improvements on hosts that lack O_DIRECTORY.
78348         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78349         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78350         Fall back on chown if open failed with EACCES.
78351
78352         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78353         Report an error at compile-time if only a 1-second nominal clock
78354         resolution is found.
78355
78356         * lib/lchmod.h: New file.
78357         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78358         (make_dir_parents): Use lchown rather than chown, and
78359         lchmod rather than chmod.
78360
78361         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78362         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78363         "proc" reported by n0dalus.
78364
78365         * lib/mountlist.c: Include <limits.h>.
78366         (dev_from_mount_options)
78367         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78368         New function.  It no longer assumes "dev=" has the System V meaning
78369         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78370         (read_file_system_list)
78371         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78372         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78373         dev= in that case.
78374
78375         * lib/posixtm.h (PDS_PRE_2000): New macro.
78376         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78377         allow_century.  All usages changed.  Reject dates outside the range
78378         1969-1999 if PDS_PRE_2000 is used.
78379
78380 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78381
78382         Sync from coreutils.
78383         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78384         (Time of day items): Mention the possibility of leap seconds.
78385         Problem reported by Dr. David Alan Gilbert.
78386
78387 2006-01-09  Jim Meyering  <jim@meyering.net>
78388
78389         Sync from coreutils.
78390
78391         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78392
78393         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78394
78395         * lib/modechange.c (mode_compile): Reject an invalid mode string
78396         that starts with an octal digit.  From Andreas Gruenbacher.
78397
78398         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78399         and dup to open_safer and dup_safer, respectively.
78400         (openat_permissive): Fix typo in comment.
78401
78402         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78403         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78404         (_): Remove; no longer needed.
78405         (openat): Renamed from rpl_openat; no need for rpl_openat
78406         since openat.h renames openat for us.
78407         Replace most of the body with a call to openat_permissive,
78408         to avoid duplicate code.
78409         Port to (probably hypothetical) environments were mode_t is
78410         wider than int.
78411         (openat_permissive): Require mode arg, so that we can check
78412         types better.  Put it just after flags.  Change cwd failure
78413         indicator from pointer-to-bool to pointer-to-errno-value.
78414         All callers changed.
78415         Invoke openat_save_fail and/or openat_restore_fail if
78416         cwd_errno is null, so that openat can call us.
78417         (openat_permissive, fdopendir, fstatat, unlinkat):
78418         Simplify errno handling to avoid some duplicate code,
78419         as it's OK to set errno on success.
78420         * lib/openat.h: Revamp code so that function macros depend on
78421         __OPENAT_PREFIX only, not also on AT_FDCWD.
78422         (openat_ro): Remove.  Caller changed to use openat_permissive.
78423         (openat_permissive): Now a macro, if not a function.
78424         (openat_restore_fail, openat_save_fail): Now always functions,
78425         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78426
78427         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78428         and openat.c.
78429         * lib/mkdirat.c: Include openat-priv.h.
78430         Remove definitions of macros defined therein.
78431         * lib/openat.c: Likewise.
78432
78433         * lib/mkdirat.c (mkdirat): New file and function.
78434         * lib/openat.h (mkdirat): Declare.
78435
78436         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78437
78438         * lib/openat.h (openat_permissive): Declare.
78439         (openat_ro): Define.
78440
78441         * lib/openat.c (EXPECTED_ERRNO): New macro.
78442         (openat_permissive): New function -- used in remove.c rewrite.
78443         (all functions): Set errno just before returning, only if there
78444         was an actual failure.
78445         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78446
78447         Emulate openat-family functions using Linux's procfs, if possible.
78448         Idea and some code based on Ulrich Drepper's glibc changes.
78449
78450         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78451         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78452         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78453         before falling back on save_cwd and restore_cwd.
78454         (fdopendir, fstatat, unlinkat): Likewise.
78455
78456         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78457         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78458
78459         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78460         as second argument to va_arg.  Otherwise, some versions of gcc
78461         warn that `if this code is reached, the program will abort'.
78462
78463 2006-01-09  Jim Meyering  <jim@meyering.net>
78464
78465         Sync from coreutils.
78466         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78467         Require openat-priv.h.
78468
78469 2006-01-09  Bruno Haible  <bruno@clisp.org>
78470
78471         * modules/strnlen (Include): Use strnlen.h.
78472
78473 2006-01-09  Bruno Haible  <bruno@clisp.org>
78474
78475         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78476
78477 2006-01-09  Bruno Haible  <bruno@clisp.org>
78478
78479         * lib/sysexit_.h (EX_OK): New macro.
78480         Suggested by Martin Lambers <marlam@marlam.de>.
78481
78482 2006-01-09  Bruno Haible  <bruno@clisp.org>
78483
78484         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78485         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78486
78487 2006-01-09  Bruno Haible  <bruno@clisp.org>
78488
78489         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78490         numbers.
78491
78492 2006-01-09  Bruno Haible  <bruno@clisp.org>
78493
78494         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78495         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78496         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78497         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78498
78499 2006-01-09  Bruno Haible  <bruno@clisp.org>
78500
78501         * build-aux/javacomp.sh.in: New file, moved from lib/.
78502         * modules/javacomp-script (Files): Update.
78503         (configure.ac): Add AC_CONFIG_FILES invocation.
78504         (EXTRA_DIST): Remove variable.
78505
78506         * build-aux/javaexec.sh.in: New file, moved from lib/.
78507         * modules/javaexec (Files): Update.
78508         (configure.ac): Add AC_CONFIG_FILES invocation.
78509         (EXTRA_DIST): Remove javaexec.sh.in.
78510
78511         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78512         * modules/csharpcomp-script (Files): Update.
78513         (configure.ac): Add AC_CONFIG_FILES invocation.
78514         (EXTRA_DIST): Remove variable.
78515
78516         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78517         * modules/csharpexec (Files): Update.
78518         (configure.ac): Add AC_CONFIG_FILES invocation.
78519         (EXTRA_DIST): Remove csharpexec.sh.in.
78520
78521 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78522
78523         Sync from coreutils.
78524
78525         Add POSIX ACL support
78526         * lib/acl.h (copy_acl, set_acl): Add declarations.
78527         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78528         systems other than Linux.
78529         (chmod_or_fchmod): New function: use fchmod when possible,
78530         and chmod otherwise.
78531         (file_has_acl): Add a POSIX ACL implementation, with a
78532         Linux-specific subcase.
78533         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78534         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78535         acls are unsupported.
78536         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78537         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78538         are unsupported.
78539
78540 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78541
78542         Sync from coreutils.
78543         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78544
78545 2006-01-07  Bruno Haible  <bruno@clisp.org>
78546
78547         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78548         gl_EARLY.
78549
78550 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78553         Problem reported for Mingw by Mark Junker.
78554
78555 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78556
78557         * README: Gnulib normally doesn't generate a tarball.
78558
78559 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78560
78561         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78562         long int, not int, for nanosecond counts, so that people who are
78563         used to POSIX struct timespec won't be surprised.  Reported by Jim
78564         Meyering.
78565
78566 2005-12-28  Bruno Haible  <bruno@clisp.org>
78567
78568         * build-aux/config.rpath: Update from GNU gettext.
78569
78570 2005-12-16  Jim Meyering  <jim@meyering.net>
78571
78572         * modules/fprintftime: New module.
78573         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78574
78575 2005-12-16  Jim Meyering  <jim@meyering.net>
78576
78577         * m4/fprintftime.m4: New file.
78578
78579 2005-12-16  Jim Meyering  <jim@meyering.net>
78580
78581         * lib/fprintftime.c, lib/fprintftime.h: New files.
78582
78583 2005-12-15  Simon Josefsson  <jas@extundo.com>
78584
78585         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78586         new m4/socklen.m4.
78587
78588 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78589
78590         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78591         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78592
78593 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78594
78595         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78596         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78597         struct uparams is valid. Fall back to the default values if it is
78598         not.
78599
78600 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78601
78602         * modules/argp (Files): Add argp-pin.c
78603         (Depends-on): dirname
78604         (lib_SOURCES): Add argp-pin.c
78605
78606 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78607
78608         * m4/argp.m4:  Check if program_invocation_name and
78609         program_invocation_short_name are declared and define appropriate
78610         macros if they are not.
78611
78612 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78613
78614         * lib/argp-help.c (__argp_base_name): New function
78615         (__argp_short_program_name): Rewrite using __argp_base_name
78616         * lib/argp-namefrob.h: Define program_invocation_name and
78617         program_invocation_short_name if requested
78618         (__argp_base_name): Add prototype
78619         * lib/argp-parse.c (argp_def): Use gettext wrappers
78620         (argp_default_parser): Use __argp_base_name
78621         * lib/argp-pin.c: New file. Defines program_invocation_name and
78622         program_invocation_short_name on systems that lack them.
78623
78624 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78625
78626         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78627         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78628         porting problem reported by Georg Schwarz in
78629         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78630
78631 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78632
78633         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78634         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78635         porting problem reported by Georg Schwarz in
78636         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78637
78638 2005-12-05  Bruno Haible  <bruno@clisp.org>
78639
78640         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78641         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78642         Reported by Mark Junker <mjscod@gmx.de>.
78643
78644 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78645
78646         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78647         Use implementation from Albert Chin, with some
78648         comments/corrections by Stepan Kasal and myself.
78649
78650 2005-12-02  Bruno Haible  <bruno@clisp.org>
78651
78652         * gnulib-tool (func_import): Accept GPLed build tool modules when
78653         --lgpl is given.
78654         * modules/csharpcomp-script: New file.
78655         * modules/csharpcomp: Depend on it.
78656         * modules/javacomp-script: New file.
78657         * modules/javacomp: Depend on it.
78658         Suggested by Simon Josefsson.
78659
78660 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78663         statement, to work around an HP-UX 10.20 compiler bug reported by
78664         Peter O'Gorman.
78665
78666 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78667
78668         * modules/savedir (Depends-on): Add openat.
78669
78670 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78671
78672         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78673         (uintmax_t) [defined uintmax_t]: Do not declare.
78674         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78675         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78676         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78677         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78678         sake of portability to weird hosts that C allows (though we don't
78679         know of any practical examples).
78680
78681         * lib/savedir.h (fdsavedir): New decl.
78682         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78683         contains most of the former guts of savedir.
78684         (savedir): Use savedirstream.
78685         Include "openat.h".
78686
78687 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78688
78689         * modules/obstack (Files): Add m4/ulonglong.m4.
78690         Problem reported by Davide Angelocola.
78691
78692 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78695         coreutils no longer futzes with rounding modes.
78696
78697 2005-11-14  Jim Meyering  <jim@meyering.net>
78698
78699         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78700         replacement of mkstemp.
78701
78702 2005-11-10  Simon Josefsson  <jas@extundo.com>
78703
78704         * lib/readline.c: Remove EOL.
78705
78706 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78707
78708         * modules/gethrxtime (Depends-on): Add gettime.
78709
78710 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78711
78712         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78713         or gettimeofday; no longer needed.
78714
78715 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78716
78717         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78718         time business.
78719         (gethrxtime) [! (HAVE_NANOUPTIME
78720         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78721         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78722         our own approximation.
78723
78724 2005-11-08  Eric Blake  <ebb9@byu.net>
78725
78726         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78727
78728 2005-11-08  Eric Blake  <ebb9@byu.net>
78729
78730         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78731
78732 2005-11-04  Bruno Haible  <bruno@clisp.org>
78733
78734         * gnulib-tool: Implement --update mode.
78735
78736 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78737
78738         Fix porting problem reported by Theodoros V. Kalamatianos.
78739         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78740         Don't assume that futimes failing means we must fail.
78741
78742 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78743
78744         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78745         variables to suggest the intended function of the PATH_MAX check.
78746
78747 2005-10-30  Kean Johnston  <jkj@sco.com>
78748
78749         Trivial changes to support SCO systems.
78750         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78751         as PATH_MAX.
78752         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78753         where __ptr is null when no I/O is pending.
78754
78755 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78756
78757         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78758         leave errno alone.  Problem reported by Dmitry V. Levin.
78759
78760 2005-10-28  Simon Josefsson  <jas@extundo.com>
78761
78762         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78763         Test more.
78764
78765         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78766
78767         * modules/md2, modules/md2-tests: New files.
78768
78769 2005-10-28  Simon Josefsson  <jas@extundo.com>
78770
78771         * m4/inet_ntop.m4: More tests.
78772
78773         * m4/gc-md2.m4, md2.m4: New file.
78774
78775 2005-10-28  Simon Josefsson  <jas@extundo.com>
78776
78777         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78778         "restrict" keywords, as per POSIX.  Protect the function
78779         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78780         Don't use K&R prototypes.  Check the sprintf return values.
78781         Re-define EAFNOSUPPORT if not present.  Indent.
78782
78783         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78784         suggested by Bruno Haible <bruno@clisp.org>.
78785
78786         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78787
78788         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78789
78790         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78791         libgcrypt).
78792
78793         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78794
78795         * lib/md2.h, lib/md2.c: New files.
78796
78797 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78800         errno alone.  Problem reported by Frederic Jolliton.
78801
78802 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78803
78804         * modules/verify (License): Change from GPL to LGPL.  This is a
78805         tiny module and there are apparently near-equivalents that are
78806         under the BSD license.
78807
78808 2005-10-24  Simon Josefsson  <jas@extundo.com>
78809
78810         * modules/sha1: Relicense to LGPL.
78811
78812 2005-10-24  Simon Josefsson  <jas@extundo.com>
78813
78814         * lib/md4.h: Shrink buffer size, now that we changed the type.
78815
78816 2005-10-23  Simon Josefsson  <jas@extundo.com>
78817
78818         * gnulib-tool (func_import): Fix --tests-base.
78819
78820 2005-10-22  Simon Josefsson  <jas@extundo.com>
78821
78822         * modules/arcfour (Depends-on): Need stdint.
78823
78824 2005-10-22  Simon Josefsson  <jas@extundo.com>
78825
78826         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78827         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78828
78829 2005-10-22  Simon Josefsson  <jas@extundo.com>
78830
78831         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78832         suggested by Bruno Haible <bruno@clisp.org>.
78833
78834 2005-10-22  Simon Josefsson  <jas@extundo.com>
78835
78836         * lib/crc.h: Include stddef.h, for size_t.
78837
78838 2005-10-22  Simon Josefsson  <jas@extundo.com>
78839
78840         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78841         arcfour_context struct (simplify test vector testing in GNU
78842         Shishi).
78843
78844 2005-10-21  Simon Josefsson  <jas@extundo.com>
78845
78846         * modules/des, modules/des-tests: New files.
78847
78848         * modules/gc-des, modules/gc-des-tests: New files.
78849
78850         * tests/test-des.c, tests/test-gc-des.c: New file.
78851
78852 2005-10-21  Simon Josefsson  <jas@extundo.com>
78853
78854         * modules/arctwo, modules/arctwo-tests: New files.
78855
78856         * tests/test-arctwo.c: New file.
78857
78858         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78859
78860         * tests/test-gc-arctwo.c: New file.
78861
78862 2005-10-21  Simon Josefsson  <jas@extundo.com>
78863
78864         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78865         Bruno Haible <bruno@clisp.org>.
78866
78867         * m4/gc-des.m4: New file.
78868
78869 2005-10-21  Simon Josefsson  <jas@extundo.com>
78870
78871         * m4/arctwo.m4: New file.
78872
78873         * m4/gc-arctwo.m4: New file.
78874
78875 2005-10-21  Simon Josefsson  <jas@extundo.com>
78876
78877         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78878         block.
78879
78880 2005-10-21  Simon Josefsson  <jas@extundo.com>
78881
78882         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78883         <bruno@clisp.org>.
78884
78885         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78886
78887         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78888         Bruno Haible <bruno@clisp.org>.
78889
78890         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78891         <bruno@clisp.org>.
78892
78893 2005-10-21  Simon Josefsson  <jas@extundo.com>
78894
78895         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78896
78897 2005-10-21  Simon Josefsson  <jas@extundo.com>
78898
78899         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78900
78901 2005-10-21  Simon Josefsson  <jas@extundo.com>
78902
78903         * lib/des.h, lib/des.c: New files.
78904
78905         * lib/gc-gnulib.c: Support DES.c
78906
78907 2005-10-21  Simon Josefsson  <jas@extundo.com>
78908
78909         * lib/arctwo.h, lib/arctwo.c: New files.
78910
78911         * lib/gc-gnulib.c: Support ARCTWO.
78912
78913 2005-10-21  Simon Josefsson  <jas@extundo.com>
78914
78915         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78916         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78917
78918 2005-10-21  Simon Josefsson  <jas@extundo.com>
78919
78920         * gnulib-tool (func_import, func_create_testdir): Define automake
78921         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78922         Makefile.am snippet),
78923         suggested by Bruno Haible <bruno@clisp.org>.
78924
78925         * modules/gc (Makefile.am): Use it.
78926
78927 2005-10-21  Bruno Haible  <bruno@clisp.org>
78928
78929         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78930         patch.
78931
78932 2005-10-19  Simon Josefsson  <jas@extundo.com>
78933
78934         * tests/test-gc-rijndael.c: New file.
78935
78936         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78937
78938 2005-10-19  Simon Josefsson  <jas@extundo.com>
78939
78940         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78941         interface too.
78942
78943 2005-10-19  Simon Josefsson  <jas@extundo.com>
78944
78945         * tests/test-gc-arcfour.c: New file.
78946
78947         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78948
78949 2005-10-19  Simon Josefsson  <jas@extundo.com>
78950
78951         * modules/gc-md4, modules/gc-md4-tests: New file.
78952
78953         * tests/test-gc-md4.c: New file.
78954
78955 2005-10-19  Simon Josefsson  <jas@extundo.com>
78956
78957         * m4/gc-md4.m4: New file.
78958
78959 2005-10-19  Simon Josefsson  <jas@extundo.com>
78960
78961         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78962         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78963         <kasal@ucw.cz>.
78964
78965 2005-10-19  Simon Josefsson  <jas@extundo.com>
78966
78967         * m4/gc-arcfour.m4: New file.
78968
78969         * m4/gc-rijndael.m4: New file.
78970
78971 2005-10-19  Simon Josefsson  <jas@extundo.com>
78972
78973         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78974
78975 2005-10-19  Simon Josefsson  <jas@extundo.com>
78976
78977         * lib/gc-gnulib.c: Support ARCFOUR.
78978
78979 2005-10-19  Simon Josefsson  <jas@extundo.com>
78980
78981         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78982         support.
78983
78984         * lib/gc.h: Add ECB enum type.
78985
78986         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78987
78988 2005-10-18  Simon Josefsson  <jas@extundo.com>
78989
78990         * tests/test-md5.c: New file.
78991
78992         * modules/md5-tests: New file.
78993
78994 2005-10-18  Simon Josefsson  <jas@extundo.com>
78995
78996         * tests/test-md4.c: New file.
78997
78998         * modules/md4, modules/md4-tests: New files.
78999
79000 2005-10-18  Simon Josefsson  <jas@extundo.com>
79001
79002         * m4/md4.m4: New file.
79003
79004 2005-10-18  Simon Josefsson  <jas@extundo.com>
79005
79006         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79007
79008 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79009
79010         * gnulib-tool (func_create_testdir): Omit the second check whether
79011         BUILT_SOURCES in nonempty.
79012
79013 2005-10-17  Simon Josefsson  <jas@extundo.com>
79014
79015         * tests/test-rijndael.c: New file.
79016
79017 2005-10-17  Simon Josefsson  <jas@extundo.com>
79018
79019         * modules/sha1: Depend on stdint instead of md5.
79020
79021         * modules/md5: Depend on stdint, remove uint32_t.
79022
79023 2005-10-17  Simon Josefsson  <jas@extundo.com>
79024
79025         * modules/gc-sha1-tests: New file.
79026
79027         * tests/test-gc-sha1.c: New file.
79028
79029 2005-10-17  Simon Josefsson  <jas@extundo.com>
79030
79031         * m4/md5.m4: Remove call to uint32_t.m4.
79032
79033 2005-10-17  Simon Josefsson  <jas@extundo.com>
79034
79035         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79036
79037         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79038         md5.h.
79039
79040         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79041
79042         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79043
79044 2005-10-17  Simon Josefsson  <jas@extundo.com>
79045
79046         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79047
79048 2005-10-17  Simon Josefsson  <jas@extundo.com>
79049
79050         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79051
79052 2005-10-17  Simon Josefsson  <jas@extundo.com>
79053
79054         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79055
79056         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79057
79058 2005-10-17  Bruno Haible  <bruno@clisp.org>
79059
79060         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79061         that it can also be used in a test.
79062
79063 2005-10-16  Bruno Haible  <bruno@clisp.org>
79064
79065         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79066         TESTS_ENVIRONMENT, so that individual tests can augment it.
79067
79068         * gnulib-tool (func_create_testdir): Use an intermediate target for
79069         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79070         macros, like $(ALLOCA_H), which cannot be passed through the command
79071         line.
79072
79073 2005-10-15  Simon Josefsson  <jas@extundo.com>
79074
79075         * modules/rijndael-tests: New file.
79076
79077         * modules/rijndael: New file.
79078
79079 2005-10-15  Simon Josefsson  <jas@extundo.com>
79080
79081         * m4/rijndael.m4: New file.
79082
79083 2005-10-15  Simon Josefsson  <jas@extundo.com>
79084
79085         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79086
79087         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79088
79089 2005-10-14  Simon Josefsson  <jas@extundo.com>
79090
79091         * tests/test-arcfour.c: New file.
79092
79093         * modules/arcfour, modules/arcfour-tests: New files.
79094
79095 2005-10-14  Simon Josefsson  <jas@extundo.com>
79096
79097         * m4/arcfour.m4: New file.
79098
79099 2005-10-14  Simon Josefsson  <jas@extundo.com>
79100
79101         * lib/arcfour.h, lib/arcfour.c: New files.
79102
79103 2005-10-14  Roland McGrath  <roland@redhat.com>
79104
79105         Import from libc.  [BZ #1331]
79106         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79107         macro argument.
79108         Reported by Matej Vela <vela@debian.org>.
79109
79110 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79111
79112         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79113         include <wchar.h>; no longer needed.
79114
79115 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79116
79117         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79118
79119 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79120         and  Ulrich Drepper  <drepper@redhat.com>
79121
79122         Import from libc.
79123         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79124         instead of inline stream orientation test and two separate
79125         function calls.  Pay no attention to USE_IN_LIBIO.
79126
79127 2005-10-13  Simon Josefsson  <jas@extundo.com>
79128
79129         * modules/gc-hmac-md5-tests: New file.
79130
79131         * tests/test-gc-hmac-sha1.c: New file.
79132
79133         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79134
79135         * modules/gc-hmac-md5-tests: New file.
79136
79137         * tests/test-gc-md5.c: New file.
79138
79139         * modules/gc-md5-tests: New file.
79140
79141 2005-10-13  Simon Josefsson  <jas@extundo.com>
79142
79143         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79144         Move memory allocation outside of loop.
79145
79146 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79147
79148         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79149         intermediate directory is in a read-only file system.  Problem
79150         reported by Eric Blake.
79151
79152 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79153
79154         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79155
79156 2005-10-12  Simon Josefsson  <jas@extundo.com>
79157
79158         * tests/test-hmac-sha1.c: New file.
79159
79160         * modules/hmac-sha1-tests: New file.
79161
79162         * modules/hmac-sha1: New file.
79163
79164 2005-10-12  Simon Josefsson  <jas@extundo.com>
79165
79166         * modules/gc-sha1: New file.
79167
79168 2005-10-12  Simon Josefsson  <jas@extundo.com>
79169
79170         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79171
79172         * tests/test-gc-pbkdf2-sha1.c: New file.
79173
79174 2005-10-12  Simon Josefsson  <jas@extundo.com>
79175
79176         * modules/gc-md5, modules/gc-hmac-md5: New files.
79177
79178         * modules/gc (Files): Remove md5, memxor and hmac files.
79179
79180 2005-10-12  Simon Josefsson  <jas@extundo.com>
79181
79182         * m4/gc-pbkdf2-sha1.m4: New file.
79183
79184         * m4/gc-hmac-sha1.m4: New file.
79185
79186         * m4/gc-sha1: New file.
79187
79188         * m4/hmac-sha1.m4: New file.
79189
79190 2005-10-12  Simon Josefsson  <jas@extundo.com>
79191
79192         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79193
79194         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79195
79196 2005-10-12  Simon Josefsson  <jas@extundo.com>
79197
79198         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79199         suggested by Bruno Haible <bruno@clisp.org>.
79200
79201 2005-10-12  Simon Josefsson  <jas@extundo.com>
79202
79203         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79204
79205 2005-10-12  Simon Josefsson  <jas@extundo.com>
79206
79207         * lib/gc-pbkdf2-sha1.c: New file.
79208
79209         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79210
79211 2005-10-12  Simon Josefsson  <jas@extundo.com>
79212
79213         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79214
79215         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79216
79217 2005-10-12  Simon Josefsson  <jas@extundo.com>
79218
79219         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79220         GC_USE_HMAC_MD5, respectively.
79221
79222         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79223         (gc_md5): Fix typo.
79224
79225         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79226
79227         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79228
79229         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79230
79231 2005-10-12  Bruno Haible  <bruno@clisp.org>
79232
79233         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79234         Reported by Stepan Kasal <kasal@ucw.cz>.
79235
79236 2005-10-11  Simon Josefsson  <jas@extundo.com>
79237
79238         * tests/test-crc.c: New file.
79239
79240         * modules/crc, modules/crc-tests: New files.
79241
79242 2005-10-11  Simon Josefsson  <jas@extundo.com>
79243
79244         * m4/crc.m4: New file.
79245
79246 2005-10-11  Simon Josefsson  <jas@extundo.com>
79247
79248         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79249
79250         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79251
79252         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79253
79254 2005-10-11  Simon Josefsson  <jas@extundo.com>
79255
79256         * lib/crc.h, lib/crc.c: New files.
79257
79258         * lib/gc.h (gc_hash_buffer): Add doc.
79259
79260 2005-10-11  Bruno Haible  <bruno@clisp.org>
79261
79262         * modules/c-strcasestr: New file.
79263         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79264
79265 2005-10-11  Bruno Haible  <bruno@clisp.org>
79266
79267         * modules/c-strcase: New file.
79268         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79269
79270 2005-10-11  Bruno Haible  <bruno@clisp.org>
79271
79272         * lib/strcasecmp.c: Include limits.h.
79273         (strcasecmp): Avoid integer overflow on exotic platforms.
79274         * lib/strncasecmp.c: Include limits.h.
79275         (strncasecmp): Avoid integer overflow on exotic platforms.
79276         Reported by Paul Eggert.
79277
79278 2005-10-11  Bruno Haible  <bruno@clisp.org>
79279
79280         * lib/c-strcasestr.h: New file, from GNU gettext.
79281         * lib/c-strcasestr.c: New file, from GNU gettext.
79282
79283 2005-10-11  Bruno Haible  <bruno@clisp.org>
79284
79285         * lib/c-strcase.h: New file, from GNU gettext.
79286         * lib/c-strcasecmp.c: New file, from GNU gettext.
79287         * lib/c-strncasecmp.c: New file, from GNU gettext.
79288
79289 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79290
79291         * modules/mempcpy (License): GPL -> LGPL.
79292         * modules/strchrnul (License): Likewise.
79293         * modules/sysexits (License): Likewise.
79294
79295 2005-10-08  Simon Josefsson  <jas@extundo.com>
79296
79297         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79298
79299 2005-10-07  Simon Josefsson  <jas@extundo.com>
79300
79301         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79302
79303 2005-10-06  Simon Josefsson  <jas@extundo.com>
79304
79305         * tests/test-hmac-md5.c: New file.
79306
79307         * modules/hmac-md5-tests: New file.
79308
79309         * modules/hmac-md5: New file.
79310
79311 2005-10-06  Simon Josefsson  <jas@extundo.com>
79312
79313         * m4/hmac-md5.m4: New file.
79314
79315         * m4/memxor.m4: Require gl_C_RESTRICT.
79316
79317 2005-10-06  Simon Josefsson  <jas@extundo.com>
79318
79319         * lib/memxor.c (memxor): Avoid casts and warnings.
79320
79321 2005-10-06  Simon Josefsson  <jas@extundo.com>
79322
79323         * lib/hmac-md5.c: New file.
79324
79325         * lib/hmac.h: New file.
79326
79327 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79328
79329         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79330         promotes to int, not unsigned int, to catch the AIX 5.3
79331         compiler bug.
79332
79333 2005-10-05  Simon Josefsson  <jas@extundo.com>
79334
79335         * modules/memxor: New file.
79336
79337         * modules/iconv (Files): Move config.rpath to havelib, it is used
79338         there.
79339
79340         * modules/havelib (Files): Add config.rpath.
79341
79342 2005-10-05  Simon Josefsson  <jas@extundo.com>
79343
79344         * m4/memxor.m4: New file.
79345
79346 2005-10-05  Simon Josefsson  <jas@extundo.com>
79347
79348         * lib/memxor.c (memxor): Fix compiler error.
79349
79350         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79351         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79352
79353         * lib/memxor.h, lib/memxor.c: New files.
79354
79355         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79356         we assume all systems have it, suggested by Jim Meyering
79357         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79358         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79359         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79360         same reasons.
79361
79362 2005-10-05  Simon Josefsson  <jas@extundo.com>
79363
79364         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79365
79366 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79367
79368         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79369         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79370         needed, since the source code now assumes these .h files.
79371
79372 2005-10-05  Derek Price  <derek@ximbiot.com>
79373
79374         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79375
79376 2005-10-05  Bruno Haible  <bruno@clisp.org>
79377
79378         * modules/stdint (License): Change to LGPL.
79379
79380 2005-10-04  Simon Josefsson  <jas@extundo.com>
79381
79382         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79383         D. Baushke" <mdb@gnu.org>.
79384
79385 2005-10-04  Bruno Haible  <bruno@clisp.org>
79386
79387         * lib/verify.h (verify_true): Provide alternative definition for C++.
79388
79389 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79392         (SSIZE_MAX): New macro, if not already defined.
79393         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79394         than 2 GiB.
79395
79396 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79397
79398         Sync from coreutils.
79399         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79400         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79401         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79402         ULLONG_MAX doesn't work with 2.7.2.1.
79403
79404 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79405
79406         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79407         From Ben Pfaff.
79408
79409         * modules/exclude (Depends-on): Depend on verify.
79410         * modules/strtoimax (Depends-on): Likewise.
79411         * modules/utimecmp (Depends-on): Likewise.
79412
79413 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79414
79415         * lib/exclude.c: Include verify.h.
79416         (verify): Remove.  All callers changed to use verify.h's version.
79417         * lib/strtoimax.c: Likewise.
79418         * lib/utimecmp.c: Likewis.e
79419
79420         Sync from coreutils.
79421         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79422         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79423         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79424         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79425         bother returning ENOSYS if settimeofday or stime fails; just let
79426         them return whatever errno they want to return.
79427         * lib/utimens.c: Include unistd.h, for dup2.
79428         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79429         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79430
79431 2005-10-02  Jim Meyering  <jim@meyering.net>
79432
79433         Sync from coreutils.
79434         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79435         from glibc-2.2.5 that fails for read-only files.
79436
79437 2005-10-02  Jim Meyering  <jim@meyering.net>
79438
79439         Sync from coreutils.
79440         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79441         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79442         `#if HAVE_CONFIG_H'.
79443         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79444         Remove AT_FDCWD test.
79445         Do not consume the fd unless successful.
79446         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79447         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79448         block, so that we don't even try to compile it if settimeofday is
79449         available.  This works around a compilation failure on OSF1 V5.1,
79450         due to stime requiring a `long int*' while tv_sec is `int'.
79451
79452 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79453
79454         Sync from coreutils.
79455         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79456         against `yes', rather than just testing for nonempty.
79457
79458 2005-10-01  Simon Josefsson  <jas@extundo.com>
79459
79460         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79461         and Darwin.
79462
79463         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79464         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79465         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79466         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79467         Check if struct addrinfo is declared.
79468
79469 2005-10-01  Simon Josefsson  <jas@extundo.com>
79470
79471         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79472         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79473         AI_* and EAI_* definitions.  Protect function declarations.
79474
79475 2005-10-01  Jim Meyering  <jim@meyering.net>
79476
79477         Sync from coreutils.
79478
79479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79480         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79481         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79482         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79483         in the inet and nsl libraries.  Required on Solaris 5.7.
79484
79485 2005-10-01  Jim Meyering  <jim@meyering.net>
79486
79487         Sync from coreutils.
79488         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79489         in the inet and nsl libraries.  Required on Solaris 5.7.
79490
79491 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79492
79493         * lib/getdelim.c (getdelim): Remove unused variables.
79494
79495 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79496
79497         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79498         so that the code works even with ancient cpp.  Portability problem
79499         with GCC 2.7.2.1 reported by Thomas M.Ott.
79500
79501 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79502
79503         * modules/regex (Depends-on): Add strcase.
79504
79505         * modules/gethostname (Licence): Change from GPL to LGPL, since
79506         gethostname.c is a trivial implementation of a standard library
79507         function.
79508         * modules/poll (License): Change from GPL to LGPL, since it's
79509         derived from LGPL code.
79510
79511 2005-09-27  Jim Meyering  <jim@meyering.net>
79512
79513         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79514         HAVE_CONFIG_H.
79515
79516         * lib/intprops.h (signed_type_or_expr__): Define.
79517         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79518         for unsigned types.
79519
79520 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79521
79522         * lib/verify.h (verify_expr): Remove, replacing with:
79523         (verify_true): New macro that returns true instead of void.
79524         (verify_type__): Remove.
79525         (verify): Use verify_true rather than verify_type__.
79526
79527 2005-09-26  Bruno Haible  <bruno@clisp.org>
79528
79529         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79530         is necessary.
79531         (lib_SOURCES): Remove mbchar.c.
79532         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79533         (Files): Add m4/mbrtowc.m4.
79534         * modules/mbiter: Likewise.
79535         * modules/mbuiter: Likewise.
79536
79537 2005-09-26  Bruno Haible  <bruno@clisp.org>
79538
79539         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79540         compile mbchar.c if they are not both present.
79541         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79542         * m4/mbiter.m4 (gl_MBITER): Likewise.
79543         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79544         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79545         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79546
79547 2005-09-25  Jim Meyering  <jim@meyering.net>
79548
79549         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79550         also uses socklen_t.
79551
79552 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79553
79554         * lib/utimens.c (ENOSYS): Define if not already defined.
79555         (futimens): Support having a null PATH if the file descriptor
79556         is nonnegative.
79557
79558         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79559         Remove.
79560         (__attribute): Define to empty unless GCC 3.1 or later.
79561         This works around a core dump on OpenBSD 3.4, which has GCC
79562         2.95.3, which dumps core when given __attribute__(()).  It also
79563         simplifies other tests, since we really don't want to bother with
79564         worrying about which ancient version of GCC supported what.
79565         Original problem reported by Yoann Vandoorselaere, with part of
79566         the fix suggested by Derek Price.
79567
79568 2005-09-24  Jim Meyering  <jim@meyering.net>
79569
79570         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79571         so we can once again use a positive bitfield width of 1 -- now we
79572         don't have to explain why we were using a bitfield width of 2.
79573
79574 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79575
79576         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79577         and similarly for the other external symbols.  Problem reported
79578         by James Gallager.
79579
79580         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79581         bug reported by Jim Meyering.
79582
79583         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79584         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79585         not needed, since socklen is a prerequisite module.
79586
79587 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79588
79589         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79590         Problem reported by Eric Blake.
79591         (getaddrinfo): Initialize se so that it's not garbage.
79592         Redo internal storage allocation so that it doesn't make unportable
79593         assumptions about alignment.
79594         Fix a memory leak.
79595
79596         * lib/utimens.c (futimens): Use futimesat if available.
79597         Prefer it to futimes since it doesn't have the futimes bug.
79598
79599         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79600         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79601         Instead, declare a function that returns a pointer to an array,
79602         and use verify_type__ to declare the size of the array.
79603         Problem and germ of a solution reported by Bruno Haible.
79604         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79605         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79606
79607 2005-09-23  Jim Meyering  <jim@meyering.net>
79608
79609         Sync from coreutils.
79610         Correct build failure (socklen_t not defined) on at least
79611         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79612         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79613
79614 2005-09-23  Jim Meyering  <jim@meyering.net>
79615
79616         * modules/getaddrinfo (Depends-on): Add socklen.
79617
79618 2005-09-23  Bruno Haible  <bruno@clisp.org>
79619
79620         * tests/test-verify.c: New file.
79621
79622 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79623
79624         Sync from coreutils.
79625
79626         * modules/argmatch (Depends-on): Add verify.
79627         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79628         unistd-safer.
79629         * modules/save-cwd (Depends-on): Likewise.
79630
79631         * modules/openat (Files): Add lib/openat-die.c.
79632         (Depends-on): Remove error, exitfail.
79633         Add dirname.
79634
79635         * modules/verify: New file.
79636         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79637         with "verify" module.
79638
79639 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79640
79641         Sync from coreutils.
79642
79643         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79644         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79645         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79646         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79647         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79648         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79649         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79650         Don't bother checking for string.h, stdlib.h, unistd.h.
79651         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79652         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79653         module's job.
79654         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79655         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79656
79657         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79658         (gl_GETDATE): Use it.
79659
79660         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79661
79662 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79663
79664         Sync from coreutils.
79665
79666         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79667         stat-time.h.
79668         * lib/argmatch.h: Include verify.h
79669         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79670         (ARGMATCH_ASSERT): Remove; unused.
79671         * lib/canonicalize.c: Assume STDC_HEADERS.
79672         * lib/exclude.c: Include "strcase.h".
79673         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79674         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79675         and stdio-safer.h.
79676         (getusershell): Call fopen, not fopen_safer.
79677         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79678         Do not include unistd-safer.h.
79679         (save_cwd): Don't call fd_safer; no longer needed
79680         now that we include fcntl--.h.
79681
79682         * lib/getdate.y (relative_time): New type.
79683         (RELATIVE_TIME_0): New constant.
79684         (parser_control): Use relative_time instead of doing it ourselves.
79685         (%union): Add new relative_time rel member.
79686         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79687         Now typeless.
79688         (relunit, relunit_snumber): Now of type rel.
79689         (zone, rel, relunit, get_date): Adjust to above changes.
79690
79691         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79692         Do not include unistd-safer.h.
79693         (getloadavg): Don't call fd_safer; no longer needed
79694         now that we include fcntl--.h.
79695
79696         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79697         (make_dir_parents): Treat ENOSYS like EEXIST.
79698
79699         Improve quality of diagnostics on restore_cwd failure.
79700         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79701         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79702         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79703         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79704         each time through the loop.  Do not diagnose restore_cwd failure;
79705         that is the caller's job (and perhaps the caller does not care).
79706
79707         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79708         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79709         If the file already exists but is not a directory, don't bother
79710         to try to make its parents.
79711         Close potential file descriptor leak if we can't chdir("/") (!).
79712         Don't always return true if chdir($PWD) fails; return true only
79713         if the requested action was done successfully (except for the
79714         chdir($PWD)).
79715         Don't log final directory unless we actually made it.
79716         Refactor to avoid duplicate code to fix up permissions.
79717         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79718
79719         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79720         to make it a bit faster and (I hope) clearer.
79721         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79722         Fix bug in formats like %2N.
79723
79724         * lib/verify.h: New file.
79725
79726 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         Sync from coreutils.
79729         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79730
79731 2005-09-22  Jim Meyering  <jim@meyering.net>
79732
79733         Sync from coreutils.
79734
79735         * m4/lstat.m4 (gl_FUNC_LSTAT):
79736         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79737         Remove obsolete comment.
79738         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79739         * m4/xstrtod.m4: Likewise.
79740
79741         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79742
79743 2005-09-22  Jim Meyering  <jim@meyering.net>
79744
79745         Sync from coreutils.
79746
79747         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79748
79749         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79750         the .tm_year member, since otherwise gcc-4.0 would now warn about
79751         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79752
79753         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79754         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79755
79756         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79757         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79758         when run in a time zone for which daylight savings time is in effect
79759         for the starting date.
79760
79761         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79762         stop us from restricting permissions of just-created absolute-named
79763         directories.
79764         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79765         to restore initial working directory.
79766         * lib/mkdir-p.c (make_dir_parents): New parameter:
79767         different_working_dir, to tell caller if/when we change the working
79768         directory and are unable to return to the initial one.
79769         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79770         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79771         `return false'.  This fixes a bug introduced on 2004-07-30.
79772
79773         * lib/openat.c (fdopendir): Be sure to close the supplied
79774         file descriptor before returning.  This makes our replacement
79775         implementation a little closer to Solaris's, where fdopendir
79776         ties the file descriptor to the returned DIR* pointer.
79777         * lib/openat.c (unlinkat): New function.
79778         * lib/openat.h (unlinkat): Add prototype.
79779         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79780         (openat_restore_fail): Rename from openat_restore_die.
79781         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79782
79783         Provide an alternative to exiting immediately upon save_cwd or
79784         restore_cwd failure.  Now, an application can arrange e.g.,
79785         to perform a longjump in that case.
79786         * lib/openat.c: Include dirname.h.
79787         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79788         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79789         and openat_restore_die rather than calling error directly.
79790         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79791
79792         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79793         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79794         define.
79795
79796         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79797         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79798                             int utc, int nanoseconds);
79799         Background:
79800         date should not have to allocate a megabyte of virtual memory to
79801         handle a format argument like +%1048575T.  When implemented with
79802         strftime, it must allocate such a buffer, use strftime to fill it
79803         in, print it, then free it.
79804         With fprintftime, it simply prints everything and exits.
79805         With no need for memory allocation, that's one fewer way to fail.
79806         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79807         optional field width, not before, so we accept %9:z, not %:9z.
79808         (my_strftime): Be sure to use L_('x') for literals.
79809
79810         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79811         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79812         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79813         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79814         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79815         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79816         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79817         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79818         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79819         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79820         * lib/xgethostname.c, lib/xreadlink.c:
79821         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79822
79823         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79824         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79825         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79826         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79827         and don't include <sys/file.h>).
79828
79829 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79830
79831         Sync from coreutils.
79832
79833         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79834         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79835         [!LDAV_DONE]: Avoid unused variable warning.
79836
79837 2005-09-21  Bruno Haible  <bruno@clisp.org>
79838
79839         * lib/unicodeio.h (unicode_to_mb): New declaration.
79840
79841 2005-09-20  Derek Price  <derek@ximbiot.com>
79842
79843         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79844         getaddrinfo.h.
79845
79846 2005-09-20  Bruno Haible  <bruno@clisp.org>
79847
79848         * gnulib-tool: Remove trailing slashes from the values specified for
79849         --source-base, --m4-base, --tests-base, --aux-dir.
79850         Suggested by Simon Josefsson <jas@extundo.com>.
79851
79852 2005-09-20  Bruno Haible  <bruno@clisp.org>
79853
79854         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79855         func_modules_to_filelist, func_import, func_create_testdir): Make all
79856         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79857         change when gnulib-tool is invoked in a different locale.
79858
79859 2005-09-19  Simon Josefsson  <jas@extundo.com>
79860
79861         * m4/socklen.m4: Fix typo.
79862
79863 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79864
79865         Use a consistent style for including <config.h>.
79866         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79867         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79868         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79869         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79870         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79871         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79872         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79873         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79874         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79875         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79876         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79877         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79878         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79879         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79880         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79881         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79882         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79883         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79884         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79885         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79886         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79887         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79888         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79889         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79890         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79891         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79892         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79893         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79894         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79895         lib/xstrtoumax.c, lib/yesno.c:
79896         Standardize inclusion of config.h.
79897         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79898         lib/inttostr.h:  Removed inclusion of config.h from header files.
79899         * lib/inttostr.c:  Adjusted in-tree users.
79900         * lib/timespec.h: Remove superfluous warning to include config.h.
79901         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79902         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79903         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79904         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79905         config.h with HAVE_CONFIG_H.
79906
79907 2005-09-19  Jim Meyering  <jim@meyering.net>
79908
79909         * modules/pathmax (License): Change to LGPL.
79910
79911 2005-09-19  Derek Price  <derek@ximbiot.com>
79912
79913         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79914
79915 2005-09-19  Bruno Haible  <bruno@clisp.org>
79916
79917         * gnulib-tool (import): Provide default for --tests-base.
79918
79919 2005-09-19  Bruno Haible  <bruno@clisp.org>
79920
79921         * doc/quote.texi: New file, extracted from gnulib.texi.
79922         * doc/ctime.texi: New file, extracted from gnulib.texi.
79923         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79924         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79925         * doc/gnulib.texi: Include them.
79926
79927 2005-09-18  Bruno Haible  <bruno@clisp.org>
79928
79929         Portability fix.
79930         * gnulib-tool (func_readlink): New function.
79931         (func_ln_if_changed): Use it.
79932
79933 2005-09-18  Bruno Haible  <bruno@clisp.org>
79934
79935         * gnulib-tool: Support --with-tests also with --import.
79936         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79937         (func_import): Use variables $testsbase and $inctests. Emit a
79938         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79939         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79940         SUBDIRS += $testsdir.
79941         (func_create_testdir): Update.
79942
79943 2005-09-18  Bruno Haible  <bruno@clisp.org>
79944
79945         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79946         instead of $dry_run.
79947         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79948         (func_ln_if_changed): Don't handle dry-run here.
79949         (func_import): In dry-run mode, detect more precisely which actions
79950         would be performed, and don't use "...ing" verbs.
79951
79952 2005-09-18  Bruno Haible  <bruno@clisp.org>
79953
79954         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79955         (func_import): Use join on two temporary files instead of three nested
79956         loops, in order to determine which files are new or old.
79957
79958 2005-09-18  Bruno Haible  <bruno@clisp.org>
79959
79960         * gnulib-tool (func_import): Comment out code that spits out the
79961         new files with --dry-run.
79962
79963 2005-09-18  Bruno Haible  <bruno@clisp.org>
79964
79965         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79966
79967 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79968
79969         * lib/stat-time.h: New file.
79970         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79971         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79972         in a different way.
79973         (timespec_cmp): New function.
79974         * lib/utimecmp.c: Include stat-time.h.
79975         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79976         members exist, not on the obsolescent ST_MTIM_NSEC.
79977         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79978
79979 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79980
79981         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79982
79983 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79984
79985         * MODULES.html.sh (File system functions): Add stat-time.
79986         * modules/stat-time: New file.
79987         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79988         is now done in a different way, by the stat-time module.
79989         * modules/utimecmp (Depends-on): Add stat-time.
79990
79991 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         * m4/st_mtim.m4: Remove.  Superseded by...
79994         * m4/stat-time.m4: New file.
79995         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79996         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79997
79998 2005-09-15  Derek Price  <derek@ximbiot.com>
79999
80000         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80001
80002 2005-09-15  Derek Price  <derek@ximbiot.com>
80003
80004         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80005         * lib/regex_internal.c: Ditto, using this...
80006         (__GNUC_PREREQ): ...new macro.
80007         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80008         using...
80009         (__GNUC_PREREQ): ...this new macro.
80010
80011         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80012
80013 2005-09-15  Derek Price  <derek@ximbiot.com>
80014             Paul Eggert  <eggert@cs.ucla.edu>
80015
80016         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80017         changes, consolidating in...
80018         * lib/regex_internal.h: ...this file.
80019
80020 2005-09-13  Jim Meyering  <jim@meyering.net>
80021
80022         * lib/canon-host.c: Filter through gnu indent and reword comments
80023         slightly.
80024         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80025
80026 2005-09-13  Derek Price  <derek@ximbiot.com>
80027
80028         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80029         failure.
80030         Reported by Jim Meyering  <jim@meyering.net>.
80031
80032 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80033
80034         * lib/base64.c: Typo.
80035         (base64_encode): Put b64str in initialized data section.
80036
80037 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80038
80039         Merge glibc and coreutils changes into gnulib, plus a few
80040         extra fixes.
80041         * lib/md5.c: Use #error rather than a string.
80042         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80043         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80044         (__attribute__): Define to empty for non recent-GCC.
80045         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80046         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80047         Renamed from their non-__ counterparts, with new macros replacing
80048         them if not _LIBC.  Add __THROW attribute.
80049         (rol): Remove.
80050         (struct md5_ctx): Align buffer if using GCC.
80051         * lib/sha1.h (struct sha1_ctx): Likewise.
80052         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80053         The old name was backwards.
80054         (NOTSWAP): Remove; not used.
80055         (rol): New macro, moved here from md5.h.
80056         (sha1_process_block): Remove a FIXME that doesn't make sense.
80057
80058 2005-09-12  Derek Price  <derek@ximbiot.com>
80059
80060         Return usable errors from canon-host.
80061         * lib/canon-host.h: New file.
80062         * lib/canon-host.c (canon_host): Wrap...
80063         (canon_host_r): ...this new function, which now relies exclusively on
80064         getaddrinfo.
80065         (ch_strerror): New function.
80066         (last_cherror): New global.
80067         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80068         interface.
80069         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80070         void *.
80071         (freeaddrinfo): Free ai->ai_canonname when set.
80072
80073 2005-09-12  Derek Price  <derek@ximbiot.com>
80074
80075         Make canon-host require getaddrinfo.
80076         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80077         AC_LIBSOURCE canon-host.h.  Call...
80078         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80079         gl_GETADDRINFO.
80080         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80081
80082 2005-09-12  Derek Price  <derek@ximbiot.com>
80083
80084         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80085         LGPL.
80086         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80087
80088 2005-09-12  Derek Price  <derek@ximbiot.com>
80089
80090         * lib/gai_strerror.c: Include config.h when available.  Include
80091         getaddrinfo.h before other headers to test interface.
80092         Reported by Larry Jones <lawrence.jones@ugs.com>.
80093
80094 2005-09-12  Derek Price  <derek@ximbiot.com>
80095             Paul Eggert  <eggert@cs.ucla.edu>
80096
80097         * modules/glob (Files): Add glob-libc.h.
80098
80099 2005-09-12  Derek Price  <derek@ximbiot.com>
80100             Paul Eggert  <eggert@cs.ucla.edu>
80101
80102         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80103         glob_.h, glob-libc.h.
80104         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80105
80106 2005-09-12  Derek Price  <derek@ximbiot.com>
80107             Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80110         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80111         protecting things that should be done only in gnulib contexts.
80112         * lib/glob_.h: New file, containing only the glob things needed for
80113         gnulib.
80114         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80115         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80116         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80117         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80118         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80119         and to respect the namespace rules better.
80120
80121 2005-09-08  Simon Josefsson  <jas@extundo.com>
80122
80123         * modules/socklen: New file.
80124
80125 2005-09-08  Simon Josefsson  <jas@extundo.com>
80126
80127         * m4/socklen.m4: New file.
80128
80129 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80130
80131         * modules/utimens (Files): Add m4/utimbuf.m4, since
80132         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80133         Reported by Sergey Poznyakoff.
80134
80135 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80136
80137         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80138         definitions, since that's the preferred style in glibc.
80139         Fix a minor spacing issue, and update copyright notice to match
80140         glibc's.
80141
80142 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80143
80144         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80145
80146 2005-09-06  Simon Josefsson  <jas@extundo.com>
80147
80148         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80149         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80150
80151 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80152
80153         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80154         warning.
80155
80156 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80157
80158         * config/srclist.txt: Add glibc bug 1302.
80159
80160 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80161
80162         Change bitset word type from unsigned int to unsigned long int,
80163         as this has better performance on typical 64-bit hosts.
80164         Port bitset code to hosts with unusual word sizes.
80165         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80166         (build_collating_symbol):
80167         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80168         argument is a bitset.  This is merely a style issue, but it makes
80169         it clearer that an entire array is expected.
80170         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80171         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80172         Port to the case where bitset_word is not the same as unsigned int.
80173         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80174         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80175         Likewise.
80176         * lib/regexec.c (check_dst_limits_calc_pos_1,
80177         check_subexp_matching_top):
80178         (build_trtable, group_nodes_into_DFAstates):
80179         Likewise.
80180         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80181         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80182         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80183         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80184         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80185         * lib/regcomp.c (optimize_subexps, lower_subexp):
80186         Work even if bitset_word has holes in its bitwise representation.
80187         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80188         * lib/regexec.c (check_dst_limits_calc_pos_1,
80189         check_subexp_matching_top):
80190         Likewise.
80191         * lib/regex_internal.c (re_string_reconstruct):
80192         Don't assume UCHAR_MAX == 255.
80193         * lib/regex_internal.h (bitset_set_all): Likewise.
80194         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80195         All uses changed.
80196         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80197         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80198         All uses changed.
80199         (BITSET_WORD_MAX): New macro.
80200         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80201         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80202         (bitset_empty, bitset_copy):
80203         Prefer sizeof (bitset) to multiplying it out ourselves.
80204         (bitset_not_merge): Remove; unused.
80205         (bitset_contain): Return bool, not unsigned int with one bit on.
80206         All callers changed.
80207         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80208         alignment than re_node_set; do this by defining a new internal
80209         type struct dests_alloc and using it to allocate memory.
80210
80211 2005-09-05  Bruno Haible  <bruno@clisp.org>
80212
80213         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80214         links.
80215
80216 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80217
80218         * modules/size_max (Makefile.am): Add size_max.h
80219
80220 2005-09-04  Derek Price  <derek@ximbiot.com>
80221
80222         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80223
80224 2005-09-03  Simon Josefsson  <jas@extundo.com>
80225
80226         * gnulib-tool: Fix typo.
80227
80228 2005-09-03  Simon Josefsson  <jas@extundo.com>
80229
80230         * config/srclist.txt: Add glibc bug 1293.
80231
80232 2005-09-03  Derek Price  <derek@ximbiot.com>
80233
80234         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80235         From Larry Jones <lawrence.jones@ugs.com>.
80236
80237 2005-09-02  Simon Josefsson  <jas@extundo.com>
80238
80239         * modules/socklen: New file.
80240
80241 2005-09-02  Simon Josefsson  <jas@extundo.com>
80242
80243         * modules/havelib: New module.
80244
80245         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80246         Use havelib.
80247
80248 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80249
80250         Check for arithmetic overflow when calculating sizes, to prevent
80251         some buffer-overflow issues.  These patches are conservative, in the
80252         sense that when I couldn't determine whether an overflow was possible,
80253         I inserted a run-time check.
80254         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80255         macros.
80256         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80257         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80258         (re_xnrealloc, re_x2nrealloc): New inline functions.
80259         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80260         parse_bracket_exp):
80261         (build_equiv_class, build_charclass): Check for arithmetic overflow
80262         in size expression calculations.
80263         * lib/regex_internal.c (re_string_realloc_buffers):
80264         (build_wcs_upper_buffer, re_node_set_add_intersect):
80265         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80266         (re_dfa_add_node, register_state): Likewise.
80267         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80268         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80269         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80270         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80271
80272 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80275         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80276
80277 2005-09-02  Bruno Haible  <bruno@clisp.org>
80278
80279         Support for lib vs. lib64 distinction on biarch platforms.
80280         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80281         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80282         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80283
80284 2005-09-02  Bruno Haible  <bruno@clisp.org>
80285
80286         * gnulib-tool (import): In the other first-use case, provide defaults
80287         as well.
80288
80289 2005-09-02  Bruno Haible  <bruno@clisp.org>
80290
80291         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80292         patches not yet found in the latest gettext release.
80293
80294 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80295
80296         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80297         to avoid a collision with bits/local_lim.h in glibc.
80298         All uses changed.  Problem reported by Dmitry V. Levin in
80299         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80300
80301         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80302         bugs in int versus size_t comparisons.
80303         (re_string_context_at): Fix bug where the code assumed that
80304         Idx is signed.
80305
80306         Use bool where appropriate.
80307         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80308         All callers changed.
80309         (calc_eclosure_iter): Likewise, for ROOT arg.
80310         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80311         (build_charclass_op): Likewise, for NON_MATCH arg.
80312         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80313         (re_string_construct_common): Likewise, for ICASE arg.
80314         * lib/regexec.c (re_search_2_stub, re_search_stub):
80315         Likewise, for RET_LEN arg.
80316         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80317         (set_regs): Likewise, for FL_BACKTRACK arg.
80318         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80319         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80320         (calc_eclosure_iter, parse_bracket_exp):
80321         Use bool for internal variables that are booleans.
80322         * lib/regexec.c (re_search_internal, check_matching,
80323         proceed_next_node):
80324         (set_regs, build_sifted_states, sift_states_bkref):
80325         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80326         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80327         (find_collation_sequence_value):
80328         Likewise.
80329         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80330         (re_node_set_compare):
80331         Return bool, not int. All callers changed.
80332         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80333         (build_trtable, check_node_accept): Likewise.
80334         * lib/regex_internal.h: Include stdbool.h.
80335
80336         Fix bugs uncovered when converting to bool.
80337         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80338         failure instead of charging ahead blindly.
80339         * lib/regex_internal.c (register_state): Likewise.
80340         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80341         for freeing internal storage.
80342         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80343         bitset pieces used as boolean, to avoid undefined behavior
80344         on hosts that do int overflow checking.
80345
80346 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80347
80348         * config/srclist.txt: Add glibc bugs 1285-1287.
80349
80350 2005-09-01  Jim Meyering  <jim@meyering.net>
80351
80352         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80353         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80354         Require gl_STAT_MACROS, too.
80355
80356 2005-09-01  Bruno Haible  <bruno@clisp.org>
80357
80358         * gnulib-tool (import): In the first-use case, provide defaults.
80359
80360 2005-09-01  Bruno Haible  <bruno@clisp.org>
80361
80362         * gnulib-tool (func_import): Remove the .tmp files.
80363
80364 2005-09-01  Bruno Haible  <bruno@clisp.org>
80365
80366         * gnulib-tool (func_import): Fix handling of symbolic links.
80367
80368 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80369
80370         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80371         old glibc regex code mishandles strings longer than 2**31 bytes.
80372         This patch fixes this when the regex code is used in gnulib
80373         (i.e., outside glibc).
80374
80375         This patch should not affect the use of the regex code inside
80376         glibc.  No doubt this problem also needs to be handled for glibc
80377         as well, but the result will be an incompatible change to the
80378         glibc ABI, and the old ABI will have to be supported too.  That
80379         can be the the subject for another patch.
80380
80381         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80382         governing whether the rest of this patch is active.  By default,
80383         the macro is disabled and the patch has no effect.
80384         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80385         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80386         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80387         (re_match_2, re_set_registers): Use the new types.
80388         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80389         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80390         New macros.
80391         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80392         (re_string_context_at, bin_tree_t, re_dfastate_t):
80393         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80394         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80395         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80396         (re_string_char_size_at, re_string_wchar_at):
80397         (re_string_elem_size_at):
80398         Use the new types and macros to port to 64-bit hosts.
80399         Use unsigned types for internal values, so that the code
80400         mostly works even for arrays larger than SSIZE_MAX.
80401         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80402         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80403         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80404         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80405         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80406         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80407         (calc_inveclosure, parse_dup_op, build_range_exp):
80408         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80409         (fetch_number, create_token_tree, mark_opt_subexp):
80410         Likewise.
80411         * lib/regex_internal.c (re_string_construct_common,
80412         create_ci_newstate):
80413         (create_cd_newstate, re_string_allocate, re_string_construct):
80414         (re_string_realloc_buffers, build_wcs_upper_buffer):
80415         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80416         (re_string_reconstruct, re_string_peek_byte_case):
80417         (re_string_fetch_byte_case, re_string_context_at):
80418         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80419         (re_node_set_init_copy, re_node_set_add_intersect):
80420         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80421         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80422         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80423         (re_acquire_state, re_acquire_state_context, register_state):
80424         Likewise.
80425         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80426         search_cur_bkref_entry):
80427         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80428         (re_search_internal, re_search_2_stub, re_search_stub)
80429         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80430         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80431         (update_cur_sifted_state, check_dst_limits):
80432         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80433         (check_subexp_limits, sift_states_bkref, merge_state_array):
80434         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80435         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80436         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80437         (expand_bkref_cache, check_node_accept_bytes):
80438         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80439         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80440         (acquire_init_state_context, check_halt_node_context):
80441         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80442         (sift_states_backward, clean_state_log_if_needed):
80443         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80444         (find_recover_state, transit_state_sb, transit_state_mb):
80445         (transit_state_bkref, build_trtable, match_ctx_clean):
80446         Likewise.
80447         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80448         to work around an assumption that REG_MISSING is negative.
80449
80450         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80451         (seek_collating_symbol_entry) [defined _LIBC]:
80452         (lookup_collation_sequence_value) [defined _LIBC]:
80453         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80454         Use prototypes rather than old-style function definitions.
80455         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80456         (transit_state_sb) [0]:
80457         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80458
80459         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80460         rm_eo.
80461
80462         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80463         (optimize_subexps, lower_subexp):
80464         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80465         since the signed shift might overflow.  Use 1u<<31 instead.
80466         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80467         Likewise.
80468         * lib/regexec.c (check_dst_limits_calc_pos_1,
80469         check_subexp_matching_top): Likewise.
80470
80471         * lib/regcomp.c (optimize_subexps, lower_subexp):
80472         Use CHAR_BIT rather than 8, for clarity.
80473         * lib/regexec.c (check_dst_limits_calc_pos_1):
80474         (check_subexp_matching_top): Likewise.
80475         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80476         have to worry about portability issues when shifting it left.
80477         Remove no-longer-needed test for table_size > 0.
80478         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80479         in a word, as the resulting behavior is undefined.
80480         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80481         in one case, a <= should have been an <, and in another case the
80482         whole test was missing.
80483         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80484         the standard name CHAR_BIT.
80485         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80486         this is not true on one's complement and signed-magnitude hosts.
80487
80488         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80489         next_last_offset.
80490         (struct re_dfa_t): Remove unused member states_alloc.
80491         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80492
80493 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80494
80495         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80496         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80497         and large-file glibc and in 32-bit large-file Solaris.
80498
80499 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80500
80501         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80502         lengths fit in regoff_t; this isn't true if regoff_t is the same
80503         width as size_t.
80504         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80505         (= START + RANGE) instead of RANGE.  This avoids overflow
80506         problems when regoff_t is the same width as size_t.
80507         All callers changed.
80508         (re_search_2_stub): Check for overflow when adding the
80509         sizes of the two strings.
80510         (re_search_stub): Check for overflow when adding START
80511         to RANGE; if it occurs, substitute the extreme value.
80512
80513 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80514
80515         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80516
80517 2005-08-31  Jim Meyering  <jim@meyering.net>
80518
80519         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80520         a pointer-to-const.
80521         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80522         (register_state): Likewise.
80523         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80524         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80525         (group_nodes_into_DFAstates): Likewise.
80526
80527 2005-08-31  Jim Meyering  <jim@meyering.net>
80528
80529         * check-module: Add a FIXME comment.
80530
80531 2005-08-31  Eric Blake  <ebb9@byu.net>
80532
80533         * modules/unistd-safer (Files): Add unistd--.h.
80534         * modules/stdio-safer (Files): Add stdio--.h.
80535
80536 2005-08-31  Derek Price  <derek@ximbiot.com>
80537
80538         * lib/getdelim.c (getdelim): Return EOF on EOF.
80539         Reported by Larry Jones <lawrence.jones@ugs.com>.
80540
80541 2005-08-31  Bruno Haible  <bruno@clisp.org>
80542
80543         Avoid unnecessary diffs in the generated lib/Makefile.am.
80544         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80545         the generated files.
80546         (func_import): Don't set cmd.
80547
80548 2005-08-31  Bruno Haible  <bruno@clisp.org>
80549
80550         * lib/strstr.c: Include <stddef.h>, for NULL.
80551         * lib/strcasestr.c: Likewise.
80552         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80553
80554 2005-08-31  Bruno Haible  <bruno@clisp.org>
80555
80556         * gnulib-tool: New option --macro-prefix.
80557         (func_import): Use macro_prefix.
80558         (import): Handle option --macro-prefix.
80559
80560 2005-08-31  Bruno Haible  <bruno@clisp.org>
80561
80562         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80563         Also use new variables cached_lgpl, cached_libtool.
80564
80565 2005-08-31  Bruno Haible  <bruno@clisp.org>
80566
80567         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80568         always instantiating them.
80569
80570 2005-08-31  Bruno Haible  <bruno@clisp.org>
80571
80572         * gnulib-tool (func_import): Read the previous cached settings
80573         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80574         earlier added by gnulib but are now dropped. Warn when a gnulib file
80575         overwrites a non-gnulib file.
80576
80577 2005-08-31  Bruno Haible  <bruno@clisp.org>
80578
80579         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80580         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80581         projects that don't keep autogenerated files in CVS. Put into
80582         actioncmd only the specified modules, not the transitive closure.
80583
80584 2005-08-31  Bruno Haible  <bruno@clisp.org>
80585
80586         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80587         Create directories that shall be filled.
80588         (import): Don't look for gl_* macros in configure.ac. Recurse across
80589         all directories containing a gnulib-cache.m4 files, if meaningful.
80590
80591 2005-08-31  Bruno Haible  <bruno@clisp.org>
80592
80593         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80594         (import): Set seen_libtool when we see gl_LIBTOOL.
80595
80596 2005-08-31  Bruno Haible  <bruno@clisp.org>
80597
80598         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80599         declaration macro definitions from generated gnulib.m4.
80600
80601 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80602
80603         * lib/iconvme.h: Add prototype for iconv_alloc.
80604
80605 2005-08-29  Simon Josefsson  <jas@extundo.com>
80606
80607         * lib/iconvme.c: Fix errno.
80608
80609 2005-08-29  Bruno Haible  <bruno@clisp.org>
80610
80611         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80612         that it works when the directory contains spaces.
80613
80614 2005-08-29  Bruno Haible  <bruno@clisp.org>
80615
80616         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80617
80618 2005-08-29  Bruno Haible  <bruno@clisp.org>
80619
80620         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80621         Emit more advice.
80622
80623 2005-08-29  Bruno Haible  <bruno@clisp.org>
80624         and Stepan Kasal  <kasal@ucw.cz>
80625
80626         * check-module: If more parameters are given, check each of them
80627         separately; add more exceptions, as noted by Jim Meyering.
80628         (check_module): New procedure.
80629         (%exempt_header): Now contains all exceptions.
80630
80631 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80632
80633         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80634
80635 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80636
80637         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80638
80639 2005-08-28  Bruno Haible  <bruno@clisp.org>
80640
80641         * m4/gnulib-tool.m4: New file.
80642
80643 2005-08-27  Jim Meyering  <jim@meyering.net>
80644
80645         * modules/unistd-safer (Files): Add pipe-safer.c.
80646         * modules/fcntl-safer (Files): Add creat-safer.c.
80647
80648 2005-08-27  Jim Meyering  <jim@meyering.net>
80649
80650         * m4/stdlib-safer.m4: New file.  From coreutils.
80651         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80652         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80653         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80654         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80655         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80656
80657 2005-08-27  Jim Meyering  <jim@meyering.net>
80658
80659         * lib/fopen-safer.c: Merge minor changes from coreutils.
80660         * lib/dup-safer.c: Likewise.
80661         * lib/fd-safer.c: Likewise.
80662
80663         Merge from coreutils.
80664         * lib/stdio--.h: New file.
80665         * lib/stdlib--.h: New file.
80666         * lib/mkstemp-safer.c: New file.
80667
80668         GNU tar needs these.
80669         * lib/pipe-safer.c: New file.
80670         * lib/creat-safer.c: New file.
80671         * lib/fcntl--.h (creat): Define to creat_safer.
80672         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80673         * lib/unistd--.h (pipe): Define to pipe_safer.
80674         * lib/unistd-safer.h: Declare pipe_safer.
80675
80676 2005-08-26  Simon Josefsson  <jas@extundo.com>
80677
80678         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80679         Haible <bruno@clisp.org>.
80680
80681 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80682
80683         * lib/regex_internal.h: Remove all references to
80684         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80685         or better.
80686         (bitset_not, bitset_merge, bitset_not_merge):
80687         (bitset_mask, re_string_allocate, re_string_construct):
80688         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80689         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80690         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80691         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80692         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80693         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80694         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80695         (re_acquire_state_context):
80696         Remove unnecessary forward decls.
80697         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80698         Put __attribute at function definition,
80699         now that the function decl has been removed.
80700         * lib/regex_internal.c (re_string_peek_byte_case):
80701         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80702         Likewise.
80703
80704 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80705
80706         * m4/regex.m4: Add AC_PREREQ(2.50).
80707         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80708
80709 2005-08-25  Simon Josefsson  <jas@extundo.com>
80710
80711         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80712         __fsetlocking.
80713
80714 2005-08-25  Simon Josefsson  <jas@extundo.com>
80715
80716         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80717         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80718         GLIBC specific code.
80719
80720 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80721
80722         Make regex safe for g++.  This fixes one real bug (an "err"
80723         that should have been "*err").  g++ problem reported by
80724         Sam Steingold.
80725         * lib/regex_internal.h (re_calloc): New macro, consistent with
80726         re_malloc etc.  All callers of calloc changed to use re_calloc.
80727         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80728         not int.  All callers changed.
80729         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80730         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80731         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80732         (find_recover_state): Change "err" to "*err"; this fixes what
80733         appears to be a real bug.
80734         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80735         versus int.
80736
80737 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80738
80739         * modules/regex (Depends-on): Add malloc, since the code
80740         assumes that !malloc(0) means failure.
80741
80742 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80745
80746         alloca modernization/simplification for regex.
80747         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80748         needs to be at the start of the file, and can be moved into
80749         regex_internal.h and simplified.
80750         * lib/regex_internal.h: Include <alloca.h>.
80751         (__libc_use_alloca) [!defined _LIBC]: New macro.
80752         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80753         now works outside glibc.
80754
80755 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80756
80757         * config/srclist.txt: Add glibc bugs 1241, 1245.
80758
80759 2005-08-25  Jim Meyering  <jim@meyering.net>
80760
80761         * lib/open-safer.c: Include <config.h>.
80762         Otherwise, we'd lose LARGEFILE support in any file using
80763         e.g. "fcntl--.h"
80764
80765 2005-08-25  Bruno Haible  <bruno@clisp.org>
80766
80767         * m4/minmax.m4: Require autoconf 2.52.
80768         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80769         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80770         alternatives of translit over the alphabet.
80771         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80772
80773 2005-08-24  Simon Josefsson  <jas@extundo.com>
80774
80775         * tests/test-getpass.c: New file.
80776
80777 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80778
80779         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80780         for GNU regex features.
80781
80782 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80783
80784         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80785         * lib/regex.h (regerror): Likewise.
80786
80787         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80788         requires this.  (The code never needed it.)
80789
80790         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80791         All uses of recently-renamed identifiers changed to use the new,
80792         POSIX-compliant names.  The code will build and run just fine
80793         without these changes, but it's better to eat our own dog food
80794         and use the standard-conforming names.
80795
80796         * lib/regex.h: Fix a multitude of POSIX name space violations.
80797         These changes have an effect only for programs that define
80798         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80799         do not change anything for programs compiled in the normal way.
80800         Also, there is no effect on the ABI.
80801
80802         (_REGEX_SOURCE): New macro.
80803         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80804         defined and _GNU_SOURCE is not; this fixes a name space violation.
80805
80806         Rename the following macros to obey POSIX requirements.
80807         The old names are still visible as macros if _REGEX_SOURCE is defined.
80808         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80809         RE_BACKSLASH_ESCAPE_IN_LISTS.
80810         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80811         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80812         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80813         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80814         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80815         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80816         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80817         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80818         (REG_INTERVALS): renamed from RE_INTERVALS.
80819         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80820         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80821         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80822         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80823         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80824         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80825         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80826         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80827         RE_UNMATCHED_RIGHT_PAREN_ORD.
80828         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80829         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80830         (REG_DEBUG): renamed from RE_DEBUG.
80831         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80832         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80833         unusual, since we can't clash with the POSIX REG_ICASE.
80834         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80835         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80836         (REG_NO_SUB): renamed from RE_NO_SUB.
80837         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80838         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80839         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80840         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80841         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80842         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80843         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80844         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80845         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80846         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80847         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80848         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80849         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80850         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80851         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80852         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80853         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80854         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80855         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80856         (REG_FIXED): Renamed from REGS_FIXED.
80857         (REG_NREGS): Renamed from RE_NREGS.
80858
80859         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80860         of other REG_* macros, since POSIX says the user is allowed to
80861         #undef these macros selectively.
80862
80863         (reg_errcode_t): Update comment stating what other tables need
80864         to be consistent.
80865
80866         Rename the following enum values to obey POSIX requirements.
80867         The old names are still visible as macros.
80868         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80869         is not defined, since GNU is supposed to be a superset of POSIX as
80870         much as possible, and since we want reg_errcode_t to be a signed
80871         type for implementation consistency.
80872         (_REG_NOERROR): Renamed from REG_NOERROR.
80873         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80874         (_REG_BADPAT): Renamed from REG_BADPAT.
80875         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80876         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80877         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80878         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80879         (_REG_EBRACK): Renamed from REG_EBRACK.
80880         (_REG_EPAREN): Renamed from REG_EPAREN.
80881         (_REG_EBRACE): Renamed from REG_EBRACE.
80882         (_REG_BADBR): Renamed from REG_BADBR.
80883         (_REG_ERANGE): Renamed from REG_ERANGE.
80884         (_REG_ESPACE): Renamed from REG_ESPACE.
80885         (_REG_BADRPT): Renamed from REG_BADRPT.
80886         (_REG_EEND): Renamed from REG_EEND.
80887         (_REG_ESIZE): Renamed from REG_ESIZE.
80888         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80889         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80890         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80891         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80892         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80893
80894         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80895         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80896         changed.  But support the old name if the new one is not defined
80897         and if _REGEX_SOURCE.
80898
80899         Change the following member names in struct re_pattern_buffer.
80900         The old names are still supported if !_REGEX_SOURCE.
80901         The new names are always supported, regardless of _REGEX_SOURCE.
80902         (re_buffer): Renamed from buffer.
80903         (re_allocated): Renamed from allocated.
80904         (re_used): Renamed from used.
80905         (re_syntax): Renamed from syntax.
80906         (re_fastmap): Renamed from fastmap.
80907         (re_translate): Renamed from translate.
80908         (re_can_be_null): Renamed from can_be_null.
80909         (re_regs_allocated): Renamed from regs_allocated.
80910         (re_fastmap_accurate): Renamed from fastmap_accurate.
80911         (re_no_sub): Renamed from no_sub.
80912         (re_not_bol): Renamed from not_bol.
80913         (re_not_eol): Renamed from not_eol.
80914         (re_newline_anchor): Renamed from newline_anchor.
80915
80916         Change the following member names in struct re_registers.
80917         The old names are still supported if !_REGEX_SOURCE.
80918         The new names are always supported, regardless of _REGEX_SOURCE.
80919         (rm_num_regs): Renamed from num_regs.
80920         (rm_start): Renamed from start.
80921         (rm_end): Renamed from end.
80922
80923         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80924         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80925         Prepend __ to parameter names.
80926
80927         Undo yesterday's changes.
80928
80929 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80930
80931         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80932         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80933         lib/regex.c.
80934
80935 2005-08-24  Jim Meyering  <jim@meyering.net>
80936
80937         Sync from coreutils.
80938         * m4/fcntl-safer.m4: New file.
80939
80940         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80941         and object files for this module.
80942
80943 2005-08-24  Jim Meyering  <jim@meyering.net>
80944
80945         Sync from coreutils.
80946         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80947
80948 2005-08-24  Jim Meyering  <jim@meyering.net>
80949
80950         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80951         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80952
80953 2005-08-24  Jim Meyering  <jim@meyering.net>
80954
80955         * modules/fcntl-safer: New module.
80956         * modules/fts (Depends-on): Add fcntl-safer.
80957         * MODULES.html.sh (File descriptor based Input/Output):
80958         Add fcntl-safer.
80959
80960 2005-08-24  Bruno Haible  <bruno@clisp.org>
80961
80962         Support for unit test modules.
80963         * modules/README: Mention tests modules.
80964         * modules/TEMPLATE-TESTS: New file.
80965         * gnulib-tool: New options --extract-tests-module, --with-tests and
80966         --tests-base (unused for the moment).
80967         (testsbase, inctests): New variables.
80968         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80969         (func_verify_module): Exclude TEMPLATE-TESTS.
80970         (func_verify_nontests_module, func_verify_tests_module): New functions.
80971         (func_get_dependencies): Add implicit dependency for tests modules.
80972         (func_get_tests_module): New function.
80973         (func_modules_transitive_closure): When --with-tests was specified,
80974         include the unit tests as well, unless explicitly avoided.
80975         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80976         (func_emit_tests_Makefile_am): New function.
80977         (func_create_testdir): When --with-tests was specified, emit a
80978         tests/ directory.
80979         * MODULES.html.sh (Future developments): Update.
80980
80981 2005-08-24  Bruno Haible  <bruno@clisp.org>
80982
80983         * modules/tls-tests: New file.
80984         * tests/test-tls.c: New file, from GNU gettext.
80985
80986 2005-08-24  Bruno Haible  <bruno@clisp.org>
80987
80988         * modules/lock-tests: New file.
80989         * tests/test-lock.c: New file, from GNU gettext.
80990
80991 2005-08-24  Bruno Haible  <bruno@clisp.org>
80992
80993         * lib/lock.h: Add multiple inclusion guard.
80994         * lib/tls.h: Add multiple inclusion guard.
80995
80996 2005-08-24  Bruno Haible  <bruno@clisp.org>
80997
80998         * gnulib-tool: Add support for the --aux-dir option to
80999         --create-testdir, --create-megatestdir, --test, --megatest.
81000         (func_create_testdir, func_create_megatestdir): Optionally emit a
81001         AC_CONFIG_AUX_DIR directive.
81002         (create-testdir, create-megatestdir, test, megatest): Provide a
81003         default value for $auxdir.
81004
81005 2005-08-24  Bruno Haible  <bruno@clisp.org>
81006
81007         * gnulib-tool (import): Use compound statement instead of subshell
81008         where possible.
81009
81010 2005-08-24  Bruno Haible  <bruno@clisp.org>
81011
81012         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81013
81014 2005-08-24  Bruno Haible  <bruno@clisp.org>
81015
81016         * gnulib-tool (func_version): Update.
81017
81018 2005-08-24  Bruno Haible  <bruno@clisp.org>
81019
81020         * gnulib-tool (func_import, func_create_testdir,
81021         func_create_megatestdir): Quote all autoconf macro arguments.
81022
81023 2005-08-24  Bruno Haible  <bruno@clisp.org>
81024
81025         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81026         option --force, because --force causes the aclocal.m4 of each
81027         subdirectory to be newer than the corresponding config.h.in.
81028
81029 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81030
81031         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81032         All contents moved to gl_REGEX.
81033         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81034         assume that it does.
81035
81036 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81037
81038         * lib/regex.h (REG_NOSYS)
81039         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81040         Define, since POSIX requires it as of 2001.
81041         (_REG_ENOSYS)
81042         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81043         New private symbol, used to keep the enum signed in all cases.
81044         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81045         Youngman in
81046         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81047
81048         * lib/regex_internal.c (re_string_skip_chars, register_state):
81049         (calc_state_hash):
81050         Remove forward decls; no longer needed now that we use prototypes.
81051         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81052         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81053         (clean_state_log_if_needed): Likewise.
81054
81055 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81056
81057         * config/srclist.txt: Add glibc bugs 1231-1233.
81058
81059 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81060
81061         Fix problems reported by Sam Steingold in
81062         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81063         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81064         assumed that reg_errcode_t is a signed type, which is not
81065         necessarily true if _XOPEN_SOURCE is not defined.
81066         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81067         since some compilers warn about it otherwise.
81068
81069 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81070
81071         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81072         (init_word_char, create_initial_state, duplicate_node_closure):
81073         (fetch_token, peek_token_bracket, build_range_exp):
81074         (build_collating_symbol): Remove forward decls; no longer needed
81075         now that we use prototypes.
81076
81077         * lib/regcomp.c:
81078         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81079         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81080         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81081         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81082         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81083         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81084         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81085         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81086         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81087         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81088         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81089         (build_charclass, build_charclass_op, fetch_number, create_tree):
81090         (create_token_tree, mark_opt_subexp, duplicate_tree):
81091         Use prototypes rather than old-style definitions.
81092
81093         * lib/regex_internal.c:
81094         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81095         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81096         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81097         (re_string_reconstruct, re_string_peek_byte_case):
81098         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81099         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81100         (re_node_set_init_copy, re_node_set_add_intersect):
81101         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81102         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81103         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81104         (re_acquire_state, re_acquire_state_context, register_state):
81105         (create_ci_newstate, create_cd_newstate, free_state):
81106         Likewise.
81107         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81108         re_search_2):
81109         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81110         (re_search_internal, prune_impossible_nodes):
81111         (acquire_init_state_context, check_matching, static):
81112         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81113         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81114         (update_regs, sift_states_backward, build_sifted_states):
81115         (clean_state_log_if_needed, merge_state_array):
81116         (update_cur_sifted_state, add_epsilon_src_nodes):
81117         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81118         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81119         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81120         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81121         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81122         (check_arrival, check_arrival_add_next_nodes):
81123         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81124         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81125         (check_node_accept_bytes, check_node_accept, extend_buffers):
81126         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81127         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81128         (sift_ctx_init):
81129         Likewise.
81130
81131         * lib/regex_internal.h:
81132         (re_string_allocate, re_string_construct, re_string_reconstruct):
81133         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81134         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81135         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81136         (re_string_context_at, re_string_peek_byte_case):
81137         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81138         is defined, since we now use prototypes always.
81139
81140         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81141         C89 or better.  All uses removed.
81142
81143 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81144
81145         * config/srclist.txt: Add glibc bugs 1220-1227.
81146
81147 2005-08-20  Jim Meyering  <jim@meyering.net>
81148
81149         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81150         of unused local, dfa.
81151
81152 2005-08-20  Bruno Haible  <bruno@clisp.org>
81153
81154         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81155
81156 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81157
81158         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81159         (re_node_set_insert_last, re_dfa_add_node):
81160         Rename local variables to avoid GCC shadowing warnings.
81161
81162 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81163
81164         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81165         [defined lint]: Suppress bogus uninitialized-variable warnings.
81166
81167         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81168         and let the caller return REG_ESPACE if out of space.  This
81169         removes an uninitialied-variable warning with GCC 4.0.1, and also
81170         avoids taking the address of a local variable.  All callers
81171         changed.
81172
81173 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81174
81175         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81176         $LIBCSRC/posix/regexec.c.
81177         Add glibc bug 1217 for regcomp.c.
81178
81179 2005-08-19  Jim Meyering  <jim@meyering.net>
81180
81181         * lib/regexec.c (proceed_next_node): Redo local variables to
81182         avoid GCC shadowing warnings.
81183
81184 2005-08-18  Bruno Haible  <bruno@clisp.org>
81185
81186         * lib/strstr.c (strstr): Fix return value in multibyte case.
81187         * lib/strcasestr.c (strcasestr): Likewise.
81188
81189 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81190
81191         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81192
81193 2005-08-17  Jim Meyering  <jim@meyering.net>
81194
81195         Make the %s format (seconds since the epoch) work for a negative
81196         number and when used with a zero-padded field width, e.g. %015s.
81197
81198         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81199         label so that it precedes the code to set `digits'.  Otherwise,
81200         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81201         print `00-22'.  Now, it prints `-0022', as it should.
81202
81203 2005-08-17  Bruno Haible  <bruno@clisp.org>
81204
81205         * modules/strstr (Files): Add m4/mbrtowc.m4.
81206         (Depends-on): Add mbuiter.
81207
81208 2005-08-17  Bruno Haible  <bruno@clisp.org>
81209
81210         * modules/strcasestr: New file.
81211         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81212         strcasestr.
81213
81214 2005-08-17  Bruno Haible  <bruno@clisp.org>
81215
81216         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81217
81218 2005-08-17  Bruno Haible  <bruno@clisp.org>
81219
81220         * modules/mbuiter: New file.
81221         * MODULES.html.sh (Extended multibyte and wide character utilities):
81222         Add mbuiter.
81223
81224 2005-08-17  Bruno Haible  <bruno@clisp.org>
81225
81226         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81227         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81228
81229 2005-08-17  Bruno Haible  <bruno@clisp.org>
81230
81231         * m4/strcasestr.m4: New file.
81232
81233 2005-08-17  Bruno Haible  <bruno@clisp.org>
81234
81235         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81236         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81237
81238 2005-08-17  Bruno Haible  <bruno@clisp.org>
81239
81240         * lib/strcasestr.h: New file.
81241         * lib/strcasestr.c: New file.
81242
81243 2005-08-17  Bruno Haible  <bruno@clisp.org>
81244
81245         * lib/strcasecmp.c: Use mbuiter.h.
81246
81247 2005-08-17  Bruno Haible  <bruno@clisp.org>
81248
81249         * lib/mbuiter.h: New file.
81250
81251 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81252
81253         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81254         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81255         and gl_GETOPT are both invoked via different paths (as happens
81256         with GNU tar CVS because it uses both argp and getopt), the former
81257         wins.
81258
81259 2005-08-16  Bruno Haible  <bruno@clisp.org>
81260
81261         * modules/tls: New file.
81262         * MODULES.html.sh (Multithreading): Add tls.
81263
81264 2005-08-16  Bruno Haible  <bruno@clisp.org>
81265
81266         * modules/strnlen1: New file.
81267         * MODULES.html.sh (String handling): Add strnlen1.
81268
81269 2005-08-16  Bruno Haible  <bruno@clisp.org>
81270
81271         * modules/strcase (Files): Add m4/mbrtowc.m4.
81272         (Depends-on): Add strnlen1, mbchar.
81273
81274 2005-08-16  Bruno Haible  <bruno@clisp.org>
81275
81276         * modules/mbiter: New file.
81277         * MODULES.html.sh (Extended multibyte and wide character utilities):
81278         Add mbiter.
81279
81280 2005-08-16  Bruno Haible  <bruno@clisp.org>
81281
81282         * modules/mbfile: New file.
81283         * MODULES.html.sh (Extended multibyte and wide character utilities):
81284         Add mbfile.
81285
81286 2005-08-16  Bruno Haible  <bruno@clisp.org>
81287
81288         * modules/mbchar: New file.
81289         * MODULES.html.sh (Extended multibyte and wide character utilities):
81290         New section.
81291
81292 2005-08-16  Bruno Haible  <bruno@clisp.org>
81293
81294         * m4/tls.m4: New file, from GNU gettext.
81295
81296 2005-08-16  Bruno Haible  <bruno@clisp.org>
81297
81298         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81299         always.
81300         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81301
81302 2005-08-16  Bruno Haible  <bruno@clisp.org>
81303
81304         * m4/mbiter.m4: New file.
81305
81306 2005-08-16  Bruno Haible  <bruno@clisp.org>
81307
81308         * m4/mbfile.m4: New file.
81309
81310 2005-08-16  Bruno Haible  <bruno@clisp.org>
81311
81312         * m4/mbchar.m4: New file.
81313
81314 2005-08-16  Bruno Haible  <bruno@clisp.org>
81315
81316         * lib/tls.h: New file, from GNU gettext.
81317         * lib/tls.c: New file, from GNU gettext.
81318
81319 2005-08-16  Bruno Haible  <bruno@clisp.org>
81320
81321         * lib/strnlen1.h: New file.
81322         * lib/strnlen1.c: New file.
81323
81324 2005-08-16  Bruno Haible  <bruno@clisp.org>
81325
81326         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81327         (mbi_init): Update.
81328         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81329         NUL byte, not after it.
81330
81331 2005-08-16  Bruno Haible  <bruno@clisp.org>
81332
81333         * lib/strcase.h (strcasecmp): Add note in comments.
81334         * lib/strncasecmp.c: Use code from strcasecmp.c.
81335         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81336         (strcasecmp): Work correctly in multibyte locales.
81337
81338 2005-08-16  Bruno Haible  <bruno@clisp.org>
81339
81340         * lib/mbiter.h: New file.
81341
81342 2005-08-16  Bruno Haible  <bruno@clisp.org>
81343
81344         * lib/mbfile.h: New file.
81345
81346 2005-08-16  Bruno Haible  <bruno@clisp.org>
81347
81348         * lib/mbchar.h: New file.
81349         * lib/mbchar.c: New file.
81350
81351 2005-08-16  Bruno Haible  <bruno@clisp.org>
81352
81353         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81354         the valid ones. Makes the comparison operations transitive:
81355         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81356         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81357
81358 2005-08-15  Simon Josefsson  <jas@extundo.com>
81359
81360         * modules/ssize_t (License): Change to 'unlimited'.
81361
81362         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81363
81364 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81367         Add comments for each pending glibc patch.
81368
81369 2005-08-15  Bruno Haible  <bruno@clisp.org>
81370
81371         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81372         __cplusplus is defined.
81373
81374 2005-08-14  Jim Meyering  <jim@meyering.net>
81375
81376         Sync from coreutils.
81377
81378         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81379         Use the hash-table-based cycle-detection code not just when
81380         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81381         Reported by James Youngman in
81382         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81383         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81384         FTS_TIGHT_CYCLE_CHECK.
81385         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81386         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81387         once again.
81388         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81389         * lib/fts.c (fd_safer): Remove decl.
81390         Include fcntl--.h rather than unistd-safer.h
81391         (fts_safe_changedir): Don't call fd_safer; no longer needed
81392         now that we include fcntl--.h.
81393
81394 2005-08-12  Simon Josefsson  <jas@extundo.com>
81395
81396         * modules/getndelim2: Use ssize_t module.
81397         * modules/getnline: Likewise.
81398         * modules/safe-read: Likewise.
81399         * modules/xreadlink: Likewise.
81400
81401         * modules/ssize_t: New file.
81402
81403 2005-08-12  Simon Josefsson  <jas@extundo.com>
81404
81405         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81406
81407 2005-08-12  Simon Josefsson  <jas@extundo.com>
81408
81409         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81410         ssize_t.
81411
81412 2005-08-12  Simon Josefsson  <jas@extundo.com>
81413
81414         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81415         readline, getdelim and check_version.
81416         (Support for systems lacking ISO C 99: Sizes of integer types):
81417         Add size_max.
81418
81419 2005-08-12  Bruno Haible  <bruno@clisp.org>
81420
81421         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81422
81423 2005-08-11  Simon Josefsson  <jas@extundo.com>
81424
81425         * modules/readline: New file.
81426
81427         * modules/strnlen (Files): Add strnlen.h.
81428
81429 2005-08-11  Simon Josefsson  <jas@extundo.com>
81430
81431         * m4/readline.m4: New file.
81432
81433 2005-08-11  Simon Josefsson  <jas@extundo.com>
81434
81435         * lib/readline.h, readline.c: New file.
81436
81437 2005-08-11  Simon Josefsson  <jas@extundo.com>
81438
81439         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81440         gl_AVOID.
81441
81442 2005-08-11  Bruno Haible  <bruno@clisp.org>
81443
81444         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81445
81446 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81447
81448         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81449
81450 2005-08-10  Simon Josefsson  <jas@extundo.com>
81451
81452         * tests/test-iconvme.c: New file.
81453
81454 2005-08-10  Simon Josefsson  <jas@extundo.com>
81455
81456         * m4/strnlen.m4: New file.
81457
81458         * m4/strndup.m4: Don't check for strnlen declaration, done in
81459         strnlen.m4.
81460
81461 2005-08-10  Simon Josefsson  <jas@extundo.com>
81462
81463         * lib/strndup.c: Use strnlen.h.
81464
81465         * lib/strnlen.h: New file.
81466
81467 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81468
81469         * README: Typos.
81470
81471 2005-08-02  Simon Josefsson  <jas@extundo.com>
81472
81473         * modules/readline: New file.
81474
81475 2005-08-02  Simon Josefsson  <jas@extundo.com>
81476
81477         * modules/getdelim: New file.
81478
81479         * modules/getline: Rewrite, don't use getndelim2.
81480
81481 2005-08-02  Simon Josefsson  <jas@extundo.com>
81482
81483         * m4/getline.m4: Separate out getdelim stuff into separate module.
81484
81485         * m4/getdelim.m4: New file.
81486
81487 2005-08-02  Simon Josefsson  <jas@extundo.com>
81488
81489         * lib/getline.h, getline.c: Rewrite.
81490
81491         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81492
81493 2005-07-31  Bruno Haible  <bruno@clisp.org>
81494
81495         * lib/lock.h (gl_lock_initializer): New macro.
81496         (gl_lock_define_initialized): Use it.
81497         (gl_rwlock_initializer): New macro.
81498         (gl_rwlock_define_initialized): Use it.
81499         (gl_recursive_lock_initializer): New macro.
81500         (gl_recursive_lock_define_initialized): Use it.
81501
81502 2005-07-30  Karl Berry  <karl@gnu.org>
81503
81504         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81505         Report from Ben Pfaff, regarding getopt.
81506
81507 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81508
81509         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81510         normal way.
81511         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81512         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81513         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81514         (gl_GETOPT): Use the new macros.  Most of the implementation
81515         is moved to the new macros.  This is for programs like Emacs
81516         that don't want all the functionality of gl_GETOPT.
81517
81518 2005-07-26  Bruno Haible  <bruno@clisp.org>
81519
81520         * m4/lock.m4: Update from GNU gettext.
81521
81522 2005-07-26  Bruno Haible  <bruno@clisp.org>
81523
81524         * lib/lock.h: Update from GNU gettext.
81525         * lib/lock.c: Update from GNU gettext.
81526
81527 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81528
81529         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81530         obsolescent AC_TRY_RUN.  Include the default includes files, for
81531         'exit'.
81532
81533 2005-07-24  Bruno Haible  <bruno@clisp.org>
81534
81535         * modules/visibility: New file.
81536         * MODULES.html.sh (Misc): Add visibility.
81537
81538 2005-07-24  Bruno Haible  <bruno@clisp.org>
81539
81540         * m4/visibility.m4: New file.
81541
81542 2005-07-24  Bruno Haible  <bruno@clisp.org>
81543
81544         * doc/visibility.texi: New file.
81545
81546 2005-07-22  Bruno Haible  <bruno@clisp.org>
81547
81548         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81549         $(ALLOCA_H), redundant through BUILT_SOURCES.
81550         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81551         redundant through BUILT_SOURCES.
81552         * modules/byteswap (Makefile.am): Remove explicit dependency on
81553         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81554         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81555         $(FNMATCH_H), redundant through BUILT_SOURCES.
81556         * modules/getopt (Makefile.am): Remove explicit dependency on
81557         $(GETOPT_H), redundant through BUILT_SOURCES.
81558         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81559         redundant through BUILT_SOURCES.
81560         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81561         redundant through BUILT_SOURCES.
81562         * modules/stdbool (Makefile.am): Remove explicit dependency on
81563         $(STDBOOL_H), redundant through BUILT_SOURCES.
81564         * modules/stdint (Makefile.am): Remove explicit dependency on
81565         $(STDINT_H), redundant through BUILT_SOURCES.
81566         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81567         Remove explicit dependency on $(SYSEXITS_H).
81568         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81569
81570 2005-07-18  Simon Josefsson  <jas@extundo.com>
81571
81572         * lib/check-version.c (check_version): Accept identical versions too.
81573
81574 2005-07-18  Bruno Haible  <bruno@clisp.org>
81575
81576         * modules/lock: New file.
81577         * MODULES.html.sh (Multithreading): New section.
81578
81579 2005-07-18  Bruno Haible  <bruno@clisp.org>
81580
81581         * m4/lock.m4: New file, from GNU gettext.
81582
81583 2005-07-18  Bruno Haible  <bruno@clisp.org>
81584
81585         * lib/lock.h: New file, from GNU gettext.
81586         * lib/lock.c: New file, from GNU gettext.
81587
81588 2005-07-18  Bruno Haible  <bruno@clisp.org>
81589
81590         * lib/lock.h (gl_once_t): New type.
81591         (gl_once_define, gl_once): New macros.
81592         * lib/lock.c (fresh_once): New variable.
81593         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81594         functions.
81595
81596 2005-07-16  Simon Josefsson  <jas@extundo.com>
81597
81598         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81599         workaround, suggested by Bruno.
81600
81601 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81602
81603         * modules/xalloc (Depends-on): Add xalloc-die.
81604         * modules/xvasprintf (Depends-on): Add xalloc-die.
81605
81606 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81607
81608         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81609         with a minor change.
81610
81611 2005-07-15  Bruno Haible  <bruno@clisp.org>
81612
81613         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81614         When using lib/poll.c, define poll as rpl_poll.
81615
81616 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81617
81618         * modules/argp (Depends-on): Remove unlocked-io.
81619
81620 2005-07-14  Derek Price  <derek@ximbiot.com>
81621
81622         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81623         for glob symlink bug.
81624
81625 2005-07-14  Bruno Haible  <bruno@clisp.org>
81626
81627         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81628         Instead, test for *_unlocked function declarations directly.
81629
81630 2005-07-11  Simon Josefsson  <jas@extundo.com>
81631
81632         * modules/size_max: New file.
81633
81634         * modules/xsize: Depend on size_max module for size_max.m4.
81635
81636 2005-07-11  Simon Josefsson  <jas@extundo.com>
81637
81638         * lib/size_max.h: New file.
81639
81640 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81641
81642         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81643         copyright symbol and the year.
81644         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81645         (version_etc_va): Use parameterized copyright notice.
81646         Reword to conform to the current GNU coding standards.
81647
81648 2005-07-11  Karl Berry  <karl@gnu.org>
81649
81650         * doc/gnulib.texi (Quoting): new node.
81651         (Initial import): more info, from Patrice.
81652
81653 2005-07-11  Bruno Haible  <bruno@clisp.org>
81654
81655         * gnulib-tool (func_usage): Document option --avoid.
81656         (Command line options): Handle --avoid.
81657         (func_acceptable): New function.
81658         (func_modules_transitive_closure): Use it.
81659
81660 2005-07-11  Bruno Haible  <bruno@clisp.org>
81661
81662         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81663         Reported by Jim Meyering.
81664
81665 2005-07-10  Bruno Haible  <bruno@clisp.org>
81666
81667         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81668         Needed when size_t is smaller than 'unsigned int'.
81669         Reported by Paul Eggert.
81670
81671 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81672
81673         * modules/argp (Depends-on): Add unlocked-io
81674
81675 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81676
81677         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81678         block of defines.
81679
81680 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81681
81682         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81683         fix now.
81684
81685 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81686         and Paul Eggert  <eggert@cs.ucla.edu>
81687
81688         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81689         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81690
81691 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81692
81693         * modules/regex (Files): Add lib/regex_internal.c,
81694         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81695         (Depends-on): Add extensions.
81696         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81697
81698 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81699
81700         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81701         pathconf.
81702         * m4/same.m4 (gl_SAME): Likewise.
81703         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81704
81705         * m4/regex.m4: Adjust to new libc regex implementation.
81706         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81707         all the .c and .h parts of (the new) regex.
81708         Quote the m4 stuff better.
81709         Check for RE_ICASE bug of old gnulib.
81710         Check for REG_STARTEND of recent libc.
81711         Rename local variables from jm_* to gl_*.
81712         Quote operand of "test -f".
81713         Say "recent enough" version of libc, not "version 2".
81714         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81715         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81716         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81717         Remove check for btowc, isascii.
81718         Require AM_LANGINFO_CODESET.
81719
81720 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81721
81722         * lib/regex.c, regex.h: Sync from libc.
81723         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81724         * lib/regexec.c:
81725         New files, synced from libc, except that regex_internal.h
81726         currently has a small porting fix.
81727
81728 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81731         regex_internal.c, regexec.c.
81732         Add regex_internal.h too, but as a comment, since the libc version
81733         is currently broken in gnulib mode.
81734
81735 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         Support programs like Emacs that use gnulib but not gettext.
81738         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81739         * modules/gettext-h: New file.
81740         * modules/gettext (Files): Remove lib/gettext.h.
81741         (Depends-on): Add gettext-h.
81742         (Makefile.am): Remove lib_SOURCES.
81743         * modules/argmatch, modules/c-stack, modules/closeout:
81744         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81745         * modules/execute, modules/file-type, modules/getaddrinfo:
81746         * modules/getopt, modules/human, modules/javacomp:
81747         * modules/javaexec, modules/mkdir-p, modules/obstack:
81748         * modules/openat, modules/pagealign_alloc, modules/pipe:
81749         * modules/quotearg, modules/regex, modules/rpmatch:
81750         * modules/unicodeio, modules/userspec, modules/version-etc:
81751         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81752         * modules/xsetenv:
81753         Depend on gettext-h, not gettext.
81754
81755 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81756
81757         * gnulib-tool (func_import): Add support for 'public domain' license.
81758         * modules/alloca, modules/atexit, modules/memmove:
81759         Now public domain, not GPL.
81760         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81761         * modules/realloc, modules/strerror, modules/strtod:
81762         Now LGPL, not GPL.
81763
81764 2005-07-05  Bruno Haible  <bruno@clisp.org>
81765
81766         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81767         autoconf CVS. Needed for mingw.
81768
81769 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81770
81771         Remove the dependency of the strftime module on the tzset module.
81772         * modules/strftime (Depends-on): Remove dependency on tzset.
81773
81774 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81775
81776         Remove the dependency of the strftime module on the tzset module.
81777         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81778         gl_FUNC_TZSET_CLOBBER.
81779
81780 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81781
81782         Remove the dependency of the strftime module on the tzset module.
81783         * lib/strftime.c (my_strftime)
81784         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81785         Copy the input structure, to work around some of the bug with
81786         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81787         Solaris releases, you should also use the tzset module, but we won't
81788         require it as a dependency any more since we don't want LGPLed code
81789         to depend on GPLed code.
81790
81791 2005-07-02  Jim Meyering  <jim@meyering.net>
81792
81793         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81794         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81795         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81796         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81797
81798 2005-07-02  Jim Meyering  <jim@meyering.net>
81799
81800         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81801
81802 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81803
81804         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81805         declares only 'struct timespec;' (!).
81806
81807 2005-07-01  Jim Meyering  <jim@meyering.net>
81808
81809         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81810         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81811         * lib/save-cwd.c, tempname.c:
81812         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81813         and don't include <sys/file.h>).
81814
81815 2005-06-29  Jim Meyering  <jim@meyering.net>
81816
81817         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81818         type name.  Use the variable name instead.
81819         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81820         Likewise.
81821
81822 2005-06-28  Simon Josefsson  <jas@extundo.com>
81823
81824         * modules/check-version (Files): Add check-version.m4.
81825
81826 2005-06-28  Simon Josefsson  <jas@extundo.com>
81827
81828         * m4/check-version.m4: New file, suggested by Jim Meyering
81829         <jim@meyering.net>.
81830
81831 2005-06-28  Simon Josefsson  <jas@extundo.com>
81832
81833         * lib/check-version.h, lib/check-version.c: New files.
81834
81835 2005-06-28  Simon Josefsson  <jas@extundo.com>
81836
81837         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81838         collision with global variable.  Better indentation.  Don't
81839         increment buffer pointer beyond buffer end.  Based on comments
81840         from Paul Eggert <eggert@cs.ucla.edu>.
81841
81842         * lib/base64.h: Indent.
81843
81844 2005-06-28  Simon Josefsson  <jas@extundo.com>
81845
81846         * doc/gnulib.texi (Library version handling): New section.
81847
81848 2005-06-28  Jim Meyering  <jim@meyering.net>
81849
81850         * check-module (find_included_lib_files): Hard-code another
81851         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81852         but modules/fts-lgpl (correctly) does not list those files.
81853
81854         * modules/canonicalize (Files): Add lib/pathmax.h.
81855
81856 2005-06-25  Simon Josefsson  <jas@extundo.com>
81857
81858         * modules/check-version: New file.
81859
81860 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81861
81862         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81863         initializer of struct addrinfo, as an indication that we don't
81864         care how many members the structure has.
81865
81866 2005-06-24  Derek Price  <derek@ximbiot.com>
81867         and Bruno Haible  <bruno@clisp.org>
81868
81869         Remove stat module & update lstat.
81870         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81871         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81872         * m4/stat.m4: Remove this file.
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         * lib/stat.c: Remove this file...
81879         (slash_aware_lstat): ...moving this content and its support...
81880         * lib/lstat.c (rpl_lstat): ...into here.
81881         * lib/lstat.h: New file.
81882
81883 2005-06-24  Derek Price  <derek@ximbiot.com>
81884         and Bruno Haible  <bruno@clisp.org>
81885
81886         Remove stat module & update lstat.
81887         * config/srclist.txt (libc sources): Remove stat.
81888
81889 2005-06-24  Derek Price  <derek@ximbiot.com>
81890         and Bruno Haible  <bruno@clisp.org>
81891
81892         Remove stat module & update lstat.
81893         * MODULES.html.sh (stat): Remove.
81894         * MODULES.html: Regenerated.
81895         * modules/lstat (Description): Correct function name.
81896         (Files): Add "lstat.h".
81897         (Depends-on): Remove stat, add xalloc, stat-macros.
81898         * modules/stat: Remove this file.
81899         (Include): Add "lstat.h", remove <sys/stat.h>.
81900
81901 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81902
81903         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81904         (ranged_convert): Don't save conversion in a temporary struct.
81905         This causes a warning with GCC 4.0.0, and anyway in the typical
81906         case it's not worth the extra 100 bytes or so of code.
81907         (ranged_convert, __mktime_internal): When calling a function via a
81908         pointer P, use P () rather than (*P) (), as we now assume C89 or
81909         better.
81910
81911 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81912
81913         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81914         "who -r" failed to give output.  Problem reported by Tim Waugh.
81915
81916         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81917         (xcalloc): Use it to avoid needless tests.
81918         Problem reported by Jim Meyering.
81919
81920 2005-06-20  Derek Price  <derek@ximbiot.com>
81921
81922         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81923         unnecessary for Autoconfs > 2.59c.
81924
81925 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81926
81927         * lib/argp.h (__option_is_short): Check upper limit of
81928         __key. Isprint() requires its argument to have the value
81929         of an unsigned char or EOF.
81930
81931 2005-06-16  Jim Meyering  <jim@meyering.net>
81932
81933         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81934         when either N or S is zero.
81935
81936 2005-06-16  Derek Price  <derek@ximbiot.com>
81937
81938         * m4/bison.m4: Declare YACC & YFLAGS precious.
81939
81940 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81941
81942         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81943         multibyte string or pattern, fall back on unibyte matching.
81944         Problem reported by James Youngman.
81945
81946 2005-06-08  Bruno Haible  <bruno@clisp.org>
81947
81948         * modules/csharpcomp: New file.
81949         * MODULES.html.sh (C#): Add csharpcomp.
81950
81951 2005-06-08  Bruno Haible  <bruno@clisp.org>
81952
81953         * m4/csharpcomp.m4: New file, from GNU gettext.
81954
81955 2005-06-08  Bruno Haible  <bruno@clisp.org>
81956
81957         * lib/csharpcomp.h: New file, from GNU gettext.
81958         * lib/csharpcomp.c: New file, from GNU gettext.
81959         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81960
81961 2005-06-08  Bruno Haible  <bruno@clisp.org>
81962
81963         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81964         warning on mingw.
81965
81966 2005-06-07  Derek Price  <derek@ximbiot.com>
81967
81968         Sync from CVS.
81969         * lib/glob_.h: Indent nested #ifdef.
81970
81971 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         Sync from coreutils.
81974         Use "file name" when talking about file names, instead of "filename"
81975         or "path", as per the GNU coding standards.
81976         * lib/mkdir-p.c: Renamed from makepath.c.
81977         (make_dir_parents): Renamed from make_path.  All callers changed.
81978         * lib/mkdir-p.h: Likewise.  All includers changed.
81979         * lib/filenamecat.c: Renamed from path-concat.c.
81980         (file_name_concat): Renamed from path_concat.  All callers changed.
81981         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81982         * lib/filenamecat.h: Likewise.  All includers changed.
81983         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81984         in comments or local variable names.
81985         * lib/basename.c: Likewise.
81986         * lib/canonicalize.c, canonicalize.h: Likewise.
81987         * lib/dirname.c, dirname.h: Likewise.
81988         * lib/euidaccess.c: Likewise.
81989         * lib/exclude.c: Likewise
81990         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81991         * lib/fsusage.c, fsuage.h: Likewise.
81992         * lib/fts.c, fts_.h: Likewise.
81993         * lib/getcwd.c: Likewise.
81994         * lib/getloadavg.c: Likewise.
81995         * lib/mkstemp.c: Likewise.
81996         * lib/mountlist.c, mountlist.h: Likewise.
81997         * lib/openat.c, openat.h: Likewise.
81998         * lib/readlink-stub.c: Likewise.
81999         * lib/readutmp.c, readutmp.h: Likewise.
82000         * lib/rename.c: Likewise.
82001         * lib/rmdir.c: Likewise.
82002         * lib/same.c: Likewise.
82003         * lib/savedir.c: Likewise.
82004         * lib/stripslash.c: Likewise.
82005         * lib/tempname.c: Likewise.
82006         * lib/xreadlink.c: Likewise.
82007         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82008         All uses changed.
82009         * lib/exclude.h: Likewise.
82010
82011         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82012         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82013         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82014         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82015         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82016         files have been getting away with it for years (MORE/BSD 4.3
82017         is extinct now).
82018         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82019         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82020
82021         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82022         Define to 256, not 255, as per modern POSIX.
82023
82024 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82025
82026         Sync from coreutils.
82027         Use "file name" when talking about file names, instead of "filename"
82028         or "path", as per the GNU coding standards.
82029         * MODULES.html.sh: mkdir-p renamed from makepath.
82030         filenamecat renamed from path-concat.
82031         * modules/filenamecat: Renamed from modules/path-concat.
82032         (Files): filenamecat.h and filenamecat.c renamed from
82033         path-concat.h and path-concat.c.
82034         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82035         (Include): filenamecat.h, not path-concat.h.
82036         * modules/mkdir-p: Renamed from modules/makepath.
82037         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82038         makepath.c.
82039         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82040         (Include): mkdir-p.h, not makepath.h.
82041
82042 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82043
82044         Sync from coreutils.
82045         * m4/mkdir-p.m4: Renamed from makepath.m4.
82046         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82047         Rename files from makepath.c to mkdir-p.c, and from
82048         makepath.h to mkdir-p.h.
82049         * m4/filenamecat.m4: Renamed from path-concat.m4.
82050         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82051         Rename files from path-concat.c to filenamecat.c,
82052         and from path-concat.h to filenamecat.h.
82053         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82054         "file name" in local variables or comments.
82055         * m4/rename.m4: Likewise.
82056
82057 2005-06-01  Bruno Haible  <bruno@clisp.org>
82058
82059         * modules/csharpexec: New file.
82060         * MODULES.html.sh (C#): New section.
82061
82062 2005-06-01  Bruno Haible  <bruno@clisp.org>
82063
82064         * m4/csharp.m4: New file, from GNU gettext.
82065         * m4/csharpexec.m4: New file, from GNU gettext.
82066
82067 2005-06-01  Bruno Haible  <bruno@clisp.org>
82068
82069         * lib/csharpexec.h: New file, from GNU gettext.
82070         * lib/csharpexec.c: New file, from GNU gettext.
82071         * lib/csharpexec.sh.in: New file, from GNU gettext.
82072
82073 2005-05-31  Derek Price  <derek@ximbiot.com>
82074             Paul Eggert  <eggert@cs.ucla.edu>
82075
82076         Sync from cvs.
82077         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82078
82079 2005-05-31  Derek Price  <derek@ximbiot.com>
82080             Paul Eggert  <eggert@cs.ucla.edu>
82081
82082         Sync from cvs.
82083         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82084
82085 2005-05-29  Derek Price  <derek@ximbiot.com>
82086
82087         * config/srclist.txt (glob_.h, glob.c): Add these files.
82088
82089 2005-05-29  Derek Price  <derek@ximbiot.com>
82090
82091         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82092         * modules/glob: New file.
82093         * modules/getlogin_r: Add link to POSIX spec in description.
82094
82095 2005-05-29  Derek Price  <derek@ximbiot.com>
82096             Paul Eggert  <eggert@cs.ucla.edu>
82097
82098         * m4/glob.m4: New file.
82099
82100 2005-05-29  Derek Price  <derek@ximbiot.com>
82101             Paul Eggert  <eggert@cs.ucla.edu>
82102
82103         * lib/glob_.h, lib/glob.c: New files.
82104
82105 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82106
82107         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82108         * modules/fts-lgpl (Depends-on): Remove gettext.
82109
82110 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82111
82112         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82113         and don't require gt_INTTYPES_PRI.
82114
82115 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82116
82117         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82118
82119         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82120         the configuration hassle isn't worth it.
82121         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82122         (LONGEST_MODIFIER, PRIuMAX): Remove.
82123
82124 2005-05-27  Bruno Haible  <bruno@clisp.org>
82125
82126         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82127
82128 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82129
82130         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82131         _POSIX_PTHREAD_SEMANTICS for Solaris.
82132
82133 2005-05-25  Derek Price  <derek@ximbiot.com>
82134
82135         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82136
82137 2005-05-25  Derek Price  <derek@ximbiot.com>
82138             Paul Eggert  <eggert@cs.ucla.edu>
82139
82140         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82141         * lib/getlogin_r.c, getlogin_r.h: New files.
82142
82143 2005-05-25  Bruno Haible  <bruno@clisp.org>
82144             Derek Price  <derek@ximbiot.com>
82145
82146         * lib/getlogin_r.h: Simplify API documentation.
82147
82148 2005-05-23  Derek Price  <derek@ximbiot.com>
82149
82150         * modules/minmax (Files): Add m4/minmax.m4.
82151         (configure.ac): Add gl_MINMAX.
82152
82153 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82154
82155         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82156         so that unistd-safer.h (GPL'ed code) need not be included.
82157
82158 2005-05-22  Bruno Haible  <bruno@clisp.org>
82159
82160         * m4/minmax.m4: New file.
82161         Based on a patch by Derek Price <derek@ximbiot.com>.
82162
82163 2005-05-22  Bruno Haible  <bruno@clisp.org>
82164
82165         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82166         (INT64_MIN): Fix definition.
82167         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82168
82169         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82170         NEED_SIGNED_INT_TYPES.
82171
82172         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82173         HAVE_SYSTEM_INTTYPES.
82174
82175 2005-05-22  Bruno Haible  <bruno@clisp.org>
82176
82177         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82178         Also include <sys/param.h> if it defines MIN, MAX.
82179         Based on a patch by Derek Price <derek@ximbiot.com>.
82180
82181 2005-05-21  Jim Meyering  <jim@meyering.net>
82182
82183         * modules/fts (Files): Add m4/inttypes-pri.m4.
82184         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82185
82186 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82187
82188         New fts module.
82189         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82190         (setup_dir, free_dir): New functions.
82191         (enter_dir, leave_dir): Define trivial
82192         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82193         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82194         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82195         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82196         Move to fts-cycle.c.
82197         (fts_open): Use setup_dir.
82198         (fts_close): Use free_dir.
82199         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82200         This adds a label and some gotos, but the alternatives were messier.
82201         Check for memory allocation failure when entering a dir.
82202         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82203         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82204         (FTS): New member fts_cycle, that is a union that contains the
82205         old active_dir_ht and cycle_state.  All uses changed to mention
82206         fts_cycle.ht and fts_cycle.state.
82207         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82208         fts.c, with the following changes:
82209         (setup_dir, free_dir): New functions.
82210         (enter_dir): Now returns bool.  Return true if successful, false
82211         if memory exhausted.  All callers changed.
82212         Do not bother partly cleaning up on
82213         memory allocation failure; that is free_dir's job.
82214         However, free ad if hash_insert fails, to avoid memory leak.
82215         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82216         fts->fts_options to see which union member to use.
82217
82218 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82219
82220         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82221         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82222
82223 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82224
82225         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82226
82227 2005-05-20  Jim Meyering  <jim@meyering.net>
82228
82229         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82230         Now a macro, to pacify GCC.
82231
82232 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82233
82234         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82235         of -1.
82236
82237 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82238
82239         * lib/chown.c (rpl_chown): Return -1 on failure.
82240
82241 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82242
82243         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82244         Don't check for stddef.h.
82245         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82246         don't use its results.
82247         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82248         since we include them unconditionally.  Don't require
82249         AM_STDBOOL_H, since stdbool is a prerequisite.
82250         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82251         since we assume C89 or better.
82252         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82253         as we don't use their results.
82254         Don't check for fchdir, memmove, memset, strrchr, as we use
82255         them unconditionally.
82256         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82257         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82258
82259 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82260
82261         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82262         Include <stddef.h> unconditionally, since we assume C89 now.
82263         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82264         * lib/fts.c: Include fts_.h first, to check interface.
82265         Do not include intprops.h; no longer needed.
82266         Include cycle-check.h and hash.h, since fts_.h no longer does.
82267         Remove unnecessary casts of closedir to void.
82268         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82269         decide whether to decrement nlinks.
82270         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82271         (FTS): Use struct hash_table * instead of Hash_table, so that
82272         we no longer need to include hash.h here.
82273
82274 2005-05-18  Jim Meyering  <jim@meyering.net>
82275
82276         * modules/dirfd (License): Change to LGPL.  Most of the code
82277         is already in the public domain.
82278
82279 2005-05-18  Jim Meyering  <jim@meyering.net>
82280
82281         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82282         Reported by Yoann Vandoorselaere.
82283
82284 2005-05-17  Jim Meyering  <jim@meyering.net>
82285
82286         * m4/fts.m4: New file, from coreutils.
82287
82288 2005-05-17  Jim Meyering  <jim@meyering.net>
82289
82290         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82291
82292 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82293
82294         Sync from coreutils.
82295         * m4/unlinkdir.m4: New file.
82296
82297 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82298
82299         Sync from coreutils.
82300         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82301         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82302         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82303         White space changes only.
82304         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82305         special.
82306         * lib/yesno.c: Include getline.h, not ctype.h.
82307         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82308         Use getline to remove arbitrary restriction on response length.
82309
82310 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82311
82312         * config/srclist-update: Spell out "Street" in FSF postal
82313         mail address; this is the style the FSF seems to prefer.
82314
82315         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82316         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82317         this updates FSF postal mail address.
82318
82319         Sync from coreutils.
82320         * modules/unlinkdir: New file.
82321         * modules/yesno (Depends-on): Add getline.
82322         * MODULES.html.sh (File system functions): Add unlinkdir.
82323
82324 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82325
82326         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82327         lib/strsep.h:
82328         Change the initial comment to refer to GPL, not LGPL.
82329         gnulib-tool will change it to LGPL as needed.
82330
82331         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82332         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82333         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82334         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82335         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82336         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82337         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82338         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82339         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82340         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82341         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82342         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82343         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82344         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82345         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82346         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82347         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82348         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82349         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82350         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82351         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82352         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82353         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82354         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82355         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82356         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82357         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82358         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82359         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82360         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82361         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82362         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82363         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82364         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82365         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82366         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82367         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82368         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82369         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82370         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82371         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82372         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82373         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82374         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82375         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82376         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82377         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82378         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82379         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82380         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82381         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82382         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82383         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82384         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82385         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82386         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82387         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82388         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82389         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82390         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82391         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82392         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82393         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82394         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82395         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82396         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82397         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82398         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82399         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82400         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82401         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82402         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82403         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82404         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82405         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82406         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82407         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82408         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82409         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82410         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82411         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82412         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82413         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82414         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82415         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82416         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82417         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82418         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82419         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82420         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82421         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82422         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82423         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82424         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82425         lib/yesno.c, lib/yesno.h:
82426         Update FSF postal mail address.
82427
82428 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82429
82430         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82431         tests/test-memmem.c, tests/test-stpncpy.c:
82432         Update FSF postal mail address.
82433
82434 2005-05-13  Bruno Haible  <bruno@clisp.org>
82435
82436         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82437         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82438         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82439         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82440         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82441         Add support for 64-bit integers in the MSVC compiler.
82442
82443 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82444
82445         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82446
82447 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82448
82449         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82450
82451 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82452
82453         * doc/getdate.texi (General date syntax): Don't say that date
82454         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82455         Problem reported by Nic Ferrier.
82456
82457 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82458
82459         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82460         specified in ai_socktype. Fix invalid ai_protocol
82461         check. ai_protocol is usually set to 0 or depending on
82462         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82463         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82464         ai_socktype / ai_protocol in the returned addrinfo structure.
82465
82466 2005-05-10  Simon Josefsson  <jas@extundo.com>
82467
82468         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82469         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82470
82471 2005-05-10  Karl Berry  <karl@gnu.org>
82472
82473         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82474         (from http://www.gnu.org/licenses).
82475         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82476         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82477         fdl.texi suffices.
82478
82479 2005-05-10  Karl Berry  <karl@gnu.org>
82480
82481         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82482         (COPYING.DOC): remove.
82483
82484         * config/srclist-update: new FSF address.
82485
82486 2005-05-10  Derek Price  <derek@ximbiot.com>
82487
82488         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82489         possible.
82490
82491 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82492             Bruno Haible  <bruno@clisp.org>
82493
82494         * modules/inet_ntop: New file.
82495         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82496         inet_ntop.
82497
82498 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82499             Bruno Haible  <bruno@clisp.org>
82500
82501         * m4/inet_ntop.m4: New file.
82502
82503 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82504             Bruno Haible  <bruno@clisp.org>
82505
82506         * lib/inet_ntop.h: New file.
82507         * lib/inet_ntop.c: New file, from glibc with modifications.
82508
82509 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82510
82511         * modules/time_r (License): Change to LGPL.
82512         * modules/extensions (License): Change to LGPL.  Actually,
82513         the license is more permissive than that, but currently gnulib-tool
82514         doesn't know how to handle more-permissive licenses.
82515
82516         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82517         Problem reported by Dave Love.
82518
82519 2005-05-08  Jim Meyering  <jim@meyering.net>
82520
82521         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82522         blank.
82523
82524 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82525
82526         * modules/argmatch (Depends-on): Add stdbool.
82527         * modules/backupfile (Depends-on): Likewise.
82528         * modules/chdir-long (Depends-on): Likewise.
82529         * modules/closeout (Depends-on): Likewise.
82530         * modules/cycle-check (Depends-on): Likewise.
82531         * modules/dirname (Depends-on): Likewise.
82532         * modules/fnmatch (Depends-on): Likewise.
82533         * modules/fsusage (Depends-on): Likewise.
82534         * modules/fwriteerror (Depends-on): Likewise.
82535         * modules/getcwd (Depends-on): Likewise.
82536         * modules/getloadavg (Depends-on): Likewise.
82537         * modules/hard-locale (Depends-on): Likewise.
82538         * modules/makepath (Depends-on): Likewise.
82539         * modules/mountlist (Depends-on): Likewise.
82540         * modules/nanosleep (Depends-on): Likewise.
82541         * modules/posixtm (Depends-on): Likewise.
82542         * modules/quotearg (Depends-on): Likewise.
82543         * modules/readtokens (Depends-on): Likewise.
82544         * modules/readtokens0 (Depends-on): Likewise.
82545         * modules/readutmp (Depends-on): Likewise.
82546         * modules/save-cwd (Depends-on): Likewise.
82547         * modules/strftime (Depends-on): Likewise.
82548         * modules/userspec (Depends-on): Likewise.
82549         * modules/utimecmp (Depends-on): Likewise.
82550         * modules/xgetcwd (Depends-on): Likewise.
82551         * modules/xnanosleep (Depends-on): Likewise.
82552         * modules/xstrtod (Depends-on): Likewise.
82553         * modules/yesno (Depends-on): Likewise.
82554
82555 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82556
82557         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82558         needless checks.
82559
82560 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82561
82562         Merge from coreutils.  Among other things,
82563         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82564         * lib/fd-safer.c: New file.
82565         * lib/fcntl-safer.h, open-safer.c: Remove.
82566         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82567         * lib/dup-safer.c: Include unistd-safer.h first.
82568         Don't include errno.h.
82569         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82570         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82571         * lib/file-type.c: Rely on file-type.h change.
82572         * lib/getloadavg.c: Include unistd-safer.h.
82573         (getloadavg): Use safer open.
82574         * lib/getusershell.c: Include "stdio-safer.h".
82575         (getusershell): Use safer fopen.
82576         * lib/long-options.c (long_options): Use NULL rather than 0.
82577         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82578         'free'.
82579         * lib/modechange.c: Likewise.
82580         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82581         (MODE_DONE): New constant.
82582         (struct mode_change): Remove 'next' member.
82583         (make_node_op_equals): New function; like the old one of the
82584         same name, except it allocates an array.
82585         (mode_compile, mode_create_from_ref): Use it.
82586         (mode_compile): Allocate result as an array, not a linked list.
82587         Parse octal string ourself, so that we catch mistakes like "+0".
82588         (mode_adjust): Arg is an array, not a linked list.
82589         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82590         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82591         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82592         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82593         Remove.  This is now stat-macros.h's job.
82594         (talloc): Remove.  All callers replaced by xalloc, so that
82595         our invokers don't have to worry about reporting memory failures.
82596         (make_node_op_equals): Remove.
82597         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82598         New constants.
82599         (struct mode_change): Moved here from modechange.h.
82600         (mode_append_entry): Remove.
82601         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82602         apps to have incorrect behavior.  Use simpler algorithm for head
82603         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82604         Detect more invalid usages rather than having somewhat-random behavior.
82605         Don't insert an "a=" action, as that leads to incorrect behavior.
82606         (mode_compile, mode_create_from_ref): Return NULL on error instead
82607         of an enum, since now there's only one way to have an error.  All
82608         callers changed.
82609         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82610         at the correct time.  Simplify calculation of "+u" and its ilk.
82611         Don't mishandle "+X".
82612         (mode_free): Remove "register" and localize decls.
82613         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82614         (struct mode_change): Move to modechange.c; callers don't
82615         need to see this stuff.
82616         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82617         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82618         (mode_change, mode_adjust): Reflect the new signatures noted above.
82619         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82620         that might redefine system include files.
82621         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82622         (my_usleep): Use NULL rather than (void *) 0.
82623         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82624         Use siginterrupt to specify that system calls should be interrupted.
82625         (rpl_nanosleep): Move initialization of suspended closer to call of
82626         my_usleep.
82627         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82628         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82629         (desirable_utmp_entry): New function.
82630         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82631         using x2nrealloc, to simplify logic.
82632         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82633         size calculation.  Do not assume utmp file is a regular file.
82634         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82635         (READ_UTMP_CHECK_PIDS): New constant.
82636         * lib/save-cwd.c: Include unistd-safer.h.
82637         (save_cwd): Use fd_safer.
82638         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82639         [!_LIBC] Include "stat-macros.h" instead.
82640         * lib/unistd-safer.h (fd_safer): New decl.
82641
82642 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82643
82644         * modules/getloadavg (Depends-on): Add unistd-safer.
82645         * modules/getusershell (Depends-on): Add stdio-safer.
82646         * modules/lstat (Depends-on): Remove xalloc.
82647         * modules/mkstemp (Depends-on): Add stat-macros.
82648         * modules/modechange (Depends-on): Remove xstrtol.
82649         Add stat-macros, xalloc.
82650         * modules/save-cwd (Depends-on): Add unistd-safer.
82651         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82652         * modules/unistd-safer (Files): Add lib/fd-safer.c
82653         (Makefile.am): Remove lib_SOURCES.
82654
82655         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82656         Remove fcntl-safer; unistd-safer supersedes it.
82657
82658 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82659
82660         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82661         AC_HEADER_STAT.
82662         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82663         (gl_PREREQ_CHOWN): Remove.
82664         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82665         it.  Don't require AC_HEADER_STAT.
82666         (gl_PREREQ_LSTAT): Remove.
82667         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82668         Don't require AC_HEADER_STAT.
82669         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82670         (gl_PREREQ_RMDIR): Remove.
82671         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82672         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82673         the stat-macros module a prerequisite.
82674         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82675         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82676         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82677         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82678         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82679         variable names.
82680         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82681         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82682         variable prefixes.
82683         * m4/fcntl-safer.m4: Remove.
82684         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82685         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82686         Invoke gl_PREREQ_FD_SAFER.
82687         (gl_PREREQ_FD_SAFER): New macro.
82688         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82689         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82690         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82691         Remove duplicate call to AC_LIBOBJ(readutmp).
82692         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82693
82694         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82695         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82696
82697 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82698
82699         * MODULES.html.sh (Misc): Add byteswap.
82700
82701 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82702
82703         * modules/getcwd (Depends-on): Add extensions.
82704         * modules/openat (Depends-on): Likewise.
82705
82706 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82707
82708         * modules/byteswap: New file.
82709
82710 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82711
82712         * m4/byteswap.m4: New file.
82713
82714 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82715
82716         * lib/byteswap_.h: New file.
82717
82718 2005-04-25  Karl Berry  <karl@gnu.org>
82719
82720         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82721
82722 2005-04-25  Albert Chin  <china@thewrittenword.com>
82723
82724         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82725         Toolkit C bug.
82726
82727 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82728
82729         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82730         (func_ln_if_changed): Remove forcibly for no error message
82731         in case file does not exist.
82732
82733 2005-04-19  Simon Josefsson  <jas@extundo.com>
82734
82735         * gnulib-tool (Options): Make --symlink mean --symbolic.
82736
82737 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82738
82739         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82740
82741 2005-04-16  Simon Josefsson  <jas@extundo.com>
82742
82743         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82744
82745 2005-04-15  Simon Josefsson  <jas@extundo.com>
82746
82747         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82748
82749 2005-04-15  Simon Josefsson  <jas@extundo.com>
82750
82751         * gnulib-tool: Rename --symlink to --symbolic.
82752
82753 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82754
82755         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82756         symbolic links to files instead of copying/moving.  Add --aux-dir,
82757         specifying directory relative --dir where auxiliary build tools
82758         are placed.
82759
82760 2005-04-14  Bruno Haible  <bruno@clisp.org>
82761
82762         * modules/allocsa (License): Change to LGPL.
82763         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82764
82765 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82766
82767         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82768         that "UTC +1 second" continues to work.  Problem reported
82769         by Dmitry V. Levin.
82770         (relunit_snumber): New rule.
82771         (relunit): Use it.
82772
82773 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82774
82775         * lib/getdate.y (universal_time_zone_table): New constant.
82776         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82777         universal_time_zone_table.
82778         (lookup_zone): Prefer universal_time_zone_table to
82779         local_time_zone_table, so that "GMT" time stamps are allowed in
82780         London during the summer.  Problem reported by Ian Abbott.
82781
82782 2005-04-12  Jim Meyering  <jim@meyering.net>
82783
82784         * lib/human.c (humblock): Set *options even when returning due to
82785         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82786         warning from gcc-4.
82787
82788 2005-04-09  Jim Meyering  <jim@meyering.net>
82789
82790         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82791         -Wuninitialized: initialize tm0.tm_year.
82792
82793 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82794
82795         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82796         count, since there's no maximum.  All uses changed.
82797         Add member dsts_seen.
82798         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82799         not being INT_MAX.
82800         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82801         Use pc_rels_seen to decide whther a date is absolute.
82802
82803         * lib/getdate.y (number): Don't overwrite year.
82804         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82805         check.
82806
82807 2005-04-02  Simon Josefsson  <jas@extundo.com>
82808
82809         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82810         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82811
82812 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82813
82814         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82815         where no absolute path name can be longer than PATH_MAX.
82816
82817 2005-03-27  Jim Meyering  <jim@meyering.net>
82818
82819         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82820
82821 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82822
82823         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82824         "one's complement" -> "ones' complement" in comment, as per Knuth.
82825         "value of type" -> "type or expression" in comment.
82826         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82827
82828 2005-03-26  Jim Meyering  <jim@meyering.net>
82829
82830         Comment nits.
82831         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82832         Correct typos: s/or/of/.
82833
82834 2005-03-26  Jim Meyering  <jim@meyering.net>
82835
82836         * modules/check-include-files: Move to ../ and rename to...
82837         * check-module: ...this.
82838
82839 2005-03-25  Jim Meyering  <jim@meyering.net>
82840
82841         * modules/xvasprintf (Files): Add xalloc.h.
82842
82843 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82844
82845         * modules/gettext (Files): config/config.rpath ->
82846         build-aux/config.rpath
82847         * modules/iconv (Files): Likewise.
82848         Problem reported by Oskar Liljeblad.
82849
82850 2005-03-23  Jim Meyering  <jim@meyering.net>
82851
82852         * modules/check-include-files: New script to check for
82853         missing dependencies, multiple includes, etc.
82854
82855         * modules/c-strtold (Depends-on): Add xalloc.
82856         * modules/c-strtod (Depends-on): Add xalloc.
82857         * modules/hash (Depends-on): Add xalloc.
82858         (Files): Remove lib/xalloc.h.
82859
82860         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82861         * modules/userspec (Files): Add lib/inttostr.h.
82862
82863 2005-03-23  Jim Meyering  <jim@meyering.net>
82864
82865         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82866
82867 2005-03-22  Jim Meyering  <jim@meyering.net>
82868
82869         * modules/stat-macros: New module.
82870         * modules/canonicalize, modules/euidaccess, modules/file-type,
82871         * modules/filemode, modules/lchown, modules/makepath,
82872         * modules/rmdir, modules/stat: Depend on new stat-macros module
82873         rather than listing lib/stat-macros.h manually.
82874         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82875
82876 2005-03-22  Jim Meyering  <jim@meyering.net>
82877
82878         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82879
82880 2005-03-22  Bruno Haible  <bruno@clisp.org>
82881
82882         * config/srclist.txt: Replace target directory 'config' with
82883         'build-aux'.
82884         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82885         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82886         ../build-aux/.
82887
82888 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82889
82890         * modules/chdir-long (Depends-on): Add mempcpy.
82891
82892         * modules/acl, modules/backupfile, modules/c-strtod,
82893         modules/c-strtold, modules/canon-host, modules/canonicalize,
82894         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82895         modules/exclude, modules/exitfail, modules/file-type,
82896         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82897         modules/getdate, modules/getline, modules/getpagesize,
82898         modules/getpass, modules/getugroups, modules/group-member,
82899         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82900         modules/inttostr, modules/long-options, modules/makepath,
82901         modules/md5, modules/memcasecmp, modules/memcoll,
82902         modules/modechange, modules/mountlist, modules/path-concat,
82903         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82904         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82905         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82906         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82907         modules/strftime, modules/strndup, modules/strverscmp,
82908         modules/timespec, modules/unlocked-io, modules/userspec,
82909         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82910         modules/yesno:
82911         Remove lib_SOURCES line from Makefile.am section, as this is now
82912         done automatically by the corresponding Autoconf macro.
82913
82914 2005-03-21  Jim Meyering  <jim@meyering.net>
82915
82916         Changes imported from coreutils.
82917
82918         * lib/cycle-check.c: Don't include xalloc.h.
82919
82920         * lib/path-concat.c: Don't include assert.h.
82921         (path_concat): Remove assertion that would have triggered
82922         for ABASE starting with more than one slash.
82923         Reported by Andreas Schwab.
82924
82925         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82926         properly when ABASE is an absolute file name.
82927         Correct the description of this function.
82928         Include <assert.h>.
82929         Add an assertion and a test driver.
82930         This fixes a bug introduced on 2004-07-02.
82931         Andreas Schwab reported the resulting failure of cp --parents:
82932         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82933
82934 2005-03-21  Jim Meyering  <jim@meyering.net>
82935
82936         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82937         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82938
82939 2005-03-21  Jim Meyering  <jim@meyering.net>
82940         and  Paul Eggert  <eggert@cs.ucla.edu>
82941
82942         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82943         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82944         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82945         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82946         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82947         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82948         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82949         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82950         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82951         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82952         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82953         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82954         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82955         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82956         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82957         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82958         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82959         for these modules.
82960
82961 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82962
82963         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82964         (which shouldn't happen), generate nothing instead of returning 0
82965         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82966
82967 2005-03-16  Bruno Haible  <bruno@clisp.org>
82968
82969         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82970         HAVE_LONGLONG_64BIT.
82971
82972 2005-03-16  Bruno Haible  <bruno@clisp.org>
82973
82974         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82975         HAVE_LONGLONG_64BIT.
82976
82977 2005-03-16  Bruno Haible  <bruno@clisp.org>
82978
82979         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82980         HAVE_LONGLONG_64BIT.
82981
82982 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82983
82984         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82985         reliably distinguish strftime failure from empty output on POSIX
82986         hosts.
82987
82988 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82989
82990         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82991         (iconv_string): Don't guess a size-zero buffer, as that might cause
82992         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82993         result would be 'too large', where 'too large' is (heuristically)
82994         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82995         overflow concerns.  This will prevent some unwanted malloc failures
82996         when the inputs are very large.
82997
82998 2005-03-15  Karl Berry  <karl@gnu.org>
82999
83000         * config/srclist.txt (config.rpath): from gettext.
83001         * config/config.rpath: update.
83002
83003 2005-03-15  Bruno Haible  <bruno@clisp.org>
83004
83005         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83006         to 'negate'.
83007
83008         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83009         variable.
83010
83011         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83012         results.
83013
83014 2005-03-14  Simon Josefsson  <jas@extundo.com>
83015
83016         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83017         <fx@gnu.org>.
83018
83019 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83020
83021         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83022         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83023         intprops.h.
83024         * lib/strtol.c: Likewise.
83025
83026 2005-03-14  Jim Meyering  <jim@meyering.net>
83027
83028         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83029         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83030         to be nonzero so that we (and caller) can detect the difference
83031         between a valid zero-length expansion and an error return, even
83032         when the underlying strftime fails before writing anything into
83033         that location.
83034
83035 2005-03-14  Bruno Haible  <bruno@clisp.org>
83036
83037         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83038         Update from GNU gettext 0.14.3.
83039
83040 2005-03-10  Jim Meyering  <jim@meyering.net>
83041
83042         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83043
83044 2005-03-10  Jim Meyering  <jim@meyering.net>
83045
83046         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83047         so that this module works on systems without fchdir.
83048
83049 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83050
83051         Factor int-properties macros into a single file, except for
83052         glibc-related files.
83053         * lib/intprops.h: New file.
83054         * lib/getloadavg.c: Include it instead of limits.h.
83055         (INT_STRLEN_BOUND): Remove.
83056         * lib/human.c: Include intprops.h.
83057         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83058         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83059         302/1000.
83060         * lib/inttostr.h: Include intprops.h instead of limits.h.
83061         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83062         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83063         for consistency with intprops.h.
83064         (time_t_is_integer, twos_complement_arithmetic): Use them.
83065         * lib/sig2str.h: Include <signal.h>, intprops.h.
83066         (INT_STRLEN_BOUND): Remove.
83067         * lib/strftime.c (TYPE_SIGNED): Remove.
83068         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83069         * lib/strtol.c: Adjust comments to match intprops.h.
83070         * lib/userspec.c: Include intprops.h.
83071         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83072         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83073         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83074         instead of rolling our own expressions.
83075         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83076
83077         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83078         instead of int.
83079         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83080         the right thing even if adding 1900 would overflow.  Similarly
83081         for tm_mon + 1 and tm_yday + 1.
83082         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83083         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83084         (DO_SIGNED_NUMBER): New macro.
83085         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83086
83087 2005-03-07  Bruno Haible  <bruno@clisp.org>
83088
83089         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83090
83091 2005-03-07  Bruno Haible  <bruno@clisp.org>
83092
83093         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83094
83095 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83096
83097         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83098         (func_import): Only replace files via --import when they have actually
83099         changed.
83100
83101 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83102
83103         * m4/mmap-anon.m4: New file.
83104         * m4/pagealign_alloc.m4: New file.
83105
83106 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83107             Bruno Haible  <bruno@clisp.org>
83108
83109         * modules/pagealign_alloc: New file.
83110         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83111
83112 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83113             Bruno Haible  <bruno@clisp.org>
83114
83115         * lib/pagealign_alloc.h: New file.
83116         * lib/pagealign_alloc.c: New file.
83117
83118 2005-03-03  Bruno Haible  <bruno@clisp.org>
83119
83120         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83121         Use an all-permissive copyright notice, recommended by RMS.
83122
83123 2005-03-02  Bruno Haible  <bruno@clisp.org>
83124
83125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83126         of AIX, the replacement has to be done only after <string.h> is
83127         included, therefore not in config.h. stpncpy.h does the replacement,
83128         and stpncpy.c uses it.
83129
83130 2005-03-02  Bruno Haible  <bruno@clisp.org>
83131
83132         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83133         stpncpy.c uses it.
83134
83135 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83136
83137         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83138         The workaround isn't strictly needed for POSIX conformance, and
83139         it's too much of a pain to configure and maintain.  We'll ask
83140         people to fix their kernels instead.
83141         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83142         (NANOSLEEP_BUG_WORKAROUND): Remove.
83143         (xnanosleep): Remove the workaround.
83144
83145 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83146
83147         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83148         Reported by Derek Price.
83149         (Include): Add "timespec.h".
83150
83151         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83152
83153 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83154
83155         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83156         to detect nanosleep bug.
83157
83158 2005-03-01  Bruno Haible  <bruno@clisp.org>
83159
83160         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83161
83162 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83163
83164         * modules/gethrxtime: New file.
83165         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83166         (Depends-on): Add gethrxtime.
83167         (configure.ac): Add gl_XNANOSLEEP.
83168         (Makefile.am): Remove lib_SOURCES line.
83169
83170 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83171
83172         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83173         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83174
83175 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83176
83177         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83178         * lib/timespec.h (gettime): Return void, since it always
83179         succeeds now.  All uses changed.
83180         * lib/gettime.c (gettime): Likewise.
83181         [HAVE_NANOTIME]: Prefer nanotime.
83182         Assume gettimeofday succeeds, as POSIX requires.
83183         Assime time () succeeds, since other code already does.
83184         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83185         (timespec_subtract): Remove.
83186         (NANOSLEEP_BUG_WORKAROUND): New constant.
83187         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83188         things considerably.  Use it only on GNU/Linux hosts, since the
83189         workaround shouldn't be needed elsewhere.
83190
83191 2005-02-24  Bruno Haible  <bruno@clisp.org>
83192
83193         * modules/gettext (Files): Add m4/glibc2.m4.
83194
83195 2005-02-24  Bruno Haible  <bruno@clisp.org>
83196
83197         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83198         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83199         * m4/progtest.m4:
83200         Update from GNU gettext 0.14.2.
83201         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83202
83203 2005-02-24  Bruno Haible  <bruno@clisp.org>
83204
83205         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83206         * lib/config.charset: Update from GNU gettext 0.14.2.
83207
83208 2005-02-24  Bruno Haible  <bruno@clisp.org>
83209
83210         * lib/gettext.h: Update from GNU gettext 0.14.2.
83211
83212 2005-02-23  Simon Josefsson  <jas@extundo.com>
83213
83214         * m4/iconvme.m4: New file.
83215
83216 2005-02-23  Jim Meyering  <jim@meyering.net>
83217
83218         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83219         change.
83220         Thanks to Bruno Haible for catching it.
83221
83222 2005-02-22  Simon Josefsson  <jas@extundo.com>
83223
83224         * modules/iconvme: New file.
83225
83226         * MODULES.html.sh: Add iconvme.
83227
83228 2005-02-22  Simon Josefsson  <jas@extundo.com>
83229
83230         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83231
83232 2005-02-22  Simon Josefsson  <jas@extundo.com>
83233
83234         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83235
83236 2005-02-22  Jim Meyering  <jim@meyering.net>
83237
83238         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83239         s/ifndef/ifdef/.
83240
83241 2005-02-20  Neil Conway  <neilc@samurai.com>
83242
83243         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83244         returned by OSX/Darwin if the specified buffer is not large
83245         enough for the hostname.
83246
83247 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83248
83249         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83250         pass it to _help, otherwise the latter coredumps trying to
83251         dereference state.root_argp.
83252
83253 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83254
83255         * modules/chdir-long (Depends-on): Add memrchr.
83256         * modules/memrchr (Files): Add lib/memrchr.h.
83257         (Include): "memrchr.h".
83258
83259 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83260
83261         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83262
83263 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83264
83265         * lib/memrchr.h: New file.
83266         * lib/chdir-long.c: Include it.
83267         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83268         Don't bother including stddef.h.
83269
83270 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83271
83272         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83273         inclusion.
83274         Include <sys/types.h>, for dev_t.
83275         (ME_DUMMY, ME_REMOTE): Move from here....
83276         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83277         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83278         Dmitry V. Levin.
83279         Include mountlist.h first, to test the interface.
83280
83281 2005-01-29  Bruno Haible  <bruno@clisp.org>
83282
83283         * lib/progname.c (program_name): Initialize.
83284         Needed when linking statically on MacOS X.
83285
83286 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83287
83288         Sync from coreutils.
83289         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83290         (Depends-on): Add c-strtod.
83291         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83292
83293 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83294
83295         Sync from coreutils.
83296         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83297
83298         Remove files that are specific to coreutils.
83299         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83300
83301 2005-01-28  Bruno Haible  <bruno@clisp.org>
83302
83303         * modules/javacomp: New file.
83304         * MODULES.html.sh (Java): Add javacomp.
83305
83306 2005-01-28  Bruno Haible  <bruno@clisp.org>
83307
83308         * m4/javacomp.m4: New file, from GNU gettext.
83309
83310 2005-01-28  Bruno Haible  <bruno@clisp.org>
83311
83312         * lib/javacomp.sh.in: New file, from GNU gettext.
83313         * lib/javacomp.h: New file, from GNU gettext.
83314         * lib/javacomp.c: New file, from GNU gettext.
83315
83316 2005-01-26  Simon Josefsson  <jas@extundo.com>
83317
83318         * lib/gai_strerror.c: Use GPL in header.
83319
83320 2005-01-26  Bruno Haible  <bruno@clisp.org>
83321
83322         * modules/javaexec: New file.
83323         * MODULES.html.sh (Java): Add javaexec.
83324
83325 2005-01-26  Bruno Haible  <bruno@clisp.org>
83326
83327         * m4/javaexec.m4: New file, from GNU gettext.
83328
83329 2005-01-26  Bruno Haible  <bruno@clisp.org>
83330
83331         * lib/javaexec.sh.in: New file, from GNU gettext.
83332         * lib/javaexec.h: New file, from GNU gettext.
83333         * lib/javaexec.c: New file, from GNU gettext.
83334
83335 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83336
83337         * modules/lchown (Depends-on): Remove lchown.h
83338
83339 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83340
83341         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83342         must be defined if the header file was not found, in order
83343         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83344
83345 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83346
83347         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83348         initializers for struct pentry_state.
83349         (__argp_error): Check return value of __asprintf
83350         (__argp_failure): Translate error message
83351
83352         * lib/argp-parse.c: Removed braces around the expansion of N_()
83353
83354 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83355
83356         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83357         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83358         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83359         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83360         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83361         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83362         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83363         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83364         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83365         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83366         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83367         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83368         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83369         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83370         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83371         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83372         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83373         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83374         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83375         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83376         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83377         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83378         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83379         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83380         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83381         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83382         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83383         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83384         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83385         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83386         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83387         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83388         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83389         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83390         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83391         Use an all-permissive copyright notice, recommended by RMS.
83392
83393 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83394
83395         * modules/chdir-long (Depends-on): Remove mempcpy.
83396
83397 2005-01-21  Jim Meyering  <jim@meyering.net>
83398
83399         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83400         same value as for Solaris 9.
83401
83402         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83403         component length.  This included changing the parameter to be
83404         of type `char *' rather than `char const *'.
83405         * lib/chdir-long.h (chdir_long): Update prototype.
83406
83407         * lib/openat.c (fdopendir, fstatat): New functions.
83408         * lib/openat.h: Include headers required for use of DIR and struct
83409         stat.
83410         [AT_SYMLINK_NOFOLLOW]: Define.
83411         (fdopendir, fstatat): Add prototypes.
83412
83413 2005-01-21  Bruno Haible  <bruno@clisp.org>
83414
83415         * modules/classpath: New file.
83416         * MODULES.html.sh (Java): Add classpath.
83417
83418 2005-01-21  Bruno Haible  <bruno@clisp.org>
83419
83420         * lib/classpath.h: New file, from GNU gettext.
83421         * lib/classpath.c: New file, from GNU gettext.
83422
83423 2005-01-20  Simon Josefsson  <jas@extundo.com>
83424
83425         * modules/version-etc-fsf: New file.
83426
83427 2005-01-20  Simon Josefsson  <jas@extundo.com>
83428
83429         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83430         * lib/version-etc.c: Remove version_etc_copyright.
83431         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83432         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83433
83434 2005-01-20  Simon Josefsson  <jas@extundo.com>
83435
83436         * lib/base64.h (isbase64): Add.
83437
83438         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83439         using a unsigned prototype, don't inline.
83440         (base64_decode): Use it.
83441
83442 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83443
83444         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83445         it.
83446
83447 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83448
83449         * lib/save-cwd.c (save_cwd): Remove code to support the case
83450         where fchdir is missing or flaky.
83451
83452 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83453
83454         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83455
83456 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83457
83458         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83459         AC_LIBSOURCES now does this.
83460         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83461         with new ullong_max module.
83462
83463 2005-01-19  Bruno Haible  <bruno@clisp.org>
83464
83465         * modules/sh-quote: New file.
83466         * MODULES.html.sh (Executing programs): Add sh-quote.
83467
83468 2005-01-19  Bruno Haible  <bruno@clisp.org>
83469
83470         * lib/sh-quote.h: New file, from GNU gettext.
83471         * lib/sh-quote.c: New file, from GNU gettext.
83472
83473 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83474
83475         Merge from coreutils.
83476         * m4/ullong_max.m4: New file.
83477         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83478         (gl_MACROS): Assume localeconv exists.
83479
83480 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83481
83482         Merge changes from coreutils, as described below in several
83483         changelogs dated today.
83484
83485         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83486         (O_DIRECTORY): Remove; not needed here, since "." must be
83487         a directory.  All uses removed.
83488         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83489         universal on Suns, and we also need to test for IRIX.
83490         Revamp code to use 'if' rather than '#if'.
83491         Avoid unnecessary comparison of cwd->desc to 0.
83492
83493         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83494         for known valid error numbers rather than observed invalid ones.
83495
83496 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83497
83498         * modules/ullong_max: New file.
83499
83500         * modules/chdir-long, modules/openat: New files.
83501         * modules/save-cwd (Depends-on): Depend on chdir-long.
83502         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83503
83504 2005-01-18  Jim Meyering  <jim@meyering.net>
83505
83506         Merge from coreutils.
83507         * m4/chdir-long.m4, m4/openat.m4: New files.
83508         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83509         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83510         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83511         is sane and DOES follow symlinks.  Besides, testing 20 different
83512         systems found no broken chown implementations.
83513         Prompted by a change in rsync's copy of this macro.
83514         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83515
83516         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83517
83518         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83519         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83520         NULL-means-set-to-current-time semantics.
83521         Remove temporary file immediately, rather than waiting
83522         for configure's at-exit trap code to do it.
83523
83524 2005-01-18  Jim Meyering  <jim@meyering.net>
83525
83526         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83527
83528         * lib/utimens.c (futimens): Account for the fact that futimes
83529         can also fail with errno == ENOSYS or errno == ENOENT.
83530         Patch from Dmitry V. Levin.
83531
83532         Change the name of the robust chdir function from chdir to chdir_long.
83533         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83534         (restore_cwd): Use chdir_long, not chdir.
83535         * lib/chdir-long.c: Renamed from chdir.c.
83536         * lib/chdir-long.h: Renamed from chdir.h.
83537         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83538         Hurd.
83539
83540 2005-01-18  Bruno Haible  <bruno@clisp.org>
83541
83542         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83543         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83544         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83545         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83546         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83547         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83548         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83549         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83550         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83551         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83552         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83553         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83554         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83555         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83556         Use an all-permissive copyright notice, recommended by RMS.
83557
83558 2005-01-18  Bob Proulx  <bob@proulx.com>
83559
83560         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83561         simplify offsetof() macro construct to avoid compile failure with
83562         native HP-UX 11.0 ANSI C compiler.
83563
83564 2005-01-17  Bruno Haible  <bruno@clisp.org>
83565
83566         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83567         redundant because stpncpy.m4 takes care of it.
83568
83569 2005-01-17  Bruno Haible  <bruno@clisp.org>
83570
83571         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83572
83573 2005-01-17  Bruno Haible  <bruno@clisp.org>
83574
83575         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83576         used.
83577
83578 2005-01-17  Bruno Haible  <bruno@clisp.org>
83579
83580         * lib/fwriteerror.h (fwriteerror): Change specification to include
83581         fclose.
83582         * lib/fwriteerror.c: Include <stdbool.h>.
83583         (fwriteerror): At the end, close the file stream. Record whether
83584         stdout was already closed.
83585
83586 2005-01-17  Bruno Haible  <bruno@clisp.org>
83587
83588         * lib/execute.c (environ): Declare if needed.
83589         * lib/pipe.c (environ): Likewise.
83590         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83591
83592 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83593
83594         * modules/argp: Depend on vsnprintf
83595
83596 2005-01-10  Jim Meyering  <jim@meyering.net>
83597
83598         * modules/closeout (Depends-on): Add atexit.
83599
83600 2005-01-06  Bruno Haible  <bruno@clisp.org>
83601
83602         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83603
83604 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83605
83606         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83607         definitions to be after all include files, to avoid collisions.
83608         Problem reported by Bob Proulx.
83609
83610 2005-01-04  Jim Meyering  <jim@meyering.net>
83611
83612         Changes imported from coreutils.
83613         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83614         as the mkstemp template, use a temporary directory and an
83615         8.3-friendly template to avoid trouble on systems like DJGPP.
83616         Reported by Juan M. Guerrero via Stepan Kasal.
83617         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83618         close. Remove the temporary directory right away, rather than waiting
83619         for configure's at-exit trap code to do it.
83620         Suggestion from Stepan Kasal.
83621
83622 2005-01-01  Simon Josefsson  <jas@extundo.com>
83623
83624         * gnulib-tool: Print #include directives when --import'ing.
83625
83626 2004-12-28  Simon Josefsson  <jas@extundo.com>
83627
83628         * tests/test-base64.c: Include required header files.  Remove
83629         unused variables.
83630
83631 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83632
83633         * modules/error (Depends-on): Remove gettext.
83634
83635 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83636
83637         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83638         not needed.  This removes a dependency on the gettext module.
83639         [defined _LIBC]: Do not include <libintl.h>; not needed.
83640
83641 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83642
83643         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83644         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83645
83646 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83647
83648         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83649         HAVE_DECL_STRTOLD.
83650
83651 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83652
83653         * modules/getdate (Depends-on): Remove alloca-opt.
83654
83655 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83656
83657         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83658
83659 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83660
83661         * lib/argp-parse.c: Include <stddef.h>.
83662         (alignof, alignto): New macros.
83663         (parser_init): Don't assume that void * is aligned sufficiently
83664         for struct option.
83665
83666         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83667         need to extend the stack.
83668         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83669         large.
83670
83671 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83672
83673         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83674
83675 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83676
83677         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83678         (2004-10-24) change.  Apparently this was a false alarm.
83679
83680         * modules/getdate: Depend on alloca-opt, not alloca.
83681
83682 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83683
83684         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83685         Remove now-obsolete comment about AIX.
83686         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83687         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83688         (YYMAXDEPTH): New macro.
83689
83690 2004-12-18  Simon Josefsson  <jas@extundo.com>
83691
83692         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83693
83694 2004-12-18  Bruno Haible  <bruno@clisp.org>
83695
83696         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83697
83698 2004-12-18  Bruno Haible  <bruno@clisp.org>
83699
83700         * lib/fatal-signal.c (fatal_signals): Make non-const.
83701         (init_fatal_signals): New function.
83702         (uninstall_handlers, install_handlers): Ignore signals that were set to
83703         SIG_IGN.
83704         (at_fatal_signal): Call init_fatal_signals.
83705         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83706         SIG_IGN.
83707         Reported by Paul Eggert.
83708
83709 2004-12-18  Bruno Haible  <bruno@clisp.org>
83710
83711         * doc/alloca.texi: New file.
83712         * doc/alloca-opt.texi: New file.
83713
83714 2004-12-17  Jim Meyering  <jim@meyering.net>
83715
83716         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83717         Otherwise, install-sh could exit with improper exit status when
83718         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83719
83720 2004-12-16  Simon Josefsson  <jas@extundo.com>
83721
83722         * tests/test-base64.c: Add license.
83723
83724 2004-12-15  Stepan Kasal  <address@hidden>
83725
83726         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83727
83728 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83729
83730         * modules/getcwd (Files): Add m4/d-ino.m4.
83731         Suggested by Mark D. Baushke.
83732
83733 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83734
83735         * lib/getdate.y (textint): New member "negative".
83736         (time_zone_hhmm): New function.
83737         Expect 14 shift-reduce conflicts, not 13.
83738         (o_colon_minutes): New rule.
83739         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83740         (yylex): Set the "negative" member of signed numbers.
83741
83742 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83743
83744         * doc/getdate.texi (Time of day items, Time zone items):
83745         Describe new formats +00:00, UTC+00:00.
83746
83747 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83748
83749         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83750         spurious "-l"s.  Problem reported by Stepan Kasal.
83751
83752 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83753
83754         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83755         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83756
83757 2004-12-04  Simon Josefsson  <jas@extundo.com>
83758
83759         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83760         Vandoorselaere <yoann@prelude-ids.org>.
83761
83762 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83763
83764         Changes imported from coreutils.
83765         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83766         exist.
83767         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83768
83769 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83770
83771         Changes imported from coreutils.
83772         * lib/hard-locale.c: Assume <locale.h> exists.
83773         Include "strdup.h".
83774         (GLIBC_VERSION): New macro.
83775         (hard_locale): Assume setlocale exists.
83776         Rewrite to avoid #ifdef.
83777         Use strdup rather than malloc + strcpy.
83778         * lib/human.c: Assume <locale.h> exists.
83779         (human_readable): Assume localeconv exists.
83780
83781 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83782
83783         * modules/hard-locale (Depends-on): Add strdup.
83784
83785 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83786
83787         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83788         convert T2, not T.  (Imported from libc.)
83789
83790 2004-11-30  Simon Josefsson  <jas@extundo.com>
83791
83792         * modules/restrict (License): Change to LGPL.
83793
83794 2004-11-30  Simon Josefsson  <jas@extundo.com>
83795
83796         * m4/restrict.m4: Add copyright and copying conditions.
83797
83798 2004-11-30  Simon Josefsson  <jas@extundo.com>
83799
83800         * m4/base64.m4: New file.
83801
83802 2004-11-30  Simon Josefsson  <jas@extundo.com>
83803
83804         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83805         base64.
83806
83807         * tests/test-base64.c: New file.
83808
83809         * modules/base64: New file.
83810
83811 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83812
83813         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83814         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83815
83816         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83817
83818 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83819
83820         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83821         (__getcwd.c): Don't restore errno; glibc doesn't.
83822         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83823         first, falling back to our code only if its results look suspicious.
83824         Ensure that the resulting buffer is only as large as necessary.
83825
83826         * lib/readutmp.c: Include readutmp.h first.
83827         Include <errno.h>, since readutmp.h no longer does that.
83828         * lib/readutmp.h: Don't include <errno.h>,
83829         <sys/param.h>, <time.h>; not needed to establish interface.
83830         (errno): Remove decl.
83831         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83832         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83833         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83834
83835 2004-11-28  Simon Josefsson  <jas@extundo.com>
83836
83837         * lib/base64.h, base64.c: New file.
83838
83839 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83840
83841         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83842
83843 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83844
83845         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83846         (Depends-on): Remove pathmax, same.  Add mempcpy.
83847         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83848         (Makefile.am): Append getcwd.h to lib_SOURCES.
83849         (Include): Add getcwd.h.
83850         (Maintainer): Change from Jim Meyering to "all, glibc",
83851         since getdate now uses intended-for-glibc code.
83852         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83853         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83854
83855 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83856
83857         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83858         HP's ANSI C compiler.
83859         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83860         Declaring int functions causes warnings on some modern systems and
83861         shouldn't be needed to compile on ancient ones.
83862         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83863         defined.
83864
83865         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83866         with the following changes.
83867         (__set_errno): Parenthesize properly.
83868         Include <stdbool.h>.
83869         (MIN, MAX, MATCHING_INO): New macros.
83870         (__getcwd): Define with prototype, not K&R form.
83871         Use heuristics to allocate default buffer on stack if possible.
83872         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83873         behavior, and to avoid the PATH_MAX limit when computing
83874         ../../../../...
83875         Use MATCHING_INO to compare inode number to file.
83876         Check for arithmetic overflow in size calculations.
83877         Fix bug in reallocation of dot array that caused getcwd to fail
83878         on directories nested deeper than 75.
83879         Be more careful about saving errno on error.
83880         Do not use realloc; use only free+malloc, as this is a bit
83881         more flexible and avoids a needless copy operation.
83882         Do not inspect st_dev and st_ino for symbolic links; POSIX
83883         doesn't specify the latter.
83884         Check for closedir errors.
83885         Avoid needless casts.
83886         Use "#ifdef weak_alias" around weak_alias, to be like other
83887         glibc code.
83888         The following changes to getcwd.c have effect only when used in
83889         gnulib; they have no effect inside glibc proper.
83890         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83891         as alloca isn't used.
83892         (alloca, __alloca): Likewise.
83893         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83894         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83895         unconditionally, as gnulib assumes C89 or better.
83896         Do not include <sys/param.h>.
83897         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83898         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83899         better.
83900         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83901         Include <dirent.h> in a way that is compatible with modern Autoconf.
83902         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83903         New macros, if not already defined.
83904         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83905         Use "_LIBC", not "defined _LIBC", for consistency.
83906         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83907         a mempcpy module.
83908         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83909         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83910         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83911         credit only to Jim Meyering and adjust the copyright dates.
83912         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83913         <stdlib.h>, <unistd.h>, "pathmax.h".
83914         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83915         (INITIAL_BUFFER_SIZE): Remove.
83916         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83917
83918 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83919
83920         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83921         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83922         Use the _ONCE methods, for efficiency.
83923         Check for fcntl.h.  In test program, include <errno.h>
83924         and <fcntl.h> if available.  Remove old K&R cruft from
83925         test program.  Check for common errors in GNU/Linux,
83926         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83927         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83928         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83929         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83930         name accordingly.
83931         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83932         accommodate new getcwd.c.
83933         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83934         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83935         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83936         that's all we need now.
83937
83938 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83939
83940         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83941         argp-parse.c depends on getopt internals, that means we should
83942         always use our getopt, to be on the safe side.
83943         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83944         order not to spoil the result of an eventual previous invocation
83945         of gl_GETOPT_SUBSTITUTE.
83946
83947 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83948
83949         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83950         redefinition warnings. To avoid them, include the defines
83951         in `#if !defined __need_getopt ... #endif'. The only place
83952         where __getopt_argv_const is used is in definitions
83953         of getopt_long and getopt_long_only below, which are as well
83954         protected by `#ifndef __need_getopt'.
83955         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83956         __need_getopt after including <stdio.h> and <unistd.h> These
83957         headers might have defined it.
83958
83959 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83960
83961         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83962
83963 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83964
83965         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83966         (futimens): New function, which uses futimes if available.
83967         (futimens, utimens): Support timespec==NULL, with same semantics
83968         as utime and utimens.
83969         * lib/utimens.h (futimens): New decl.
83970
83971 2004-11-23  Jim Meyering  <jim@meyering.net>
83972
83973         * lib/getopt_.h: Remove trailing blanks.
83974
83975 2004-11-23  Jim Meyering  <jim@meyering.net>
83976
83977         * lib/__fpending.c: Add comment.
83978
83979 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83980
83981         * modules/canonicalize (Depends-on): Add xreadlink.
83982         Problem reported by James Youngman.
83983
83984 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83985
83986         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83987         New macros.
83988         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83989         optopt): Use them instead of invoking ## directly; otherwise, the
83990         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83991
83992 2004-11-19  Bruno Haible  <bruno@clisp.org>
83993
83994         * lib/strtok_r.c: Move comments from here...
83995         * lib/strtok_r.h: ... to here.
83996
83997 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83998
83999         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84000         implementations that mishandle size_t overflow.
84001
84002 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84003
84004         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84005         might fail.  Problem reported by Yoann Vandoorselaere.
84006         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84007         implementations that mishandle size_t overflow.
84008
84009 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84010
84011         * modules/canon-host (Depends-on): Add strdup.
84012
84013 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84014
84015         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84016
84017 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84018
84019         * lib/canon-host.c: Include "strdup.h".
84020         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84021         Use strdup instead of malloc/strcpy to duplicate strings.
84022
84023         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84024         (human_space_before_unit): New constant.
84025         * lib/human.c (human_readable): Support it.
84026
84027         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84028         (xgetcwd): Set errno correctly when failing.
84029         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84030         the failure is actually due to a PATH_MAX problem.
84031
84032         Further getopt changes to make it more likely that glibc will
84033         buy the changes back.
84034         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84035         (getopt): Use it, so to preserve glibc semantic
84036         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84037         when compiling for libc.
84038         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84039         (getopt_long, getopt_long_only): Use it.
84040
84041         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84042         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84043         (getopt): Argv is now char * const *, as per standard.
84044         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84045         not char *__getopt_argv_const *.
84046         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84047         _getopt_long_only_r): Likewise.
84048         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84049         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84050         _getopt_long_r, _getopt_long_only_r): Likewise.
84051         * lib/getopt_.h (__getopt_argv_const): Remove.
84052         (getopt): Argv is now char * const *, as per standard.
84053
84054         * lib/getdate.y (tORDINAL): New token.
84055         (day, relunit): Allow it for relative times.
84056         (relative_time_table): Use tORDINAL for ordinals.
84057
84058 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84061         Document that "second" isn't allowed as an ordinal number.
84062
84063 2004-11-16  Jim Meyering  <jim@meyering.net>
84064
84065         * modules/closeout (Depends-on): Add fpending.
84066
84067 2004-11-15  Jim Meyering  <jim@meyering.net>
84068
84069         * lib/closeout.c: Include "__fpending.h" once again.
84070         Include <stdbool.h>.
84071         (close_stdout): Don't fail just because stdout was closed initially,
84072         since some programs don't write to stdout in the normal course of
84073         operation (other than --version and --help), and we don't want this
84074         function to make e.g. `touch file >&-' fail.
84075         But do fail if it was closed and someone has tried to write to it.
84076         E.g., `printf foo >&-' must fail.
84077
84078 2004-11-13  Jim Meyering  <jim@meyering.net>
84079
84080         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84081
84082 2004-11-12  Simon Josefsson  <jas@extundo.com>
84083
84084         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84085         small doc fix is still pending.
84086
84087 2004-11-11  Simon Josefsson  <jas@extundo.com>
84088
84089         * modules/strtok_r: New file.
84090
84091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84092         strtok_r.
84093
84094 2004-11-11  Simon Josefsson  <jas@extundo.com>
84095
84096         * m4/strtok_r.m4: New file.
84097
84098         * m4/getopt.m4: Replace opterr.
84099
84100 2004-11-11  Simon Josefsson  <jas@extundo.com>
84101
84102         * lib/strtok_r.h, strtok_r.c: New file.
84103
84104 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84105
84106         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84107         of replacing opterr, getopt, etc.  This should handle the
84108         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84109
84110 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84111
84112         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84113         we can stop lying to compilers about the constness of argv when we
84114         are compiled outside glibc.
84115         (getopt, getopt_long, getopt_long_only): Use it.
84116         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84117         _getopt_internal, getopt): Likewise.
84118         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84119         _getopt_long_only_r): Likewise.
84120         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84121         _getopt_long_r, _getopt_long_only_r): Likewise.
84122
84123         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84124         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84125         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84126         the other external symbols.
84127         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84128         declaration, since the above renaming now works around collisions.
84129
84130 2004-11-11  Jim Meyering  <jim@meyering.net>
84131
84132         * lib/linebreak.c: Remove trailing blanks.
84133         * lib/alloca_.h: Likewise.
84134         * lib/acosl.c: Likewise.
84135         * lib/euidaccess.c: Likewise.
84136         * lib/allocsa.h: Likewise.
84137
84138 2004-11-10  Simon Josefsson  <jas@extundo.com>
84139
84140         * m4/getaddrinfo.m4: New file.
84141
84142 2004-11-10  Simon Josefsson  <jas@extundo.com>
84143
84144         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84145
84146 2004-11-10  Simon Josefsson  <jas@extundo.com>
84147
84148         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84149         getaddrinfo.
84150
84151         * modules/getaddrinfo: New file.
84152
84153 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84154
84155         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84156
84157 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84158
84159         * lib/mktime.c (SHR): New macro, which is a portable
84160         substitute for >> that should work even on Crays.
84161         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84162         Problem reported by Mark D. Baushke in
84163         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84164         * lib/getdate.y (SHR): Likewise.
84165         (tm_diff): Use it.
84166         * lib/strftime.c (SHR): Likewise.
84167         (tm_diff): Use it.
84168         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84169         quote_these_too, so that right shifts are well defined.  All uses
84170         changed.
84171
84172 2004-11-10  Jim Meyering  <jim@meyering.net>
84173
84174         Ensure that no close failure goes unreported.
84175         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84176         return early when it seems there's nothing to flush.
84177         Don't include __fpending.h.
84178
84179 2004-11-10  Jim Meyering  <jim@meyering.net>
84180
84181         * modules/closeout (Depends-on): Remove fpending.
84182
84183 2004-11-10  Jim Meyering  <jim@meyering.net>
84184
84185         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84186
84187 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84188
84189         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84190         gl_FUNC_STRFTIME.
84191         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84192         and AC_REQUIRE when possible, to avoid duplicate checks.
84193         Check for <wchar.h>.
84194
84195 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84196
84197         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84198
84199 2004-11-09  Bruno Haible  <bruno@clisp.org>
84200
84201         * m4/sockpfaf.m4: New file.
84202
84203 2004-11-05  Bruno Haible  <bruno@clisp.org>
84204
84205         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84206         Reported by Mark D. Baushke <mdb@cvshome.org>.
84207
84208 2004-11-04  Bruno Haible  <bruno@clisp.org>
84209
84210         2004-09-11  Bruno Haible  <bruno@clisp.org>
84211                 * allocsa.valgrind: New file.
84212         2004-02-06  Bruno Haible  <bruno@clisp.org>
84213                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84214                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84215                 Reported by Christopher Seip <chris.seip@hp.com>.
84216
84217 2004-11-04  Bruno Haible  <bruno@clisp.org>
84218
84219         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84220         (Makefile.am): Distribute it.
84221
84222 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84223
84224         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84225         with errno == ERANGE if the buffer is too small.
84226         Problem reported by Mark D. Baushke.
84227
84228 2004-11-03  Albert Chin  <china@thewrittenword.com>
84229             Paul Eggert  <eggert@cs.ucla.edu>
84230
84231         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84232         equivalent, substitute $ac_type for equivalent type rather than
84233         blindly using uint32_t *always* which won't work if uint32_t is not
84234         available.  Define _UINT32_T to work around typedef of uint32_t if
84235         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84236         2.5.1.
84237
84238 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84239
84240         * m4/jm-macros.m4: Sync from coreutils.
84241         (gl_MACROS): Check for mbrlen, for pathchk.
84242         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84243
84244 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84245
84246         * lib/xreadlink.c (MAXSIZE): New macro.
84247         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84248         size does not exceed MAXSIZE.  Avoid cast.
84249         As suggested by Mark D. Baushke in
84250         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84251         if readlink fails with buffer size just under MAXSIZE, try again
84252         with MAXSIZE.
84253
84254 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84255
84256         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84257
84258 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84259         and  Paul Eggert  <eggert@cs.ucla.edu>
84260
84261         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84262         (get_date): Overparenthesize to avoid GCC warning.
84263
84264 2004-11-02  Bruno Haible  <bruno@clisp.org>
84265
84266         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84267         returns void.
84268
84269 2004-11-02  Bruno Haible  <bruno@clisp.org>
84270
84271         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84272         function returns void.
84273
84274 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84275
84276         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84277         fflush_unlocked, flockfile, funlockfile, funlockfile,
84278         fputs_unlocked, putc_unlocked.
84279
84280 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84281
84282         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84283         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84284         already declared.
84285
84286 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84287
84288         * modules/getdate (Files): Add doc/getdate.texi.
84289         (Depends-on): Add setenv, xalloc.
84290
84291 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84292
84293         * lib/getdate.y: Add support for TZ="foo" within a date string.
84294         Fix some bugs near time_t boundaries.  Reject dates with
84295         out-of-range components, e.g., "Sept 31".
84296         Include <stdlib.h>, "setenv.h", "xalloc.h".
84297         (ISDIGIT_LOCALE): Remove; unused.
84298         Note that the TZ and time functions used here are not reentrant.
84299         (mktime_ok, get_tz): New functions.
84300         (TZBUFSIZE): New constant.
84301         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84302         This requires that we sometimes generate our own TZ="XXX..." setting.
84303
84304 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84305
84306         * doc/getdate.texi: New file, from coreutils with modifications for
84307         the new TZ parsing.
84308
84309 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84310
84311         * lib/mktime.c (not_equal_tm): Remove redundant check.
84312
84313 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84314
84315         * modules/regex (lib_SOURCES): Add regex.c.
84316         Reported by James Youngman in
84317         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84318
84319 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84320
84321         * lib/getdate.y: Use Bison 1.875 features, and some minor
84322         code cleanups.  This change does not affect semantics.
84323         Don't include <stdlib.h>; no longer needed.
84324         Don't include unlocked-io.h; only the "#if TEST" code uses
84325         stdio, and performance isn't crucial there.
84326         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84327         Bison 1.875 features as described below.
84328         All uses of "PC." replaced by "pc->".
84329         (YYSTYPE): Add a forward declaration.
84330         (yylex, yyerror): Use full prototypes in forward decls.
84331         Use "%pure-parser" rather than obsolescent "%pure_parser".
84332         Use %parse-param and %lex-param instead of obsolescent
84333         YYPARSE_PARAM and YYLEX_PARAM.
84334         (meridian_table, month_and_day_table, time_units_table,
84335         relative_time_table, time_zone_table, military_table,
84336         lookup_zone, lookup_word, get_date):
84337         Use NULL instead of 0 where appropriate.
84338         (to_hour): Avoid abort (), to avoid a dependency on
84339         stdlib.h.
84340         (yyerror, yylex): Now accepts parser_control * arg.
84341         (main) [TEST]: Use '\0' rather than 0 for char.
84342
84343 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84344
84345         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84346
84347 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84348
84349         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84350         It's now the caller's responsibility to handle the case where
84351         !HAVE_GETPAGESIZE && !defined getpagesize.
84352
84353         * lib/mktime.c (leapyear): Arg is long int, not int.
84354
84355 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84358
84359 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84360
84361         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84362         missing.  Problem reported by James Youngman.
84363
84364 2004-10-16  Simon Josefsson  <jas@extundo.com>
84365
84366         * gnulib-tool: Fix comments.  Fix parse problem.
84367         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84368
84369 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84370
84371         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84372         implementation of getopt_long.  Problem reported by Alexander Taler in:
84373         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84374
84375 2004-10-15  Bruno Haible  <bruno@clisp.org>
84376
84377         * gnulib-tool: Untabify. Initialize supplied_libname.
84378         (func_usage): More homogenous output.
84379         (func_modules_transitive_closure, func_modules_to_filelist,
84380         func_emit_lib_Makefile_am): New functions.
84381         (func_import): New function, extracted from big case statement. Use
84382         func_get_license, func_modules_transitive_closure,
84383         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84384         opt_lgpl. Don't use test -a, as it's not portable.
84385         (func_create_testdir): Use func_modules_transitive_closure,
84386         func_modules_to_filelist, func_emit_lib_Makefile_am.
84387
84388 2004-10-15  Bruno Haible  <bruno@clisp.org>
84389
84390         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84391
84392 2004-10-15  Bruno Haible  <bruno@clisp.org>
84393
84394         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84395         the portions belonging to each module.
84396         Suggested by Derek Robert Price <derek@ximbiot.com>.
84397
84398 2004-10-12  Simon Josefsson  <jas@extundo.com>
84399
84400         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84401         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84402         to real functions.
84403
84404 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84405
84406         * modules/vsnprintf: New file.
84407
84408 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84409
84410         * m4/vsnprintf.m4: New file.
84411
84412 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84413
84414         * lib/vsnprintf.h: New file.
84415         * lib/vsnprintf.c: New file.
84416
84417 2004-10-11  Bruno Haible  <bruno@clisp.org>
84418
84419         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84420         vsnprintf.
84421
84422 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84423
84424         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84425
84426 2004-10-07  Bruno Haible  <bruno@clisp.org>
84427
84428         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84429         fits into the provided buffer.
84430
84431 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84432
84433         * lib/diacrit.c, diacrit.h: Add GPL notice.
84434
84435         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84436         notice.
84437         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84438         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84439         This avoids a potential constant-folding bug.
84440
84441 2004-10-05  Bruno Haible  <bruno@clisp.org>
84442
84443         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84444         for the declaration of strsep.
84445
84446 2004-10-05  Bruno Haible  <bruno@clisp.org>
84447
84448         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84449
84450 2004-10-04  Simon Josefsson  <jas@extundo.com>
84451
84452         * modules/memmem: New file.
84453         * tests/test-memmem.c: New file.
84454         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84455
84456 2004-10-04  Simon Josefsson  <jas@extundo.com>
84457
84458         * m4/memmem.m4: New file.
84459
84460 2004-10-04  Simon Josefsson  <jas@extundo.com>
84461
84462         * lib/memmem.h: New file.
84463         * lib/memmem.c: New file, taken from glibc.
84464
84465 2004-10-04  Simon Josefsson  <jas@extundo.com>
84466
84467         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84468         '#ifdef USE_UNLOCKED_IO'.
84469
84470 2004-10-04  Simon Josefsson  <jas@extundo.com>
84471
84472         * config/srclist.txt: Add memmem from glibc.
84473
84474 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84475
84476         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84477
84478         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84479         modules/exclude, modules/getdate, modules/getline,
84480         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84481         modules/getusershell, modules/linebuffer, modules/md5,
84482         modules/mountlist, modules/posixtm, modules/readtokens,
84483         modules/readutmp, modules/regex, modules/sha1,
84484         modules/version-etc, modules/yesno:
84485         Remove dependency on unlocked-io.
84486
84487 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84488
84489         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84490
84491         * m4/unlocked-io.m4: Add copyright notice.
84492         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84493
84494 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84495
84496         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84497         * lib/xmalloc.c (xmemdup): Likewise.
84498         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84499         XFREE): Remove these long-obsolescent macros.
84500         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84501         * lib/xstrdup.c: Remove.
84502
84503         * lib/regex.c (re_comp): Cast gettext return value to char *,
84504         Problem reported by Martin Neitzel via Mark D. Baushke.
84505
84506 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84507
84508         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84509         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84510         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84511         regex.c, sha1.c, version-etc.c, yesno.c:
84512         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84513         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84514         the includer's responsibility.
84515
84516         Sync from coreutils.
84517
84518         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84519         points to the start of a string, as the C Standard says the
84520         resulting behavior is undefined.
84521
84522         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84523         simple -> simple_backups, numbered_existing ->
84524         numbered_existing_backups, numbered -> numbered_backups
84525         to avoid shadowing problems.  All uses changed.
84526         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84527         * lib/backupfile.c (check_extension, numbered_backup):
84528         Rename locals to avoid shadowing 'basename'.
84529         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84530         once.
84531
84532         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84533         * lib/.cvsignore: Add getopt.h.
84534
84535 2004-10-04  Bruno Haible  <bruno@clisp.org>
84536
84537         * modules/README: New file.
84538         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84539         not a module.
84540
84541 2004-10-02  Jim Meyering  <jim@meyering.net>
84542
84543         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84544
84545 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84546
84547         * modules/strsep: New file.
84548
84549 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84550
84551         * m4/strsep.m4: New file.
84552
84553 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84554
84555         * lib/strsep.h: New file.
84556         * lib/strsep.c: New file.
84557
84558 2004-10-01  Simon Josefsson  <jas@extundo.com>
84559
84560         * lib/snprintf.c (snprintf): Handle size==0.
84561
84562 2004-10-01  Simon Josefsson  <jas@extundo.com>
84563             Bruno Haible  <bruno@clisp.org>
84564
84565         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84566         (snprintf): Declare 'args'.
84567
84568 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84569
84570         * lib/snprintf.c: Remove comments as to why each header is needed.
84571
84572 2004-10-01  Bruno Haible  <bruno@clisp.org>
84573
84574         * MODULES.html.sh: Add strsep.
84575
84576 2004-09-30  Simon Josefsson  <jas@extundo.com>
84577
84578         * modules/snprintf: New file.
84579
84580 2004-09-30  Simon Josefsson  <jas@extundo.com>
84581
84582         * m4/snprintf.m4: New file.
84583
84584 2004-09-30  Simon Josefsson  <jas@extundo.com>
84585
84586         * lib/snprintf.h, lib/snprintf.c: New files.
84587
84588 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84589
84590         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84591         (hol_entry_help): Never translate an empty string.
84592         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84593         * lib/argp.h (OPTION_NO_TRANS): New option.
84594
84595 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84596
84597         * modules/argp (Maintainer): Replace Simon Josefsson
84598         by Sergey Poznyakoff.
84599
84600 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84601
84602         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84603         changes merged back into glibc.
84604
84605 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84606
84607         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84608
84609 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84610
84611         * lib/xvasprintf.c: Include xalloc.h.
84612         (xvasprintf): Use xalloc_die, not xmalloc_die.
84613
84614 2004-09-29  Bruno Haible  <bruno@clisp.org>
84615
84616         * modules/alloca-opt: New file, derived from modules/alloca.
84617         * modules/allocsa: Depend on alloca-opt instead of alloca.
84618         * modules/setenv: Likewise.
84619         * modules/vasnprintf: Likewise.
84620         * MODULES.html.sh: Add alloca-opt.
84621
84622 2004-09-28  Simon Josefsson  <jas@extundo.com>
84623
84624         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84625         LGPL, and to replace license template from GPL to LGPL.
84626
84627 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84628
84629         * modules/dummy: Change license to LGPL.
84630
84631 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84632
84633         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84634
84635 2004-09-24  Simon Josefsson  <jas@extundo.com>
84636
84637         * modules/minmax (License): Change from GPL to LGPL.
84638
84639 2004-09-23  Simon Josefsson  <jas@extundo.com>
84640
84641         * gnulib-tool (--import): Typo.
84642
84643 2004-09-23  Simon Josefsson  <jas@extundo.com>
84644
84645         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84646
84647 2004-09-22  Bruno Haible  <bruno@clisp.org>
84648
84649         * modules/*: Add 'License' field.
84650         * gnulib-tool: Accept --extract-license option.
84651         (func_get_license): New function.
84652
84653 2004-09-21  Bruno Haible  <bruno@clisp.org>
84654
84655         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84656         Reported by Simon Josefsson.
84657
84658 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84659
84660         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84661         gl_AC_TYPE_LONG_LONG.
84662
84663 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84664
84665         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84666
84667 2004-09-18  Simon Josefsson  <jas@extundo.com>
84668         and  Paul Eggert  <eggert@cs.ucla.edu>
84669
84670         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84671         calls with autoreconf.  Define GL_LIB.
84672
84673 2004-09-14  Karl Berry  <karl@gnu.org>
84674
84675         * config/srclist.txt: unsync setenv.c, sigh.
84676
84677 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84678
84679         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84680         Problem reported by Bruno Haible in:
84681         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84682
84683 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84684
84685         * config/srclist.txt: Comment out argp-pvh.c.
84686
84687 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84688
84689         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84690         in case some system header has #define'd it.  Problem reported by
84691         Soeren D. Schulze in
84692         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84693
84694 2004-09-09  Karl Berry  <karl@gnu.org>
84695
84696         * regex.[ch]: delete from the root.  These were supposed to be
84697                 synced with emacs cvs, but this has not happened for about
84698                 a year, and anyway nothing else uses emacs regex.[ch].
84699                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84700                 lib/regex[.ch] is untouched.
84701
84702 2004-09-09  Bruno Haible  <bruno@clisp.org>
84703
84704         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84705
84706 2004-09-09  Bruno Haible  <bruno@clisp.org>
84707
84708         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84709         modifications.
84710         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84711
84712 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84713
84714         * modules/xvasprintf: New file.
84715         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84716
84717 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84718
84719         * lib/xvasprintf.h: New file.
84720         * lib/xvasprintf.c: New file.
84721         * lib/xasprintf.c: New file.
84722
84723 2004-09-08  Bruno Haible  <bruno@clisp.org>
84724
84725         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84726
84727 2004-09-08  Bruno Haible  <bruno@clisp.org>
84728
84729         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84730         length is > INT_MAX.
84731         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84732         more.
84733
84734 2004-09-08  Bruno Haible  <bruno@clisp.org>
84735
84736         * lib/stdint_.h: New file, taken from GNU clisp.
84737
84738 2004-09-08  Bruno Haible  <bruno@clisp.org>
84739             Oskar Liljeblad  <oskar@osk.mine.nu>
84740
84741         * modules/stdint: New file.
84742         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84743
84744 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84745
84746         Import from coreutils.
84747         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84748         strings on unbounded length.  alloca's performance benefits aren't
84749         that important here.
84750         (V_STRDUP): Remove.
84751         (parse_with_separator): New function, with most of the internals
84752         of the old parse_user_spec.  Allow user to omit both user and group,
84753         for compatibility with FreeBSD.
84754         Clone only the user name, not the entire spec.
84755         Do not set *uid, *gid unless entirely successful.
84756         Avoid memory leak in some failing cases.
84757         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84758         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84759         (parse_user_spec): Rewrite to use parse_with_separator.
84760
84761 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84762
84763         * modules/userspec: Don't depend on alloca.
84764
84765 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84766
84767         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84768
84769 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84770
84771         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84772         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84773         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84774
84775 2004-08-16  Simon Josefsson  <jas@extundo.com>
84776
84777         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84778         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84779         Add --dry-run for --import.
84780         Let user provided command line parameters override configure.ac
84781         settings.
84782
84783 2004-08-12  Simon Josefsson  <jas@extundo.com>
84784
84785         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84786         as discussed with Paul Eggert in threads rooted at
84787         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84788         and
84789         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84790         Before, the test was empty, and relied on ELIDE_CODE in source
84791         code.)
84792         (gl_PREREQ_GETOPT): New macro.
84793         (gl_GETOPT): Use them.
84794
84795 2004-08-12  Simon Josefsson  <jas@extundo.com>
84796
84797         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84798         * lib/getopt_.h: Renamed from getopt.h.
84799
84800 2004-08-12  Simon Josefsson  <jas@extundo.com>
84801
84802         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84803         Change default library name from libfoo to libgnu.
84804         Now, if you have a configure.ac that says:
84805                 gl_SOURCE_BASE(gl)
84806                 gl_M4_BASE(gl/m4)
84807                 gl_MODULES(error getopt etcetera)
84808                 gl_INIT
84809         you can import all you need by running:
84810                 ../gnulib/gnulib-tool --import
84811
84812         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84813         (Makefile.am): Rewrite, use logic from argz.
84814         (Include): Use <getopt.h> instead of "getopt.h".
84815
84816 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84817
84818         * modules/argp (Files): Add m4/unlocked-io.m4.
84819         (Depends-on): Add extensions.
84820
84821 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84822
84823         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84824         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84825         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84826         Check for program_invocation_name, program_invocation_short_name,
84827         flockfile, funlockfile, features.h, _getopt_long_only_r.
84828
84829 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84830
84831         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84832         its complicated substitute.
84833         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84834         and program_invocation_name.
84835         (__argp_basename) [!_LIBC]: Remove; the only use was
84836         replaced by its body.
84837         (__argp_short_program_name): Change condition from
84838         !defined __argp_short_program_name to
84839         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84840         to match argp-namefrob.h.
84841         (__argp_failure): Don't assume strerror_r returns char *.
84842         * lib/argp-parse.c (N_): Define unconditionally.
84843         (argp_default_options): Fill out initializers with 0 to avoid
84844         gcc warnings.
84845
84846 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84847
84848         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84849         getopt1.c.
84850
84851 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84852
84853         Merge from coreutils.
84854
84855         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84856
84857         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84858         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84859
84860 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84861
84862         Merge from coreutils.
84863
84864         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84865         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84866         for Reliant Unix 5.43.
84867
84868         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84869         (union fooround): Use uintmax_t, not long int.
84870         The rest is a merge from libc:
84871         [defined _LIBC]: Include <shlib-compat.h>.
84872         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84873
84874         * lib/settime.c (settime): Recode to avoid warning with
84875         Sun Forte C 6U2.
84876
84877         * lib/strverscmp.c: Convert to UTF-8.
84878
84879 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84880
84881         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84882         m4/uintmax_t.m4.
84883
84884 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84885
84886         * modules/xalloc-die: New file.
84887         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84888
84889         * modules/md5 (Files): Add m4/uint32_t.m4.
84890         * modules/sha1: Renamed from modules/sha.
84891         (Files):
84892         Rename lib/sha.h to lib/sha1.h.
84893         Rename lib/sha.c to lib/sha1.c.
84894         Rename m4/sha.m4 to m4/sha1.m4.
84895         (lib_SOURCES): Likewise.
84896         (configure.ac): Rename gl_SHA to gl_SHA1.
84897         (Include): sha.h -> sha1.h.
84898
84899 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84900
84901         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84902         * m4/sha1.m4: Renamed from sha.m4.
84903         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84904
84905 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84906
84907         * lib/obstack.h (obstack_empty_p):
84908         Don't assume that chunk->contents is suitably aligned.
84909         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84910         Likewise. Problem reported by Benno in
84911         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84912
84913         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84914         readable.  This could be improved further but it'd take some work.
84915
84916 2004-08-08  Simon Josefsson  <jas@extundo.com>
84917
84918         * modules/xgethostname (Depends-on): Remove exit and error (not
84919         used).
84920
84921         * modules/getpass-gnu: Add getpass.h.
84922         (Depends-on): Add stdbool.
84923         * modules/getpass: Add getpass.h.
84924
84925 2004-08-08  Simon Josefsson  <jas@extundo.com>
84926
84927         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84928         Check getpass declaration.
84929
84930 2004-08-08  Simon Josefsson  <jas@extundo.com>
84931
84932         * lib/xgethostname.c: Don't include error.h (not used).
84933
84934         * lib/getpass.h: Add.
84935         * lib/getpass.c: Include getpass.h first.
84936
84937 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84938
84939         * lib/xalloc-die.c: New file.
84940         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84941         All uses removed.
84942         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84943         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84944         xalloc-die.c.
84945         (_, N_, xalloc_die): Move to xalloc-die.c.
84946         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84947         so that we needn't mess with xalloc_msg_memory_exhausted.
84948
84949         * lib/sha1.h: Renamed from sha.h.
84950         (SHA1_H): Renamed from _SHA_H.
84951         (sha1_ctx): Renamed from sha_ctx.
84952         (sha1_init_ctx): Renamed from sha_init_ctx.
84953         (sha1_process_block): Renamed from sha_process_block.
84954         (sha1_process_bytes): Renamed from sha_process_bytes.
84955         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84956         (sha1_read_ctx): Renamed from sha_read_ctx.
84957         (sha1_stream): Renamed from sha_stream.
84958         (sha1_buffer): Renamed from sha_buffer.
84959         * lib/sha1.c: Likewise; renamed from sha.c.
84960         Do not include <sys/types.h>.
84961         Include <stddef.h> rather than <stdlib.h>.
84962
84963 2004-08-08  Bruno Haible  <bruno@clisp.org>
84964
84965         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84966         FILESYSTEM_PREFIX_LEN.
84967         * lib/progreloc.c: Likewise.
84968         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84969
84970 2004-08-06  Simon Josefsson  <jas@extundo.com>
84971
84972         * modules/progname (Depends-on): Don't depend on stdbool.
84973
84974 2004-08-06  Simon Josefsson  <jas@extundo.com>
84975
84976         * modules/getsubopt: New file.
84977         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84978         getsubopt.
84979
84980 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84981
84982         More merge from coreutils.
84983
84984         * m4/utimens.m4, m4/utimecmp.m4: New files.
84985         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84986         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84987         prereq.m4, sha.m4: Import changes from coreutils.
84988
84989 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84990
84991         More merge from coreutils.
84992         * modules/raise, modules/readtokens0, modules/utimens:
84993         * modules/utimecmp, module/xnanosleep: New files.
84994         * modules/strftime: Add lib/strftime.h.
84995         Change include from <time.h> to "strftime.h".
84996         * modules/yesno: Add lib/yesno.h.
84997         * modules/backupfile: Remove lib/addext.c.
84998         * modules/euidaccess: Add stat-macros.h.
84999         * modules/canonicalize, modules/euidaccess,
85000         modules/filemode, modules/lchown, modules/makepath,
85001         modules/rmdir, modules/stat: Likewise.
85002
85003 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85004
85005         Merge from tar.
85006         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85007         SIZE_MAX is a valid preprocessor constant.
85008         (__argp_basename): Change from "#ifndef _LIBC"
85009         to "#ifndef __argp_short_program_name", so that
85010         we don't compile these functions for tar.
85011
85012         More merges from coreutils.
85013         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85014         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85015         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85016         * lib/addext.c: Remove; no longer needed.
85017         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85018         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85019         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85020         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85021         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85022         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85023         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85024         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85025         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85026         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85027         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85028         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85029         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85030         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85031         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85032         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85033         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85034         Import changes from coreutils.
85035
85036 2004-08-05  Simon Josefsson  <jas@extundo.com>
85037
85038         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85039
85040 2004-08-05  Simon Josefsson  <jas@extundo.com>
85041
85042         * m4/getsubopt.m4: New file.
85043
85044 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85045
85046         Merge from coreutils.
85047
85048         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85049         * m4/getcwd-path-max.m4: New files.
85050
85051         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85052         FILESYSTEM_PREFIX_LEN ->
85053         FILE_SYSTEM_PREFIX_LEN.
85054         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85055         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85056         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85057         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85058
85059         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85060         prerequisite modules now handle the DOS stuff.
85061         Don't check for unistd.h.
85062
85063 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85064
85065         Merge from coreutils.
85066
85067         * lib/.gdb-history: Remove; this doesn't belong here.
85068
85069         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85070         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85071         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85072         * lib/getcwd.c: New files.
85073
85074         * lib/dirname.h: Include <stdbool.h>.
85075         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85076         for consistency with POSIX terminology.  All uses changed.
85077         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85078         (strip_trailing_slashes): Use bool for booleans.
85079         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85080
85081         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85082         sometimes returns a positive errno value even when it succeeds.
85083         (print_errno_message) [!LIBC]: Fall back on strerror if
85084         __strerror_r fails.
85085
85086         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85087         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85088         (longest_relative_suffix): New function.
85089         (path_concat): Use it.  Assume first argument is not NULL.
85090         Port to DOS.  Omit redundant separators.
85091         Report an error instead of returning NULL.
85092         Use mempcpy instead of memcpy.
85093         (xpath_concat): Remove: not declared or used.
85094
85095         * lib/same.h: Include <stdbool.h>
85096         (same_name): Return bool, not int.
85097         * lib/same.c (same_name): Likewise.
85098         (errno): Don't declare; we assume C89 or better now.
85099
85100         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85101         if not already defined.
85102
85103         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85104         * lib/dup-safer.c (errno): Likewise.
85105
85106 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85107
85108         Merge from coreutils.
85109         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85110         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85111         * modules/path-concat: Don't depend on strdup.
85112
85113 2004-08-03  Simon Josefsson  <jas@extundo.com>
85114
85115         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85116         * lib/progname.h: Don't include stdbool.h.
85117
85118 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85119
85120         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85121         * MODULES.html.sh (func_all_modules): Remove fatal.
85122
85123 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85124
85125         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85126
85127 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85128
85129         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85130         working.
85131
85132 2004-08-02  Simon Josefsson  <jas@extundo.com>
85133
85134         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85135         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85136         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85137
85138 2004-08-01  Simon Josefsson  <jas@extundo.com>
85139
85140         * lib/xgetdomainname.c: Include stdlib.h, for free().
85141
85142 2004-07-19  Bruno Haible  <bruno@clisp.org>
85143
85144         * MODULES.html.sh (func_all_modules): Add dummy.
85145
85146 2004-07-16  Simon Josefsson  <jas@extundo.com>
85147
85148         * modules/dummy: New file.
85149
85150 2004-07-16  Simon Josefsson  <jas@extundo.com>
85151
85152         * lib/dummy.c: New file.
85153
85154 2004-07-16  Bruno Haible  <bruno@clisp.org>
85155
85156         * lib/backupfile.h: Add extern "C" for C++.
85157         * lib/closeout.h: Likewise.
85158         * lib/copy-file.h: Likewise.
85159         * lib/findprog.h: Likewise.
85160         * lib/full-write.h: Likewise.
85161         * lib/pathname.h: Likewise.
85162         * lib/progname.h: Likewise.
85163         * lib/stpcpy.h: Likewise.
85164         * lib/stpncpy.h: Likewise.
85165         * lib/strcase.h: Likewise.
85166         * lib/strstr.h: Likewise.
85167         * lib/xalloc.h: Likewise.
85168
85169         * lib/mbswidth.h: Add extern "C" for C++.
85170         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85171
85172 2004-07-13  Robert Millan  <robertmh@gnu.org>
85173
85174         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85175
85176 2004-07-09  Simon Josefsson  <jas@extundo.com>
85177
85178         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85179         failed without this.)
85180
85181 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85182
85183         * modules/chown (Files): Add lib/fchown-stub.c, since
85184         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85185
85186 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85187
85188         * lib/fchown-stub.c: New file.
85189
85190 2004-06-24  Jim Meyering  <jim@meyering.net>
85191
85192         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85193
85194 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85195
85196         * modules/argz: Omit "#include".
85197
85198         * MODULES.html.sh (func_all_modules): Add calloc, to match
85199         2004-06-01 addition of calloc module.
85200
85201 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85202
85203         * m4/argz.m4: New file, which is autoupdated from libtool.
85204
85205 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85206
85207         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85208         libtool.
85209
85210 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85211
85212         * config/srclist-update: Don't insist on "USA." before the
85213         close-comment, as libtool omits the period and puts the */ on a
85214         separate line.
85215         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85216         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85217
85218 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85219
85220         * modules/argz: New file.
85221         * MODULES.html.sh (func_all_modules): Add argz.
85222
85223 2004-06-12  Jim Meyering  <jim@meyering.net>
85224         and  Paul Eggert  <eggert@cs.ucla.edu>
85225
85226         * modules/hash (Files): Add lib/xalloc.h.
85227         * modules/pipe (Depends-on): Add wait-process.
85228         * modules/stat (Depends-on): Add xalloc.
85229         * modules/userspec (Files): Add lib/userspec.h.
85230         * modules/xstrto
85231
85232         Upgrade from gettext-0.13.
85233         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85234         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85235         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85236
85237 2004-06-10  Jim Meyering  <jim@meyering.net>
85238
85239         * lib/calloc.c: New file.
85240
85241 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85242
85243         * lib/getdate.y (yylex): Allow space between sign and number.
85244         Problem reported by Dan Jacobson.
85245
85246 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85247
85248         Merge from coreutils CVS.
85249
85250         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85251         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85252         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85253         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85254         xstrtol.m4: Fix copyright date and/or serial number.
85255
85256         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85257         See if we need an fchown replacement.
85258         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85259         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85260         and use the replacement function if we detect either defect.
85261
85262         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85263         gl_UTIMECMP.
85264
85265 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85266         and  Jim Meyering  <jim@meyering.net>
85267
85268         Merge from coreutils CVS.
85269
85270         * lib/stat-macros.h: New file, with contents from file-type.h
85271         and coreutils' system.h.
85272         * lib/file-type.c: Include "stat-macros.h".
85273         * lib/file-type.h (file_type): Move all macro definitions to new file,
85274         stat-macros.h.
85275
85276         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85277         Wrap old code with this conditional.
85278         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85279         function that does not dereference symlinks.
85280         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85281
85282         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85283         dependency problems.
85284         (xreadlink): Accept new arg SIZE, for efficiency.
85285         All decls and uses changed.
85286         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85287
85288         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85289         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85290
85291         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85292         sysexits.h.
85293
85294 2004-06-01  Jim Meyering  <jim@meyering.net>
85295
85296         * m4/calloc.m4: New file.
85297
85298 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85299
85300         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85301         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85302         Also, fix a typo in a diagnostic.
85303
85304 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85305
85306         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85307         or AC_FUNC_REALLOC.
85308
85309 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85312         macros to be defined.
85313         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85314         the allocator returns NULL because the requested size is zero.
85315
85316 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85317
85318         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85319         var.  Add comment explaining why libc still defines it.  This
85320         merges the following patch from glibc:
85321         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85322
85323 2004-05-20  Andreas Schwab  <schwab@suse.de>
85324
85325         * m4/free.m4: Replace free if it not known to work, not the other
85326         way round.
85327
85328 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85329
85330         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85331         present in glibc since revision 1.1 of this file.
85332         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85333         obstack_alignment_mask, obstack_alloc, obstack_base,
85334         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85335         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85336         obstack_grow0, obstack_init, obstack_int_grow,
85337         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85338         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85339         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85340         nonexistent functions.
85341
85342 2004-05-18  Karl Berry  <karl@gnu.org>
85343
85344         * config/srclist.txt: break link for vasnprintf.c.
85345
85346 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85347
85348         Port obstack to the AS/400, where pointers are 16 bytes wide and
85349         you cannot cast an integer to a valid pointer.  This patch is
85350         currently waiting to be integrated into glibc; see
85351         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85352
85353         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85354         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85355         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85356         (struct obstack): temp member is now a union of a pointer and
85357         an integer, instead of an integer.  All integer uses changed.
85358         This does not affect the physical layout of struct obstack,
85359         except on hosts (like the AS/400) where the size or alignment of
85360         void * is greater than that of ptrdiff_t.
85361         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85362         __STDC__)]: Store temporary in pointer member of union, not
85363         integer member.
85364         * lib/obstack.c: Include <stddef.h>, for offsetof.
85365         (struct fooalign): Remove; it doesn't need a name.
85366         (union fooround): Change double to long double, and add void *.
85367         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85368         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85369         not a macro.  Hence the values are always int; so remove all
85370         casts-to-int in uses.
85371
85372 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85373
85374         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85375         we can get this patch merged into glibc.
85376
85377 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85378             Paul Eggert  <eggert@cs.ucla.edu>
85379
85380         * m4/argp: Depend on alloca.
85381
85382 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85383             Paul Eggert  <eggert@cs.ucla.edu>
85384
85385         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85386         freecoding.
85387
85388 2004-05-17  Bruno Haible  <bruno@clisp.org>
85389
85390         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85391         precision that consists of a '.' followed by an empty digit string.
85392         Patch by Tor Lillqvist <tml@iki.fi>.
85393
85394 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85395
85396         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85397         for backward compatibility with older code.  We need our own
85398         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85399         it under some other name, and our alloca.h will define it.
85400
85401 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85402             Derek Price  <derek@ximbiot.com>
85403
85404         * lib/alloca.c: Include <alloca.h>, to get our interface.
85405         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85406         include <alloca.h> first.  Use C89 prototype for alloca; this
85407         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85408         Use #elif for simplicity, since we can assume C89 now.
85409         Don't try to source the system alloca.h since it will not be found
85410         and to prevent recursively including its replacement.
85411         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85412         * lib/regex.c: Likewise.
85413
85414 2004-05-16  Derek Price  <derek@ximbiot.com>
85415             Paul Eggert  <eggert@cs.ucla.edu>
85416
85417         getline cleanup.  This changes the getndelim2 API: both order of
85418         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85419         no delimiter).
85420
85421         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85422         interface does that.
85423         (getline): Always use getdelim, so that we don't have two
85424         copies of this code.
85425         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85426         if available.
85427         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85428         (GETNDELIM2_MAXIMUM): New macro.
85429         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85430         instead of the old practice of delim2==0.  All callers changed.
85431         Return -1 on overflow, instead of returning junk.
85432         Do not set *linesize unless allocation succeeds.
85433         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85434         that we include sys/types.h.
85435         * lib/getnline.h: Likewise.
85436         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85437         (getndelim2): Reorder arguments.
85438         * lib/getnline.c (getnline, getndelim):
85439         Don't discard the NMAX argument.
85440         (getnline): Invoke getndelim, to avoid code duplication.
85441         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85442         of (size_t) -1 by callers of the getnline family.
85443
85444 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85445
85446         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85447         Check for gettimeofday.
85448         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85449         Check for settimeofday, stime.
85450
85451 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85452
85453         * lib/nanosleep.c (suspended): Change its type from int to
85454         sig_atomic_t volatile.
85455         (first_call): Make it private to rpl_nanosleep, and have it
85456         be zero initially as that's a bit faster.
85457         (my_usleep): Round up fractional times instead of truncating them,
85458         as this is the usual meaning for 'sleep'.
85459
85460         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85461         doesn't work.
85462         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85463         (ENOSYS): Define if not defined.
85464         (settime): Fall back on stime if it exists and settimeofday fails.
85465         But don't bother with fallbacks if a method fails with errno == EPERM.
85466
85467 2004-05-11  Jim Meyering  <jim@meyering.net>
85468
85469         Prior to this change, the save_cwd caller required read access to the
85470         current directory on most systems (ones with the fchdir function).
85471
85472         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85473         fails, try write-only, and finally, resort to using xgetcwd.
85474
85475 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85476
85477         * lib/obstack.c, obstack.h: Import changes from libc.
85478
85479 2004-04-28  Bruno Haible  <bruno@clisp.org>
85480
85481         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85482         also implicitly appends .exe to executables.
85483         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85484         accepts Windows pathnames.
85485         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85486         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85487         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85488         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85489         Reported by Derek Robert Price <derek@ximbiot.com>.
85490
85491 2004-04-21  Karl Berry  <karl@gnu.org>
85492
85493         * config/srclist.txt (localcharset.c): break sync.
85494
85495 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85496
85497         * m4/host-os.m4: Add a copyright notice.
85498
85499 2004-04-20  Jim Meyering  <jim@meyering.net>
85500
85501         Change UTILS_ to gl_ in AC_DEFINE'd names.
85502         Change utils_- and jm_-prefixed variables, too.
85503         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85504         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85506
85507         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85508         Don't emit trailing blanks.
85509         Also rename jm_-prefixed variables to have gl_ prefix.
85510
85511         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85512         Also rename jm_-prefixed variables to have gl_ prefix.
85513
85514         * m4/jm-macros.m4: Reflect the renamings.
85515         * m4/prereq.m4: Likewise.
85516
85517 2004-04-20  Jim Meyering  <jim@meyering.net>
85518
85519         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85520         memory.
85521
85522 2004-04-20  Jim Meyering  <jim@meyering.net>
85523             Bruno Haible  <bruno@clisp.org>
85524
85525         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85526         memory when realloc fails.
85527
85528 2004-04-19  Jim Meyering  <jim@meyering.net>
85529
85530         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85531         now that readutmp.c may call `free (0)'.
85532
85533 2004-04-19  Bruno Haible  <bruno@clisp.org>
85534
85535         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85536         * m4/inttypes_h.m4: Likewise.
85537         * m4/stdint_h.m4: Likewise.
85538         * m4/intmax_t.m4: Likewise.
85539         * m4/uintmax_t.m4: Likewise.
85540
85541 2004-04-18  Jim Meyering  <jim@meyering.net>
85542
85543         * m4/prereq.m4: Don't forbid jm_ prefix.
85544
85545         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85546         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85547         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85548         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85549         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85550         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85551         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85552         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85553         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85554         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85555         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85556         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85557         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85558         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85559         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85560         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85561         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85562         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85563         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85564
85565 2004-04-18  Jim Meyering  <jim@meyering.net>
85566
85567         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85568         failure, don't leak memory and do call END_UTMP_ENT.
85569
85570 2004-04-16  Jim Meyering  <jim@meyering.net>
85571
85572         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85573         coreutils' stat program.
85574         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85575
85576 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85577
85578         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85579         C89.
85580         (CHAR_BIT): Remove, since we assume C89.
85581         Include <stdint.h> if available, as per current Autoconf CVS advice.
85582
85583 2004-03-31  Jim Meyering  <jim@meyering.net>
85584
85585         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85586         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85587         * m4/xalloc.m4: Likewise.
85588
85589 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85590
85591         Merge from coreutils.
85592
85593         * m4/inttostr.m4: New file.
85594         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85595         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85596         Require gl_CLOCK_TIME.
85597         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85598
85599 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85600
85601         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85602         not bool, to be more consistent with Unix conventions.
85603         Suggested by Bruno Haible.
85604
85605         Merge from coreutils.
85606
85607         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85608         * lib/umaxtostr.c: New files.
85609
85610         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85611         the usual <time.h> dance.
85612         (get_date): Change signature to support fractional time stamps.
85613         All callers changed.
85614         * lib/getdate.y: Include "getdate.h" first, as we can now
85615         assume C89 and don't need to worry about 'const'.
85616         Similarly, include "unlocked-io.h" near start, not in middle.
85617         Include <limits.h>.
85618         (textint.value): Use long int rather than int.
85619         (textint.digits): Use size_t rather than int.
85620         (BILLION, LOG10_BILLION): New constants.
85621         (parser_control): New member rel_ns.  Members day_ordinal,
85622         time_zone, month, day, hour, minutes, rel_year, rel_month,
85623         rel_day, rel_hour, rel_minutes, rel_seconds
85624         are now long int, not int.  Member seconds is now struct timespec,
85625         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85626         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85627         not int.
85628         (%union.intval): Now long int, not int.
85629         New member timespec.
85630         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85631         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85632         (spec): Now is a timespec or an item list.
85633         (timespec, items): New nonterminals.
85634         (time, rel, relunit, number, get_date):
85635         Add support for fractional seconds.
85636         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85637         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85638         (to_hour): First arg is now long int, not int.
85639         (to_year): Returns long int, not int.
85640         Don't treat year -70 like 70.
85641         (tm_diff): Returns long int, not int.
85642         (lookup_word): Use bool instead of int when appropriate.
85643         (yylex): Use size_t for count, not int.
85644         Detect overflow when parsing large integer constants.
85645         Add support for fractions.
85646         (get_date): Make pointers 'const' if possible.
85647         Use more-portable code to detect integer overflow.
85648         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85649         Don't use ctime; it's not reliable if the year has >4 digits.
85650
85651         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85652         This is for compatibility with BSD.
85653
85654         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85655         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85656         From coreutils' system.h.
85657
85658         * lib/userspec.c: Don't include "posixver.h".
85659         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85660         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85661         compatible extension.  Simplify code by removing a boolean int
85662         that was always nonzero if a string was nonnull.
85663
85664 2004-03-30  Jim Meyering  <jim@meyering.net>
85665
85666         Merge from coreutils.
85667
85668         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85669         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85670         on some systems one must include <grp.h> before it.
85671         Reported by Christian Krackowizer.
85672
85673 2004-03-30  Jim Meyering  <jim@meyering.net>
85674
85675         Merge from coreutils.
85676
85677         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85678
85679         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85680         an empty input stream.
85681
85682         * lib/readtokens.c: Include <stdbool.h>.
85683         (readtoken): Use `size_t' rather than int/long.
85684         All callers adjusted.
85685         Use `bool' rather than `int' where appropriate.
85686         Use memset rather than an explicit loop.
85687         Use x2nrealloc rather than xrealloc.
85688         Allow the use of `\0' as a delimiter.
85689         (readtokens): Likewise.
85690         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85691
85692 2004-03-30  Jim Meyering  <jim@meyering.net>
85693
85694         * m4/realloc.m4: Remove file, since now it does no more than
85695         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85696         the `configure.ac' section of module/realloc.
85697         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85698
85699 2004-03-30  Bruno Haible  <bruno@clisp.org>
85700
85701         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85702         nonnull.
85703
85704 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85705
85706         Merge changes to getloadavg.c from coreutils and Emacs.
85707
85708         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85709         Define to an expression, not to the empty string.
85710         Include cloexec.h and xalloc.h.
85711         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85712         Use set_cloexec_flag rather than rolling our own.
85713         * lib/cloexec.c, lib/cloexec.h: New files.
85714
85715 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85716
85717         * m4/cloexec.m4: New file.
85718
85719 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85720
85721         * lib/getopt.h: Sync with libc CVS.
85722
85723 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85724             Bruno Haible  <bruno@clisp.org>
85725
85726         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85727         mbswidth.
85728
85729 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85730             Bruno Haible  <bruno@clisp.org>
85731
85732         * lib/mbswidth.h: Include <wchar.h> only if
85733         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85734         <wchar.h>.
85735         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85736
85737 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85738
85739         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85740         Sync with libc CVS.
85741         * lib/getopt_int.h: New file, also synced from libc.
85742
85743 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85744
85745         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85746         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85747         Bring back getopt.c, getopt.h, getopt1.c.
85748
85749 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85750
85751         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85752         All uses changed.  Check for sa_sigaction member; this fixes
85753         a bug first reported by Jason Andrade in
85754         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85755
85756 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85757
85758         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85759         '#if' expressions.  Unlike the code it replaces, it does not
85760         depend on (defined _SC_PAGESIZE).  However, it does depend on
85761         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85762         first reported by Jason Andrade in
85763         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85764
85765 2004-02-25  Simon Josefsson  <jas@extundo.com>
85766
85767         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85768
85769 2004-02-25  Simon Josefsson  <jas@extundo.com>
85770
85771         * lib/strdup.h: New file.
85772         * lib/strdup.c: Include it.
85773         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85774         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85775
85776 2004-02-23  Karl Berry  <karl@gnu.org>
85777
85778         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85779         (from fencepost.gnu.org:/gd/gnuorg).
85780
85781 2004-02-23  Karl Berry  <karl@gnu.org>
85782
85783         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85784         * config/srclist.txt: add maintain/standards documents.
85785
85786 2004-02-18  Bruno Haible  <bruno@clisp.org>
85787
85788         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85789         Reported by Derek Robert Price <derek@ximbiot.com>.
85790
85791 2004-02-16  Karl Berry  <karl@gnu.org>
85792
85793         * config/mkinstalldirs, install-sh: update from automake.
85794
85795 2004-02-06  Karl Berry  <karl@gnu.org>
85796
85797         * m4/po.m4: update from gettext 0.14.1.
85798
85799 2004-02-06  Karl Berry  <karl@gnu.org>
85800
85801         * lib/config.charset: update from gettext 0.14.1.
85802
85803 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85804
85805         Add comments and code, prompted by suggestions from Bruno Haible
85806         for sh-quote.
85807         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85808         describing the enum quoting_style values.
85809         * lib/quotearg.c (quotearg_alloc): New function.
85810         (quotearg_buffer_restyled): Treat lone { and } as special.
85811         Treat = as special.  Work around bug with older shells
85812         that "see" a '\' that is really the 2nd byte of a multibyte char.
85813         Quote empty string with shell_quoting_style.
85814
85815 2004-02-03  Bruno Haible  <bruno@clisp.org>
85816
85817         * m4/pipe.m4: New file, from GNU gettext.
85818
85819 2004-02-03  Bruno Haible  <bruno@clisp.org>
85820
85821         * lib/pipe.h: New file, from GNU gettext.
85822         * lib/pipe.c: New file, from GNU gettext.
85823
85824 2004-01-27  Bruno Haible  <bruno@clisp.org>
85825
85826         * m4/execute.m4: New file, from GNU gettext.
85827
85828 2004-01-27  Bruno Haible  <bruno@clisp.org>
85829
85830         * lib/execute.h: New file, from GNU gettext.
85831         * lib/execute.c: New file, from GNU gettext.
85832         * lib/w32spawn.h: New file, from GNU gettext.
85833
85834 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85835
85836         Merge from diffutils.
85837
85838         * lib/file-type.c (file_type): Add typed memory objects.
85839         * lib/file-type.h (S_TYPEISTMO): New macro.
85840
85841         * lib/c-stack.h (c_stack_action): Remove argv argument.
85842         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85843         (die): Don't calculate message unless segv_action returns.
85844         (get_stack_location, min_address_from_argv, max_address_from_argv,
85845         volatile stack_base, volatile_stack_size): Remove.
85846         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85847         that every segmentation violation is a stack overflow.  (Ouch!)
85848         See Debian bug 136249 (still outstanding) for more info about why
85849         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85850
85851 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85852
85853         Exit-status fix from coreutils.
85854
85855         Use exit_failure consistently in place of EXIT_FAILURE,
85856         so that program exit statuses are consistent on failure.
85857
85858         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85859         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85860         * lib/argmatch.h: Comment fix to match the above.
85861         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85862         Now a macro referring to exit_failure, instead of a separate
85863         variable.  Include "exitfail.h" to get it.
85864         * lib/xstrtol.h: Include "exitfail.h".
85865         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85866
85867         * lib/long-options.c (parse_long_options): Use prototype
85868         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85869         for clarity.
85870
85871 2004-01-21  Jim Meyering  <jim@meyering.net>
85872
85873         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85874         so as not to conflict with a different-sized __mktime_internal
85875         function in GNU libc.
85876         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85877         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85878
85879 2004-01-20  Karl Berry  <karl@gnu.org>
85880
85881         * config/config.guess: update from config.
85882
85883         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85884
85885 2004-01-20  Bruno Haible  <bruno@clisp.org>
85886
85887         Safer stack allocation.
85888         * lib/setenv.c: Include allocsa.h.
85889         (alloca): Remove fallback definition.
85890         (freea): Remove macro.
85891         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85892         instead of freea.
85893
85894 2004-01-20  Bruno Haible  <bruno@clisp.org>
85895
85896         * m4/eealloc.m4: New file, from GNU gettext.
85897
85898 2004-01-20  Bruno Haible  <bruno@clisp.org>
85899
85900         * m4/allocsa.m4: New file, from GNU gettext.
85901
85902 2004-01-20  Bruno Haible  <bruno@clisp.org>
85903
85904         * lib/xallocsa.h: New file, from GNU gettext.
85905         * lib/xallocsa.c: New file, from GNU gettext.
85906
85907 2004-01-20  Bruno Haible  <bruno@clisp.org>
85908
85909         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85910
85911 2004-01-20  Bruno Haible  <bruno@clisp.org>
85912
85913         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85914         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85915         specially.
85916
85917 2004-01-20  Bruno Haible  <bruno@clisp.org>
85918
85919         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85920         patch.
85921
85922 2004-01-20  Bruno Haible  <bruno@clisp.org>
85923
85924         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85925
85926 2004-01-20  Bruno Haible  <bruno@clisp.org>
85927
85928         * lib/eealloc.h: New file.
85929
85930 2004-01-20  Bruno Haible  <bruno@clisp.org>
85931
85932         * lib/binary-io.h: Avoid warnings on Cygwin.
85933
85934 2004-01-20  Bruno Haible  <bruno@clisp.org>
85935
85936         * lib/allocsa.h: New file, from GNU gettext.
85937         * lib/allocsa.c: New file, from GNU gettext.
85938
85939 2004-01-18  Karl Berry  <karl@gnu.org>
85940
85941         * doc/gpl.texi, doc/lgpl.texi: new files.
85942
85943 2004-01-18  Karl Berry  <karl@gnu.org>
85944
85945         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85946         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85947
85948 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85949
85950         Merge from coreutils.
85951
85952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85953         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85954         (gl_DEFAULT_POSIX2_VERSION): Move
85955         the documentation from 'configure' into 'config.hin',
85956         so that 'configure --help' isn't burdened by it and
85957         we don't have to worry about its formatting there.
85958         Reword the documentation so that it's more succinct
85959         and can be run together into a single paragraph.
85960         * m4/same.m4 (gl_SAME): Check for pathconf.
85961
85962 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85963
85964         Merge from coreutils.
85965
85966         * lib/posixver.c: Include posixver.h.
85967
85968         * lib/same.c: Include <stdbool.h>, <limits.h>.
85969         (_POSIX_NAME_MAX): Define if not defined.
85970         (MIN): New macro.
85971         (same_name): If file names are silently truncated, report
85972         that the file names are the same if they are the same after
85973         the silent truncation.
85974
85975         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85976         conversion function.
85977         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85978         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85979         longer needed.
85980
85981 2004-01-15  Jim Meyering  <jim@meyering.net>
85982
85983         Merge from coreutils.
85984
85985         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85986         if no library is required.
85987         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85988         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85989         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85990         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85991         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85992         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85993         value, $ac_cv_search_crypt, if it's "none required".
85994         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85995         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85996         not gl_FUNC_GETLOADAVG.
85997         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85998         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85999
86000 2004-01-15  Jim Meyering  <jim@meyering.net>
86001
86002         Merge from coreutils.
86003
86004         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86005         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86006         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86007
86008         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86009         optional configure-time default.
86010
86011         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86012
86013         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86014
86015 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86016
86017         Merge from coreutils.
86018
86019         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86020         value, $ac_cv_search_nanosleep, if it's "none required".
86021
86022 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86023
86024         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86025         with like-named macro in fnmatch.c.
86026         (EXT): Use an internal constant instead.
86027
86028         Merge fnmatch patches from glibc.
86029         * lib/fnmatch.c (mbsinit): Remove define.
86030         Add libc_hidden_ver (__fnmatch, fnmatch).
86031         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86032         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86033
86034 2004-01-14  Karl Berry  <karl@gnu.org>
86035
86036         * config/install-sh: update from automake.
86037
86038 2004-01-13  Karl Berry  <karl@gnu.org>
86039
86040         * config/install-sh: update from automake.
86041
86042 2004-01-09  Karl Berry  <karl@gnu.org>
86043
86044         * config/install-sh: update from automake.
86045
86046 2004-01-05  Karl Berry  <karl@gnu.org>
86047
86048         * config/config.{sub,guess}: update from config.
86049
86050 2003-12-31  Karl Berry  <karl@gnu.org>
86051
86052         * config/depcomp: update from automake.
86053
86054 2003-12-14  Karl Berry  <karl@gnu.org>
86055
86056         * lib/config.charset: update from gettext-runtime.
86057
86058 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86059
86060         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86061         Bug reported by Alfred M. Szmidt.
86062
86063 2003-12-03  Bruno Haible  <bruno@clisp.org>
86064
86065         * m4/gettext.m4: Upgrade from gettext-0.13.
86066         * m4/po.m4: Upgrade from gettext-0.13.
86067         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86068         * m4/intmax.m4: New file, from gettext-0.13.
86069         * m4/printf-posix.m4: New file, from gettext-0.13.
86070
86071 2003-11-29  Karl Berry  <karl@gnu.org>
86072
86073         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86074
86075 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86076             Bruno Haible  <bruno@clisp.org>
86077
86078         * lib/printf-parse.h: Don't include sys/types.h.
86079         (ARG_NONE): New macro.
86080         (char_directive): Change type of *arg_index fields to size_t.
86081         * lib/printf-parse.c: Don't include sys/types.h.
86082         (SSIZE_MAX): Remove macro.
86083         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86084         Remove unnecessary overflow check.
86085         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86086         fields.
86087
86088 2003-11-25  Bruno Haible  <bruno@clisp.org>
86089
86090         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86091
86092 2003-11-25  Bruno Haible  <bruno@clisp.org>
86093
86094         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86095         gt_TYPE_SSIZE_T.
86096
86097 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86098
86099         * modules/alloca: Remove dependency on xalloc.
86100
86101 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86102
86103         * lib/alloca.c: Remove dependency on xalloc module.
86104         (xalloc_die): Remove.
86105         (memory_full) [!defined emacs]: New macro.
86106         [!defined emacs]: Don't include xalloc.h.
86107         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86108         address arithmetic overflows.  Change datatypes a bit to avoid
86109         unnecessary casts.
86110
86111 2003-11-22  Jim Meyering  <jim@meyering.net>
86112
86113         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86114         s/size/size_t/.
86115
86116 2003-11-21  Karl Berry  <karl@gnu.org>
86117
86118         * config/config.{sub,guess}: update from config.
86119
86120 2003-11-18  Karl Berry  <karl@gnu.org>
86121
86122         * config/config.{sub,guess}: update from config.
86123
86124         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86125
86126 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86127
86128         * README: Mention that S+T cannot overflow if S is the size of
86129         an existing object and T is sufficiently small.
86130
86131 2003-11-17  Jim Meyering  <jim@meyering.net>
86132
86133         On systems without utime and without a utimes function capable of
86134         dealing with a NULL struct utimbuf* argument, this utime replacement
86135         could -- in unusual circumstances -- leak a file descriptor.
86136         * lib/utime.c: Include <unistd.h> and <errno.h>.
86137         (utime_null): Be sure to close `fd' and to preserve errno.
86138         Reported by Geoff Collyer via Arnold Robbins.
86139
86140 2003-11-17  Bruno Haible  <bruno@clisp.org>
86141
86142         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86143         (Depends-on): Add xsize.
86144
86145 2003-11-17  Bruno Haible  <bruno@clisp.org>
86146
86147         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86148
86149 2003-11-17  Bruno Haible  <bruno@clisp.org>
86150
86151         * lib/vasnprintf.c (alloca): Remove fallback definition.
86152         (freea): Remove definition.
86153         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86154         Reported by Paul Eggert.
86155
86156 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86157             Bruno Haible  <bruno@clisp.org>
86158
86159         Protect against address arithmetic overflow.
86160         * lib/printf-args.h: Include stddef.h.
86161         (arguments): Change type of field 'count' to size_t.
86162         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86163         'unsigned int' where appropriate.
86164         * lib/printf-parse.h: Include sys/types.h.
86165         (char_directive): Change type of *arg_index fields to ssize_t.
86166         (char_directives): Change type of fields 'count', max_*_length to
86167         size_t.
86168         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86169         (SSIZE_MAX): Define fallback value.
86170         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86171         instead of 'int' where appropriate. Check a_allocated, d_allocated
86172         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86173         * lib/vasnprintf.c: Include xsize.h.
86174         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86175         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86176         overflow. Avoid wraparound when converting a width or precision from
86177         decimal to binary.
86178
86179 2003-11-16  Bruno Haible  <bruno@clisp.org>
86180
86181         Update from GNU gettext.
86182         * lib/printf-parse.c: Generalize to it can be compiled for wide
86183         strings.
86184         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86185         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86186         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86187         SNPRINTF): New macros.
86188         Don't include <alloca.h> if the file is used inside libintl.
86189         (local_wcslen): New function, for Solaris 2.5.1.
86190         (VASNPRINTF): Use it instead of wcslen.
86191
86192 2003-11-16  Bruno Haible  <bruno@clisp.org>
86193
86194         * lib/xsize.h (xmax): New function.
86195         (xsum, xsum3, xsum4): Declare as "pure" functions.
86196
86197 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86198
86199         * modules/xalloc (Files): Undo latest change, since xalloc.h
86200         no longer needs SIZE_MAX or PTRDIFF_MAX.
86201
86202 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86203
86204         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86205         gl_PTRDIFF_MAX.
86206
86207 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86208
86209         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86210         "return", to pacify some unknown compiler.  Problem reported
86211         by Joerg Schilling.
86212
86213 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86214
86215         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86216         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86217         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86218         heuristic is just as accurate as far as we know, and it removes a
86219         dependency on size_max.m4 and ptrdiff_max.m4.
86220
86221 2003-11-11  Bruno Haible  <bruno@clisp.org>
86222
86223         * modules/xsize (Files): Add m4/size_max.m4.
86224         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86225
86226 2003-11-11  Bruno Haible  <bruno@clisp.org>
86227
86228         * m4/size_max.m4: New file.
86229         * m4/ptrdiff_max.m4: New file.
86230         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86231         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86232         (gl_XALLOC): Invoke it.
86233
86234 2003-11-11  Bruno Haible  <bruno@clisp.org>
86235
86236         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86237         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86238         defined.
86239
86240 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86241
86242         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86243         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86244         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86245         From Bruno Haible.
86246         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86247         not (size_t) -1, since it's defined here.
86248
86249 2003-11-09  Karl Berry  <karl@gnu.org>
86250
86251         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86252
86253 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86254
86255         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86256         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86257         Reject sizes of exactly SIZE_MAX bytes.
86258         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86259         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86260
86261 2003-11-05  Bruno Haible  <bruno@clisp.org>
86262
86263         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86264         SIZE_MAX defined in <limits.h> on Solaris.
86265
86266 2003-11-04  Jim Meyering  <jim@meyering.net>
86267
86268         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86269         variable names, rather than @VAR@.
86270         * modules/poll: Likewise.
86271
86272 2003-11-04  Bruno Haible  <bruno@clisp.org>
86273
86274         * modules/xsize: New file.
86275         * modules/linebreak: Depend on xsize.
86276         * MODULES.html.sh (func_all_modules): Add xsize.
86277
86278 2003-11-04  Bruno Haible  <bruno@clisp.org>
86279
86280         * m4/xsize.m4: New file.
86281
86282 2003-11-04  Bruno Haible  <bruno@clisp.org>
86283
86284         * lib/xsize.h: New file.
86285         * lib/linebreak.c: Include xsize.h.
86286         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86287         argument for overflow.
86288         Suggested by Paul Eggert.
86289
86290 2003-11-03  Karl Berry  <karl@gnu.org>
86291
86292         * config/config.{guess,sub}: update from config.
86293
86294 2003-11-03  Jim Meyering  <jim@meyering.net>
86295
86296         * modules/userspec (lib_SOURCES): Add userspec.h.
86297         (Include): Add "userspec.h".
86298         Improve description.
86299
86300 2003-11-03  Jim Meyering  <jim@meyering.net>
86301
86302         * lib/userspec.c: Include "userspec.h".
86303         * lib/userspec.h: New file.
86304
86305 2003-11-03  Bruno Haible  <bruno@clisp.org>
86306
86307         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86308
86309 2003-11-03  Bruno Haible  <bruno@clisp.org>
86310
86311         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86312         available, to avoid (extremely rare) race condition.
86313         Suggested by Paul Eggert.
86314
86315 2003-11-02  Karl Berry  <karl@gnu.org>
86316
86317         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86318
86319 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86320
86321         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86322         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86323         (read_filesystem_list): Set and use me_type_malloced.
86324         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86325         whatever the type happens to be), for brevity and consistency.
86326         Check for size calculation overflow on Alphas running OSF/1.
86327
86328 2003-10-31  Jim Meyering  <jim@meyering.net>
86329
86330         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86331
86332         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86333
86334 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86335             Bruno Haible  <bruno@clisp.org>
86336
86337         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86338         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86339
86340 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86341
86342         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86343         netbsd*-gnu*.  Suggested by Robert Millan.
86344
86345 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86346
86347         * modules/group-member: Depend on stdbool.
86348
86349 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86350
86351         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86352
86353 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86354
86355         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86356         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86357         after the 'gnu' in these cases.  This fixes some bugs in the
86358         previous change, and is based on suggestions by Robert Millan.
86359
86360 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86361
86362         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86363         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86364         no longer needed.
86365         * lib/quotearg.c (quotearg_n_options): Use it.
86366         * lib/group-member.c: Include <stdbool.h>.
86367         (free_group_info): Arg is now const *; don't free arg.
86368         (get_group_info): Now returns bool and accepts struct group_info *,
86369         rather than returning a malloc'ed struct group_info *.
86370         All uses changed.  Check for overflow in internal size calculation.
86371
86372         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86373         rather than xmalloc/xrealloc.
86374         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86375         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86376         conformance bug: the old code used a pointer after freeing the
86377         storage that it addressed.
86378         * lib/hash.c (hash_initialize): Simplify the code by using
86379         xalloc_oversized rather than doing it by hand.
86380         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86381         the buffer preserved.  Use free and xmalloc instead.
86382         * lib/quotearg.c (quotearg_n_options): Likewise.
86383         Use a simpler test for size overflow.  Don't use xalloc_oversized
86384         because unsigned int might be wider than size_t (!); this suggests
86385         that we should switch from unsigned int to size_t for slot numbers.
86386
86387 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86388
86389         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86390         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86391         NetBSD kernels.  Requested by Richard Stallman.
86392
86393 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86394
86395         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86396         to allocate the returned structure.  Do not allocate a subarray,
86397         as x2nrealloc will do that.
86398         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86399         instead of xnrealloc.
86400         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86401
86402 2003-10-27  Bruno Haible  <bruno@clisp.org>
86403
86404         * lib/stdbool_.h: Better support for BeOS.
86405
86406 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86407
86408         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86409         now uses inline.
86410
86411 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86412
86413         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86414         callers that want to do their own size-overflow checking.  Include
86415         <stdbool.h>, since xalloc_oversized returns bool.
86416         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86417         to use xalloc_oversized.
86418
86419         Add two functions x2realloc, x2nrealloc, for programs that grow
86420         arrays dynamically by doubling their sizes.
86421         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86422         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86423         New functions.
86424
86425         Port to C99 semantics for 'inline' of external functions.
86426         Bug reported by Bruno Haible.
86427         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86428         with the old contents of xnmalloc.
86429         (xnmalloc, xmalloc): Use it.
86430         (xnrealloc_inline): New static inline function,
86431         with the old contents of xnrealloc.
86432         (xnrealloc, xrealloc): Use it.
86433
86434         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86435         that.
86436
86437 2003-10-26  Karl Berry  <karl@gnu.org>
86438
86439         * config/srclist.txt (COPYING.DOC): no longer available from
86440         /gd/gnuorg; don't know where the ultimate source is.
86441
86442 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86443
86444         Fix several address-calculation bugs in the hash modules,
86445         plus some minor code cleanup.
86446
86447         * lib/hash.h: Include <stdbool.h>, for bool.
86448         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86449         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86450         hash_get_n_entries, hash_get_max_bucket_length,
86451         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86452         hash_rehash): Use size_t rather than unsigned.
86453         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86454         hash_get_n_buckets_used, hash_get_n_entries,
86455         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86456         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86457         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86458         Likewise.
86459         (SIZE_MAX): Define if not defined.
86460         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86461         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86462         hash_print):
86463         Use const * when possible.
86464         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86465         (check_tuning): Fix bug: if tuning parameters were very close to
86466         0 or 1, rounding errors could have caused subscript violations.
86467         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86468         (hash_initialize): Add 'fail:' label
86469         to free table and return NULL, and use it to simplify code.
86470         Use calloc rather than clearing the storage ourself.
86471         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86472         buffer size calculations.
86473         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86474         Include <stddef.h>, for size_t.
86475         * lib/hash-pjw.c (hash_pjw): Likewise.
86476         Switch to method described by Bruno Haible.
86477         Include <limits.h>, for CHAR_BIT.
86478         (SIZE_BITS): New macro.
86479
86480 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86481
86482         * m4/getline.m4 (AM_FUNC_GETLINE):
86483         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86484         hosts.  Problem reported by Derek Robert Price in
86485         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86486         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86487         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86488
86489 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86490
86491         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86492         ceiling the allocation at NMAX bytes rather than silently
86493         discarding input bytes before NMAX is reached.  This makes
86494         a difference only if NMAX exceeds SIZE_MAX / 2.
86495
86496         * lib/obstack.c: Merge from glibc.
86497         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86498         Add libc_hidden_def (_obstack_newchunk).
86499         (_obstack_free) [! defined _LIBC]: Remove.
86500         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86501         a clone of the function body.
86502         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86503         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86504
86505         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86506         glibc.
86507         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86508         arg to memcpy.
86509
86510         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86511         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86512         Don't use lvalue casts, as GCC plans to remove support for them
86513         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86514         was also present in the non-GCC version, indicating that this
86515         code had always been buggy and had never been widely used.
86516         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86517         Use the fast variant of each macro, rather than copying the
86518         definiens of the fast variant; that way, we'll be more likely to
86519         catch future bugs in the fast variants.
86520
86521 2003-10-20  Bruno Haible  <bruno@clisp.org>
86522
86523         * modules/wait-process: New file.
86524         * MODULES.html.sh (func_all_modules): Add wait-process.
86525
86526 2003-10-20  Bruno Haible  <bruno@clisp.org>
86527
86528         * m4/wait-process.m4: New file.
86529
86530 2003-10-20  Bruno Haible  <bruno@clisp.org>
86531
86532         * lib/wait-process.h: New file, from GNU gettext.
86533         * lib/wait-process.c: New file, from GNU gettext.
86534
86535 2003-10-19  Jim Meyering  <jim@meyering.net>
86536
86537         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86538         HPUX 10.20.
86539
86540 2003-10-18  Karl Berry  <karl@gnu.org>
86541
86542         * config/config.guess: update from config.
86543
86544 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86545
86546         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86547         (getgroups): First arg is int, not size_t.
86548         Don't let 'free' mangle errno.
86549
86550 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86551
86552         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86553
86554 2003-10-16  Karl Berry  <karl@gnu.org>
86555
86556         * config/config.{guess,sub}: update from config.
86557
86558 2003-10-16  Jim Meyering  <jim@meyering.net>
86559
86560         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86561         memcpy.
86562
86563 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86564
86565         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86566         (SIZE_MAX): Remove.
86567         (new_exclude, add_exclude_file): Initial size no longer needs to
86568         be a power of 2.
86569         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86570         our own address arithmetic overflow checking.
86571
86572         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86573         (fnmatch): Do not alloca more than 2000 wide characters;
86574         instead, use malloc for large buffers.
86575         Check for address arithmetic overflow, and return -1
86576         with errno set to ENOMEM in that case.
86577         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86578         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86579         instead, return -1.  Check for address arithmetic overflow.
86580
86581 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86582
86583         Handle invalid suffixes and overflow independently, so that
86584         callers can treat them independently as needed.  Fix some bugs in
86585         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86586         suffix for a human-readable blocksize.  The major caller-visible
86587         change is the addition of a new
86588         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86589         that both overflow and suffix chars were found.
86590
86591         * lib/human.c (humblock): Don't check separately for invalid suffix
86592         char; that is xstrtoumax's job (now that its bug is fixed).
86593         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86594         INTMAX_MAX]: New macros.
86595         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86596         TYPE_MAXIMUM): New macros.
86597         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86598         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86599         if overflow occurs, as it's what __strtol does and it's more useful
86600         in practice.
86601         (__xstrtol): If __strtol reports some error other than ERANGE,
86602         reflect it to the caller as LONGINT_INVALID.  If it reports
86603         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86604         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86605         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86606         value.
86607         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86608         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86609         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86610         [defined UINTMAX_MAX]: New macros.
86611
86612 2003-10-14  Bruno Haible  <bruno@clisp.org>
86613
86614         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86615
86616 2003-10-14  Bruno Haible  <bruno@clisp.org>
86617
86618         * m4/sig_atomic_t: New file, from GNU gettext.
86619         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86620
86621 2003-10-14  Bruno Haible  <bruno@clisp.org>
86622
86623         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86624         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86625         Also use volatile where needed.
86626
86627 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86628
86629         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86630         Change maintainer from Bruno Haible to 'all'.
86631
86632 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86633
86634         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86635
86636 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86637
86638         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86639         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86640         and define in terms of the other primitives.
86641         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86642         (SIZE_MAX): Define if not already defined.
86643         (array_size_overflow): New function.
86644         (xalloc_die): Abort instead of exiting if 'error' returns.
86645         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86646         (xmalloc, xrealloc): Use them.
86647         (xcalloc): Check for address arithmetic overflow.
86648         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86649         a bit faster than strcpy.
86650
86651 2003-10-10  Simon Josefsson  <jas@extundo.com>
86652
86653         * modules/argp (Depends-on): Add restrict and strcase.
86654
86655 2003-10-10  Simon Josefsson  <jas@extundo.com>
86656
86657         * m4/argp.m4: Add AC_C_INLINE.
86658
86659 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86660
86661         Merge getpass from libc, plus a few fixes.
86662
86663         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86664         Include <stdbool.h>.
86665         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86666         __fsetlocking to empty.
86667         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86668         do include <bits/libc-lock.h>.
86669         Do not include <fcntl.h>; not needed.
86670         [_LIBC]: Include <wchar.h>.
86671         (NOTCANCEL_MODE): New macro.
86672         (flockfile, funlockfile) [_LIBC]: New macros.
86673         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86674         [!_LIBC]: New macros.
86675         (call_fclose): New function.
86676         (getpass): Use it.  Save tty stream separately; this simplifies the
86677         code and makes it more reliable if stdin happens to equal stdout.
86678         Invoke __fsetlocking on tty.
86679         Handle thread cancellation if needed.
86680         Namespace cleanup (use __tcgetattr, __getline).
86681         Use bool for Booleans.
86682         [USE_IN_LIBIO]: Handle wide streams.
86683         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86684         stream might go where.
86685
86686         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86687         doesn't have to include <stdio.h> before us.
86688         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86689         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86690         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86691         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86692         if not declared, so that we can use getpass.c code from libc without
86693         rewriting it.
86694         (flockfile, ftrylockfile, funlockfile): New macros.
86695
86696 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86697
86698         * modules/getpass: Depend on stdbool.
86699
86700 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86701
86702         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86703
86704 2003-10-07  Karl Berry  <karl@gnu.org>
86705
86706         * config/config.{guess,sub}: update from config.
86707
86708 2003-10-06  Jim Meyering  <jim@meyering.net>
86709             Bruno Haible  <bruno@clisp.org>
86710
86711         This lets translators provide better translations for the
86712         "Written by ..." part of --version output.
86713         * lib/version-etc.h: Include stdarg.h.
86714         (version_etc_copyright): Declare as readonly.
86715         (version_etc): Make this function variadic with a NULL-terminated list
86716         of author name strings.
86717         (version_etc_va): New declaration.
86718         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86719         (version_etc_copyright): Declare as readonly.
86720         (version_etc_va): New function. Provide a different translatable string
86721         for each possible number of authors < 10. Abbreviate when there are 10
86722         authors or more.
86723         (version_etc): Make this function variadic. Call version_etc_va.
86724         Suggestion from Gary V. Vaughan.
86725
86726         * lib/long-options.h (parse_long_options): Change prototype: the
86727         authors string is moved to the end and becomes variadic.
86728         * lib/long-options.c: Include stdarg.h.
86729         (parse_long_options): Make this function variadic, too.
86730         Call version_etc_va, not version_etc.
86731
86732 2003-10-06  Bruno Haible  <bruno@clisp.org>
86733
86734         * modules/version-etc-2: Remove file.
86735         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86736
86737 2003-10-06  Bruno Haible  <bruno@clisp.org>
86738
86739         * modules/fatal-signal: New file.
86740         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86741
86742 2003-10-06  Bruno Haible  <bruno@clisp.org>
86743
86744         * m4/fatal-signal.m4: New file.
86745         * m4/signalblocking.m4: New file, from GNU gettext.
86746
86747 2003-10-06  Bruno Haible  <bruno@clisp.org>
86748
86749         * lib/version-etc-2.h: Remove file.
86750         * lib/version-etc-2.c: Remove file.
86751
86752 2003-10-06  Bruno Haible  <bruno@clisp.org>
86753
86754         * lib/fatal-signal.h: New file, from GNU gettext.
86755         * lib/fatal-signal.c: New file, from GNU gettext.
86756
86757 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86758
86759         * README: Rework advice for preventing empty .o files.
86760         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86761         not <sys/types.h>.
86762
86763 2003-10-04  Karl Berry  <karl@gnu.org>
86764
86765         * lib/argp*: update from libc.
86766
86767 2003-10-04  Karl Berry  <karl@gnu.org>
86768
86769         * config/config.{guess,sub}: update from config.
86770
86771 2003-10-02  Bruno Haible  <bruno@clisp.org>
86772
86773         * modules/lchown (Include): Add lchown.h.
86774         * modules/time_r (Include): Use "..." syntax.
86775         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86776
86777 2003-10-01  Simon Josefsson  <jas@extundo.com>
86778
86779         * MODULES.html.sh (func_all_modules): Move gethostname from section
86780         'based on' to section 'lacking' POSIX:2001.
86781
86782 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86783
86784         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86785         to output mode on the same stream.
86786
86787 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86788
86789         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86790         Fix arg typo in previous patch.
86791
86792 2003-09-28  Jim Meyering  <jim@meyering.net>
86793
86794         * lib/error.c: Correct cpp indentation.
86795
86796 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86797
86798         * modules/free: New file.
86799
86800 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86801
86802         * m4/free.m4: New file.
86803
86804 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86805
86806         * lib/minmax.h (MIN, MAX)
86807         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86808         Omit the special code that used __typeof__, since we worry that
86809         it could be more trouble than it's worth.  See:
86810         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86811         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86812
86813         * lib/free.c: New file.
86814
86815 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86816
86817         Trivial fixes to Makefile.am parts of module listings.
86818         * modules/strstr: Append strstr.h to lib_SOURCES.
86819         * modules/strcase: Likewise, for strcase.h.
86820
86821 2003-09-27  Karl Berry  <karl@gnu.org>
86822
86823         * config/mkinstalldirs: update from automake.
86824
86825 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86826
86827         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86828         (error_tail): Do not loop, reallocating temporary buffer, since
86829         the output cannot contain more wide characters than the input
86830         contains bytes, the size must be big enough already.  This avoids
86831         one potential size overflow calculation.  Check for size overflow
86832         when calculating temporary buffer size.  Free temporary buffer
86833         when done, if it was allocated with malloc; this plugs a memory
86834         leak.  Remove casts from void * to pointers, that are no longer
86835         needed now that we're assuming C89 or better.
86836
86837         Merge error changes from glibc.
86838
86839         * lib/error.c, error.h: Update copyright notice header to match glibc.
86840         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86841         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86842         Disable cancellation while printing error.
86843         * lib/error.h: Prepend __ to parameter names.
86844
86845 2003-09-26  Jim Meyering  <jim@meyering.net>
86846
86847         * lib/error.c (error_tail): Move some declarations
86848         into inner scope where the local variables are used.
86849
86850 2003-09-26  Bruno Haible  <bruno@clisp.org>
86851
86852         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86853         stpncpy().
86854         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86855
86856 2003-09-26  Bruno Haible  <bruno@clisp.org>
86857
86858         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86859         (stpncpy): Define as alias for gnu_stpncpy.
86860         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86861
86862 2003-09-25  Simon Josefsson  <jas@extundo.com>
86863
86864         * lib/xgetdomainname.h: New file.
86865         * lib/xgetdomainname.c: New file.
86866
86867 2003-09-25  Simon Josefsson  <jas@extundo.com>
86868             Bruno Haible  <bruno@clisp.org>
86869
86870         * modules/getdomainname: New file.
86871         * modules/xgetdomainname: New file.
86872         * MODULES.html.sh (func_all_modules): Add getdomainname,
86873         xgetdomainname.
86874
86875 2003-09-25  Simon Josefsson  <jas@extundo.com>
86876             Bruno Haible  <bruno@clisp.org>
86877
86878         * m4/getdomainname.m4: New file.
86879
86880 2003-09-25  Simon Josefsson  <jas@extundo.com>
86881             Bruno Haible  <bruno@clisp.org>
86882
86883         * lib/getdomainname.h: New file.
86884         * lib/getdomainname.c: New file.
86885
86886 2003-09-25  Karl Berry  <karl@gnu.org>
86887
86888         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86889
86890 2003-09-25  Karl Berry  <karl@gnu.org>
86891
86892         * config/install-sh: update from automake.
86893
86894 2003-09-25  Bruno Haible  <bruno@clisp.org>
86895
86896         * modules/version-etc-2: New file, from modules/version-etc with
86897         modifications.
86898         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86899
86900 2003-09-25  Bruno Haible  <bruno@clisp.org>
86901
86902         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86903         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86904
86905 2003-09-24  Simon Josefsson  <jas@extundo.com>
86906
86907         * modules/xgethostname: Add xgethostname.h.
86908
86909 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86910
86911         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86912         the buffer associated with the argument.  Bug reported by
86913         Simon Josefsson.
86914
86915 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86916
86917         * README: Document assumptions that 'int' is at least 32 bits
86918         wide, that integer arithmetic is 2's complement without overflow,
86919         that there are no holes in integer values, that adding sizes of
86920         two nonoverlapping objects can't overflow, and that all-bits-zero
86921         yields scalar zero.  Fix spelling and capitalization typos.
86922
86923 2003-09-19  Karl Berry  <karl@gnu.org>
86924
86925         * lib/argp.h: update from libc.
86926
86927 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86928
86929         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86930         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86931         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86932
86933 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86934
86935         * gnulib-tool: Use "test -h", not "test -L", for portability
86936         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86937         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86938         (sed_extract_prog): Issue s commands one-by-one, rather than
86939         using \| in one s command.
86940
86941 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86942
86943         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86944         input error, instead of returning NULL the next time we are called
86945         (and therefore losing track of errno).
86946
86947 2003-09-16  Bruno Haible  <bruno@clisp.org>
86948
86949         * gnulib-tool (func_create_testdir): Warn about duplicated
86950         dependencies.
86951
86952 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86953
86954         * modules/argmatch, modules/fatal, modules/obstack,
86955         modules/xalloc, modules/xgethostname: Sort dependencies by
86956         importance, not alphabetically.
86957
86958 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86959
86960         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86961         fails, so that the caller gets the proper errno.
86962
86963         * lib/readutmp.c (read_utmp): Likewise.
86964         Check for fstat error.  Close stream and free storage
86965         when failing.
86966
86967 2003-09-14  Karl Berry  <karl@gnu.org>
86968
86969         * config/srclist.txt (strdup.c): disable for c89 changes.
86970
86971 2003-09-14  Jim Meyering  <jim@meyering.net>
86972
86973         * lib/getloadavg.c: Correct cpp indentation.
86974         * lib/strdup.c: Likewise.
86975         * lib/vasnprintf.c: Likewise.
86976
86977 2003-09-14  Bruno Haible  <bruno@clisp.org>
86978
86979         * modules/fwriteerror: New file.
86980         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86981
86982 2003-09-14  Bruno Haible  <bruno@clisp.org>
86983
86984         * lib/fwriteerror.h: New file.
86985         * lib/fwriteerror.c: New file.
86986
86987 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86988
86989         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86990         modules/xgethostname, modules/xalloc: Depend on exit.
86991
86992 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86993
86994         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86995
86996         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86997         and AC_MINIX, too, so that their extensions are available.
86998
86999         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87000         This macro has been superseded by gl_BACKUPFILE.
87001
87002         More patches to assume C89 or better.
87003
87004         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87005
87006         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87007         unconditionally.
87008         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87009         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87010         Include <string.h>, <stdlib.h> unconditionally.
87011         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87012         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87013         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87014         headers or for string.h.
87015         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87016         or strtoul.
87017
87018         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87019         headers.
87020         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87021         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87022         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87023         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87024         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87025         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87026         memcpy, memset.
87027         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87028         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87029         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87030         strtol.
87031         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87032         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87033         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87034         strtoul.
87035
87036 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87037
87038         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87039         * lib/obstack.c [!defined _LIBC]: Likewise.
87040         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87041         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87042         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87043
87044         More changes to assume C89 or better.
87045
87046         * lib/error.c (error_tail): Assume vprintf.
87047
87048         * lib/argmatch.c (getenv): Remove decl.
87049         * lib/progreloc.c (get_full_program_name): Define via prototype.
87050         * lib/setenv.c (clearenv): Likewise.
87051         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87052         needed.
87053         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87054         (malloc, memcpy): Remove decls.
87055         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87056         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87057         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87058         (memcpy): Remove macro.
87059         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87060         (__P): Remove.  All uses removed.
87061         (PTR): Remove.  All uses changed to void *.
87062         (CHAR_BIT, NULL): Remove.
87063         (spaces, zeros, memset_space, memset_zero)
87064         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87065         Remove.
87066         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87067         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87068         Define with prototype.
87069         Remove now-unnecessary prototype decl.
87070         (extra_args_spec): Assume ANSI C.  All uses changed.
87071         (extra_args_spec_iso): Remove.
87072         (my_strftime, emacs_strftimeu): Define via prototype.
87073         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87074         unconditionally.
87075         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87076         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87077         (strtoul, strtol): Remove decls.
87078         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87079         LONG_MAX): Remove.
87080         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87081         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87082         (LOCALE_PARAM_PROTO): New macro.
87083         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87084         (INTERNAL (strtol), strtol): Define with a prototype.
87085         (PARAMS): Remove.  All uses removed.
87086         * lib/tempname.c: Include <string.h> unconditionally.
87087         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87088         * lib/xgethostname.c (main): Define with a prototype.
87089         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87090         Include <stdlib.h> unconditionally.
87091         (calloc, malloc, realloc, free): Remove decls.
87092         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87093         Include <stdlib.h> unconditionally.  Sort include file names.
87094         (strtod): Remove.
87095         (xstrtod): Define with a prototype.
87096         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87097         (strtol, strtoul): Remove decls.
87098
87099 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87100
87101         More patches to assume C89 or better.
87102         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87103         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87104         string.h, memchr, STDC_HEADERS.
87105
87106 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87107
87108         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87109         Include <stdlib.h>, <string.h> unconditionally.
87110         Remove now-unnecessary cast to char *.
87111         * lib/strnlen.c: Include <string.h> unconditionally.
87112         * lib/yesno.c (yesno): Define with a prototype.
87113
87114 2003-09-11  Bruno Haible  <bruno@clisp.org>
87115
87116         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87117
87118 2003-09-10  Jim Meyering  <jim@meyering.net>
87119
87120         * lib/error.c: Correct indentation of cpp directives.
87121
87122 2003-09-10  Bruno Haible  <bruno@clisp.org>
87123
87124         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87125         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87126         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87127         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87128         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87129         <stdlib.h> and <string.h> checks.
87130         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87131         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87132
87133 2003-09-10  Bruno Haible  <bruno@clisp.org>
87134
87135         * lib/strcspn.c: Include <string.h> unconditionally.
87136         * lib/strpbrk.c: Include <string.h> unconditionally.
87137         * lib/strstr.c: Include <string.h> unconditionally.
87138         * lib/unicodeio.c: Include <string.h> unconditionally.
87139         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87140         * lib/unsetenv.c: Likewise.
87141         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87142         * lib/yesno.c: Include <stdlib.h> unconditionally.
87143         (rpmatch): Add prototype.
87144
87145 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87146
87147         More patches to assume C89 or better.
87148         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87149         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87150         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87151         or for string.h.
87152         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87153         stdlib.h.
87154         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87155         C headers.
87156         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87157         string.h.
87158         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87159         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87160         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87161         or for string.h.
87162         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87163         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87164         C headers.
87165         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87166         memcpy.
87167         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87168         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87169         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87170         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87171         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87172         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87173         string.h, free.
87174         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87175         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87176         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87177         C headers, or for string.h.
87178         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87179         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87180         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87181         headers, memory.h, stdlib.h, string.h, strings.h.
87182         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87183         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87184         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87185         strchr.
87186         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87187         headers, memory.h, string.h.
87188         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87189         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87190         free.
87191         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87192         headers.
87193         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87194         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87195         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87196         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87197         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87198
87199 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87200
87201         More K&R removal.
87202
87203         * lib/acosl.c (main): Use a prototype.
87204         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87205         tanl.c: Likewise.
87206
87207         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87208
87209         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87210         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87211         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87212         with a prototype.
87213         * lib/getopt.c (const): Remove macro.
87214         Include <string.h> unconditionally.
87215         (my_index): Remove; all uses changed to strchr.
87216         (strlen): Remove decl.
87217         (exchange): Remove forward decl; no longer needed.
87218         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87219         Define with prototype.
87220         * lib/getopt1.c (const): Remove macro.
87221         (getopt_long, getopt_long_only, main): Define with prototype.
87222
87223         * lib/getugroups.c: Include <string.h> unconditionally.
87224
87225         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87226         (getusershell, setusershell, endusershell, readname, main):
87227         Define with prototypes.
87228
87229         * lib/group-member.c: Include group-member.h first.
87230         Include <stdlib.h> unconditionally.
87231
87232         * lib/hard-locale.c: Include hard-locale.h first.
87233         Include <stdlib.h>, <string.h> unconditionally.
87234
87235         * lib/hash.c (free, malloc): Remove decls.
87236         Include <stdlib.h> unconditionally.
87237
87238         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87239         (getenv): Do not declare.
87240
87241         * lib/idcache.c: Include <string.h> unconditionally.
87242
87243         * lib/long-options.c: Include long-options.h first, to test interface.
87244         Include <stdlib.h> unconditionally.
87245
87246         * lib/makepath.c: Include makepath.h first, to test interface.
87247         Include <stdlib.h> and <string.h> unconditionally.
87248
87249         * lib/linebuffer.c: Include <stdlib.h>.
87250         (free): Remove decl.
87251
87252         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87253         stddef.h. rpl_malloc returns void *, not char *.
87254         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87255         prototype.
87256
87257         * lib/md5.h: Include <limits.h> unconditionally.
87258         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87259         (__P): Remove; all uses removed.
87260         * lib/md5.c: Include "md5.h" first.
87261         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87262         md5_buffer, md5_process_bytes, md5_process_block):
87263         Define with prototypes.
87264         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87265         * lib/sha.c: Include "sha.h" first.
87266         Include <stdlib.h>, <string.h> unconditionally.
87267
87268         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87269         * lib/memcmp.c (__ptr_t): Likewise.
87270         * lib/memrchr.c (__ptr_t): Likewise.
87271         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87272         Include <string.h> unconditionally.
87273         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87274         * lib/memchr.c: Include <stdlib.h> unconditionally.
87275         * lib/memchr.c (LONG_MAX): Remove.
87276         * lib/memrchr.c (LONG_MAX): Likewise.
87277         * lib/memchr.c (__memchr): Define via a prototype.
87278         * lib/memrchr.c (__memrchr): Likewise.
87279         * lib/memcmp.c (__P): Remove, and remove all uses.
87280         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87281         Remove forward decls; no longer needed.
87282         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87283         Use types required by C89 in prototype.
87284
87285         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87286         * lib/savedir.c: Likewise.
87287         * lib/mkdir.c (free): Remove decl.
87288         * lib/rmdir.c (rmdir): Define with a prototype.
87289         * lib/savedir.c: Include savedir.h first, to test interface.
87290
87291         * lib/mktime.c (STDC_HEADERS): Remove.
87292         Include <stdlib.h>, <string.h> unconditionally.
87293
87294         * lib/modechange.c: Include <stdlib.h> unconditionally.
87295         (malloc): Remove decl.
87296
87297         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87298         (free): Remove decl.
87299
87300         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87301         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87302         (This type really should be intptr_t, but that's a C99ism.)
87303         (_obstack_memcpy): Remove: all uses changed to memcpy.
87304         Include <string.h> unconditionally.
87305         (struct obstack): Assume __STDC__ for types of members
87306         chunkfun, freefun, extra_arg.
87307         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87308         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87309         obstack_begin, obstack_specify_allocation,
87310         obstack_specify_allocation_with_arg, obstack_chunkfun,
87311         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87312         Remove unprototyped decls and the macros that use them.
87313         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87314         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87315         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87316         (defined __STDC__ && __STDC__)]:
87317         Remove nonprototyped code.
87318         Include <stdlib.h> unconditionally.
87319         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87320         _obstack_allocated_p, _obstack_free, obstack_free,
87321         _obstack_memory_used, print_and_abort):
87322         Define using prototypes.
87323         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87324         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87325         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87326         obstack_next_free, obstack_object_size, obstack_room) [0]:
87327         Remove unused, unprototyped code.
87328
87329         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87330
87331         * lib/physmem.c (physmem_total, physmem_available, main): Define
87332         with prototypes.
87333
87334         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87335         (main): Define with a prototype.
87336
87337         * lib/posixver.c (getenv): Remove decl.
87338
87339         * lib/putenv.c (malloc): Returns void *, not char *.
87340         Include <string.h> unconditionally.
87341         (strchr, memcpy, NULL): Do not define.
87342
87343         * lib/readtokens.c: Include readtokens.h first, to test interface.
87344         Include <stdlib.h>, <string.h> unconditionally.
87345         (init_tokenbuffer): Define with a prototype.
87346
87347         * lib/regex.c (PARAMS): Remove.  All uses removed.
87348         All uses of _RE_ARGS removed, too.
87349         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87350         unconditionally.
87351         (bzero): Assume memset exists.
87352         (memcmp, memcpy, NULL): Remove.
87353         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87354         char, or assignments to local vars of type signed char.
87355         (init_syntax_once, PREFIX(extract_number_and_incr),
87356         PREFIX(print_partial_compiled_pattern),
87357         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87358         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87359         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87360         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87361         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87362         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87363         wcs_compile_range, byte_compile_range, truncate_wchar,
87364         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87365         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87366         count_mbs_length, wcs_re_match_2_internal,
87367         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87368         PREFIX(alt_match_null_string_p),
87369         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87370         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87371         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87372         now-unnecessary declaration, if any.
87373         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87374         regcomp, regexec):
87375         Remove now-unnecessary casts among pointer types.
87376         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87377
87378         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87379         (free): Remove decl.
87380
87381         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87382
87383         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87384         (free): Remove decl.
87385
87386         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87387         * lib/xgetcwd.c: Likewise.
87388
87389         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87390         (free): Remove decl.
87391
87392         * lib/strchrnul.c (strchrnul): Define with a prototype.
87393         Fix bug: c_in was not converted to char before searching.
87394
87395         The following changes are not K&R related:
87396
87397         * lib/group-member.h: Include <sys/types.h>, so that this file is
87398         self-contained.
87399         * lib/makepath.h: Likewise.
87400
87401         * lib/getusershell.c (readname, default_index, line_size, readname):
87402         Use size_t, not int, for sizes.
87403         (readname): If the size overflows, report an error instead of
87404         looping forever.
87405
87406 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87407
87408         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87409         libc.
87410
87411 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87412
87413         * README: New section: portability guidelines.
87414
87415 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87416
87417         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87418         C89 spec.
87419
87420 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87421
87422         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87423
87424 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87425
87426         Assume C89 or better; remove K&R cruft.
87427         A few of these changes were first proposed by Derek Robert Price
87428         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87429
87430         * lib/addext.c: Include <string.h> unconditionally.
87431         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87432         Don't declare getenv or malloc.
87433
87434         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87435         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87436         (NULL): Remove.
87437         (find_stack_direction, alloca): Use prototypes.
87438
87439         * lib/atexit.c (atexit): Define using a prototype.
87440
87441         * lib/basename.c, dirname.c, stripslash.c:
87442         Include <string.h> unconditionally.
87443
87444         * lib/bcopy.c: Include <stddef.h>.
87445         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87446
87447         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87448
87449         * lib/error.h (error, error_at_line, error_print_progname)
87450         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87451         * lib/error.c: Include error.h first, to check interface.
87452         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87453         (VA_START): Remove; all uses changeed to va_start.
87454         (exit, strerror): Remove decls.
87455         (error_print_progname): Prototype uncondionally.
87456         Don't include <errno.h>; no longer needed.
87457         (private_strerror): Remove.
87458         (error_tail): Always define.
87459         (error, error_at_line): Assume C89 or better; always use prototypes.
87460         * lib/fatal.c: Include "fatal.h" first, to test interface.
87461         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87462         (VA_START): Remove; all uses changed to va_start.
87463         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87464         this case.
87465         (exit): Remove decl.
87466         (fatal): Prototype unconditionally.  Assume va_start works.
87467         Abort at end, to pacify gcc.
87468
87469         * lib/euidaccess.c (main): Define with a prototype.
87470
87471         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87472
87473         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87474
87475         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87476         prototypes.
87477         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87478         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87479         (getenv): Remove decl.
87480         (fnmatch): Define using a prototype.
87481         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87482         (FCT): Define using a prototype.
87483
87484         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87485
87486         * lib/gethostname.c: Include <stddef.h>.
87487         (gethostname): Define with prototype.  Length is size_t, not int.
87488
87489 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87490
87491         Assume C89 or better; remove K&R cruft.
87492         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87493         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87494         string.h, getenv, malloc.
87495         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87496         headers.
87497         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87498         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87499         do not check for strerror.
87500         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87501         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87502         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87503         do not check for doprnt or vprintf.
87504         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87505         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87506
87507 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87508
87509         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87510         getversion.c should have been removed then, but was accidentally
87511         preserved.
87512
87513         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87514         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87515
87516 2003-09-08  Karl Berry  <karl@gnu.org>
87517
87518         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87519                 config, forget about prep.
87520
87521         * config/depcomp, missing: update from automake.
87522
87523 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87524
87525         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87526         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87527
87528 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87529
87530         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87531         copy_tm_result.  Bug reported by Simon Josefsson in
87532         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87533
87534 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87535
87536         * m4/time_r.m4: New file.
87537         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87538         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87539         is. Check for timegm declaration.
87540         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87541         Do not check for gmtime_r.
87542         Replace mktime if __mktime_internal does not exist and if mktime
87543         hasn't been replaced already.
87544
87545 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87546
87547         * lib/time_r.c, lib/time_r.h: New files.
87548
87549         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87550         __localtime_r.
87551         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87552         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87553
87554         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87555         __gmtime_r.
87556         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87557         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87558         Include <time_r.h>.
87559
87560         * lib/timegm.c: Switch to glibc implementation, with the following
87561         changes:
87562         [defined HAVE_CONFIG_H]: Include <config.h>.
87563         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87564         (__mktime_internal) [!defined _LIBC]: New decl.
87565         (__gmtime_r) [!defined _LIBC]: New macro and function.
87566         (timegm): Use a prototype, since gnulib assumes C89.
87567         Do not bother declaring tmp to be const, as it's not really usefu.
87568         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87569         (timegm): Declare only if HAVE_DECL_TIMEGM.
87570
87571 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87572
87573         * MODULES.html.sh (func_all_modules): Add time_r.
87574         * modules/time_r: New file.
87575         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87576         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87577
87578 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87579
87580         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87581         Bug reported by Lute Kamstra in
87582         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87583
87584         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87585         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87586         course with correspondingly smaller numbers for tomorrow and
87587         yesterday.  From Tadayoshi Funaba.  Originally installed into
87588         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87589         coreutils merge?).
87590
87591 2003-08-31  Simon Josefsson  <jas@extundo.com>
87592
87593         * modules/timegm: New file.
87594         * MODULES.html.sh (func_all_modules): Add timegm.
87595
87596 2003-08-31  Simon Josefsson  <jas@extundo.com>
87597
87598         * m4/timegm.m4: New file.
87599
87600 2003-08-31  Simon Josefsson  <jas@extundo.com>
87601
87602         * lib/timegm.h: New file.
87603         * lib/timegm.c: New file.  Based on
87604         wget-1.8.2/src/http.c:mktime_from_utc.
87605
87606 2003-08-31  Karl Berry  <karl@gnu.org>
87607
87608         * lib/argp.h: update from libc.
87609
87610 2003-08-28  Bruno Haible  <bruno@clisp.org>
87611
87612         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87613         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87614         followed by '#define fnmatch fnmatch_posix' gives an error.
87615
87616 2003-08-28  Bruno Haible  <bruno@clisp.org>
87617
87618         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87619         warning on QNX, which defines O_BINARY to 000000.
87620
87621 2003-08-27  Jim Meyering  <jim@meyering.net>
87622
87623         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87624         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87625         would fail after 32.  Reported by Danny Levinson.  Details here:
87626         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87627
87628 2003-08-24  Bruno Haible  <bruno@clisp.org>
87629
87630         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87631         MSVC7 <stdio.h> is included later.
87632
87633 2003-08-22  Simon Josefsson  <jas@extundo.com>
87634
87635         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87636
87637 2003-08-20  Karl Berry  <karl@gnu.org>
87638
87639         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87640
87641 2003-08-20  Bruno Haible  <bruno@clisp.org>
87642
87643         * modules/progname: New file.
87644         * MODULES.html.sh (func_all_modules): Add progname.
87645
87646 2003-08-20  Bruno Haible  <bruno@clisp.org>
87647
87648         * lib/progname.h: New file, from GNU gettext.
87649         * lib/progname.c: New file, from GNU gettext.
87650         * lib/progreloc.c: New file, from GNU gettext.
87651
87652 2003-08-19  Jim Meyering  <jim@meyering.net>
87653
87654         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87655         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87656
87657 2003-08-19  Bruno Haible  <bruno@clisp.org>
87658
87659         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87660         more.
87661
87662 2003-08-19  Bruno Haible  <bruno@clisp.org>
87663
87664         * lib/xstrdup.c: Assume <string.h> exists.
87665
87666 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87667
87668         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87669         in makefile rules.
87670
87671 2003-08-18  Jim Meyering  <jim@meyering.net>
87672
87673         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87674         * m4/lib-ld.m4: Likewise.
87675
87676 2003-08-18  Jim Meyering  <jim@meyering.net>
87677
87678         * lib/setenv.h: Indent nested cpp directive.
87679         * lib/vasnprintf.c: Remove trailing blanks.
87680
87681 2003-08-17  Simon Josefsson  <jas@extundo.com>
87682
87683         * modules/xstrndup: New file.
87684         * MODULES.html.sh (func_all_modules): Add xstrndup.
87685
87686 2003-08-17  Simon Josefsson  <jas@extundo.com>
87687
87688         * modules/argp: Fix autoconf macro name. Add more dependencies.
87689
87690 2003-08-17  Simon Josefsson  <jas@extundo.com>
87691
87692         * m4/xstrndup.m4: New file.
87693
87694 2003-08-17  Simon Josefsson  <jas@extundo.com>
87695
87696         * m4/argp.m4: New file.
87697
87698 2003-08-17  Simon Josefsson  <jas@extundo.com>
87699             Bruno Haible  <bruno@clisp.org>
87700
87701         * lib/xstrndup.h: New file.
87702         * lib/xstrndup.c: New file.
87703
87704 2003-08-17  Bruno Haible  <bruno@clisp.org>
87705
87706         * modules/strndup (Files, Include): Add lib/strndup.h.
87707
87708 2003-08-17  Bruno Haible  <bruno@clisp.org>
87709
87710         * modules/euidaccess (Files): Add lib/euidaccess.h.
87711
87712 2003-08-17  Bruno Haible  <bruno@clisp.org>
87713
87714         * lib/strndup.h: New file.
87715
87716 2003-08-17  Bruno Haible  <bruno@clisp.org>
87717
87718         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87719         like AC_GNU_SOURCE.
87720         * modules/extensions (configure.ac): Comment out the invocation of
87721         gl_USE_SYSTEM_EXTENSIONS.
87722
87723 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87724
87725         Merges from coreutils, etc.
87726         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87727         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87728         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87729         fixing a typo.
87730         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87731         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87732
87733 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87734
87735         Document merge from coreutils.
87736         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87737         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87738         * modules/utime: Add m4/utimes-null.m4.
87739
87740 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87741
87742         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87743         space, undoing this 2003-08-12 change:
87744         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87745
87746 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87747
87748         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87749         strtoul.c from libc, undoing this 2003-08-12 change:
87750         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87751
87752 2003-08-16  Jim Meyering  <jim@meyering.net>
87753
87754         Merges from coreutils.
87755         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87756         prefix.  Adjust cache variables similarly.  Create 500 rather than
87757         just 300 files, to exercise bug on Darwin6.5, too.
87758         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87759         $missing_dir.
87760         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87761         AM_SYS_POSIX_TERMIOS.
87762         Reported by mkc@mathdogs.com.
87763         Also change use of $am_cv_sys_posix_termios
87764         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87765         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87766         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87767         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87768         in /proc/mounts until it finds one with matching device number.  This
87769         is unnecessary when the FILE argument *is* a mount point.  No stat call
87770         is necessary in that case.  So, disable the statvfs-testing code on
87771         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87772         as RedHat bug# 84846.
87773         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87774         to 1MB, so as not to render systems with no stack size limit (e.g.,
87775         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87776         Include <unistd.h>.  On some systems,
87777         it is required for the definition of _SC_PAGESIZE.
87778
87779 2003-08-16  Jim Meyering  <jim@meyering.net>
87780
87781         Merge from coreutils.
87782         * lib/xstrtoimax.c: #else #if -> #elif.
87783         * lib/xstrtoumax.c: Likewise.
87784
87785 2003-08-16  Jim Meyering  <jim@meyering.net>
87786
87787         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87788         * m4/utimes.m4: Removed.
87789         * m4/utimes-null.m4: Renamed from utimes.m4.
87790
87791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87792         to 1MB, so as not to render systems with no stack size limit (e.g.,
87793         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87794         Include <unistd.h>.  On some systems,
87795         it is required for the definition of _SC_PAGESIZE.
87796
87797 2003-08-16  Jim Meyering  <jim@meyering.net>
87798         and Paul Eggert  <eggert@cs.ucla.edu>
87799
87800         Merges from coreutils, etc.
87801
87802         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87803         using the latest version from cvs.  This avoids problems with #line
87804         directives using a vendor (Sun) compiler.
87805         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87806         Don't set GETGROUPS_LIB here; now it's
87807         done via getgroups.m4's wrapper function.
87808         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87809         rather than just in sh-util/configure.in, so that the
87810         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87811         same.
87812         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87813         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87814         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87815         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87816         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87817         Remove code that is now done by the newly-required macros.
87818         Append $(EXEEXT) to DF_PROG.
87819         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87820         Do not invoke or require the following here,
87821         since prereq.m4 or some gnulib .m4 now does this for us:
87822         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87823         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87824         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87825         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87826         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87827         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87828         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87829         AC_FUNC_OBSTACK.
87830         Do not replace the following functions, as this is now the job
87831         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87832         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87833         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87834         atexit getpass, strdup, getpagesize.
87835         Replace 'raise'.
87836         Do not check for the following functions, as this is now the job
87837         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87838         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87839         setregid.
87840         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87841         Check for sys/sysctl.h.
87842         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87843         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87844         of checking for ssize_t ourselves.
87845
87846         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87847         Require every macro that gnulib/modules/* suggests for us.
87848         (jm_PREREQ_ADDEXT): New macro.
87849         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87850         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87851
87852         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87853         (gl_PHYSMEM): Use it.
87854         Also check for `table' function.
87855         Check for new headers and functions.
87856         Add check for sys/sysmp.h.
87857         With suggestions from Kaveh Ghazi.
87858         Ignore headers that are present but cannot be compiled.  This
87859         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87860         C 5.4.
87861
87862 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87863
87864         Document merge from coreutils.
87865         * modules/userspec: Depend on posixver.
87866         * modules/strftime: Depend on tzset.
87867
87868 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87869
87870         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87871         rather than tab, after '#' in shell-script copyright notices.
87872         Suggested by Bruno Haible.
87873
87874 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87875
87876         * config/srclist-update: Use three spaces, rather than tab, after '#'
87877         in shell-script copyright notices.  Suggested by Bruno Haible.
87878         Remove unnecessary parenthesization in regular expression.
87879
87880 2003-08-15  Jim Meyering  <jim@meyering.net>
87881
87882         Merge from coreutils.
87883         * lib/xgethostname.c: Include <stdlib.h>.
87884         (xghostname): Don't exit for anything other than memory-related
87885         failure; just return NULL.
87886         * lib/userspec.c: Include "posixver.h".
87887         (parse_user_spec): Accept `.' as a separator only
87888         in pre-POSIX-200112 mode.
87889         * lib/strtoimax.c: Use #elif rather than #else #if.
87890         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87891         Remove function, now that we can rely on a working tzset function.
87892         [!_LIBC]: Ensure that the required autoconf test has been run.
87893         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87894         Use underlying_strftime for %r.
87895         * lib/sha.c: Merge in some clean-up and optimization changes from
87896         glibc.
87897         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87898         Ensure that it is a multiple of 64.
87899         Rearrange loop exit tests so as to avoid performing an
87900         additional fread after encountering an error or EOF.
87901         * lib/realloc.c: Update copyright date.
87902
87903 2003-08-15  Jim Meyering  <jim@meyering.net>
87904         and Paul Eggert  <eggert@twinsun.com>
87905
87906         Merge from coreutils.
87907         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87908         member but strut utmpx does not.  Needed for AIX 4.3.3.
87909         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87910
87911 2003-08-15  Jim Meyering  <jim@meyering.net>
87912         and Paul Eggert  <eggert@cs.ucla.edu>
87913
87914         Merges from coreutils, etc.
87915         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87916         Require gl_FUNC_TZSET_CLOBBER.
87917         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87918         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87919         members.
87920
87921 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87922
87923         Help the merge from coreutils.
87924         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87925         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87926         * m4/tzset.m4: Use it too.
87927
87928 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87929
87930         * modules/tzset: New file.
87931
87932 2003-08-14  Jim Meyering  <jim@meyering.net>
87933
87934         Merges from coreutils.
87935         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87936         variable names, rather than @FNMATCH_H@.
87937         * modules/alloca: Likewise for $(ALLOCA_H).
87938
87939         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87940         the three copies of the literal target, `fnmatch.h'.
87941         * modules/alloca (alloca.h): Likewise.
87942
87943 2003-08-14  Jim Meyering  <jim@meyering.net>
87944
87945         Merge from coreutils.
87946         * m4/tzset.m4: New file.
87947         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87948         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87949         otherwise, AIX 5.1 systems would end up using the latter.
87950         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87951         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87952         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87953         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87954
87955 2003-08-14  Jim Meyering  <jim@meyering.net>
87956
87957         Merge from coreutils.
87958         * lib/obstack.h: Whitespace changes.
87959         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87960         and xcalloc return values.
87961         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87962         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87963         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87964         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87965         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87966         error from mntctl.
87967         Use mntctl's return value to drive the entry-processing loop, since
87968         we can't rely on the value of the vmt_length member in the last
87969         entry.  On some systems doing so could result in exhausting
87970         virtual memory.  Based in part on a patch from Mike Jetzer.
87971
87972 2003-08-14  Jim Meyering  <jim@meyering.net>
87973         and Paul Eggert  <eggert@twinsun.com>
87974
87975         Merges from coreutils, plus other fixes.
87976         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87977         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87978         for credits and details.  Thanks to Kaveh Ghazi for helping
87979         to keep these files in sync.
87980         (ARRAY_SIZE): Define it.
87981         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87982         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87983         (memcasecmp): Don't assume size_t fits in unsigned int.
87984         Remove casts and duplicate code.
87985         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87986         (memcpy): Remove definition.
87987         Merge in some clean-up and optimization changes from glibc.
87988         [BLOCKSIZE]: Move definition to top of file.
87989         Ensure that it is a multiple of 64.
87990         Rearrange loop exit tests so as to avoid performing an
87991         additional fread after encountering an error or EOF.
87992         * lib/md5.h (md5_uintptr): Define.
87993         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87994         return to the initial working directory.  Preserve errno
87995         for caller.
87996         * lib/idcache.c: Include "xalloc.h".
87997         (xmalloc, xrealloc): Remove decls.
87998         (getuser): Remove casts no longer required in C89.
87999         * lib/human.c: Include stdio.h, for sprintf.
88000         * lib/group-member.c: Include "xalloc.h".
88001         (xmalloc, xrealloc): Remove decls.
88002         (get_group_info): Remove casts no longer required in C89.
88003         * lib/getusershell.c (readname): Remove casts no longer required in
88004         C89.
88005         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88006         * lib/getline.c: Whitespace fix, from coreutils.
88007
88008 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88009
88010         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88011         Check for isascii.
88012
88013         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88014         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88015         Undo previous (whitespace-only) change.
88016
88017 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88018
88019         * lib/exclude.c: Include <ctype.h>
88020         (IN_CTYPE_DOMAIN): New macro.
88021         (is_space): New fn.
88022         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88023         and empty lines.
88024
88025         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88026         Undo previous (whitespace-only) change.
88027
88028 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88029
88030         * config/srclist-update: Change update back to the old behavior,
88031         leaving whitespace alone.  Use one 'sed' command rather than a
88032         pipeline.
88033         (fixlicense): Now a variable, not a function.
88034         (remove_trailing_blanks): Remove.
88035         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88036         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88037         Undo previous (whitespace-only) change.
88038
88039 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88040
88041         Merge from coreutils.
88042         * modules/euidaccess: Add lib_SOURCES, include for new
88043         file euidaccess.h
88044
88045 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88046
88047         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88048         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88049         Normalize leading white space and remove trailing white space.
88050
88051         Merge from coreutils
88052         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88053
88054         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88055         0.12.1.  These files are now being upgraded automatically by
88056         ../config/srclist-update.
88057
88058 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88059
88060         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88061         Normalize leading white space and remove trailing white space.
88062         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88063         notice, as per ../config/srclist-update.
88064
88065         Merge from coreutils.
88066         * lib/euidaccess.h: New file.
88067         * lib/euidaccess.c: Include it.
88068         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88069         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88070         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88071
88072 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88073
88074         * config/srclist-update: Add copyright notice.
88075         (remove_id_lines, remove_trailing_blanks): New constants.
88076         (fixfile): Use them to normalize spacing a bit in copied files.
88077         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88078         Normalize leading white space and remove trailing white space.
88079
88080         * config/texinfo.tex: Sync with texinfo.
88081
88082         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88083         strtoul.c from libc, to merge coreutils whitespace changes.
88084
88085         * config/srclist.txt: Get the following m4 files from gettext:
88086         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88087         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88088         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88089         wint_t.m4.
88090
88091 2003-08-12  Karl Berry  <karl@gnu.org>
88092
88093         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88094         been made.
88095
88096 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88097
88098         * modules/gnu-source, m4/gnu-source.m4:
88099         Remove; we're assuming Autoconf 2.54 or later now.
88100         Suggested by Bruno Haible.
88101         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88102
88103 2003-08-11  Bruno Haible  <bruno@clisp.org>
88104
88105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88106
88107 2003-08-11  Bruno Haible  <bruno@clisp.org>
88108
88109         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88110         (vasnprintf): Use it instead of wcslen.
88111
88112 2003-08-11  Bruno Haible  <bruno@clisp.org>
88113
88114         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88115         value to ensure that _Bool promotes to int. Use #define for _Bool when
88116         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88117
88118 2003-08-10  Karl Berry  <karl@gnu.org>
88119
88120         * lib/regex.h: update from libc (whitespace fix).
88121
88122 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88123
88124         Merge some files from coreutils.  These changes were
88125         originally made by Jim Meyering.
88126         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88127         many older Unixes require this.
88128         * lib/alloca.c (alloca): Remove cast to argument of free;
88129         no longer needed in C89.
88130         * lib/alloca_.h, regex.h: Fix white space to match
88131         what GNU indent does.
88132
88133 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88134
88135         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88136         apparently Emacs's Unicode mode got confused before my 2003-08-05
88137         checkin.
88138
88139 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88140
88141         * m4/extensions.m4: New file.
88142         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88143         Require gl_USE_SYSTEM_EXTENSIONS.
88144         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88145         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88146
88147 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88148
88149         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88150         * modules/extensions, modules/gnu-source: New files.
88151         * modules/timespec, modules/unlocked-io: Depend on extensions.
88152
88153 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88154
88155         * modules/restrict: New file.
88156         * MODULES.html.sh (func_all_modules): Add restrict.
88157         * modules/regex: Depend on restrict.
88158
88159 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88160
88161         * m4/restrict.m4: New file.
88162         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88163
88164 2003-08-07  Bruno Haible  <bruno@clisp.org>
88165
88166         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88167         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88168
88169 2003-08-07  Bruno Haible  <bruno@clisp.org>
88170
88171         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88172         makes the module 'getndelim2' compatible with the module 'getline'.
88173
88174 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88175
88176         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88177         byte with "\201" to avoid glitches when editing that source file
88178         with multi-gnome-terminal.
88179
88180 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88181
88182         * lib/bumpalloc.h: Remove.
88183
88184 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88185
88186         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88187         * modules/bumpalloc: Remove.
88188
88189 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88190
88191         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88192         GNU coding style.
88193
88194         Merge from coreutils.
88195         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88196         1. From glibc.
88197         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88198         from Karl Berry, implemented by Jim Meyering.
88199         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88200         from Dmitry V. Levin.
88201         Remove anachronistic cast of xrealloc.
88202         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88203         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88204         type. Otherwise, it wouldn't compile with at least /bin/cc on
88205         ymp-cray-unicos9.0.2.X.
88206         Combine two mostly-identical uses of alloca into one.
88207         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88208
88209 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88210
88211         [From Emacs.]
88212
88213         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88214         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88215         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88216         obsolete NLIST_NAME_UNION.
88217         [__GNU__]: Undef BSD and FSCALE.
88218         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88219
88220 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88221
88222         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88223         an enum type, so that it's guaranteed to promote to int.  See:
88224         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88225
88226 2003-08-03  Karl Berry  <karl@gnu.org>
88227
88228         * config/depcomp: update from automake.
88229
88230 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88231
88232         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88233         (strerror): Don't assume that a printable int fits in 14 bytes.
88234
88235 2003-07-31  Bruno Haible  <bruno@clisp.org>
88236
88237         * modules/getpass-gnu: New file.
88238         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88239
88240 2003-07-31  Bruno Haible  <bruno@clisp.org>
88241
88242         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88243
88244 2003-07-24  Karl Berry  <karl@gnu.org>
88245
88246         * config/missing: update from automake.
88247
88248 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88249             Bruno Haible  <bruno@clisp.org>
88250
88251         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88252         * lib/getline.c (getline, getdelim): Likewise.
88253         Remove _GNU_SOURCE define; now it's defined in config.h through
88254         m4/getline.m4.
88255
88256 2003-07-23  Karl Berry  <karl@gnu.org>
88257
88258         * config/config.sub: update from prep.
88259
88260 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88261
88262         * modules/xalloc (Depends-on): Add exitfail.
88263         * modules/xmemcoll: Likewise.
88264
88265 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88266
88267         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88268         over-parenthesization in macros.
88269
88270         Sync with coreutils.
88271
88272         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88273         required by C99.
88274
88275         Use `exit_failure' for xalloc and xmemcoll instead of their own
88276         private exit-failure variables.
88277         * lib/xalloc.h (xalloc_exit_failure): Remove.
88278         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88279         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88280         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88281         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88282         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88283
88284 2003-07-20  Jim Meyering  <jim@meyering.net>
88285
88286         * modules/closeout (Depends-on): Add exitfail.
88287         Suggestion from Bruno Haible.
88288
88289 2003-07-19  Karl Berry  <karl@gnu.org>
88290
88291         * config/config.sub: update from prep.
88292
88293 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88294
88295         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88296         Remove.
88297         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88298         to test that it can stand by itself.  Include "exitfail.h".
88299         Clients should set exit_failure instead.
88300         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88301
88302 2003-07-18  Bruno Haible  <bruno@clisp.org>
88303
88304         * modules/getndelim2: New file.
88305         * modules/getline: Share files with module getndelim2.
88306         * modules/getnline: Depend on getndelim2 instead of sharing files with
88307         it. Add getnline.c to lib_SOURCES.
88308         * MODULES.html.sh (func_all_modules): Add getndelim2.
88309
88310 2003-07-18  Bruno Haible  <bruno@clisp.org>
88311
88312         * m4/getndelim2.m4: New file.
88313         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88314         invoke gl_PREREQ_GETNDELIM2.
88315         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88316         gl_PREREQ_GETNDELIM2.
88317         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88318         gl_GETNDELIM2.
88319
88320 2003-07-18  Bruno Haible  <bruno@clisp.org>
88321
88322         * lib/getndelim2.h: New file.
88323         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88324         getndelim2.h.
88325         (getndelim2): Make non-static. Change return type to ssize_t.
88326         * lib/getline.h: Change argument names.
88327         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88328         * lib/getnline.c: Include getndelim2.h.
88329
88330 2003-07-18  Andreas Schwab  <schwab@suse.de>
88331
88332         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88333
88334 2003-07-17  Karl Berry  <karl@gnu.org>
88335
88336         * config/config.sub: update from prep.
88337
88338 2003-07-17  Bruno Haible  <bruno@clisp.org>
88339
88340         * modules/getnline: New file.
88341         * modules/getline: Add lib/getndelim2.c to source file list.
88342         * MODULES.html.sh (func_all_modules): Add getnline.
88343
88344 2003-07-17  Bruno Haible  <bruno@clisp.org>
88345
88346         * m4/getnline.m4: New file.
88347
88348 2003-07-17  Bruno Haible  <bruno@clisp.org>
88349
88350         * m4/Makefile.am.in: Remove file.
88351         * m4/Makefile.am: Remove file.
88352         * m4/Makefile.in: Remove file.
88353
88354 2003-07-17  Bruno Haible  <bruno@clisp.org>
88355
88356         * lib/getnline.h: New file.
88357         * lib/getnline.c: New file.
88358         * lib/getndelim2.c: New file, extracted from getline.c.
88359         (getndelim2): Renamed from getdelim2, with added nmax argument.
88360         * lib/getline.c: Include getndelim2.c.
88361         (getdelim2): Moved out to getndelim2.c.
88362         (getline, getdelim): Update.
88363
88364 2003-07-17  Bruno Haible  <bruno@clisp.org>
88365
88366         * lib/Makefile.am: Remove file.
88367         * lib/Makefile.in: Remove file.
88368
88369 2003-07-17  Bruno Haible  <bruno@clisp.org>
88370
88371         * configure.in: Remove file.
88372         * Makefile.in: Remove file.
88373
88374 2003-07-17  Bruno Haible  <bruno@clisp.org>
88375
88376         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88377
88378 2003-07-16  Karl Berry  <karl@gnu.org>
88379
88380         * config/srclist-update: was running fixlicense twice, which caused
88381                 texinfo.tex to be nullified for some reason.  Simplify,
88382                 $gplsrc is no longer needed as far as I can see?
88383
88384 2003-07-16  Jim Meyering  <jim@meyering.net>
88385
88386         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88387
88388 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88389
88390         * config/srclist.txt: Get the following files from gettext-runtime/intl
88391         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88392         ref-del.sin.  From Bruno Haible.
88393         * config/srclist-update (fixfile): Change grep pattern again, since the
88394         previous fix didn't work (there was another trailing $).  Use
88395         '[$]' to escape the $s.
88396
88397 2003-07-15  Karl Berry  <karl@gnu.org>
88398
88399         * lib/vasnprintf.c: update from gettext.
88400
88401 2003-07-15  Karl Berry  <karl@gnu.org>
88402
88403         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88404         gets expanded when surrounded by '$'.
88405
88406 2003-07-15  Jim Meyering  <jim@meyering.net>
88407
88408         * modules/save-cwd: Don't depend on error.  From Derek Price.
88409
88410 2003-07-15  Jim Meyering  <jim@meyering.net>
88411
88412         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88413
88414 2003-07-14  Simon Josefsson  <jas@extundo.com>
88415
88416         * modules/mempcpy: New file.
88417         * MODULES.html.sh (func_all_modules): Add mempcpy.
88418
88419 2003-07-14  Simon Josefsson  <jas@extundo.com>
88420
88421         * m4/mempcpy.m4: New file.
88422
88423 2003-07-14  Simon Josefsson  <jas@extundo.com>
88424
88425         * lib/mempcpy.h: New file.
88426         * lib/mempcpy.c: New file.
88427
88428 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88429
88430         * modules/getdate, modules/posixtm: Depend on mktime.
88431
88432 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88433
88434         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88435         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88436         unicodeio.c, unicodeio.h, unlocked-io.h:
88437         Switch from LGPL to GPL.
88438
88439 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88440
88441         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88442         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88443         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88444         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88445         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88446         updated automatically by ../config/srclist-update.  This changes
88447         their license from LPGL to GPL.
88448
88449 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88450
88451         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88452         assumed to refer to the root of the most recent stable gettext version.
88453         * config/srclistvars.sh: Add defaults for eggert.
88454         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88455         Match "This program" as well as "The program".  This is needed
88456         for gettext.
88457
88458 2003-07-14  Jim Meyering  <jim@meyering.net>
88459
88460         Don't emit diagnostics.  Let callers do that.
88461         * lib/save-cwd.c: Don't include "error.h".
88462         (save_cwd): Don't call error.  Ensure that errno is valid
88463         when returning nonzero.
88464
88465         * lib/save-cwd.h (restore_cwd): Update prototype.
88466         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88467         Simplify.  Don't call error upon failure.  Let callers do that.
88468         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88469         when auditing is enabled.  But don't bother updating the #if.
88470
88471 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88472
88473         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88474         it breaks C++ compilation.
88475         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88476
88477 2003-07-10  Simon Josefsson  <jas@extundo.com>
88478
88479         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88480
88481 2003-07-10  Jim Meyering  <jim@meyering.net>
88482
88483         * m4/clock_time.m4: Remove trailing blank.
88484         * m4/intmax_t.m4: Likewise.
88485
88486 2003-07-10  Jim Meyering  <jim@meyering.net>
88487
88488         * lib/vasnprintf.c: Remove trailing blanks.
88489         Make cpp indentation consistent.
88490
88491 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88492
88493         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88494         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88495         Switch from LGPL to GPL.
88496
88497 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88498
88499         * config/srclist.txt: Sort sublists.  Add
88500         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88501         that differ from gnulib for one reason or another; we'd like this list
88502         to be smaller but for now let's document what we have.
88503
88504 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88505
88506         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88507         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88508         and sweeter "eval x=$x".
88509         * config/srclist.txt: Get lib/argp* from glibc.
88510
88511 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88512
88513         * lib/mktime.c: Fix some boundary cases and remove need for floating
88514         point.
88515
88516         Issue a compile-time diagnostic if time_t is floating point, or if
88517         two's complement arithmetic is not in effect, or if arithmetic
88518         right shift does not propagate the sign.  These assumptions were
88519         all in the original code but they weren't checked.
88520
88521         (TIME_T_MIDPOINT, verify): New macros.
88522         (__isleap): Remove; it has integer overflow problems.
88523         (leapyear): New function, without those problems.
88524         (ydhms_tm_diff): Remove; splitting into two parts.
88525         (ydhms_diff): New function, containing the arithmetic part of
88526         the old ydhms_tm_diff function.  Issue a compile-time
88527         diagnostic if we are not using C99 integer division.
88528         Avoid casts when possible.
88529         (guess_time_tm): New function, containing the checking part of
88530         the old ydhms_tm_diff function.  Return the new value, rather than
88531         the difference between it and the old.  Accept a new argument T
88532         so that *T specifies the old value.  Check for overflow in the result.
88533
88534         (__mktime_internal): Use a time_t offset, not a long int offset.
88535         This undoes the 2003-06-04 change, which is no longer needed now
88536         that we have better overflow checking.
88537         (localtime_offset): Likewise.
88538
88539         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88540         and long are 64-bit but int is only 32-bit.
88541         (ydhms_diff): Use long int to store year1 and yday1.
88542         Issue a compile-time diagnostic if long int is not wide enough.
88543
88544         (__mktime_internal): Use long int to store adjusted year and yday.
88545         Use plain C rather than preprocessor commands, if that doesn't
88546         affect efficiency.
88547         Check for overflow (and try to repair) after each probe
88548         rather than checking only at the very end.  This avoids some bugs
88549         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88550         does not equal GMT offset at maximum time).
88551         Use integer to check for overflow rather than floating point; this
88552         is more portable to non-IEEE hosts, and is a tad faster.
88553         When we detect that we are oscillating between two values,
88554         don't check whether tm_isdst has the requested value, since
88555         we already know the answer.  When tm_isdst has the wrong value,
88556         use a different heuristic to find the right one, based on the
88557         extreme values actually observed in practice in tz2003a,
88558         rather than the (overly optimistic) "previous 3 calendar quarters".
88559
88560         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88561         "T const" to accommodate glibc style.
88562         (check_result): Use less-confusing report format.  "long" -> "long int.
88563         (main): Likewise.
88564         Don't loop if the iteration overflows time_t.
88565         Allow a negative step in the iteration.
88566
88567 2003-07-06  Karl Berry  <karl@gnu.org>
88568
88569         * config/depcomp: update from automake.
88570         * config/config.sub: update from prep.
88571
88572 2003-07-03  Karl Berry  <karl@gnu.org>
88573
88574         * config/config.guess: update from prep.
88575
88576 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88577
88578         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88579         xreadlink.c now includes it unconditionally.
88580
88581 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88582
88583         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88584         having it depend on HAVE_SYS_TYPES_H.
88585
88586 2003-07-01  Bruno Haible  <bruno@clisp.org>
88587
88588         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88589         <sys/types.h> should be sufficient.
88590         Reported by Paul Eggert.
88591
88592 2003-06-26  Karl Berry  <karl@gnu.org>
88593
88594         * config/depcomp: update from automake.
88595
88596 2003-06-26  Bruno Haible  <bruno@clisp.org>
88597
88598         * modules/human: Depend on module stdbool.
88599
88600 2003-06-25  Bruno Haible  <bruno@clisp.org>
88601
88602         * modules/readlink: New file.
88603         * modules/xreadlink: Depend on it.
88604         * MODULES.html.sh (func_all_modules): Add readlink.
88605
88606 2003-06-25  Bruno Haible  <bruno@clisp.org>
88607
88608         * m4/readlink.m4: New file.
88609
88610 2003-06-25  Bruno Haible  <bruno@clisp.org>
88611
88612         * lib/readlink.c: New file.
88613
88614 2003-06-22  Karl Berry  <karl@gnu.org>
88615
88616         * config/srclist.txt: update mkinstalldirs from automake.
88617         * config/mkinstalldirs: update.
88618
88619 2003-06-22  Bruno Haible  <bruno@clisp.org>
88620
88621         Portability to mingw32.
88622         * m4/ssize_t.m4: New file, from GNU gettext.
88623         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88624         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88625
88626 2003-06-22  Bruno Haible  <bruno@clisp.org>
88627
88628         * modules/safe-read: Add m4/ssize_t.m4.
88629         * modules/xreadlink: Add m4/ssize_t.m4.
88630
88631 2003-06-20  Bruno Haible  <bruno@clisp.org>
88632
88633         Assume C89, so PARAMS isn't needed.
88634         * lib/unicodeio.h (PARAMS): Remove.
88635         * lib/unicodeio.c: Don't use PARAMS.
88636
88637 2003-06-18  Karl Berry  <karl@gnu.org>
88638
88639         * config/config.{guess,sub}: update from prep.
88640
88641 2003-06-18  Jim Meyering  <jim@meyering.net>
88642
88643         Merge changes from coreutils.
88644         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88645         Remove explicit declarations of xmalloc and realloc.
88646         Include xalloc.h.
88647         (read_utmp): Remove anachronistic cast of xmalloc.
88648
88649 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88650
88651         Assume C89, so PARAMS isn't needed.
88652         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88653         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88654         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88655         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88656         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88657         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88658         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88659         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88660         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88661         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88662         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88663         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88664         no longer needed. Anyway, config.h should always be included before any
88665         other file.
88666
88667 2003-06-11  Simon Josefsson  <jas@extundo.com>
88668
88669         * modules/sysexits: New file.
88670         * MODULES.html.sh (func_all_modules): Add sysexits.
88671
88672 2003-06-11  Simon Josefsson  <jas@extundo.com>
88673
88674         * lib/sysexit_.h: New file.
88675
88676 2003-06-11  Derek Price  <derek@ximbiot.com>
88677
88678         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88679         necessary.
88680
88681 2003-06-11  Bruno Haible  <bruno@clisp.org>
88682
88683         * m4/sysexits.m4: New file.
88684
88685 2003-06-10  Simon Josefsson  <jas@extundo.com>
88686
88687         * lib/argp.h: New file, from glibc.
88688         * lib/argp-ba.c: New file, from glibc.
88689         * lib/argp-eexst.c: New file, from glibc.
88690         * lib/argp-fmtstream.c: New file, from glibc.
88691         * lib/argp-fmtstream.h: New file, from glibc.
88692         * lib/argp-fs-xinl.c: New file, from glibc.
88693         * lib/argp-help.c: New file, from glibc.
88694         * lib/argp-namefrob.h: New file, from glibc.
88695         * lib/argp-parse.c: New file, from glibc.
88696         * lib/argp-pv.c: New file, from glibc.
88697         * lib/argp-pvh.c: New file, from glibc.
88698         * lib/argp-xinl.c: New file, from glibc.
88699
88700 2003-06-10  Simon Josefsson  <jas@extundo.com>
88701
88702         * modules/strchrnul: New file.
88703
88704 2003-06-10  Simon Josefsson  <jas@extundo.com>
88705
88706         * modules/argp: New file.
88707
88708 2003-06-10  Simon Josefsson  <jas@extundo.com>
88709
88710         * m4/strchrnul.m4: New file.
88711
88712 2003-06-10  Simon Josefsson  <jas@extundo.com>
88713
88714         * lib/strchrnul.h: New file.
88715         * lib/strchrnul.c: New file.
88716
88717 2003-06-10  Bruno Haible  <bruno@clisp.org>
88718
88719         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88720
88721 2003-06-07  Karl Berry  <karl@gnu.org>
88722
88723         * config/config.{guess,sub}: update from prep.
88724
88725 2003-06-07  Jim Meyering  <jim@meyering.net>
88726
88727         * modules/strtod: Use $(...) notation, not @...@ for
88728         AC_REPLACE'd variables.
88729         * modules/localcharset: Likewise.
88730
88731 2003-06-07  Jim Meyering  <jim@meyering.net>
88732
88733         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88734         in place of my name in the copyright comment.
88735         Remove definition and uses of __P.
88736
88737         From coreutils.
88738         * lib/stat.c: Don't declare xmalloc explicitly.
88739         Instead, include "xalloc.h".
88740         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88741         xrealloc, and xcalloc return values.
88742         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88743         Improve comment.
88744         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88745
88746 2003-06-07  Bruno Haible  <bruno@clisp.org>
88747
88748         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88749         avoid AC_CONFIG_LINKS.
88750         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88751         fnmatch.h, to avoid AC_CONFIG_LINKS.
88752         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88753
88754 2003-06-07  Bruno Haible  <bruno@clisp.org>
88755
88756         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88757         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88758         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88759         directory.
88760         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88761         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88762         directory.
88763
88764 2003-06-06  Jim Meyering  <jim@meyering.net>
88765
88766         Merge from coreutils.
88767         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88768         Consolidate declarations and initializations of *_base* locals.
88769
88770         Merge from coreutils.
88771         This avoids a core dump on systems without GNU putenv,
88772         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88773         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88774         (unsetenv): New static function, from GNU libc.
88775         (rpl_putenv): Use it.
88776
88777         * lib/modechange.c: Remove trailing blanks.
88778
88779         Merge from coreutils.
88780         * lib/fsusage.c: Remove declaration of statfs.
88781         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88782
88783         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88784
88785 2003-06-06  Jim Meyering  <jim@meyering.net>
88786
88787         * lib/stdbool_.h: Renamed from stdbool.h.in.
88788
88789 2003-06-06  Jim Meyering  <jim@meyering.net>
88790             Bruno Haible  <bruno@clisp.org>
88791
88792         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88793         Adjust Makefile.am snippet not to redirect directly to target.
88794         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88795
88796 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88797
88798         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88799         mismatch, look in future quarters as well as past.  This fixes a
88800         bug when processing fall-backwards gaps immediately after a long
88801         period of daylight-saving time.
88802
88803         * lib/mktime.c: Assume freestanding C89 or better.
88804         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88805         (__P): Remove; not used.
88806         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88807         (mktime, not_equal_tm, print_tm, check_result,
88808         main): Use prototypes.  Use const * where appropriate.
88809         (main): Fix typo in testing code that uncovered by above changes.
88810         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88811
88812 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88813
88814         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88815         locale.h, localeconv.  This merges changes from coreutils.
88816
88817         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88818         It can be removed after the next Autoconf is released.
88819         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88820         needed.
88821
88822 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88823
88824         * lib/mktime.c: Fix Debian bug 177940
88825         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88826         (localtime_offset): Now long int, not time_t, because we want it
88827         to be guaranteed to be signed.  All uses changed.
88828         (__mktime_internal): If overflow would occur when adding offset,
88829         don't add it.
88830
88831         Merge 'human' changes from coreutils.  Rewrite to support
88832         locale-specific notations like thousands separators.
88833         * lib/human.c: Simplify authorship notice.
88834         Include human.h immediately after config.h.
88835         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88836         <limits.h>: Do not include, since human.h does.
88837         (SIZE_MAX, UINTMAX_MAX): New macros.
88838         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88839         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88840         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88841         (power_letter): Renamed from suffixes.
88842         (generate_suffix_backwards): Remove.
88843         (adjust_value): Now takes int style (because of human.h changes)
88844         and long double value (for greater precision on some platforms).
88845         (group_number): New function.
88846         (human_readable): Use it.  Use integer options, not enum.
88847         Put the options before the sizes in the arg list.
88848         Support all the new options.
88849         The old human_readable function has been removed;
88850         use inttostr.h instead.
88851         (human_readable, default_block_size, humblock):
88852         Use uintmax_t, not int, for block sizes.
88853         (human_readable_inexact, block_size_types): Remove.
88854         (block_size_opts): New constant.
88855         (human_options): Renamed from human_block_size, with new signature
88856         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88857         * lib/human.h: Add copyright and authorship notice.
88858         Include <limits.h> and <stdbool.h> unconditionally.
88859         (PARAMS): Remove.  All uses removed.
88860         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88861         (enum human_inexact_style): Remove tag; now a nameless enum.
88862         (human_floor, human_ceiling, human_round_to_even): Now have
88863         values 2, 0, 1 rather than -1, 1, 0.
88864         (human_group_digits, human_suppress_point_zero, human_autoscale,
88865         human_base_1024, human_SI, human_B): New constants.
88866         (human_readable_inexact, human_block_size): Remove.
88867         (human_readable): Size args are now uintmax_t, not int.
88868         (human_options): New decl.
88869
88870         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88871         unnecessary now that we assume C89 or better.  This change
88872         imported from coreutils.
88873
88874         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88875         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88876         in the 2003-05-30 sync from glibc.
88877
88878         .h files should stand alone, but we shouldn't include <sys/types.h>
88879         if we can get away with just <stddef.h>.
88880
88881         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88882         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88883         rather than <sys/types.h>, as we merely need size_t.
88884         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88885         to get size_t.
88886         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88887         Include <stdio.h>, to get FILE.
88888         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88889         memcasecmp.h has included <stddef.h> and all we need is size_t.
88890         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88891         our interface, instead of including <sys/types.h>
88892
88893 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88894
88895         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88896         now, as glibc mktime is buggy on non-glibc systems.
88897
88898 2003-06-03  Karl Berry  <karl@gnu.org>
88899
88900         * config/config.sub: update from prep.
88901
88902 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88903
88904         [from coreutils]
88905         Fix some minor time-related bugs with POSIX time arguments.
88906         Some valid time stamps were being rejected (notably -1, and
88907         time stamps before 1900 on 64-bit hosts).  And some invalid
88908         time stamps were being accepted, e.g. September 31.
88909
88910         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88911         that we can return (time_t) -1 successfully.
88912         * lib/posixtm.c: Likewise.
88913         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88914         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88915         (t): Remove static var.
88916         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88917         of static var.  All uses changed.
88918         (year): Do not reject years before 1900; they can occur with
88919         64-bit time_t.
88920         (posix_time_parse): Do not check for out-of-range components;
88921         that is now the caller's responsibility, since our checks were
88922         only approximations.
88923         (posixtime): Use mktime to check for out-of-range components,
88924         since it knows them exactly.
88925         If mktime returns (time_t) -1, check whether an error actually occurred
88926         by invoking localtime on -1.
88927         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88928         posixtime failures better.
88929         Improve the test data (in comments only).
88930
88931 2003-06-02  Karl Berry  <karl@gnu.org>
88932
88933         * config/mkinstalldirs (version): new variable.
88934         (--version): new option.
88935         (usage): improve message.
88936
88937 2003-05-30  Karl Berry  <karl@gnu.org>
88938
88939         * lib/mktime.c: update from libc.
88940
88941 2003-05-30  Bruno Haible  <bruno@clisp.org>
88942
88943         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88944         * config/config.rpath: Upgrade to gettext-0.12.1.
88945
88946 2003-05-30  Bruno Haible  <bruno@clisp.org>
88947
88948         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88949         * m4/nls.m4: New file, from gettext-0.12.1.
88950         * m4/po.m4: New file, from gettext-0.12.1.
88951         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88952
88953 2003-05-30  Bruno Haible  <bruno@clisp.org>
88954
88955         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88956         * lib/localcharset.h: Likewise.
88957         * lib/localcharset.c: Likewise.
88958
88959 2003-05-29  Karl Berry  <karl@gnu.org>
88960
88961         * config/config.rpath: update from gettext.
88962
88963 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88964
88965         Assume the headers required for C89 freestanding compilers.
88966         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88967         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88968         * m4/human.m4 (gl_HUMAN): Likewise.
88969         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88970         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88971         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88972         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88973         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88974         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88975
88976 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88977
88978         Assume the headers required for C89 freestanding compilers.
88979         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88980         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88981         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88982         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88983         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88984         define, since <limits.h> is guaranteed to do that.
88985         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88986         * lib/exclude.c: Include <stdbool.h> unconditionally.
88987         * lib/tempname.c: Include <stddef.h> unconditionally.
88988         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88989         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88990         <stddef.h> does that.
88991         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88992         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88993         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88994         needed.
88995         * lib/xstrtol.c: Likewise.
88996         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88997         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88998
88999         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89000         warnings on some platforms.
89001
89002         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89003         arbitrarily.
89004
89005 2003-05-26  Jim Meyering  <jim@meyering.net>
89006
89007         Merge in a change from coreutils:
89008         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89009         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89010         that condition, rather than `-1' which is slightly misleading.
89011         Change the name of the cache variable to have the gl_ prefix.
89012         Prompted by a patch from Richard Dawe for DJGPP.
89013
89014 2003-05-24  Karl Berry  <karl@gnu.org>
89015
89016         * config/config.guess: update from prep.
89017
89018 2003-05-22  Karl Berry  <karl@gnu.org>
89019
89020         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89021
89022 2003-05-20  Karl Berry  <karl@gnu.org>
89023
89024         * config/config.guess: update from prep.
89025
89026 2003-05-18  Karl Berry  <karl@gnu.org>
89027
89028         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89029         might actually be set by the user.
89030
89031         * config/depcomp, install-sh, mdate-sh: update from automake.
89032
89033 2003-05-17  Bruno Haible  <bruno@clisp.org>
89034
89035         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89036         invalid expansion for AC_EGREP_CPP.
89037         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89038         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89039         Suggested by Akim Demaille <akim@epita.fr> in
89040         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89041
89042 2003-05-12  Jim Meyering  <jim@meyering.net>
89043
89044         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89045         the space-padded-by-default conversion specifiers, %e, %k, %l.
89046
89047 2003-05-12  Bruno Haible  <bruno@clisp.org>
89048
89049         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89050         the string is longer than 4 KB.
89051
89052 2003-05-11  Karl Berry  <karl@gnu.org>
89053
89054         * config/config.{guess,sub}: update from prep.
89055
89056 2003-05-09  Bruno Haible  <bruno@clisp.org>
89057
89058         * modules/error: Add m4/strerror_r.m4 to file list.
89059
89060 2003-05-03  Bruno Haible  <bruno@clisp.org>
89061
89062         Upgrade to Unicode-4.0.
89063         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89064         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89065         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89066         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89067         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89068         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89069         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89070         Change width of U+E0100..U+E01EF from 1 to 0.
89071
89072 2003-04-25  Jim Meyering  <jim@meyering.net>
89073
89074         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89075         of type size_t, not int.
89076
89077 2003-04-25  Bruno Haible  <bruno@clisp.org>
89078
89079         * lib/copy-file.c: Include <stddef.h>, for size_t.
89080
89081 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89082
89083         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89084         code which expansion is under static control.  Patch imported from
89085         Akim Demaille's patch to Bison; see
89086         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89087
89088 2003-04-14  Bruno Haible  <bruno@clisp.org>
89089
89090         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89091
89092 2003-04-11  Jim Meyering  <jim@meyering.net>
89093
89094         Merge changes from Coreutils.
89095
89096         2003-03-22  Jim Meyering  <jim@meyering.net>
89097
89098         * lib/strftime.c (widen): Cast alloca return value to proper type.
89099
89100         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89101
89102         From GNU libc.
89103         * lib/strftime.c (my_strftime): Handle very large width
89104         specifications for numeric values correctly.  Improve checks for
89105         overflow.
89106
89107         2003-01-19  Jim Meyering  <jim@meyering.net>
89108
89109         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89110         definitions.
89111         (nl_get_alt_digit) [! defined my_strftime]: Define.
89112         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89113         _nl_get_alt_digit and _nl_get_walt_digit.
89114
89115         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89116         libc. These changes have no effect outside of _LIBC.
89117
89118 2003-04-10  Bruno Haible  <bruno@clisp.org>
89119
89120         * modules/findprog: New file.
89121         * MODULES.html.sh (func_all_modules): Add it.
89122
89123 2003-04-10  Bruno Haible  <bruno@clisp.org>
89124
89125         * m4/findprog.m4: New file.
89126         * m4/eaccess.m4: New file.
89127
89128 2003-04-10  Bruno Haible  <bruno@clisp.org>
89129
89130         * lib/findprog.h: New file, from GNU gettext.
89131         * lib/findprog.c: New file, from GNU gettext.
89132
89133 2003-04-05  Jim Meyering  <jim@meyering.net>
89134
89135         Merge changes from Coreutils.
89136
89137         * lib/exclude.h (PARAMS): Remove definition and uses.
89138         * lib/exclude.c: Remove uses of `PARAMS'.
89139
89140         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89141         Add test-cases for DOS filenames. Declare program_name.
89142         (main): Set up program_name.  Patch by Rich Dawe.
89143
89144         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89145         error from mntctl.
89146         Use mntctl's return value to drive the entry-processing loop, since
89147         we can't rely on the value of the vmt_length member in the last
89148         entry.  On some systems doing so could result in exhausting
89149         virtual memory.  Based in part on a patch from Mike Jetzer.
89150
89151 2003-04-04  Bruno Haible  <bruno@clisp.org>
89152
89153         * modules/linebreak: New file.
89154         * MODULES.html.sh (func_all_modules): Add it.
89155
89156 2003-04-04  Bruno Haible  <bruno@clisp.org>
89157
89158         * m4/linebreak.m4: New file.
89159
89160 2003-04-04  Bruno Haible  <bruno@clisp.org>
89161
89162         * lib/linebreak.h: New file, from GNU gettext.
89163         * lib/linebreak.c: New file, from GNU gettext with slight
89164         modifications.
89165         * lib/lbrkprop.h: New file, from GNU gettext.
89166
89167 2003-04-03  Bruno Haible  <bruno@clisp.org>
89168
89169         * modules/utf8-ucs4: New file.
89170         * modules/utf16-ucs4: New file.
89171         * modules/ucs4-utf8: New file.
89172         * modules/ucs4-utf16: New file.
89173         * MODULES.html.sh (func_all_modules): Add them.
89174
89175 2003-04-03  Bruno Haible  <bruno@clisp.org>
89176
89177         * m4/utf-ucs4.m4: New file.
89178         * m4/ucs4-utf.m4: New file.
89179
89180 2003-04-03  Bruno Haible  <bruno@clisp.org>
89181
89182         * lib/utf8-ucs4.h: New file, from GNU gettext.
89183         * lib/utf16-ucs4.h: New file, from GNU gettext.
89184         * lib/ucs4-utf8.h: New file, from GNU gettext.
89185         * lib/ucs4-utf16.h: New file, from GNU gettext.
89186
89187 2003-04-02  Bruno Haible  <bruno@clisp.org>
89188
89189         * modules/binary-io: New file.
89190         * MODULES.html.sh (func_all_modules): Add it.
89191
89192 2003-04-02  Bruno Haible  <bruno@clisp.org>
89193
89194         * lib/binary-io.h: New file, from GNU gettext.
89195
89196 2003-04-01  Bruno Haible  <bruno@clisp.org>
89197
89198         * modules/pathname: New file.
89199         * MODULES.html.sh (func_all_modules): Add it.
89200
89201 2003-04-01  Bruno Haible  <bruno@clisp.org>
89202
89203         * lib/pathname.h: New file, from GNU gettext.
89204         * lib/concatpath.c: New file, from GNU gettext.
89205
89206 2003-03-30  Bruno Haible  <bruno@clisp.org>
89207
89208         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89209
89210 2003-03-30  Bruno Haible  <bruno@clisp.org>
89211
89212         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89213         function chown() doesn't exist.
89214
89215 2003-03-28  Bruno Haible  <bruno@clisp.org>
89216
89217         * modules/copy-file: New file.
89218         * MODULES.html.sh (func_all_modules): Add it.
89219
89220 2003-03-28  Bruno Haible  <bruno@clisp.org>
89221
89222         * m4/copy-file.m4: New file.
89223
89224 2003-03-28  Bruno Haible  <bruno@clisp.org>
89225
89226         * lib/copy-file.h: New file, from GNU gettext.
89227         * lib/copy-file.c: New file, from GNU gettext.
89228
89229 2003-03-18  Jim Meyering  <jim@meyering.net>
89230
89231         * lib/quote.c (quote_n): Fix typo in comment.
89232
89233 2003-03-18  Bruno Haible  <bruno@clisp.org>
89234
89235         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89236         checking.
89237         * m4/onceonly_2_57.m4: Likewise.
89238
89239 2003-03-17  Bruno Haible  <bruno@clisp.org>
89240
89241         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89242         (m4_quote): Remove macro.
89243         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89244
89245 2003-03-14  Jim Meyering  <jim@meyering.net>
89246
89247         Merge changes from Coreutils.
89248         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89249         to be const, in order to avoid warnings.
89250         (obstack_room): Likewise.
89251         (obstack_empty_p): Likewise.
89252
89253 2003-03-14  Bruno Haible  <bruno@clisp.org>
89254
89255         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89256         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89257
89258 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89259
89260         Merge changes from Bison.
89261         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89262         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89263         when compiling Bison 1.875's `bitset bset = obstack_alloc
89264         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89265         * lib/hash.c: Include <stdbool.h> unconditionally.
89266
89267 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89268
89269         * m4/onceonly.m4 (m4_quote): New macro.
89270         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89271         Quote AC_FOREACH variable-expansions properly.
89272
89273 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89274
89275         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89276
89277 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89278
89279         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89280         Reported by Bruce Becker; see:
89281         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89282
89283 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89284             Bruno Haible  <bruno@clisp.org>
89285
89286         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89287         Reported by John Hughes, see
89288         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89289
89290 2003-02-20  Bruno Haible  <bruno@clisp.org>
89291
89292         * MODULES.html.sh (func_all_modules): Add poll.
89293
89294 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89295
89296         * modules/poll: New file.
89297
89298 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89299
89300         * lib/poll_.h: New file.
89301         * lib/poll.c: New file.
89302
89303 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89304
89305         * m4/poll.m4: New file.
89306
89307 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89308
89309         * modules/mathl: New file.
89310
89311 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89312
89313         * lib/mathl.h: New file.
89314         * lib/acosl.c: New file.
89315         * lib/asinl.c: New file.
89316         * lib/atanl.c: New file.
89317         * lib/ceill.c: New file.
89318         * lib/cosl.c: New file.
89319         * lib/expl.c: New file.
89320         * lib/floorl.c: New file.
89321         * lib/frexpl.c: New file.
89322         * lib/ldexpl.c: New file.
89323         * lib/logl.c: New file.
89324         * lib/sincosl.c: New file.
89325         * lib/sinl.c: New file.
89326         * lib/sqrtl.c: New file.
89327         * lib/tanl.c: New file.
89328         * lib/trigl.c: New file.
89329         * lib/trigl.h: New file.
89330
89331 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89332
89333         * m4/mathl.m4: New file.
89334
89335 2003-02-18  Bruno Haible  <bruno@clisp.org>
89336
89337         * MODULES.html.sh (func_all_modules): Add mathl.
89338
89339 2003-02-17  Bruno Haible  <bruno@clisp.org>
89340
89341         * modules/mkdtemp: New module.
89342         * MODULES.html.sh (func_all_modules): Add it.
89343
89344 2003-02-17  Bruno Haible  <bruno@clisp.org>
89345
89346         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89347
89348 2003-02-17  Bruno Haible  <bruno@clisp.org>
89349
89350         * lib/mkdtemp.h: New file, from GNU gettext.
89351         * lib/mkdtemp.c: New file, from GNU gettext.
89352
89353 2003-02-02  Jim Meyering  <jim@meyering.net>
89354
89355         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89356         e.g. glibc-2.2.93.
89357
89358 2003-01-31  Bruno Haible  <bruno@clisp.org>
89359
89360         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89361         'rpl_rename'.
89362         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89363         'rpl_strnlen'.
89364         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89365         'rpl_strtod'.
89366         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89367         'rpl_utime'.
89368
89369 2003-01-31  Bruno Haible  <bruno@clisp.org>
89370
89371         * lib/rename.c: #undef rename before defining rpl_rename.
89372         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89373
89374 2003-01-30  Bruno Haible  <bruno@clisp.org>
89375
89376         * modules/vasnprintf, modules/vasprintf: New modules.
89377         * MODULES.html.sh (func_all_modules): Add them.
89378
89379 2003-01-30  Bruno Haible  <bruno@clisp.org>
89380
89381         * m4/signed.m4: New file, from GNU gettext.
89382         * m4/longdouble.m4: New file, from GNU gettext.
89383         * m4/wchar_t.m4: New file, from GNU gettext.
89384         * m4/wint_t.m4: New file, from GNU gettext.
89385         * m4/vasnprintf.m4: New file.
89386         * m4/vasprintf.m4: New file.
89387
89388 2003-01-30  Bruno Haible  <bruno@clisp.org>
89389
89390         * lib/printf-args.h: New file, from GNU gettext.
89391         * lib/printf-args.c: New file, from GNU gettext.
89392         * lib/printf-parse.h: New file, from GNU gettext.
89393         * lib/printf-parse.c: New file, from GNU gettext.
89394         * lib/vasnprintf.h: New file, from GNU gettext.
89395         * lib/vasnprintf.c: New file, from GNU gettext.
89396         * lib/asnprintf.c: New file, from GNU gettext.
89397         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89398         * lib/vasprintf.c: New file, from GNU gettext.
89399         * lib/asprintf.c: New file, from GNU gettext.
89400
89401 2003-01-29  Bruno Haible  <bruno@clisp.org>
89402
89403         * modules/stpncpy: New module.
89404         * MODULES.html.sh (func_all_modules): Add it.
89405
89406 2003-01-29  Bruno Haible  <bruno@clisp.org>
89407
89408         * m4/stpncpy.m4: New file.
89409
89410 2003-01-29  Bruno Haible  <bruno@clisp.org>
89411
89412         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89413         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89414
89415 2003-01-28  Bruno Haible  <bruno@clisp.org>
89416
89417         * modules/c-ctype: New module.
89418         * MODULES.html.sh (func_all_modules): Add it.
89419
89420 2003-01-28  Bruno Haible  <bruno@clisp.org>
89421
89422         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89423         Paul Eggert.
89424         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89425         Paul Eggert.
89426
89427 2003-01-27  Bruno Haible  <bruno@clisp.org>
89428
89429         * modules/xsetenv: New module.
89430         * MODULES.html.sh (func_all_modules): Add it.
89431
89432 2003-01-27  Bruno Haible  <bruno@clisp.org>
89433
89434         * lib/xsetenv.h: New file, from GNU gettext.
89435         * lib/xsetenv.c: New file, from GNU gettext.
89436
89437 2003-01-23  Jim Meyering  <jim@meyering.net>
89438
89439         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89440         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89441
89442 2003-01-23  Bruno Haible  <bruno@clisp.org>
89443
89444         * modules/minmax: New module.
89445         * MODULES.html.sh (func_all_modules): Add it.
89446
89447 2003-01-23  Bruno Haible  <bruno@clisp.org>
89448
89449         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89450         Eggert.
89451
89452 2003-01-22  Bruno Haible  <bruno@clisp.org>
89453
89454         * modules/exit: New module.
89455         * MODULES.html.sh (func_all_modules): Add it.
89456
89457 2003-01-22  Bruno Haible  <bruno@clisp.org>
89458
89459         * lib/exit.h: New file, from GNU gettext.
89460
89461 2003-01-19  Bruno Haible  <bruno@clisp.org>
89462
89463         * gnulib-tool: Recognize option --extract-maintainer.
89464         (func_get_maintainer): New function.
89465         * modules/*: Add Maintainer entry.
89466
89467 2003-01-16  Jim Meyering  <jim@meyering.net>
89468
89469         * m4/regex.m4: The `regex' struct is both input and output.
89470         Initialize it before each use.  Patch by Tim Waugh.
89471
89472 2003-01-16  Bruno Haible  <bruno@clisp.org>
89473
89474         * MODULES.html.sh: Add a table of contents. Add the module name as
89475         leftmost column. Add hyperlinks.
89476
89477 2003-01-15  Bruno Haible  <bruno@clisp.org>
89478
89479         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89480
89481 2003-01-15  Bruno Haible  <bruno@clisp.org>
89482
89483         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89484         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89485         suffix.
89486
89487 2003-01-15  Bruno Haible  <bruno@clisp.org>
89488
89489         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89490
89491 2003-01-15  Bruno Haible  <bruno@clisp.org>
89492
89493         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89494         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89495
89496 2003-01-14  Jim Meyering  <jim@meyering.net>
89497
89498         * lib/same.c (same_name): Tweak a comment.
89499
89500 2003-01-14  Bruno Haible  <bruno@clisp.org>
89501
89502         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89503         when a string comparison is sufficient.
89504
89505 2003-01-14  Bruno Haible  <bruno@clisp.org>
89506
89507         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89508         'unsigned int'.
89509
89510 2003-01-14  Bruno Haible  <bruno@clisp.org>
89511
89512         * lib/hash-pjw.c: Add comment about low quality of this function.
89513
89514 2003-01-13  Bruno Haible  <bruno@clisp.org>
89515
89516         * modules/stpcpy: Distribute lib/stpcpy.h.
89517         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89518
89519 2003-01-13  Bruno Haible  <bruno@clisp.org>
89520
89521         * modules/*: Add a description.
89522         * modules/strpbrk: Fix Makefile.am snippet.
89523         * modules/strtoimax: Fix dependencies.
89524         * modules/strtoumax: Likewise.
89525
89526 2003-01-13  Bruno Haible  <bruno@clisp.org>
89527
89528         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89529         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89530         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89531
89532 2003-01-13  Bruno Haible  <bruno@clisp.org>
89533
89534         * gnulib-tool (func_create_testdir): Store config/* files in the main
89535         directory.
89536         * config.rpath: Move to ...
89537         * config/config.rpath: ... here.
89538         * modules/gettext: Contains config/config.rpath, not config.rpath.
89539         * modules/iconv: Likewise.
89540
89541 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89542
89543         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89544         to avoid collisions with libcurses and libreadline.
89545
89546         * m4/getstr.m4: Remove.
89547         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
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         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89555         * lib/getstr.h, getstr.c: Remove.
89556         * lib/getline.c: Include "getline.h", to check interface.
89557         Move body of old getstr.c here: this defines MIN_CHUNK and
89558         declares getdelim2, which is renamed from getstr.
89559         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89560
89561         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89562         All uses changed.
89563         * lib/linebuffer.h: Likewise.
89564         (readline): Remove backward-compatibility macro.
89565
89566 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89567
89568         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89569         to avoid collisions with libcurses and libreadline.
89570         * getstr: Remove.
89571         * MODULES.html.sh: Remove getstr.
89572         * modules/getline: Depend on unlocked-io, not getstr.
89573
89574 2003-01-12  Jim Meyering  <jim@meyering.net>
89575
89576         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89577
89578 2003-01-10  Bruno Haible  <bruno@clisp.org>
89579
89580         * modules/alloca: Change Makefile.am requirements. Simplify Include
89581         requirements. Add lib/alloca_.h to file list.
89582
89583 2003-01-10  Bruno Haible  <bruno@clisp.org>
89584
89585         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89586
89587 2003-01-10  Bruno Haible  <bruno@clisp.org>
89588
89589         * lib/alloca_.h: New file.
89590         * lib/getdate.y: Unconditionally include alloca.h.
89591         * lib/makepath.c: Likewise.
89592         * lib/setenv.c: Likewise.
89593         * lib/userspec.c: Likewise.
89594
89595 2003-01-09  Karl Berry  <karl@gnu.org>
89596
89597         * MODULES.html.sh: include `dirname $0` in PATH, to find
89598         gnulib-tool.
89599
89600 2003-01-09  Bruno Haible  <bruno@clisp.org>
89601
89602         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89603         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89604
89605 2003-01-09  Bruno Haible  <bruno@clisp.org>
89606
89607         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89608
89609 2003-01-09  Bruno Haible  <bruno@clisp.org>
89610
89611         * lib/stdbool.h.in: New file.
89612
89613 2003-01-09  Bruno Haible  <bruno@clisp.org>
89614
89615         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89616         * MODULES.html.sh: Likewise.
89617
89618 2003-01-08  Jim Meyering  <jim@meyering.net>
89619
89620         * lib/full-write.c: Undefine and define-away `const' after inclusion
89621         of errno.h, not before.  Suggestion from Bruno Haible.
89622
89623 2003-01-08  Bruno Haible  <bruno@clisp.org>
89624
89625         * modules/full-read: Depend on full-write.
89626
89627 2003-01-08  Bruno Haible  <bruno@clisp.org>
89628
89629         * lib/safe-read.c: Include specification header first, to ensure its
89630         selfcontainedness.
89631         * lib/full-write.c: Likewise.
89632
89633 2003-01-07  Jim Meyering  <jim@meyering.net>
89634
89635         * lib/full-write.c: Rework so that it may serve to define full_read,
89636         too.
89637         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89638
89639 2003-01-07  Bruno Haible  <bruno@clisp.org>
89640
89641         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89642         <inttypes.h>.
89643         * lib/xstrtol.h: Likewise.
89644         * lib/xstrtoimax.c: Likewise.
89645         * lib/xstrtoumax.c: Likewise.
89646         * lib/human.h: Likewise.
89647
89648         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89649         on systems that have <inttypes.h> but not <stdint.h>.
89650
89651 2003-01-07  Bruno Haible  <bruno@clisp.org>
89652
89653         * MODULES.html.sh: Add copyright notice.
89654         (missed_files): Omit CVS directory entries.
89655         (func_module): Make it work with sed-3.02.
89656         * MODULES.txt: Remove file.
89657
89658 2003-01-06  Jim Meyering  <jim@meyering.net>
89659
89660         * lib/version-etc.c: Update year in translatable copyright string.
89661
89662 2003-01-03  Karl Berry  <karl@gnu.org>
89663
89664         * config/config.{guess,sub}: update from prep.
89665
89666 2003-01-02  Karl Berry  <karl@gnu.org>
89667
89668         * doc/COPYING.DOC: belatedly updated to 1.2.
89669
89670 2003-01-01  Karl Berry  <karl@gnu.org>
89671
89672         * gnulib-tool (func_verify_module): report module name $module in
89673         error message, not $1.
89674         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89675         be created, only if it doesn't exist.
89676         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89677
89678 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89679
89680         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89681
89682 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89683
89684         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89685         memcmp if strcoll doesn't work.
89686
89687 2002-12-31  Bruno Haible  <bruno@clisp.org>
89688
89689         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89690         nonempty.
89691
89692 2002-12-31  Bruno Haible  <bruno@clisp.org>
89693
89694         * lib/memcoll.c (STRCOLL): New macro.
89695         (memcoll): Use it.
89696
89697 2002-12-31  Bruno Haible  <bruno@clisp.org>
89698
89699         * lib/localcharset.h: New file.
89700         * lib/localcharset.c: Include it.
89701         * lib/unicodeio.c: Likewise.
89702
89703 2002-12-31  Bruno Haible  <bruno@clisp.org>
89704
89705         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89706         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89707
89708 2002-12-31  Bruno Haible  <bruno@clisp.org>
89709
89710         * lib/getline.h: Include <stddef.h>, for size_t.
89711
89712         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89713         * lib/unicodeio.c: Don't include <stddef.h>.
89714
89715 2002-12-31  Bruno Haible  <bruno@clisp.org>
89716
89717         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89718         HAVE_TM_ZONE.
89719
89720 2002-12-24  Karl Berry  <karl@gnu.org>
89721
89722         * config/config.guess: update from prep.
89723
89724 2002-12-24  Bruno Haible  <bruno@clisp.org>
89725
89726         General infrasructure.
89727         * m4/README: Rewritten.
89728         * m4/onceonly.m4: New file.
89729         * m4/onceonly_2_57.m4: New file.
89730
89731         Module atexit.
89732         * m4/atexit.m4: New file.
89733
89734         Module strtod.
89735         * m4/strtod.m4: New file.
89736
89737         Module strtol.
89738         * m4/strtol.m4: New file.
89739
89740         Module strtoul.
89741         * m4/strtoul.m4: New file.
89742
89743         Module memchr.
89744         * m4/memchr.m4: New file.
89745
89746         Module memcmp.
89747         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89748         (jm_FUNC_MEMCMP): Invoke it.
89749
89750         Module memcpy.
89751         * m4/memcpy.m4: New file.
89752
89753         Module memmove.
89754         * m4/memmove.m4: New file.
89755
89756         Module memset.
89757         * m4/memset.m4: New file.
89758
89759         Module strcspn.
89760         * m4/strcspn.m4: New file.
89761
89762         Module strpbrk.
89763         * m4/strpbrk.m4: New file.
89764
89765         Module strstr.
89766         * m4/strstr.m4: New file.
89767
89768         Module strerror.
89769         * m4/strerror.m4: New file.
89770
89771         Module mktime.
89772         * m4/mktime.m4: Renamed from jm-mktime.m4.
89773         (gl_PREREQ_MKTIME): New macro.
89774         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89775
89776         Module malloc.
89777         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89778         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89779         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89780
89781         Module realloc.
89782         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89783         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89784         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89785
89786         Module strftime.
89787         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89788         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89789         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89790         gl_TM_GMTOFF.
89791         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89792
89793         Module xalloc.
89794         * m4/xalloc.m4: New file.
89795
89796         Module alloca.
89797         * m4/alloca.m4: New file.
89798
89799         Module putenv.
89800         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89801         (jm_FUNC_PUTENV): Invoke it.
89802
89803         Module setenv.
89804         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89805         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89806         when invoked twice.
89807         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89808         gt_FUNC_SETENV.
89809
89810         Module memrchr.
89811         * m4/memrchr.m4: New file.
89812
89813         Module stpcpy.
89814         * m4/stpcpy.m4: New file.
89815
89816         Module strcase.
89817         * m4/strcase.m4: New file.
89818
89819         Module strdup.
89820         * m4/strdup.m4: New file.
89821
89822         Module strnlen.
89823         * m4/strnlen.m4: New file.
89824
89825         Module strndup.
89826         * m4/strndup.m4: New file.
89827
89828         Module xstrtod.
89829         * m4/xstrtod.m4: New file.
89830
89831         Module xstrtol.
89832         * m4/xstrtol.m4: New file.
89833
89834         Module getdate.
89835         * m4/getdate.m4: New file.
89836
89837         Module unlocked-io.
89838         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89839         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89840         * m4/jm-glibc-io.m4n: Remove file.
89841
89842         Module long-options.
89843         * m4/long-options.m4: New file.
89844
89845         Module md5.
89846         * m4/md5.m4: New file.
89847
89848         Module sha.
89849         * m4/sha.m4: New file.
89850
89851         Module getstr.
89852         * m4/getstr.m4: New file.
89853
89854         Module getline.
89855         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89856         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89857         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89858         simply getline. Infoke gl_PREREQ_GETLINE.
89859
89860         Module obstack.
89861         * m4/obstack.m4: New file.
89862
89863         Module hash.
89864         * m4/hash.m4: New file.
89865
89866         Module readtokens.
89867         * m4/readtokens.m4: New file.
89868
89869         Module strverscmp.
89870         * m4/strverscmp.m4: New file.
89871
89872         Module stdbool.
89873         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89874         OSF/1.
89875
89876         Module strtoll.
89877         * m4/strtoll.m4: New file.
89878
89879         Module strtoull.
89880         * m4/strtoull.m4: New file.
89881
89882         Module strtoimax.
89883         * m4/strtoimax.m4: New file.
89884
89885         Module strtoumax.
89886         * m4/strtoumax.m4: New file.
89887
89888         Module xstrtoimax.
89889         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89890         jm_AC_PREREQ_XSTRTOIMAX.
89891         Moved the strtol prerequisites to strtol.m4.
89892         Moved the strtoll prerequisites to strtoll.m4.
89893         Moved the strtoimax prerequisites to strtoimax.m4.
89894
89895         Module xstrtoumax.
89896         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89897         jm_AC_PREREQ_XSTRTOUMAX.
89898         Moved the strtoul prerequisites to strtoul.m4.
89899         Moved the strtoull prerequisites to strtoull.m4.
89900         Moved the strtoumax prerequisites to strtoumax.m4.
89901
89902         Module chown.
89903         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89904         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89905
89906         Module dup2.
89907         * m4/dup2.m4: New file.
89908
89909         Module ftruncate.
89910         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89911         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89912
89913         Module getgroups.
89914         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89915         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89916
89917         Module gettimeofday.
89918         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89919         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89920         gl_PREREQ_GETTIMEOFDAY.
89921
89922         Module mkdir.
89923         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89924         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89925
89926         Module mkstemp.
89927         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89928         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89929         jm_AC_TYPE_UINTMAX_T.
89930         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89931
89932         Module stat.
89933         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89934         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89935
89936         Module lstat.
89937         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89938         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89939
89940         Module timespec.
89941         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89942         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89943         * m4/st_mtim.m4: Indentation.
89944
89945         Module nanosleep.
89946         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89947         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89948         gl_PREREQ_NANOSLEEP.
89949
89950         Module regex.
89951         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89952         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89953         (gl_REGEX): New macro.
89954
89955         Module rename.
89956         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89957         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89958
89959         Module rmdir.
89960         * m4/rmdir.m4: New file.
89961
89962         Module utime.
89963         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89964         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89965         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89966
89967         Module dirname.
89968         * m4/dirname.m4: New file.
89969
89970         Module getopt.
89971         * m4/getopt.m4: New file.
89972
89973         Module unistd-safer.
89974         * m4/unistd-safer.m4: New file.
89975
89976         Module fnmatch.
89977         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89978         declaration.
89979         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89980         (gl_FUNC_FNMATCH_POSIX): New macro.
89981         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89982         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89983         simply fnmatch.
89984
89985         Module exclude.
89986         * m4/exclude.m4: New file.
89987
89988         Module human.
89989         * m4/human.m4: New file.
89990
89991         Module acl.
89992         * m4/acl.m4: Nop.
89993
89994         Module backupfile.
89995         * m4/backupfile.m4: New file.
89996         * m4/d-ino.m4: Indentation.
89997
89998         Module fsusage.
89999         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90000         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90001         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90002
90003         Module dirfd.
90004         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90005         requirements.
90006
90007         Module euidaccess.
90008         * m4/euidaccess.m4: New file.
90009
90010         Module file-type.
90011         * m4/file-type.m4: New file.
90012
90013         Module fileblocks.
90014         * m4/fileblocks.m4: New file.
90015
90016         Module filemode.
90017         * m4/filemode.m4: New file.
90018
90019         Module isdir.
90020         * m4/isdir.m4: New file.
90021
90022         Module lchown.
90023         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90024         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90025
90026         Module makepath.
90027         * m4/makepath.m4: New file.
90028
90029         Module modechange.
90030         * m4/modechange.m4: New file.
90031
90032         Module mountlist.
90033         * m4/mountlist.m4: New file.
90034         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90035         Indentation.
90036
90037         Module path-concat.
90038         * m4/path-concat.m4: New file.
90039
90040         Module pathmax.
90041         * m4/pathmax.m4: New file.
90042
90043         Module same.
90044         * m4/same.m4: New file.
90045
90046         Module save-cwd.
90047         * m4/save-cwd.m4: New file.
90048
90049         Module savedir.
90050         * m4/savedir.m4: New file.
90051
90052         Module xgetcwd.
90053         * m4/xgetcwd.m4: New file.
90054         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90055
90056         Module xreadlink.
90057         * m4/xreadlink.m4: New file.
90058
90059         Module safe-read.
90060         * m4/safe-read.m4: New file.
90061
90062         Module safe-write.
90063         * m4/safe-write.m4: New file.
90064
90065         Module closeout.
90066         * m4/closeout.m4: New file.
90067
90068         Module stdio-safer.
90069         * m4/stdio-safer.m4: New file.
90070
90071         Module getpass.
90072         * m4/getpass.m4: New file.
90073
90074         Module getugroups.
90075         * m4/getugroups.m4: New file.
90076
90077         Module group-member.
90078         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90079         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90080
90081         Module idcache.
90082         * m4/idcache.m4: New file.
90083
90084         Module userspec.
90085         * m4/userspec.m4: New file.
90086
90087         Module gettime.
90088         * m4/clock_time.m4: New file.
90089         * m4/gettime.m4: New file.
90090
90091         Module settime.
90092         * m4/settime.m4: New file.
90093
90094         Module posixtm.
90095         * m4/posixtm.m4: New file.
90096
90097         Module gethostname.
90098         * m4/gethostname.m4: New file.
90099
90100         Module canon-host.
90101         * m4/canon-host.m4: New file.
90102
90103         Module gettext.
90104         * m4/codeset.m4: New file, from gettext-0.11.5.
90105         * m4/gettext.m4: New file, from gettext-0.11.5.
90106         * m4/glibc21.m4: New file, from gettext-0.11.5.
90107         * m4/iconv.m4: New file, from gettext-0.11.5.
90108         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90109         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90110         * m4/inttypes.m4: New file, from gettext-0.11.5.
90111         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90112         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90113         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90114         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90115         * m4/lib-link.m4: New file, from gettext-0.11.5.
90116         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90117         * m4/progtest.m4: New file, from gettext-0.11.5.
90118         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90119         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90120         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90121
90122         Module localcharset.
90123         * m4/localcharset.m4: New file.
90124
90125         Module hard-locale.
90126         * m4/hard-locale.m4: New file.
90127
90128         Module mbswidth.
90129         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90130         onceonly macros.
90131         * m4/mbrtowc.m4: Add comment.
90132
90133         Module memcasecmp.
90134         * m4/memcasecmp.m4: New file.
90135
90136         Module memcoll.
90137         * m4/memcoll.m4: New file.
90138
90139         Module unicodeio.
90140         * m4/unicodeio.m4: New file.
90141
90142         Module rpmatch.
90143         * m4/rpmatch.m4: New file.
90144
90145         Module yesno.
90146         * m4/yesno.m4: New file.
90147
90148         Module exitfail.
90149         * m4/exitfail.m4: New file.
90150
90151         Module c-stack.
90152         * m4/c-stack.m4 (gl_C_STACK): New macro.
90153         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90154
90155         Module error.
90156         * m4/error.m4 (gl_ERROR): New macro.
90157         (jm_PREREQ_ERROR): Use onceonly macros.
90158
90159         Module fatal.
90160         * m4/fatal.m4: New file.
90161
90162         Module getloadavg.
90163         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90164         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90165
90166         Module getpagesize.
90167         * m4/getpagesize.m4: New file.
90168
90169         Module getusershell.
90170         * m4/getusershell.m4: New file.
90171
90172         Module physmem.
90173         * m4/physmem.m4: New file.
90174
90175         Module posixver.
90176         * m4/posixver.m4: New file.
90177
90178         Module quotearg.
90179         * m4/quotearg.m4: New file.
90180
90181         Module quote.
90182         * m4/quote.m4: New file.
90183
90184         Module readutmp.
90185         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90186
90187         Module sig2str.
90188         * m4/sig2str.m4: New file.
90189
90190         Other.
90191         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90192         ulonglong.m4.
90193         * m4/intmax_t.m4: New file.
90194         * m4/d-type.m4: Indentation.
90195         * m4/jm-macros.m4: Update.
90196         * m4/prereq.m4 (jm_PREREQ): Update.
90197         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90198         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90199         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90200         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90201         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90202         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90203         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90204         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90205         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90206         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90207         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90208         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90209         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90210         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90211         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90212         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90213         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90214         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90215         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90216
90217 2002-12-24  Bruno Haible  <bruno@clisp.org>
90218
90219         * MODULES.txt: Update according to m4/ changes.
90220
90221         Module gettext.
90222         * config.rpath: New file, from gettext-0.11.5.
90223
90224         * modules/*: New module descriptions.
90225         * gnulib-tool: New file.
90226         * MODULES.html.sh: New file.
90227
90228 2002-12-21  Karl Berry  <karl@gnu.org>
90229
90230         * doc/fdl.texi: update to version 1.2.
90231
90232 2002-12-19  Karl Berry  <karl@gnu.org>
90233
90234         * config/config.guess: update from prep.
90235
90236 2002-12-18  Bruno Haible  <bruno@clisp.org>
90237
90238         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90239         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90240
90241 2002-12-17  Bruno Haible  <bruno@clisp.org>
90242
90243         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90244         stdlib.h, string.h.
90245
90246 2002-12-17  Bruno Haible  <bruno@clisp.org>
90247
90248         * lib/canon-host.c (strdup): Remove unused declaration.
90249
90250         * lib/fsusage.c: Include full_read.h.
90251         (get_fs_usage): Use full_read instead of safe_read.
90252
90253         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90254
90255 2002-12-12  Karl Berry  <karl@gnu.org>
90256
90257         * config/config.guess: update from prep.
90258
90259 2002-12-11  Bruno Haible  <bruno@clisp.org>
90260
90261         * m4/setenv.m4: New file, from gettext-0.11.5.
90262
90263 2002-12-11  Bruno Haible  <bruno@clisp.org>
90264
90265         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90266         not unsetenv().
90267         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90268         modifications:
90269
90270         2002-12-11  Bruno Haible  <bruno@clisp.org>
90271
90272                 * setenv.c (alloca): Fall back to malloc.
90273                 (freea): New macro.
90274                 (setenv): Use freea() to free memory allocated with alloca().
90275
90276         2002-11-13  Bruno Haible  <bruno@clisp.org>
90277
90278                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90279                 function declarations.
90280                 * unsetenv.c (unsetenv): Likewise.
90281
90282         2002-03-04  Bruno Haible  <bruno@clisp.org>
90283
90284                 Portability to AIX 4.3.3.
90285                 * unsetenv.c: New file, extracted from setenv.c.
90286                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90287
90288         2001-12-20  Bruno Haible  <bruno@clisp.org>
90289
90290                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90291                 use malloc instead. For SunOS 4.
90292
90293         2001-12-11  Bruno Haible  <bruno@clisp.org>
90294
90295                 * setenv.c: Declare alloca.
90296                 (compar_fn_t): New typedef.
90297                 (KNOWN_VALUE, STORE_VALUE): Use it.
90298
90299         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90300         setenv.h.
90301
90302 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90303
90304         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90305         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90306         Choose values that are less likely to collide with system fnmatch
90307         options.
90308         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90309         defined (e.g., a pure POSIX system).
90310         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90311         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90312
90313 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90314
90315         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90316         a pain in practice to deal with generated m4 files.  This change
90317         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90318
90319         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90320         and jm-glibc-io.m4, as they are no longer a special case.
90321         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90322         kludge and the auto-generation stuff.  Check only whether the
90323         functions are declared, not whether they exist, since older hosts
90324         that don't declare the functions can't use the optimization anyway.
90325
90326 2002-12-06  Jim Meyering  <jim@meyering.net>
90327
90328         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90329
90330         Merge in changes from libc's misc/error.c, in preparation
90331         for the merge of gnulib's changes back into libc.
90332
90333         * lib/error.c (_): Define only if not already defined.
90334         Move definition to follow all #include directives.
90335         Include unlocked-io.h only if !_LIBC.
90336         [_LIBC]: Include <libio/libioP.h>.
90337         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90338         (fflush): Tweak definition to use INTUSE.
90339         (putc): Define.
90340
90341 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90342
90343         * lib/alloca.c [defined emacs]: Include "lisp.h".
90344         (xalloc_die) [defined emacs]: New macro.
90345         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90346         [! defined emacs]: Include <xalloc.h>.
90347         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90348         (pointer): Typedef to POINTER_TYPE *.
90349         (malloc): Remove decl; we now always use xmalloc.
90350         (alloca): Use old-style definition, since Emacs needs this.
90351         Check for arithmetic overflow when computing combined size.
90352
90353 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90354
90355         Do not generate unlocked-io.h automatically, since it's easier to
90356         maintain it by hand.
90357
90358         * lib/unlocked-io.h: New file, from GNU diffutils,
90359         but with proper copyright notice and attribution.
90360         * lib/gen-uio: Remove.
90361         * lib/Makefile.am: Add copyright notice.
90362         (libfetish_a_SOURCES): Add unlocked-io.h.
90363         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90364         (DISTCLEANFILES, io_functions): Remove macros.
90365         (EXTRA_DIST): Remove gen_uio.
90366         (unlocked-io.h): Remove rule.
90367
90368 2002-12-04  Jim Meyering  <jim@meyering.net>
90369
90370         Reflect the fact that stat.c and lstat.c are no longer generated.
90371         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90372         (DISTCLEANFILES): Likewise.
90373         (EXTRA_DIST): Likewise.
90374         (all_local): Don't depend on stat.c or lstat.c.
90375         (stat.c, lstat.c): Remove rules.
90376         (EXTRA_DIST): Remove xstat.in.
90377
90378         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90379         * lib/stat.c: New file.  Contents mostly from xstat.in.
90380         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90381         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90382
90383         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90384         too.
90385         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90386
90387 2002-12-03  Jim Meyering  <jim@meyering.net>
90388
90389         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90390         but not semantics, to minimize the differences between these two files.
90391         (safe_read): Change comment to mention SAFE_READ_ERROR.
90392
90393         * lib/safe-read.c (IS_EINTR): Define.
90394         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90395
90396 2002-12-02  Jim Meyering  <jim@meyering.net>
90397
90398         * lib/safe-read.c (EINTR): Define.
90399         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90400         (INT_MAX): Provide fallback.
90401         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90402
90403         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90404
90405 2002-12-02  Bruno Haible  <bruno@clisp.org>
90406
90407         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90408         Define, taken from safe-read.c.
90409         (INT_MAX): Provide fallback.
90410         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90411         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90412
90413         * lib/safe-read.c (EINTR): Remove definition.
90414         (safe_read): Don't use EINTR if it is absent.
90415
90416 2002-12-01  Jim Meyering  <jim@meyering.net>
90417
90418         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90419         zero.
90420         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90421
90422 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90423
90424         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90425         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90426         with `if (! (value < limit)) abort ();', for readability.
90427
90428 2002-11-26  Karl Berry  <karl@gnu.org>
90429
90430         * lib/strdup.c: copy from libc again, with jim's ok.
90431         * lib/.cppi-disable: re-add strdup.c
90432
90433 2002-11-25  Karl Berry  <karl@gnu.org>
90434
90435         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90436         instead of "strtol.c".
90437
90438 2002-11-25  Karl Berry  <karl@gnu.org>
90439
90440         * config/install-sh: update from automake for variable quoting, $0 in
90441         error msgs, etc.
90442
90443         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90444         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90445         entry.
90446
90447 2002-11-25  Jim Meyering  <jim@meyering.net>
90448
90449         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90450
90451 2002-11-24  Karl Berry  <karl@gnu.org>
90452
90453         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90454         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90455
90456 2002-11-24  Jim Meyering  <jim@meyering.net>
90457
90458         Update from coreutils:
90459
90460         * lib/mktime.c: Merge in changes from libc.
90461
90462         Avoid a link-time failure on some Linux systems.
90463         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90464         (otherwise).
90465         (__mon_yday): Declare with the STATIC attribute.
90466         (__mktime_internal): Likewise.
90467         Based on a report from Greg Schafer.
90468
90469 2002-11-23  Jim Meyering  <jim@meyering.net>
90470
90471         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90472         Use `unsigned', not `int', as type of index.
90473
90474         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90475
90476         * lib/fsusage.c: Remove unneeded parentheses around operands of
90477         `defined'.
90478
90479 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90480
90481         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90482         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90483         so that we can be included first.
90484         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90485         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90486         No need to include stddef.h or sys/types.h any more.
90487         Surround local include files with "", not "<>".
90488         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90489         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90490         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90491         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90492         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90493         (ISPRINT): Remove; no longer needed now that we assume C89.
90494
90495         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90496         Preserve errno.
90497
90498         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90499         quotearg_char): Use SIZE_MAX rather than
90500         (size_t) -1 when we are talking about "infinity".
90501
90502         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90503
90504 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90505
90506         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90507         hint that one should use `if (! x) abort ();' rather than `assert
90508         (x);', and anyway it's one less thing to worry about configuring.
90509         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90510         hash_rehash, hash_insert): Use abort rather than assert.
90511
90512 2002-11-22  Bruno Haible  <bruno@clisp.org>
90513
90514         * lib/safe-read.h: Assume C89. Add comments.
90515         (safe_read): Change return type to size_t.
90516         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90517         byte counts > SSIZE_MAX correctly.
90518         * lib/safe-write.h: New file.
90519         * lib/safe-write.c: New file.
90520         * lib/full-read.h: New file.
90521         * lib/full-read.c: New file.
90522         * lib/full-write.h: Assume C89. Add comments.
90523         * lib/full-write.c: Include safe-write.h.
90524         (full_write): Rewritten to use safe_write.
90525         Suggested by Jim Meyering and Paul Eggert.
90526
90527 2002-11-21  Jim Meyering  <jim@meyering.net>
90528
90529         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90530
90531         Merge in changes from the coreutils.
90532
90533         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90534         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90535         <stdint.h>.
90536         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90537         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90538         int.  Work more efficiently if X is the same width as uintmax_t.
90539         Do not compare X to -1, to avoid bogus compiler warning.
90540         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90541         Don't assume that f_frsize and f_bsize are the same type.
90542
90543         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90544         warning on FreeBSD.
90545
90546         * lib/makepath.c (make_path): Restore umask *before* creating the final
90547         component.
90548         (make_path): Minor reformatting.
90549
90550         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90551         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90552         HAVE_MALLOC/HAVE_REALLOC.
90553
90554         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90555         dummy ones.  At least on GNU/Linux systems, `auto' means something
90556         else.
90557         From Michael Stone.
90558
90559 2002-11-21  Bruno Haible  <bruno@clisp.org>
90560
90561         Remove case insensitive option matching.
90562         * lib/argmatch.h (argcasematch): Remove declaration.
90563         (ARGCASEMATCH): Remove macro.
90564         (__xargmatch_internal): Remove case_sensitive argument.
90565         (XARGMATCH): Update.
90566         (XARGCASEMATCH): Remove macro.
90567         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90568         case_sensitive argument.
90569         (argcasematch): Remove function.
90570         (__xargmatch_internal): Remove case_sensitive argument.
90571         (main): Use XARGMATCH instead of XARGCASEMATCH.
90572
90573         * lib/xmalloc.c: Change compile-time error message. Add comment about
90574         required autoconf version.
90575
90576 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90577
90578         Merge argmatch cleanups from Bison.  Assume C89.
90579
90580         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90581         Include stdlib.h, for EXIT_FAILURE.
90582         Always include <string.h>, since we assume C89.
90583         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90584         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90585         Include <stddef.h> instead, since it's all we need for size_t.
90586         (PARAMS): Remove.  All uses removed.
90587         (ARRAY_CARDINALITY): Do not bother to #undef.
90588         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90589         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90590         Remove unnecessary parentheses.
90591         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90592         Insert necessary parentheses.
90593         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90594         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90595
90596 2002-11-19  Bruno Haible  <bruno@clisp.org>
90597
90598         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90599         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90600
90601         * lib/mbswidth.h (PARAMS): Remove macro.
90602         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90603         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90604
90605         * lib/gcd.h (PARAMS): Remove macro.
90606         (gcd): Use ANSI C function declarations.
90607         * lib/gcd.c (gcd): Likewise.
90608
90609 2002-11-15  Bruno Haible  <bruno@clisp.org>
90610
90611         * lib/strcspn.c: Include <stddef.h>.
90612         (strcspn): Use ANSI C function declaration. Change return type to
90613         size_t. Use NULL.
90614         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90615         (strpbrk): Use NULL.
90616         * lib/strpbrk.h (PARAMS): Remove macro.
90617         (strpbrk): Use ANSI C function declaration.
90618         * lib/strstr.c: Don't include <sys/types.h>.
90619         * lib/strstr.h (PARAMS): Remove macro.
90620         (strstr): Use ANSI C function declarations.
90621
90622 2002-11-14  Karl Berry  <karl@gnu.org>
90623
90624         * config/mkinstalldirs: `do' on separate line, instead of
90625         `for var; do'.
90626
90627 2002-11-06  Bruno Haible  <bruno@clisp.org>
90628
90629         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90630         * lib/gcd.c (gcd): Likewise.
90631
90632 2002-11-05  Bruno Haible  <bruno@clisp.org>
90633
90634         * lib/gcd.h: New file, from gettext-0.11.5.
90635         * lib/gcd.c: New file, from gettext-0.11.5.
90636
90637 2002-11-05  Bruno Haible  <bruno@clisp.org>
90638
90639         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90640         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90641         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90642         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90643
90644         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90645         <libintl.h>.
90646         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90647         <libintl.h>.
90648
90649         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90650         * lib/human.c: Include gettext.h instead of <libintl.h>.
90651         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90652         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90653         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90654         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90655         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90656         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90657         (textdomain): Remove definition.
90658         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90659
90660         * lib/long-options.c: Remove include of <libintl.h> and definition of
90661         _.
90662         * lib/same.c: Remove include of <libintl.h> and definition of _.
90663
90664 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90665
90666         * lib/config.charset: A few additions for Solaris.
90667
90668 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90669
90670         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90671         * lib/localcharset.c (locale_charset): Declare as extern "C".
90672
90673 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90674
90675         * lib/config.charset: msdos in uk_UA uses CP1125.
90676
90677 2002-11-04  Bruno Haible  <bruno@clisp.org>
90678
90679         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90680         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90681         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90682         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90683         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90684
90685 2002-11-04  Bruno Haible  <bruno@clisp.org>
90686
90687         * lib/localcharset.c (locale_charset): Don't return an empty string.
90688
90689 2002-11-04  Bruno Haible  <bruno@clisp.org>
90690
90691         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90692         aliases.
90693
90694 2002-11-04  Bruno Haible  <bruno@clisp.org>
90695
90696         * lib/config.charset: Update for newest glibc. Add canonical names
90697         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90698
90699 2002-11-04  Bruno Haible  <bruno@clisp.org>
90700
90701         * lib/config.charset: Add support for NetBSD.
90702
90703 2002-11-04  Bruno Haible  <bruno@clisp.org>
90704
90705         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90706
90707 2002-11-01  Bruno Haible  <bruno@clisp.org>
90708
90709         * configure.in: Add AC_CONFIG_AUX_DIR call.
90710         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90711         test/Makefile.
90712         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90713
90714 2002-09-28  Karl Berry  <karl@gnu.org>
90715
90716         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90717         installed automake until the next release, since changes have been
90718         made.
90719
90720 2002-09-25  Karl Berry  <karl@gnu.org>
90721
90722         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90723         * lib/getopt*: copy from libc/posix.
90724         * lib/gettext.h: copy from gettext.
90725         * lib/.cppi-disable: add strdup.c, gettext.h.
90726
90727 2002-09-25  Karl Berry  <karl@gnu.org>
90728
90729         * config/srclist.txt: enable gettext.h check.
90730         * config/config.{guess,sub}: update from prep.
90731         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90732                 from automake 1.6.3.
90733         See srclist*.
90734
90735 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90736
90737         * regex.c (PATFETCH): Remove the translating fetch.
90738         (PATFETCH_RAW): Rename to PATFETCH.
90739         (set_image_of_range): New fun.
90740         (SET_RANGE_TABLE_WORK_AREA): Use it.
90741         (regex_compile): Don't translate the pattern chars so eagerly.
90742         Only do it when inserting an `exactn' bytecode or when handling
90743         a char-range.
90744         (mutually_exclusive_p): Avoid empty statement.
90745
90746 2002-07-06  Jim Meyering  <meyering@lucent.com>
90747
90748         * m4/README: Don't mention Makefile.am.in.
90749         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90750
90751 2002-07-01  Jim Meyering  <meyering@lucent.com>
90752
90753         * lib/c-stack.c: Include sys/time.h.
90754         From Volker Borchert.
90755
90756 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90757
90758         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90759
90760 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90761
90762         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90763         New macro.  Use it uniformly instead of
90764         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90765         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90766         reported by Vin Shelton.
90767
90768 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90769
90770         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90771         Do not assume SA_SIGINFO behavior.
90772         Bug reported by Jim Meyering on NetBSD 1.5.2.
90773
90774 2002-06-22  Jim Meyering  <meyering@lucent.com>
90775
90776         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90777         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90778
90779         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90780         now that configure.ac uses AC_GNU_SOURCE.
90781         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90782         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90783
90784         Update to latest tools.  Suggestions from Paul Eggert.
90785         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90786         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90787         * m4/fnmatch.m4: Likewise.
90788         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90789         to AC_HEADER_STDBOOL
90790
90791 2002-06-22  Jim Meyering  <meyering@lucent.com>
90792
90793         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90794         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90795
90796 2002-06-22  Jim Meyering  <meyering@lucent.com>
90797
90798         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90799
90800         * lib/exitfail.c, exitfail.h: Likewise.
90801         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90802
90803         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90804         of fnmatch.h.
90805         (EXTRA_DIST): Add fnmatch_loop.c.
90806         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90807
90808         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90809         * lib/fnmatch.c: Update from diffutils-2.8.2.
90810         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90811         * lib/fnmatch.h: Remove file.
90812
90813 2002-06-21  Jim Meyering  <meyering@lucent.com>
90814
90815         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90816         * m4/mbrtowc.m4: Likewise.
90817
90818         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90819         * m4/mbswidth.m4: Reflect name change:
90820         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90821         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90822
90823         * m4/lib-link.m4: Update from gettext-0.11.2.
90824         * m4/gettext.m4: Likewise.
90825
90826         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90827         From Alfred M. Szmidt.
90828
90829 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90830
90831         * lib/file-type.h: Report an error if neither S_ISREG nor
90832         S_IFREG is defined, instead of using a test specific to glibc
90833         2.2.  This should be safe, since POSIX requires S_ISREG and
90834         Unix Version 7 had S_IFREG.  We don't need to check for
90835         <sys/types.h> since we don't use any symbols that it defines.
90836
90837 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90838
90839         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90840         $@-t, so that each temporary file name is unique and valid in the first
90841         8 characters, for operation under DOS.
90842
90843 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90844
90845         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90846
90847 2002-06-15  Jim Meyering  <meyering@lucent.com>
90848
90849         Work even with DJGPP 2.03, which lacks support for symlinks.
90850         From Richard Dawe.
90851         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90852         is defined.
90853         * lib/lchown.c (S_ISLNK): Likewise.
90854
90855 2002-06-15  Jim Meyering  <meyering@lucent.com>
90856
90857         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90858         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90859         have been included before this file.
90860
90861 2002-06-14  Jim Meyering  <meyering@lucent.com>
90862
90863         * lib/file-type.h: Use the version from diffutils-2.8.2.
90864         * lib/file-type.c: Likewise.
90865
90866 2002-06-07  Jim Meyering  <meyering@lucent.com>
90867
90868         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90869         They're needed at least for NetBSD 1.5.2.
90870         ($statxfs_includes): Include those same headers.
90871         ($statxfs_includes): Include sys/vfs.h if available.
90872         ($statxfs_includes): Likewise for sys/statvfs.h.
90873         Check for the following members in both structs statfs and statvfs:
90874         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90875
90876 2002-06-01  Jim Meyering  <meyering@lucent.com>
90877
90878         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90879         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90880
90881 2002-05-28  Jim Meyering  <meyering@lucent.com>
90882
90883         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90884         Reported by Volker Borchert.
90885
90886 2002-05-27  Jim Meyering  <meyering@lucent.com>
90887
90888         Fix a problem seen only on nonconforming systems whereby ls.c's
90889         use of localtime, and then of gettimeofday would cause trouble:
90890         the localtime call used to initialize rpl_gettimeofday's save
90891         mechanism would clobber ls's current local time information so
90892         that in any long listing the first file would always be listed
90893         with date 1970-01-01.  Analysis by Volker Borchert.
90894
90895         * lib/gettimeofday.c (localtime): Undefine.
90896         (rpl_localtime): New function.
90897
90898 2002-05-27  Jim Meyering  <meyering@lucent.com>
90899
90900         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90901         localtime.
90902
90903         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90904         use the replacement function; it wouldn't resolve at link time.
90905         Reported by Volker Borchert.
90906
90907 2002-05-22  Jim Meyering  <meyering@lucent.com>
90908
90909         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90910         file-type.h.
90911         * lib/file-type.h: New file.
90912         * lib/file-type.c (file_type): New file/function.  Extracted from
90913         diffutils.
90914
90915 2002-04-30  Jim Meyering  <meyering@lucent.com>
90916
90917         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90918
90919 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90920
90921         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90922
90923 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90924
90925         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90926         Do not check for alloca.h (no longer used) or stdbool.h (was never
90927         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90928
90929 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90930
90931         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90932
90933 2002-04-29  Jim Meyering  <meyering@lucent.com>
90934
90935         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90936         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90937         Use AC_FUNC_STRNLEN here instead.
90938
90939         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90940         With autoconf-2.53a, it's part of AC_PROG_CC.
90941
90942 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90943
90944         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90945         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90946
90947 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90948
90949         * lib/sig2str.h, lib/sig2str.c: New files.
90950         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90951
90952 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90953
90954         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90955         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90956         of 127, since 64 is the largest conceivable number for ancient
90957         nonstandard hosts.
90958         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90959
90960 2002-04-28  Jim Meyering  <meyering@lucent.com>
90961
90962         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90963
90964 2002-04-24  Jim Meyering  <meyering@lucent.com>
90965
90966         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90967         (jm_PREREQ): Use it.
90968
90969         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90970         mach/mach.h fcntl.h.
90971         Check for this function: setlocale.
90972
90973 2002-04-24  Jim Meyering  <meyering@lucent.com>
90974
90975         * lib/gettext.h: New file, from Gettext.
90976         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90977         (libfetish_a_SOURCES): Add gettext.h.
90978
90979 2002-04-16  Jim Meyering  <meyering@lucent.com>
90980
90981         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90982         ut_pid, ut_id, ut_exit.
90983
90984 2002-04-16  Jim Meyering  <meyering@lucent.com>
90985
90986         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90987         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90988         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90989
90990 2002-04-12  Jim Meyering  <meyering@lucent.com>
90991
90992         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90993         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90994         existence of the getmntinfo function.  Needed for Darwin 5.3.
90995
90996         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90997         This is necessary at least on Darwin 5.3.
90998
90999         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91000         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91001         strnlen.o in the library, and that makes some versions of ranlib
91002         object.
91003
91004 2002-04-12  Jim Meyering  <meyering@lucent.com>
91005
91006         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91007
91008 2002-04-09  Jim Meyering  <meyering@lucent.com>
91009
91010         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91011         to be more precise.  Rather than saying we're checking whether the
91012         function `works', say what we're testing.
91013         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91014         Reported by Bruno Haible.
91015
91016 2002-03-10  Jim Meyering  <meyering@lucent.com>
91017
91018         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91019         Suggestion from Santiago Vila.
91020
91021 2002-03-08  Jim Meyering  <meyering@lucent.com>
91022
91023         * lib/rename.c: Mention that this wrapper is needed also on
91024         mips-dec-ultrix4.4 systems.
91025
91026 2002-03-02  Jim Meyering  <meyering@lucent.com>
91027
91028         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91029         not HAVE_CLOCK_SETTIME.
91030
91031 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91032
91033         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91034         Check for clock_settime.
91035
91036 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91037
91038         * lib/nanosleep.h: Rename to....
91039         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91040
91041         * lib/gettime.c: New file.
91042         * lib/settime.c: New file.
91043         * lib/stime.c: Remove.
91044
91045         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91046         timespec.h.  Remove nanosleep.h.
91047
91048 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91049
91050         * m4/acl.m4: New file.
91051         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91052         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91053
91054 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91055
91056         * lib/acl.c, lib/acl.h: New files.
91057         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91058
91059 2002-02-24  Jim Meyering  <meyering@lucent.com>
91060
91061         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91062         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91063         cause trouble.  Reported by Nelson Beebe.
91064
91065 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91066
91067         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91068         compilers that don't know that xalloc_die never returns.
91069
91070 2002-02-20  Jim Meyering  <meyering@lucent.com>
91071
91072         * lib/getdate.c: Regenerate using bison-1.33.
91073
91074 2002-02-17  Jim Meyering  <meyering@lucent.com>
91075
91076         * config/config.guess (main): Don't use `head -1'; it's no longer
91077         portable. Use `sed 1q' instead.
91078
91079 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91080
91081         * m4/codeset.m4: Upgrade to gettext-0.11.
91082         * m4/gettext.m4: Upgrade to gettext-0.11.
91083         * m4/glibc21.m4: Upgrade to gettext-0.11.
91084         * m4/iconv.m4: Upgrade to gettext-0.11.
91085         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91086         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91087         * m4/lib-ld.m4: New file, from gettext-0.11.
91088         * m4/lib-link.m4: New file, from gettext-0.11.
91089         * m4/lib-prefix.m4: New file, from gettext-0.11.
91090         * m4/progtest.m4: Upgrade to gettext-0.11.
91091
91092 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91093
91094         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91095         (jm_PREREQ): Use it.
91096
91097 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91098
91099         * lib/posixver.c, lib/posixver.h: New files.
91100         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91101
91102 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91103             Bruno Haible  <bruno@clisp.org>
91104
91105         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91106         (fwrite_success_callback): New declaration.
91107         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91108         print_unicode_char. Call failure callback instead of error.
91109         (fwrite_success_callback): New function.
91110         (exit_failure_callback): New function.
91111         (fallback_failure_callback): New function.
91112         (print_unicode_char): Call unicode_to_mb.
91113
91114 2002-01-26  Jim Meyering  <meyering@lucent.com>
91115
91116         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91117         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91118
91119 2002-01-26  Jim Meyering  <meyering@lucent.com>
91120
91121         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91122
91123 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91124
91125         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91126
91127 2002-01-22  Jim Meyering  <meyering@lucent.com>
91128
91129         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91130         Otherwise, some versions of automake would omit the rule that makes
91131         Makefile from Makefile.in.
91132
91133 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91134
91135         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91136         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91137         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91138         (memcoll): Set errno to zero if there is no error.
91139
91140         * lib/quotearg.c (quotearg_buffer_restyled):
91141         Fix bug with quoting buffers containing NUL when backslashing escapes.
91142         This bug was exposed by the other changes in this patch.
91143         (quotearg_n_options): New arg ARGSIZE.
91144         All callers changed.
91145         (quoting_options_from_style): New function.
91146         (quotearg_n_style): Use it.
91147         (quotearg_n_style_mem): New function.
91148
91149         * lib/quotearg.h (quotearg_n_style_mem): New function.
91150
91151 2002-01-19  Jim Meyering  <meyering@lucent.com>
91152
91153         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91154         Remove useless quotes: DF_PROG="df".
91155         * m4/strnlen.m4: New file.
91156
91157 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91158
91159         * lib/backupfile.c (ISDIGIT): Comment fix.
91160         * lib/getdate.y (ISDIGIT): Likewise.
91161         * lib/posixtm.c (ISDIGIT, year): Likewise.
91162         * lib/strverscmp.c (ISDIGIT): Likewise.
91163         * lib/userspec.c (ISDIGIT): Likewise.
91164
91165 2002-01-16  Jim Meyering  <meyering@lucent.com>
91166
91167         * lib/getdate.y: Add three semicolons, each just before a closing
91168         brace. Bison (as of version 1.31) no longer papers over that mistake.
91169
91170 2002-01-05  Jim Meyering  <meyering@lucent.com>
91171
91172         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91173
91174 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91175
91176         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91177         not silently exit merely because the output buffer happens to
91178         have nothing pending.
91179
91180 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91181
91182         See the big note in ../ChangeLog.
91183         * lib/human.c (suffixes): Prefer K to k for 1024.
91184         (generate_suffix_backwards): New function.
91185         (human_readable_inexact): Use it.
91186         * lib/xstrtol.c (__xstrtol): If there is no number but there
91187         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91188         Accept 'K' as well as 'k'.
91189
91190 2001-12-15  Jim Meyering  <meyering@lucent.com>
91191
91192         * lib/regex.h (__restrict_arr): Update from libc.
91193
91194         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91195         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91196         (STREQ): Define.
91197
91198 2001-12-14  Jim Meyering  <meyering@lucent.com>
91199
91200         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91201         Suggestion from Bruno Haible.
91202
91203 2001-12-10  Jim Meyering  <meyering@lucent.com>
91204
91205         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91206         xrealloc, Instead, include "xalloc.h".
91207         (initbuffer): Don't cast xmalloc return value to char*.
91208         (readline): Reword comment.
91209         Don't cast xrealloc return value to char*
91210         Return NULL, not 0.
91211
91212 2001-12-09  Jim Meyering  <meyering@lucent.com>
91213
91214         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91215         about `signed and unsigned type in conditional expression'.
91216         * lib/posixtm.c (posix_time_parse): Likewise.
91217
91218         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91219
91220         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91221         to avoid a pedantic warning.
91222
91223         * lib/getstr.c: Don't include assert.h.
91224         (getstr): Remove warning-evoking assertions.
91225         Return -1 if offset parameter is out of bounds.
91226         Change the type of a local from int to size_t.
91227
91228         * lib/strftime.c (my_strftime_localtime_r): Include this function
91229         definition in the `#if ! HAVE_TM_GMTOFF' block.
91230
91231         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91232         Include xalloc.h instead.
91233
91234 2001-12-02  Jim Meyering  <meyering@lucent.com>
91235
91236         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91237         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91238         included.
91239
91240         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91241         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91242
91243 2001-11-30  Akim Demaille  <akim@epita.fr>
91244
91245         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91246         before being defined.
91247
91248 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91249
91250         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91251         First arg is int, not unsigned.
91252         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91253         (SIZE_MAX, UINT_MAX): New macros.
91254         (quotearg_n_options): Abort if N is negative.
91255         Avoid overflow check on hosts where size_t is 64 bits and int
91256         is 32 bits, as overflow is impossible there.
91257         Fix off-by-one typo that caused unnecessary reallocation.
91258
91259 2001-11-27  Jim Meyering  <meyering@lucent.com>
91260
91261         * lib/tempname.c: Merge with version from libc.
91262         * lib/regex.c: Likewise.
91263
91264         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91265         systems for which STDC_HEADERS is 0, it was not included, resulting in
91266         a warning about an integer-to-pointer conversion problem with getenv.
91267         Reported by Volker Borchert.
91268
91269 2001-11-26  Jim Meyering  <meyering@lucent.com>
91270
91271         * lib/gtod.h: Remove file.
91272         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91273         * lib/gettimeofday.c: Don't include gtod.h.
91274         (GTOD_init): Remove function.
91275         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91276         Suggestion from Volker Borchert.
91277
91278 2001-11-23  Jim Meyering  <meyering@lucent.com>
91279
91280         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91281         it.
91282         * lib/hash.c (struct hash_table): Define it here instead.
91283
91284 2001-11-22  Jim Meyering  <meyering@lucent.com>
91285
91286         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91287
91288 2001-11-20  Jim Meyering  <meyering@lucent.com>
91289
91290         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91291         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91292
91293 2001-11-19  Jim Meyering  <meyering@lucent.com>
91294
91295         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91296         directory.  Use "conftestXXXXXX" as the template.
91297         Suggestion from Paul Eggert.
91298
91299         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91300         immediately, so the test doesn't mistakenly hit the max-open-files
91301         limit.
91302
91303 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91304
91305         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91306         (TEMPORARIES): New macro.
91307         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91308         removes an artificial limitation (e.g. HP-UX 10.20, where
91309         TMP_MAX is 17576).
91310
91311 2001-11-18  Jim Meyering  <meyering@lucent.com>
91312
91313         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91314
91315 2001-11-18  Jim Meyering  <meyering@lucent.com>
91316
91317         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91318         on SunOS 4.
91319
91320         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91321         files will be created before anything else.
91322
91323 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91324
91325         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91326         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91327
91328 2001-11-17  Jim Meyering  <meyering@lucent.com>
91329
91330         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91331         Prompted by a report from Bob Proulx.
91332
91333         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91334         Instead, require UTILS_FUNC_MKSTEMP.
91335
91336 2001-11-17  Jim Meyering  <meyering@lucent.com>
91337
91338         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91339         Now, that's done as part of AC_FUNC_STRTOD.
91340
91341 2001-11-17  Jim Meyering  <meyering@lucent.com>
91342
91343         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91344         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91345         rather than group writable.  Patch by Juan F. Codagnone.
91346
91347         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91348         xrealloc, Instead, include "xalloc.h".
91349
91350         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91351         Remove explicit declarations of xmalloc, xrealloc,
91352         and xstrdup.  Instead, include "xalloc.h".
91353
91354         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91355         unlocked-io.h.
91356         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91357         Likewise.
91358         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91359
91360         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91361         Reported by Padraig Brady.
91362
91363         * lib/mkstemp.c: #undef mkstemp.
91364         Include config.h.
91365         (rpl_mkstemp): Rename from mkstemp.
91366         Protoize.
91367
91368 2001-11-16  Jim Meyering  <meyering@lucent.com>
91369
91370         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91371         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91372         determine the amount of total physical memory, use pstat_getstatic.
91373         HPUX-11 doesn't define _SC_PHYS_PAGES.
91374         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91375         If sysconf couldn't be used to determine the amount of available
91376         physical memory, use both pstat_getstatic and pstat_getdynamic.
91377         Based on a patch from Bob Proulx.
91378
91379 2001-11-10  Jim Meyering  <meyering@lucent.com>
91380
91381         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91382         (jm_PREREQ): Use it.
91383
91384 2001-11-09  Jim Meyering  <meyering@lucent.com>
91385
91386         * m4/jm-macros.m4: Require autoconf-2.52f.
91387         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91388         Use these AC_-prefixed names, not the AM_-prefixed ones.
91389
91390         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91391
91392 2001-11-05  Jim Meyering  <meyering@lucent.com>
91393
91394         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91395
91396 2001-11-04  Jim Meyering  <meyering@lucent.com>
91397
91398         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91399         $DEFS.
91400
91401 2001-11-03  Jim Meyering  <meyering@lucent.com>
91402
91403         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91404         of AC_DEFUN.
91405
91406         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91407         know the name of the variable in the macro definition.
91408
91409 2001-11-03  Jim Meyering  <meyering@lucent.com>
91410
91411         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91412         in argmatch_to_argument call.
91413
91414         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91415         argument.
91416
91417         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91418         e.g., a fault due to an attempt to free a NULL pointer.
91419
91420 2001-11-01  Jim Meyering  <meyering@lucent.com>
91421
91422         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91423         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91424
91425 2001-11-01  Jim Meyering  <meyering@lucent.com>
91426
91427         * lib/dirfd.c, lib/dirfd.h: New files.
91428         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91429
91430         * lib/hash.c (hash_print) [TESTING]: Clean up.
91431
91432 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91433
91434         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91435         to avoid a warning if -Wall.
91436
91437 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91438
91439         * README: New file
91440         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91441         (per RMS's instructions, this is now the canonical source)
91442         * lgpl/, gpl/: New directories.
91443
91444 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91445
91446         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91447
91448 2001-10-21  Jim Meyering  <meyering@lucent.com>
91449
91450         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91451         this code would end up calling gettext even in packages built
91452         with --disable-nls.
91453         * lib/getopt.c (_): Likewise.
91454         * lib/regex.c (_): Likewise.
91455
91456 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91457
91458         * m4/error.m4 (jm_PREREQ_ERROR):
91459         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91460         AC_FUNC_STRERROR_R does that.
91461         Check for strerror declaration.
91462
91463         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91464         are supposed to have them these days.
91465         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91466         Merge changes from latest Autoconf CVS.
91467         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91468         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91469         POSIX decided to standardize on the int flavor of strerror_r.
91470
91471 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91472
91473         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91474         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91475         Use strerror_r that is only a macro, even if it is not a function.
91476         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91477         (private_strerror): Use prototypes, not old-style function definition.
91478         (print_errno_message): New function.
91479         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91480         char*-flavored one.
91481         (error_tail, error, error_at_line): Use it.
91482
91483 2001-10-11  Jim Meyering  <meyering@lucent.com>
91484
91485         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91486         and quote_n (1, ... to avoid clobbering a buffer.
91487
91488 2001-10-05  Jim Meyering  <meyering@lucent.com>
91489
91490         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91491         hash-pjw.h.
91492         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91493         * lib/hash-pjw.h: New file.
91494
91495 2001-09-30  Jim Meyering  <meyering@lucent.com>
91496
91497         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91498         `struct fsstat' has the `f_fstypename' member.
91499         Use that to define FS_TYPE, which is now used to make
91500         the getfsstat link test tighter.
91501
91502 2001-09-30  Jim Meyering  <meyering@lucent.com>
91503
91504         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91505         Include <sys/ucred.h>, for Apple Darwin.
91506         Include sys/mount.h and sys/fs_types.h only if available.
91507         (FS_TYPE): Define.
91508         (read_filesystem_list): Use FS_TYPE.
91509
91510 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91511
91512         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91513         a boolean context.
91514
91515 2001-09-29  Jim Meyering  <meyering@lucent.com>
91516
91517         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91518         [one-argument getmntent function]): Include stdio.h before mntent.h.
91519         SunOS 4.1.x needs it for the declaration of `FILE'.
91520         Patch by Volker Borchert.
91521
91522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91523         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91524         sys/fs_types.h, and make the link-test for getfsstat guard #include
91525         directives with appropriate #if HAVE_*_H tests so that we can
91526         detect getfsstat on Apple Darwin1.3.7 systems.
91527         Reported by Nelson Beebe.
91528         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91529
91530 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91531
91532         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91533         #defines strtoimax.  Also treat the other strto* functions
91534         like strtoimax.
91535
91536         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91537         Check for strtoul and strtoumax,
91538         as those declarations are made even in the signed case.
91539         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91540         Likewise, for strtol and strtoimax.
91541
91542 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91543
91544         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91545         #defines strtoimax.  Also treat the other strto* functions
91546         like strtoimax.
91547
91548         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91549         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91550         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91551
91552 2001-09-26  Jim Meyering  <meyering@lucent.com>
91553
91554         Most macros in unlocked-io.h had the wrong number of arguments.
91555         * lib/gen-uio: New script.
91556         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91557         * lib/unlocked-io.hin: Remove file.
91558         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91559         rather than trying to embed it here.
91560         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91561         Reported by Padraig Brady.
91562
91563 2001-09-25  Volker Borchert  <bt@teknon.de>
91564
91565         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91566         `result'.
91567
91568 2001-09-24  Jim Meyering  <meyering@lucent.com>
91569
91570         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91571
91572 2001-09-23  Jim Meyering  <meyering@lucent.com>
91573
91574         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91575         instead of the mere test for existence of mntent.h.  The latter
91576         would get a false-positive on AIX 3.4 systems.
91577         In the outer getmntent if-block, don't die if neither of the getmntent
91578         tests succeeds.  Instead, just fall through and continue with the
91579         remaining tests.
91580
91581 2001-09-23  Jim Meyering  <meyering@lucent.com>
91582
91583         * lib/mountlist.c: Remove useless parentheses in #if directives.
91584         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91585         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91586
91587 2001-09-22  Jim Meyering  <meyering@lucent.com>
91588
91589         * m4/gettext.m4: New file.  From gettext.
91590         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91591         * m4/progtest.m4: Likewise
91592         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91593         * m4/glibc21.m4: Likewise.
91594
91595         * m4/libintl.m4: Remove.  No longer used.
91596
91597 2001-09-22  Jim Meyering  <meyering@lucent.com>
91598
91599         * lib/localcharset.c: Update from latest gettext.
91600         * lib/config.charset: Likewise.
91601
91602 2001-09-20  Jim Meyering  <meyering@lucent.com>
91603
91604         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91605         strtoimax.
91606         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91607         strtoumax.
91608
91609 2001-09-20  Jim Meyering  <meyering@lucent.com>
91610
91611         * lib/xstrtol.c (strtoimax): Guard declaration with
91612         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91613         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91614         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91615         (strtoumax): Likewise, for completeness (it wasn't necessary).
91616
91617 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91618
91619         * lib/strtoimax.c (HAVE_LONG_LONG):
91620         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91621         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91622         to work around bug in IBM C compiler.
91623
91624 2001-09-17  Jim Meyering  <meyering@lucent.com>
91625
91626         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91627         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91628         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91629         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91630         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91631         whenever the right hand side need not be expanded by the shell.
91632
91633 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91634
91635         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91636         library.  It's not correct, as some older glibcs are buggy.
91637         fnmatch wasn't fixed until glibc 2.2.
91638
91639         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91640         special shell magic here.
91641
91642 2001-09-16  Jim Meyering  <meyering@lucent.com>
91643
91644         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91645         * m4/jm-macros.m4: Require it.
91646
91647 2001-09-16  Jim Meyering  <meyering@lucent.com>
91648
91649         * lib/mkdir.c: New file.
91650
91651 2001-09-15  Jim Meyering  <meyering@lucent.com>
91652
91653         * m4/jm-macros.m4: Check for help2man.
91654
91655 2001-09-11  Jim Meyering  <meyering@lucent.com>
91656
91657         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91658         The body, by Paul Eggert, was moved here from configure.in.
91659         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91660
91661 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91662
91663         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91664         (jm_PREREQ): Use it.
91665
91666 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91667
91668         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91669         Use ssize_t, not int, to store result of readlink.
91670         Check for ssize_t overflow as well as size_t overflow,
91671         as POSIX says the result of readlink is implementation-defined
91672         when ssize_t overflows.
91673         Remove unnecessary cast to char*.
91674         Use free+malloc instead of realloc, as the storage doesn't need
91675         to be preserved and it's clearer and can be more efficient that way.
91676         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91677         * lib/xreadlink.h (xreadlink): Update prototype.
91678
91679 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91680
91681         * lib/xgetcwd.c: Revert some of the previous change; intead,
91682         fix the HAVE_GETCWD_NULL code to behave more like the
91683         !HAVE_GETCWD_NULL code used to.
91684
91685         Include "xalloc.h".
91686         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91687         invoke xalloc_die.
91688
91689 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91690
91691         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91692         sys/param.h, as pathmax.h includes them.
91693
91694 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91695
91696         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91697         (jm_PREREQ_XGETCWD): New macro.
91698
91699         * m4/getcwd.m4: New file.
91700
91701 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91702
91703         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91704         like the HAVE_GETCWD_NULL code.
91705         Include pathmax.h if not HAVE_GETCWD.
91706         Do not include xalloc.h.
91707         (INITIAL_BUFFER_SIZE): New symbol.
91708         Do not use xmalloc / xrealloc, since the caller is responsible for
91709         handling errors.  Preserve errno around `free' during failure.
91710         Do not overrun buffer when using getwd.
91711
91712 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91713
91714         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91715         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91716         getcwd (NULL, 0).
91717
91718 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91719
91720         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91721         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91722         spotted by Jim Meyering.
91723
91724 2001-09-03  Jim Meyering  <meyering@lucent.com>
91725
91726         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91727         failure.
91728
91729 2001-09-02  Jim Meyering  <meyering@lucent.com>
91730
91731         * lib/error.c: Update from GNU libc.
91732
91733 2001-09-01  Jim Meyering  <meyering@lucent.com>
91734
91735         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91736         Used by df.
91737
91738 2001-09-01  Jim Meyering  <meyering@lucent.com>
91739
91740         * lib/xreadlink.c: New file.
91741         * lib/xreadlink.h: New file.
91742         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91743         xreadlink.h.
91744
91745         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91746         doesn't conflict with sparc Solaris 7's definition in
91747         /usr/include/sys/int_types.h.
91748
91749         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91750         files.
91751         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91752         and strncasecmp as r-values.  Unixware didn't have declarations.
91753
91754 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91755
91756         * lib/xstrtol.h: Add copyright notice.
91757         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91758         LONGINT_INVALID_SUFFIX_CHAR.
91759
91760 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91761
91762         * lib/xstrtol.c (strtoimax): New decl.
91763
91764 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91765
91766         * lib/xgetcwd.c: Don't include pathmax.h.
91767         Include stdlib.h and unistd.h if available.
91768         Include xalloc.h.
91769         (xmalloc, xstrdup, free): Remove decls.
91770         (xgetcwd): Don't assume sizes fit in unsigned.
91771         Check for overflow when computing sizes.
91772         Simplify reallocation code.
91773
91774 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91775
91776         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91777         a directory's st_size can have an arbitrary value, so the old
91778         usage could waste an arbitrary amount of memory.  All uses
91779         changed.
91780         * lib/savedir.h: Update prototype.
91781
91782 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91783
91784         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91785
91786         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91787         old strtoimax.c.
91788
91789         Also, make the following further changes to make this file's
91790         configuration more similar to that of strtol.c:
91791         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91792         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91793         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91794         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91795         changed to signed values.
91796
91797         And make the following changes as well:
91798         Fix copyright notice, as 1999 was missing.
91799         (verify): New macro.
91800         (strtoimax): Check sizes at compile-time, not run-time.
91801         Prefer strtol to strtoll if both work.
91802         (main): Remove; it was not that useful and was a pain to maintain.
91803
91804         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91805
91806 2001-08-31  Jim Meyering  <meyering@lucent.com>
91807
91808         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91809         Use an initial, malloc'd, buffer of length 128 rather than
91810         a statically allocated one of length 1024.
91811
91812 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91813
91814         Simplify code, partly by assuming autoconf 2.52 semantics.
91815
91816         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91817
91818         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91819         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91820         All uses removed.
91821         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91822         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91823         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91824         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91825         jm_AC_HEADER_INTTYPES_H.
91826         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91827
91828         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91829
91830         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91831         Quote first arg of AC_DEFUN.
91832         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91833         since they are needed to parse the include file even if we need
91834         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91835         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91836         but with opposite signedness.
91837
91838 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91839
91840         Merge 'exclude' changes from tar 1.13.22.
91841         This fixes one or two unlikely storage allocation overflow bugs,
91842         but doesn't change user-visible behavior otherwise.
91843
91844 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91845
91846         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91847         (jm_PREREQ_EXCLUDE): New macro.
91848
91849 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91850
91851         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91852         tm to be declared.
91853
91854 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91855
91856         * lib/hash.c: Remove '2001' from copyright notice.
91857
91858 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91859
91860         * lib/full-write.h: New file.
91861         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91862         * lib/full-write.c: Correct credits, as cccp.c no longer
91863         exists and anyway it was so heavily changed from the old cccp
91864         code as to be unrecognizable.  Include full-write.h.
91865         (full_write): Return size_t, with short writes meaning failure.
91866         All callers changed.  This fixes a bug with large buffers
91867         on 64-bit hosts.
91868         * lib/utime.c: Include full-write.h.
91869
91870 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91871
91872         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91873         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91874         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91875         Include if available.
91876         (<xalloc.h>): Include
91877         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91878         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91879         collide with FNM macros.
91880         (struct patopts): New struct.
91881         (struct exclude): Use it, as exclude patterns now come with options.
91882         (new_exclude): Support above changes.
91883         (new_exclude, add_exclude_file):
91884         Initial size must now be a power of two to simplify overflow checking.
91885         (free_exclude, fnmatch_no_wildcards): New function.
91886         (excluded_filename): No longer requires options arg, as the options
91887         are determined by add_exclude.  Now returns bool, not int.
91888         (excluded_filename, add_exclude):
91889         Add support for the fancy new exclusion options.
91890         (add_exclude, add_exclude_file): Now takes int options arg.
91891         Check for arithmetic overflow when computing sizes.
91892         (add_exclude_file): xrealloc might modify errno, so don't
91893         realloc until after errno might be used.
91894
91895         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91896         New macros.
91897         (free_exclude): New decl.
91898         (add_exclude, add_exclude_file): Now takes int options arg.
91899         (excluded_filename): No longer requires options arg, as the options
91900         are determined by add_exclude.  Now returns bool, not int.
91901
91902 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91903
91904         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91905
91906 2001-08-27  Jim Meyering  <meyering@lucent.com>
91907
91908         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91909
91910         * lib/version-etc.c (N_): Remove definition.
91911         Revert most of last change.
91912         Instead, simply don't mark the `Copyright...' string for translation.
91913         Based on advice from Paul Eggert.
91914
91915         * lib/strtoxmax.c: Tweak comment.
91916
91917 2001-08-26  Jim Meyering  <meyering@lucent.com>
91918
91919         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91920
91921         * m4/xstrtoimax.m4: New file.
91922         * m4/xstrtoumax.m4: Add comments explaining why we
91923         AC_REPLACE_FUNCS(strtol).
91924
91925 2001-08-26  Jim Meyering  <meyering@lucent.com>
91926
91927         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91928         of copyright with `%s' so translators don't get an untranslated
91929         message in 2002.
91930         (COPYRIGHT_YEAR): Define.
91931         (version_etc): Use fprintf rather than fputs.
91932         Suggestion from Ulrich Drepper.
91933
91934         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91935
91936         * lib/strtoll.c: New file, from GNU libc.
91937         * lib/xstrtoimax.c: New file.
91938
91939         * lib/xstrtol.h: Add xstrtoimax.
91940         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91941         * lib/strtoimax.c: New file.  Likewise, but first define
91942         STRTOUXMAX_SIGNED.
91943
91944         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91945         ...
91946         * lib/strtoxmax.c: ... then renamed to this.
91947
91948 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91949
91950         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91951         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91952         (jm_AC_TYPE_INTMAX_T): New macro.
91953         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91954
91955         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91956
91957         * m4/longlong.m4: Renamed from ulonglong.m4.
91958         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91959         * m4/uintmax_t.m4: Removed.
91960
91961 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91962
91963         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91964         Port to Solaris 8, where 'sed' requires a space after the 'r'
91965         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91966         Redirect output to $tmp just once.
91967
91968 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91969
91970         * lib/addext.c (<errno.h>): Include.
91971         (errno): Declare if not defined.
91972         (addext): Work correctly when pathconf returns -1 and leaves
91973         errno alone because there is no limit.  Also, work even if
91974         pathconf returns a value greater than SIZE_MAX.
91975
91976 2001-08-12  Jim Meyering  <meyering@lucent.com>
91977
91978         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91979         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91980         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91981         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91982         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91983         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91984         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91985         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91986         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91987         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91988         utime.m4, utimes.m4, xstrtoumax.m4:
91989         Quote the first argument in each use of AC_DEFUN.
91990
91991 2001-08-12  Jim Meyering  <meyering@lucent.com>
91992
91993         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91994         Simply `return getcwd (NULL, 0);'.
91995         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91996         Use 1300 as initial value for length, not PATH_MAX.
91997
91998         * lib/pathmax.h: Clean up cpp syntax.
91999
92000 2001-08-12  Jim Meyering  <meyering@lucent.com>
92001
92002         * lib/gettimeofday.c: New file.
92003         * lib/gtod.h: New file.
92004         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92005
92006 2001-08-05  Jim Meyering  <meyering@lucent.com>
92007
92008         * m4/jm-macros.m4: Require autoconf-2.52.
92009
92010 2001-08-04  Jim Meyering  <meyering@lucent.com>
92011
92012         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92013         stmt, to get in sync with glibc.
92014
92015 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92016
92017         The following changes are from gettext 0.10.39 as maintained by
92018         Bruno Haible.
92019
92020         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92021         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92022         with inverted sense.  All uses changed.
92023
92024         * lib/mbswidth.c: Don't include <limits.h>.
92025         Include <stdlib.h> and <string.h> unconditionally.
92026         (iswcntrl, mbsinit, ISCNTRL): New macros.
92027         (mbsnwidth): Use K&R style function declarations.
92028         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92029         can optimize it when MB_CUR_MAX == 1.
92030         The width of control characters is zero, not 1.
92031
92032 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92033
92034         The following changes are from gettext 0.10.39 as maintained by
92035         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92036
92037         * m4/codeset.m4: Upgrade to serial AM1.
92038         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92039         all uses changed.  Quote first arg of AC_DEFUN.
92040         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92041
92042         * m4/iconv.m4: Upgrade to serial AM2.
92043         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92044         Add --with-libconv-prefix.
92045         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92046         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92047         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92048         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92049         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92050
92051         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92052         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92053         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92054         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92055         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92056         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92057         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92058         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92059         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92060
92061         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92062         string.h any more.
92063
92064         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92065         not the default value.
92066
92067         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92068         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92069         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92070         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92071         Also check for iswcntrl, used for wcwidth fallback.
92072         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92073         to Autoconf 2.13.
92074
92075 2001-08-03  Jim Meyering  <meyering@lucent.com>
92076
92077         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92078         as it was in the original.  Reported by Paul Eggert.
92079
92080 2001-07-16  Jim Meyering  <meyering@lucent.com>
92081
92082         * m4/gettimeofday.m4: New file.
92083         Prompted by a report from Bernhard Baehr.
92084
92085 2001-07-15  Jim Meyering  <meyering@lucent.com>
92086
92087         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92088         stuff. Now it's in ../Makefile.cfg.
92089
92090 2001-07-15  Jim Meyering  <meyering@lucent.com>
92091
92092         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92093         (BUILT_SOURCES): Add unlocked-io.h.
92094         (io_functions): Define.
92095         (unlocked-io.h): New rule.
92096         (DISTCLEANFILES): Add unlocked-io.h.
92097         (all-local): Depend on unlocked-io.h, to ensure it is created.
92098
92099         * lib/unlocked-io.hin: New file
92100
92101         * lib/regex.c: Update from glibc.
92102
92103 2001-07-05  Jim Meyering  <meyering@lucent.com>
92104
92105         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92106         recommendation.
92107         (libfetish_a_SOURCES): Put all .h files here instead.
92108         Remove a thus-exposed (better checks in automake) duplicate and
92109         two unnecessary .h files.
92110
92111 2001-07-04  Jim Meyering  <meyering@lucent.com>
92112
92113         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92114         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92115         distcheck failure.
92116
92117 2001-07-02  Jim Meyering  <meyering@lucent.com>
92118
92119         The following changes were prompted by suggestions from Bruno Haible.
92120
92121         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92122         is now generated.
92123         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92124         definition of EXTRA_DIST.
92125         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92126         ensure that the generated file is created/updated whenever the list
92127         of $(unlocked_functions) is changed.
92128         (jm-glibc-io.m4): New rule.
92129         (unlocked-io.h): New rule -- currently unused.
92130
92131 2001-06-24  Jim Meyering  <meyering@lucent.com>
92132
92133         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92134         unmatched right bracket, rather than kludging it with an extra,
92135         falsely-matching quote in a comment.  Patch by Akim Demaille.
92136
92137 2001-06-11  Jim Meyering  <meyering@lucent.com>
92138
92139         * lib/regex.c: Update from GNU libc.
92140
92141 2001-05-27  Jim Meyering  <meyering@lucent.com>
92142
92143         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92144         Check for ut_type in struct utmp.
92145
92146 2001-05-27  Jim Meyering  <meyering@lucent.com>
92147
92148         * lib/readutmp.h (UT_TYPE): Define.
92149
92150 2001-05-24  Jim Meyering  <meyering@lucent.com>
92151
92152         * lib/argmatch.c: Include "quote.h".
92153         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92154         quote function.  Reported by Göran Uddeborg.
92155
92156 2001-05-22  Jim Meyering  <meyering@lucent.com>
92157
92158         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92159         now that we use the package-supplied version unconditionally.
92160         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92161
92162 2001-05-21  Jim Meyering  <meyering@lucent.com>
92163
92164         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92165         shell syntax errors.
92166
92167 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92168
92169         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92170
92171 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92172
92173         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92174         Don't bother to check library strftime, since
92175         we'll be using our own my_strftime function anyway.
92176         Define my_strftime instead of strftime.
92177
92178 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92179
92180         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92181         which is not yet declared.
92182
92183 2001-05-15  Jim Meyering  <meyering@lucent.com>
92184
92185         * m4/regex.m4: Use proper quoting so brackets appear in the test
92186         program.
92187         Reported by, and with help from, Bruno Haible.
92188
92189 2001-05-13  Jim Meyering  <meyering@lucent.com>
92190
92191         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92192         undefined.
92193
92194 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92195
92196         dirname code cleanup.  base_name now behaves more compatibly
92197         with POSIX basename when given file names that have trailing
92198         slashes, and similarly for dir_name.  Add new primitives
92199         base_len and dir_len.  Put the directory-name-related decls
92200         into dirname.h.
92201
92202         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92203         * lib/backupfile.c (base_name): Likewise.
92204         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92205         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92206         * lib/makepath.c (strip_trailing_slashes): Likewise.
92207         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92208         ISSLASH): Likewise.
92209         * lib/rename.c (strip_trailing_slashes): Likewise.
92210         * lib/same.c (base_name): Likewise.
92211         * lib/stripslash.c (ISSLASH): Likewise.
92212
92213         * lib/addext.c: Include <dirname.h> after size_t is defined.
92214         * lib/backupfile.c: Likewise.
92215
92216         * lib/addext.c (addext): Use base_len to trim redundant
92217         trailing slashes instead of doing it ourselves.
92218         But do not trim the last slash if it is not redundant.
92219
92220         * lib/backupfile.c (find_backup_file_name,
92221         max_backup_version): Use base_len instead of rolling it ourselves.
92222         Handle the case of "" and (on DOS) "C:" correctly.
92223
92224         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92225         needed. Include <string.h>, <dirname.h>.
92226         (base_name): Allow file names ending in slashes, other than names
92227         that are all slashes.  In this case, return the basename followed
92228         by the slashes.  This is more general, and can be used in places
92229         where the original base_name purposely had an assertion failure.
92230         (base_len): New function.
92231
92232         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92233         Do not include <assert.h>; no longer needed.
92234         Include xalloc.h.
92235         (memrchr): Remove decl.
92236         (dir_name_r): Remove.
92237         (dir_len): Renamed from dirlen.  All callers changed.
92238         Rewrite in terms of base_name, for simplicity and consistency.
92239         (dir_name): Never return NULL.  All callers changed.
92240         Do not include <stdlib.h> in test program; no longer needed.
92241         return 0; is fine for test program.
92242
92243         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92244         New macros.
92245         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92246
92247         * lib/path-concat.c (path_concat): Use base_len to compute
92248         base length, not strlen; this means we cannot rely on memcpy
92249         to null-terminate.
92250
92251         * lib/same.c (STREQ): Remove.
92252         (same_name): Handle the case where the basename ends in trailing '/'.
92253
92254         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92255         a slash was stripped.  Do not strip the last slash after a
92256         file system prefix.
92257
92258 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92259
92260         * lib/Makefile.am (libfetish_a_SOURCES):
92261         Add strftime.c, since we now compile it on all hosts.
92262
92263         * lib/strftime.c (my_strftime):
92264         Define to nstrftime if emacs, but only if my_strftime is not defined.
92265         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92266         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92267         Add one more extra argument: a nanoseconds value.
92268         All uses changed.
92269         (ns): New macro.
92270         (my_strftime function): Add %N format.
92271         (emacs_strftimeu): Renamed from emacs_strftime,
92272         with extra ut argument.
92273
92274 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92275
92276         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92277
92278 2001-04-21  Jim Meyering  <meyering@lucent.com>
92279
92280         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92281         doesn't interfere.
92282
92283 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92284
92285         * m4/ftruncate.m4: Check for chsize.
92286         Link with ftruncate.o unconditionally if ftruncate is missing.
92287         This was required when cross-compiling to i586-mingw32msvc.
92288
92289 2001-04-08  Jim Meyering  <meyering@lucent.com>
92290
92291         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92292         recomputed; that's necessary when the offset spans a DST transition.
92293         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92294
92295 2001-04-02  Jim Meyering  <meyering@lucent.com>
92296
92297         * lib/regex.h, regex.c: Update from GNU libc.
92298
92299 2001-03-24  Jim Meyering  <meyering@lucent.com>
92300
92301         * m4/jm-macros.m4: Require autoconf-2.49d.
92302
92303 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92304
92305         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92306
92307 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92308
92309         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92310
92311 2001-03-17  Jim Meyering  <meyering@lucent.com>
92312
92313         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92314         now that the version in autoconf is equivalent.
92315         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92316
92317         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92318         Suggestion from Akim Demaille.
92319
92320         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92321         (jm_PREREQ_TEMPNAME): New function.
92322
92323 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92324
92325         * lib/tempname.c (uint64_t): Define to uintmax_t if
92326         not defined, and if UINT64_MAX is not defined.
92327         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92328         Reported by John David Anglin.
92329
92330 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92331
92332         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92333         resolve alias if codeset is empty.
92334         * lib/config.charset (BeOS): Use wildcard syntax.
92335
92336 2001-03-13  Jim Meyering  <meyering@lucent.com>
92337
92338         * lib/path-concat.c (path_concat)
92339         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92340         concatenating e.g., `C:' and `foo'.
92341         From Bruno Haible.
92342
92343 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92344
92345         * lib/localcharset.c (locale_charset): Don't use
92346         setlocale(LC_CTYPE,NULL). Don't return NULL.
92347         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92348
92349 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92350
92351         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92352         support for DOS/DJGPP.
92353
92354 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92355
92356         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92357         lacks mkstemp.  Compile our own tempname.c if we compile our own
92358         mkstemp.c, as mkstemp relies on tempname.
92359
92360 2001-03-01  Jim Meyering  <meyering@lucent.com>
92361
92362         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92363         AH_VERBATIM really does output its argument verbatim.
92364
92365 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92366
92367         * lib/Makefile.am (libfetish_a_SOURCES):
92368         Add dup-safer.c, fopen-safer.c.
92369         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92370
92371         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92372         * lib/unistd-safer.h: New files.
92373
92374 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92375
92376         The mkstemp replacement is taken from glibc 2.2.2, with some
92377         portability fixes for use outside glibc, as follows:
92378
92379         * lib/tempname.c (struct_stat64): New macro.
92380         (direxists, __gen_tempname): Use it.
92381         This avoids a portability problem with Solaris 8.
92382
92383         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92384         (<stddef.h>, <stdint.h>, <string.h>):
92385         Include only if STDC_HEADERS || _LIBC.
92386         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92387         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92388         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92389         (__set_errno): Define this macro if <errno.h> doesn't.
92390         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92391         Define these macros if <stdio.h> doesn't.
92392         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92393         Define these macros if <sys/stat.h>
92394         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92395         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92396         __xstat64): Define if not _LIBC.
92397         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92398         (__gen_tempname): Invoke gettimeofday only if
92399         HAVE_GETTIMEOFDAY || _LIBC;
92400         otherwise, fall back on plain "time".
92401         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92402
92403         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92404
92405         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92406
92407 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92408
92409         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92410
92411 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92412
92413         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92414         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92415         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92416         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92417
92418 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92419
92420         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92421         Remove workaround macros for hosts that have mbrtowc but not
92422         mbstate_t, as we now insist on proper declarations for both
92423         before using mbrtowc.
92424
92425 2001-02-17  Jim Meyering  <meyering@lucent.com>
92426
92427         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92428         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92429         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92430         UnixWare 7.1.1.
92431
92432         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92433         rather than AC_CACHE_VAL.
92434
92435 2001-02-17  Jim Meyering  <meyering@lucent.com>
92436
92437         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92438         around included file name.
92439
92440         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92441
92442         * lib/strftime.c: Update from GNU libc (the only changes were to
92443         comments).
92444
92445 2001-02-17  Jim Meyering  <meyering@lucent.com>
92446
92447         * lib/regex.c: Update from libc.
92448
92449 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92450
92451         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92452         clash.
92453
92454 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92455
92456         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92457         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92458         Reported by Mark Hounschell via Paul Eggert.
92459
92460 2001-02-07  Jim Meyering  <meyering@lucent.com>
92461
92462         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92463
92464 2001-02-05  Jim Meyering  <meyering@lucent.com>
92465
92466         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92467         it includes the patch required for `large file' support with at least
92468         HP-UX's 10.20 /bin/cc.
92469
92470 2001-02-03  Jim Meyering  <meyering@lucent.com>
92471
92472         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92473         AS_IF, now that it works once again (mysteriously).
92474         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92475
92476 2001-01-30  Jim Meyering  <meyering@lucent.com>
92477
92478         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92479         * m4/chown.m4: Rename conftestchown to conftest.chown.
92480         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92481         s/conftestdir2/conftest.d2/.
92482         * m4/utimes.m4: s/conftestdata/conftest.data/
92483         Inspired by Pavel Roskin's change in autoconf.
92484
92485 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92486
92487         * lib/config.charset: Update for FreeBSD 4.2.
92488
92489 2001-01-27  Jim Meyering  <meyering@lucent.com>
92490
92491         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92492         a use of AS_IF.
92493         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92494
92495 2001-01-26  Jim Meyering  <meyering@lucent.com>
92496
92497         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92498         quotearg.c includes it.
92499
92500 2001-01-26  Jim Meyering  <meyering@lucent.com>
92501
92502         * lib/quotearg.c: Include stddef.h.
92503         * lib/quote.c: Include stddef.h.
92504         Reported by Axel Kittenberger.
92505
92506         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92507         line in double quotes so that it evokes a better diagnostic.
92508         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92509         Reported by Axel Kittenberger.
92510
92511 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92512
92513         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92514         as if it was a `charset'.
92515
92516 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92517
92518         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92519         has const.
92520
92521 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92522
92523         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92524         to avoid a warning.  Add back 'const' to inptr.
92525
92526 2001-01-20  Jim Meyering  <meyering@lucent.com>
92527
92528         Be sure that headers are checked before used in code compiled
92529         for the type checks.
92530         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92531         In place of that, invoke jm_CHECK_ALL_TYPES.
92532         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92533         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92534         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92535         The check for ssize_t was mistakenly run before the test for unistd.h.
92536
92537         The configure-time check for stdbool.h was missing.
92538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92539         (jm_PREREQ_HASH): New function.
92540
92541 2001-01-17  Jim Meyering  <meyering@lucent.com>
92542
92543         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92544         for autoconf-2.49c.
92545         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92546
92547 2001-01-16  Jim Meyering  <meyering@lucent.com>
92548
92549         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92550         From Bruno Haible.
92551
92552 2001-01-14  Jim Meyering  <meyering@lucent.com>
92553
92554         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92555         foo and bar.  Create conftestdir/ in the script, not in the C code.
92556         Remove directories in the script, not in the C code.
92557         Remove conftestdir{,2} before trying to create the directory.
92558         Make the entire configure script fail if the mkdir fails.
92559
92560 2001-01-14  Jim Meyering  <meyering@lucent.com>
92561
92562         * lib/rename.c: New file.  From Volker Borchert.
92563         Include stdlib.h, string.h or strings.h, and xalloc.h.
92564         Use strip_trailing_slashes rather than open-coding it.
92565
92566 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92567
92568         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92569
92570 2001-01-03  Jim Meyering  <meyering@lucent.com>
92571
92572         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92573         of local `inptr' to avoid warning with some system declarations of
92574         iconv.
92575
92576 2001-01-02  Volker Borchert  <bt@teknon.de>
92577
92578         * m4/rename.m4: New file.
92579         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92580
92581 2001-01-01  Jim Meyering  <meyering@lucent.com>
92582
92583         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92584         even on systems with utmpx.h.  It's necessary for the declaration of
92585         utmp's ut_user member.  Reported by Andreas Jaeger.
92586
92587         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92588         available. They are required for the declarations of getgrgid and
92589         getpwuid resp.
92590         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92591         Reported by Andreas Jaeger.
92592
92593 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92594
92595         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92596         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92597         so `make install' also works in VPATH builds.
92598
92599 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92600
92601         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92602         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92603         can be used in subdirectories.
92604
92605 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92606
92607         * lib/modechange.c: Do not assume that mode_t uses the
92608         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92609         the other-execute bit of FOO even if S_IXOTH != 1.
92610
92611         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92612         WOTH, XOTH, ALLM): New macros.
92613         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92614          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92615         Use them.
92616         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92617         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92618         (mode_compile):
92619         No need to use uintmax_t; unsigned long is long enough.
92620         Don't bother to get suffix since we don't use it.
92621
92622 2000-12-26  Jim Meyering  <meyering@lucent.com>
92623
92624         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92625         better with autoheader.
92626
92627 2000-12-24  Jim Meyering  <meyering@lucent.com>
92628
92629         * lib/hash.c (is_prime): Return explicit boolean values.
92630         (hash_get_first): Return NULL to appease Irix5.6's 89.
92631         Reported by Nelson Beebe.
92632
92633 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92634
92635         * lib/localcharset.c (locale_charset): Add support for Win32.
92636
92637 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92638
92639         * lib/physmem.h, lib/physmem.c: New files.
92640
92641         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92642         (noinst_HEADERS): Add physmem.h.
92643
92644         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92645         't' for compatibility with Solaris 8 sort.
92646
92647 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92648
92649         * lib/config.charset: Add support for BeOS.
92650
92651 2000-12-17  Jim Meyering  <meyering@lucent.com>
92652
92653         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92654         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92655
92656 2000-12-16  Jim Meyering  <meyering@lucent.com>
92657
92658         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92659         N and M) would have treated it like `chown N:N FILE'.
92660
92661         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92662
92663 2000-12-16  Jim Meyering  <meyering@lucent.com>
92664
92665         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92666         SHELLS_FILE to a file name that's useful on djgpp systems.
92667         Include stdlib.h.
92668         (ADDITIONAL_DEFAULT_SHELLS): Define.
92669         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92670         Based mostly on a patch from Prashant TR.
92671
92672 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92673
92674         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92675         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92676         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92677
92678 2000-12-08  Andreas Schwab  <schwab@suse.de>
92679
92680         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92681         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92682
92683 2000-12-07  Jim Meyering  <meyering@lucent.com>
92684
92685         * lib/stripslash.c (ISSLASH): Define.
92686         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92687         `/'.
92688         From Prashant TR.
92689
92690         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92691         (dir_name_r): Declare this function as static.
92692         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92693         manifest itself on a name containing a mix of slashes and
92694         backslashes.
92695         Make this function work with names starting with a DOS-style
92696         drive letter and colon prefix.
92697         (dir_name): Append `.' if necessary.
92698         Based mostly on patches from Prashant TR and Eli Zaretskii.
92699
92700         * lib/dirname.h (dir_name_r): Remove prototype.
92701
92702 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92703
92704         * m4/off_t-format.m4: Remove this file.
92705         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92706
92707 2000-12-06  Jim Meyering  <meyering@lucent.com>
92708
92709         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92710         replacement strtoull, we may well need the replacement strtoul, too.
92711         Check for declarations of strtoul and strtoull.
92712         Check for strtol.  Mainly as a cue to cause automake to include
92713         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92714         Check for limits.h -- strtol.c needs it.
92715
92716 2000-12-05  Jim Meyering  <meyering@lucent.com>
92717
92718         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92719
92720 2000-12-04  Jim Meyering  <meyering@lucent.com>
92721
92722         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92723         Also include memory.h, stdlib.h, unistd.h if appropriate.
92724         Reported by Andreas Jaeger (conflicting declaration of malloc).
92725
92726 2000-12-02  Jim Meyering  <meyering@lucent.com>
92727
92728         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92729         * m4/jm-macros.m4 (jm_MACROS): require it.
92730
92731 2000-12-02  Jim Meyering  <meyering@lucent.com>
92732
92733         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92734
92735 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92736
92737         * lib/memrchr.c: Include <config.h> before any system include file.
92738
92739 2000-11-30  Jim Meyering  <meyering@lucent.com>
92740
92741         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92742
92743 2000-11-30  Jim Meyering  <meyering@lucent.com>
92744
92745         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92746
92747 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92748
92749         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92750
92751 2000-11-26  Jim Meyering  <meyering@lucent.com>
92752
92753         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92754
92755 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92756
92757         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92758         size of (size_t) -1; it's not portable.
92759
92760 2000-11-17  Jim Meyering  <meyering@lucent.com>
92761
92762         * lib/strstr.c: Update from GNU libc.
92763
92764 2000-11-17  Akim Demaille  <akim@epita.fr>
92765
92766         * lib/obstack.h: Formatting changes.
92767         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92768         prevent type checking.
92769         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92770         cast the value to (void *): assigning a `foo *' to a `void *'
92771         variable is valid.
92772         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92773
92774 2000-11-16  Jim Meyering  <meyering@lucent.com>
92775
92776         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92777
92778 2000-11-11  Jim Meyering  <meyering@lucent.com>
92779
92780         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92781
92782 2000-11-10  Jim Meyering  <meyering@lucent.com>
92783
92784         * lib/obstack.h: Update from GNU libc.
92785         * lib/obstack.c: Likewise.
92786
92787 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92788
92789         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92790
92791 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92792
92793         * lib/getusershell.c (setusershell): Use rewind rather than
92794         fseek/fseeko, to avoid configuration hassles with fseeko.
92795         Don't bother opening SHELLS_FILE if shellstream is NULL;
92796         it's not necessary.
92797
92798 2000-11-05  Jim Meyering  <meyering@lucent.com>
92799
92800         * lib/makepath.h (make_dir): Declare.
92801         * lib/makepath.c (make_dir): Remove `static' attribute.
92802         Tweak a comment.
92803
92804 2000-11-04  Jim Meyering  <meyering@lucent.com>
92805
92806         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92807
92808 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92809
92810         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92811         last one in a bucket, advance to the next bucket.
92812
92813 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92814
92815         * lib/fnmatch.c: Do not comment out all the code if we are using
92816         the GNU C library, because in some cases we are replacing buggy
92817         code in the GNU C library itself.
92818
92819 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92820
92821         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92822         (regex_compile): Catch bogus \(\1\).
92823
92824 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92825
92826         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92827         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92828         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92829
92830 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92831
92832         * lib/error.h, getline.h, modechange.h:
92833         Remove "2000" from Copyright line, as the file hasn't been
92834         changed this year other than in the copyright notice.
92835
92836         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92837         was changed this year.
92838
92839 2000-10-29  Jim Meyering  <meyering@lucent.com>
92840
92841         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92842         renaming.
92843         * m4/ls-mntd-fs.m4: Likewise
92844
92845 2000-10-29  Jim Meyering  <meyering@lucent.com>
92846
92847         * lib/xstat.in: Fix grammar in comment.
92848
92849 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92850
92851         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92852         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92853         doesn't define __restrict_arr.
92854
92855 2000-10-28  Jim Meyering  <meyering@lucent.com>
92856
92857         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92858         (jm_PREREQ_MEMCHR): New function.
92859
92860 2000-10-28  Jim Meyering  <meyering@lucent.com>
92861
92862         * lib/memchr.c: Update from libc.
92863         Adjust for portability:
92864         [HAVE_STDLIB_H]: Include stdlib.h.
92865         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92866         Undef __memchr, too.
92867         [!weak_alias]: Define __memchr to memchr.
92868
92869         * lib/regex.c: Update from libc.
92870         * lib/regex.h: Likewise.
92871         * lib/getopt1.c: Likewise.
92872         * lib/memcmp.c: Likewise.
92873
92874         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92875         Avoid using fseek, when possible -- it's broken by design.
92876         Patch by Ulrich Drepper.
92877
92878 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92879
92880         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92881         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92882         Giving in to popular pressure to shut up the compiler with casts.
92883
92884 2000-10-26  Jim Meyering  <meyering@lucent.com>
92885
92886         * lib/strftime.c: Update from libc.
92887
92888 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92889
92890         * regex.c: More `unsigned char' -> `re_char' changes.
92891         Also change several `int' into `re_wchar_t'.
92892         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92893         (PUSH_FAILURE_POINTER): Don't cast any more.
92894         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92895         We want GCC to complain, since this piece of code makes
92896         re_match non-reentrant, which *should* be fixed.
92897         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92898         (EXTEND_BUFFER): Use RETALLOC.
92899         (SET_LIST_BIT): Don't cast.
92900         (re_wchar_t): New type.
92901         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92902         that those two functions will always properly return.
92903         (IMMEDIATE_QUIT_CHECK): Cast to void.
92904         (analyse_first): Use recursion rather than an explicit stack.
92905         (re_compile_fastmap): Can't fail anymore.
92906         (re_search_2): Don't check re_compile_fastmap for failure.
92907         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92908         Now also sets the new value (passed in a new argument).
92909         (re_match_2_internal): Use it.
92910         Also, use a new var `reg' of type size_t when looping through regs
92911         rather than reuse the inappropriate `mcnt'.
92912
92913 2000-10-25  Jim Meyering  <meyering@lucent.com>
92914
92915         * lib/obstack.c: Update from libc.
92916
92917 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92918
92919         * regex.c (regex_compile): Change the way of handling a range from
92920         a char less than 256 to a char not less than 256.
92921
92922 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92923
92924         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92925         NT-Emacs only.
92926         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92927         so that re_search functions only quit when callers expect them to.
92928
92929 2000-10-23  Jim Meyering  <meyering@lucent.com>
92930
92931         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92932         wrong.  That set_locale call must not have any side effects.
92933         From Paul Eggert.
92934
92935 2000-10-22  Jim Meyering  <meyering@lucent.com>
92936
92937         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92938         [CYCLIC]: Remove now-unused definition.
92939
92940         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92941         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92942         Suggestion from Ulrich Drepper.
92943
92944 2000-10-21  Jim Meyering  <meyering@lucent.com>
92945
92946         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92947         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92948         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92949
92950 2000-10-21  Jim Meyering  <meyering@lucent.com>
92951
92952         * lib/dirname.c (memrchr): Declare if necessary.
92953         (dir_name): Remove the restriction that there be no
92954         trailing slashes.  Now, this code skips past them, effectively
92955         ignoring them.
92956         [TEST_DIRNAME] (main): New unit tests.
92957
92958         * lib/memrchr.c: New file from GNU libc.
92959         Undef __memrchr, too.
92960         [!weak_alias]: Define __memrchr to memrchr.
92961         Guard weak_alias use with `#ifdef weak_alias'.
92962
92963 2000-10-21  Jim Meyering  <meyering@lucent.com>
92964
92965         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92966         (dir_name): Use dir_name_r.
92967         * lib/dirname.h (dir_name_r): Declare it.
92968
92969 2000-10-17  Jim Meyering  <meyering@lucent.com>
92970
92971         * lib/quote.h (PARAMS): Define and use.
92972         Reported by Akim Demaille.
92973
92974         * lib/getopt.c: Update from libc.
92975
92976 2000-10-16  Jim Meyering  <meyering@lucent.com>
92977
92978         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92979         setlocale.
92980         From Jan Fedak.
92981
92982 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92983
92984         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92985
92986 2000-09-25  Jim Meyering  <meyering@lucent.com>
92987
92988         * lib/md5.h (rol): Define (from GnuPG).
92989
92990         * lib/sha.c: Give credit (GnuPG) where due.
92991         (M): Use rol rather than open-coding it.
92992         Add a FIXME comment.
92993
92994 2000-09-21  Jim Meyering  <meyering@lucent.com>
92995
92996         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92997         Reported by Michael Stone.
92998
92999 2000-09-20  Jim Meyering  <meyering@lucent.com>
93000
93001         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93002         (noinst_HEADERS): Add sha.h.
93003         Based on code from Scott G. Miller and from GnuPG.
93004
93005 2000-09-18  Jim Meyering  <meyering@lucent.com>
93006
93007         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93008         LIBS. Otherwise, everyone ends up linking with -lelf for some
93009         configurations.
93010         Reported by Mike Stone.
93011
93012 2000-09-15  Jim Meyering  <meyering@lucent.com>
93013
93014         * lib/regex.c: Update from libc.
93015
93016 2000-09-10  Jim Meyering  <meyering@lucent.com>
93017
93018         * lib/getopt.c (_getopt_internal): Update from glibc.
93019
93020 2000-09-09  Jim Meyering  <meyering@lucent.com>
93021
93022         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93023         think it should be used as a general replacement for isascii.
93024         * lib/fnmatch.c: Likewise.
93025         * lib/mbswidth.c: Likewise
93026         * lib/regex.c: Likewise.
93027
93028         Don't use atoi.
93029         * lib/userspec.c: Include sys/param.h and limits.h.
93030         Include xstrtol.h.
93031         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93032         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93033         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93034         UID, GID.  Check range.
93035
93036 2000-09-06  Jim Meyering  <meyering@lucent.com>
93037
93038         * lib/getopt.c (_getopt_internal): Update from glibc.
93039
93040 2000-08-30  Jim Meyering  <meyering@lucent.com>
93041
93042         * lib/strftime.c: Merge in changes from GNU libc.
93043
93044 2000-08-26  Jim Meyering  <meyering@lucent.com>
93045
93046         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93047         * m4/fpending.m4: New file.
93048
93049 2000-08-26  Jim Meyering  <meyering@lucent.com>
93050
93051         * lib/closeout.c: Include "__fpending.h".
93052         (close_stdout_status): Return right away if there's nothing to flush.
93053
93054         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93055         * lib/__fpending.c: New file.
93056         * lib/__fpending.h: New file.
93057
93058 2000-08-20  Jim Meyering  <meyering@lucent.com>
93059
93060         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93061         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93062         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93063
93064 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93065
93066         Improve fileutils installation on systems where running
93067         programs (like install) can't be unlinked.
93068         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93069         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93070
93071 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93072
93073         Standardize on "memory exhausted" instead of "Memory exhausted"
93074         or "virtual memory exhausted".
93075         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93076         "virtual memory exhausted".
93077         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93078         our own message.
93079         * lib/userspec.c (parse_user_spec): Likewise.
93080         * lib/bumpalloc.h: comment fix
93081         * lib/same.c, userspec.c: Include xalloc.h.
93082
93083         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93084         not char *const and pointing to a constant array.
93085         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93086         (xrealloc): Comment fix.
93087
93088         * lib/userspec.c (parse_user_spec):
93089         Don't translate a message until just before returning,
93090         to avoid unnecessary translation.
93091
93092 2000-08-07  Jim Meyering  <meyering@lucent.com>
93093
93094         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93095         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93096         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93097         getgroups.c, gethostname.c, getopt.h, group-member.c,
93098         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93099         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93100         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93101         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93102         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93103         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93104         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93105         yesno.c: Back out Copyright date changes for each file with no change
93106         this year.  This eases coordination with other programs using the same
93107         source code modules.  From Paul Eggert.
93108
93109 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93110
93111         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93112         not char, for compatibility with glibc 2.1.3 strftime.c.
93113
93114 2000-08-03  Greg McGary  <greg@mcgary.org>
93115
93116         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93117         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93118         (EXTEND_BUFFER): Use them.
93119
93120 2000-08-01  Jim Meyering  <meyering@lucent.com>
93121
93122         * lib/dirname.c (ISSLASH): Define.
93123         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93124         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93125         both `\' and `/' may be use as path separators.
93126         Based on a patch from Prashant TR.
93127
93128 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93129
93130         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93131         slot vector a constant, since it might get modified.
93132
93133 2000-07-31  Jim Meyering  <meyering@lucent.com>
93134
93135         * lib/xmalloc.c: Use `virtual memory exhausted', not
93136         `Memory exhausted'.
93137         * lib/obstack.c (print_and_abort): Likewise.
93138
93139 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93140
93141         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93142         buffer, so that the caller can always quote one small
93143         component of a "memory exhausted" message in slot 0.
93144         From a suggestion by Jim Meyering.
93145
93146 2000-07-30  Jim Meyering  <meyering@lucent.com>
93147
93148         * lib/makepath.c (make_path): Quote the other instance, too.
93149
93150         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93151         (STATIC_BUF_SIZE): Define.
93152         (quotearg_n_options): Use only statically allocated storage when
93153         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93154         than STATIC_BUF_SIZE.
93155
93156 2000-07-29  Jim Meyering  <meyering@lucent.com>
93157
93158         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93159         * lib/dirname.c (dir_name): Likewise.
93160
93161         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93162         `/'.
93163
93164         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93165         (dir_name): Assert that there are no trailing slashes.
93166
93167 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93168
93169         * lib/mbswidth.h (mbswidth): Add a flags argument.
93170         (mbswidth): New declaration.
93171         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93172         * lib/mbswidth.c (mbswidth): Add a flags argument.
93173         (mbsnwidth): New function.
93174
93175 2000-07-24  Jim Meyering  <meyering@lucent.com>
93176
93177         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93178
93179 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93180
93181         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93182
93183 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93184
93185         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93186         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93187         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93188         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93189         invoke multibyte primitives.
93190
93191 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93192
93193         * lib/quotearg.c:
93194         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93195         so that mbstate_t is always defined.
93196
93197         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93198         be 1 in at least one GCC installation, and this configuration
93199         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93200         performance on hosts that have mbrtowc but have only unibyte
93201         locales, but I assume these hosts are rare.
93202
93203 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93204
93205         * lib/mbswidth.c (_XOPEN_SOURCE):
93206         Don't define; this causes problems on Solaris 7.
93207         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93208
93209 2000-07-23  Jim Meyering  <meyering@lucent.com>
93210
93211         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93212         too: getgrgid, getpwuid, getuid.
93213
93214 2000-07-23  Jim Meyering  <meyering@lucent.com>
93215
93216         * lib/basename.c (base_name): Add an assertion.
93217
93218 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93219
93220         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93221         shadow its mbsinit function.
93222
93223 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93224
93225         * lib/mbswidth.h: New file.
93226         * lib/mbswidth.c: New file.
93227         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93228         (noinst_HEADERS): Add mbswidth.h.
93229
93230 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93231
93232         * lib/config.charset: Add support for FreeBSD. Improve support for
93233         HP-UX and IRIX 6.
93234
93235 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93236
93237         * m4/mbswidth.m4: New file.
93238         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93239
93240 2000-07-15  Jim Meyering  <meyering@lucent.com>
93241
93242         * lib/makepath.c: Include quote.h.
93243         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93244         corresponding argument in a `quote (...)' call.
93245         Give better diagnostics.
93246
93247         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93248         (noinst_HEADERS): Add quote.h.
93249
93250         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93251         from tar's src/misc.c.
93252         * lib/quote.h: New file.  Prototypes for same.
93253
93254 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93255
93256         From a suggestion by Bruno Haible.
93257         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93258         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93259         to decide whether to define the BeOS workaround macro;
93260         this adjusts to the change to AC_MBSTATE_T.
93261
93262 2000-07-14  Jim Meyering  <meyering@lucent.com>
93263
93264         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93265         jm_AC_TYPE_UINTMAX_T.
93266
93267 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93268
93269         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93270
93271         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93272         quotearg_buffer_restyled): Add support for
93273         clocale_quoting_style.  Undo previous change to
93274         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93275         and "{RIGHT QUOTATION MARK}" msgids.
93276
93277 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93278
93279         From a suggestion by Bruno Haible.
93280         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93281         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93282         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93283         and mbstate_t, to a single-part test that simply defines mbstate_t.
93284         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93285         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93286
93287 2000-07-10  Jim Meyering  <meyering@lucent.com>
93288
93289         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93290
93291         * m4/gnu-source.m4: Output to confdefs.h directly.
93292         Suggestion from Akim Demaille.
93293
93294 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93295
93296         The old behavior of quoting `like this' doesn't look good with
93297         newer, ISO-style fonts.  See:
93298         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93299
93300         Instead, quote "like this" by default.  Let the translator
93301         tailor the locale-specific quoting behavior by providing
93302         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93303
93304         * lib/quotearg.c (N_): New macro.
93305         (gettext_default): New function.
93306         (quotearg_buffer_restyled): Use
93307         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93308         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93309
93310 2000-07-09  Jim Meyering  <meyering@lucent.com>
93311
93312         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93313         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93314
93315         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93316         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93317
93318 2000-07-09  Jim Meyering  <meyering@lucent.com>
93319
93320         * lib/Most files: Update copyright dates to include 2000.
93321
93322 2000-07-08  Jim Meyering  <meyering@lucent.com>
93323
93324         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93325         if not defined.
93326         (xgethostname): Remove now-unnecessary #ifdef.
93327         Move declaration of `err' into loop where it's used.
93328
93329 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93330         and Bruno Haible  <haible@clisp.cons.org>
93331
93332         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93333         only if the test for an object-type mbstate_t fails.  This
93334         prevents us from mistakenly reporting that mbstate_t is a
93335         system object type after we "#define mbstate_t int" to work
93336         around its lack.
93337
93338 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93339         and Bruno Haible  <haible@clisp.cons.org>
93340
93341         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93342
93343 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93344
93345         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93346         to strerror_r.
93347         Include <ctype.h> for use of isalpha.
93348
93349 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93350
93351         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93352         by allocating a larger buffer. Test the gethostname return value for
93353         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93354         returns an error and ENAMETOOLONG isn't defined.
93355
93356 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93357
93358         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93359         dimension.
93360
93361 2000-07-04  Jim Meyering  <meyering@lucent.com>
93362
93363         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93364         of the deprecated AC_CHECKING.
93365
93366 2000-07-04  Jim Meyering  <meyering@lucent.com>
93367
93368         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93369         Reported by Bruno Haible.
93370
93371 2000-07-04  Jim Meyering  <meyering@lucent.com>
93372
93373         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93374         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93375         lacks mbrtowc.
93376
93377 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93378
93379         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93380         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93381
93382 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93383         and Bruno Haible  <haible@clisp.cons.org>
93384
93385         * lib/quotearg.c (mbrtowc):
93386         Assign to *pwc, and return 1 only if result is nonzero.
93387         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93388
93389 2000-07-03  Jim Meyering  <meyering@lucent.com>
93390
93391         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93392
93393 2000-07-03  Jim Meyering  <meyering@lucent.com>
93394
93395         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93396         This is necessary to get a definition of e.g., UTMP_FILE on
93397         HP-UX 10.20.
93398         From Bob Proulx.
93399
93400 2000-07-02  Jim Meyering  <meyering@lucent.com>
93401
93402         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93403
93404         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93405         AC_LIBOBJ(function_name).
93406         * m4/chown.m4: Likewise.
93407         * m4/fnmatch.m4: Likewise.
93408         * m4/ftruncate.m4: Likewise.
93409         * m4/getgroups.m4: Likewise.
93410         * m4/getline.m4: Likewise.
93411         * m4/group-member.m4: Likewise.
93412         * m4/jm-macros.m4: Likewise.
93413         * m4/lstat.m4: Likewise.
93414         * m4/malloc.m4: Likewise.
93415         * m4/memcmp.m4: Likewise.
93416         * m4/nanosleep.m4: Likewise.
93417         * m4/putenv.m4: Likewise.
93418         * m4/realloc.m4: Likewise.
93419         * m4/regex.m4: Likewise.
93420         * m4/stat.m4: Likewise.
93421         * m4/strftime.m4: Likewise.
93422
93423 2000-07-02  Jim Meyering  <meyering@lucent.com>
93424
93425         * lib/quotearg.c (mbstate_t): Don't define here.
93426
93427 2000-07-02  Jim Meyering  <meyering@lucent.com>
93428
93429         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93430
93431 2000-07-01  Jim Meyering  <meyering@lucent.com>
93432
93433         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93434
93435 2000-07-01  Jim Meyering  <meyering@lucent.com>
93436
93437         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93438         problem.
93439
93440 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93441
93442         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93443         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93444
93445 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93446
93447         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93448         per change in ../m4/ls-mntd-fs.m4.
93449         (read_filesystem_list): Ignore symbolic links.
93450
93451 2000-06-29  Jim Meyering  <meyering@lucent.com>
93452
93453         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93454         for declaration of strcmp.
93455
93456         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93457
93458         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93459         Avoid warning by casting result to `char *' to remove `const'.
93460
93461 2000-06-28  Jim Meyering  <meyering@lucent.com>
93462
93463         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93464         included by quotearg.c, for which we perform this test.  From
93465         Bruno Haible.
93466
93467 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93468
93469         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93470         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93471         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93472
93473 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93474
93475         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93476
93477 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93478
93479         savedir now sets errno on failure and invokes xmalloc to get memory.
93480         Fix a couple of other minor bugs while we're at it.
93481
93482         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93483         (NAMLEN): Remove macro.
93484         (malloc, realloc): Remove decls.
93485         (stpcpy): Likewise.
93486         ("xalloc.h"): Include.
93487         (NAME_SIZE_DEFAULT): New macro.
93488         (savedir): Use xmalloc / xrealloc to allocate memory.
93489         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93490         Skip "" directory entries.
93491         Use strlen to calculate directory entry length, since the old method
93492         is rarely used these days and isn't worth supporting.
93493         Don't use a pointer after freeing it.
93494         Check for integer overflow when calculating allocation size.
93495         Use memcpy to copy entries, instead of stpcpy.
93496         Set errno properly when returning NULL.
93497         Check for readdir error.
93498
93499 2000-06-26  Jim Meyering  <meyering@lucent.com>
93500
93501         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93502
93503 2000-06-25  Jim Meyering  <meyering@lucent.com>
93504
93505         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93506         Linux header bug when _XOPEN_SOURCE is defined to 500.
93507
93508 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93509
93510         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93511         deficiency.
93512
93513 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93514
93515         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93516         Include xalloc.h.
93517         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93518
93519 2000-06-24  Jim Meyering  <meyering@lucent.com>
93520
93521         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93522         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93523         for which strerror does return char*, but which lacks a conveniently
93524         accessible declaration of the function.  If the compile-test says
93525         strerror_r doesn't work, then resort to a `run'-test that works on
93526         BeOS and segfaults on DEC Unix.
93527
93528 2000-06-24  Jim Meyering  <meyering@lucent.com>
93529
93530         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93531
93532 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93533
93534         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93535         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93536
93537 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93538
93539         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93540         (mbrtowc, mbstate_t): Define substitutes if
93541         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93542         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93543         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93544
93545 2000-06-23  Jim Meyering  <meyering@lucent.com>
93546
93547         * m4/afs.m4: Add missing AC_MSG_RESULT.
93548         Reported by Bruno Haible.
93549
93550         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93551         Suggestion from Bruno Haible.
93552
93553 2000-06-23  Jim Meyering  <meyering@lucent.com>
93554
93555         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93556
93557 2000-06-21  Jim Meyering  <meyering@lucent.com>
93558
93559         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93560
93561 2000-06-21  Jim Meyering  <meyering@lucent.com>
93562
93563         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93564         (noinst_HEADERS): Add getstr.h.
93565
93566         * lib/getline.c (getstr): Move into a separate file.
93567         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93568         the following changes: new parameter, delim2; both delim[12]
93569         parameters have type `int', not `char'.  The latter would lose
93570         with 8-bit delimiters.
93571         * lib/getstr.h: New file.
93572
93573 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93574
93575         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93576         than 1024, return a memory chunk of least possible size, instead
93577         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93578         Use free/xmalloc instead of xrealloc to avoid copying for very long
93579         paths.
93580
93581 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93582
93583         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93584         the empty string.
93585
93586 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93587
93588         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93589         address, not strdup.  Include <stdlib.h> and don't declare free().
93590
93591 2000-06-19  Jim Meyering  <meyering@lucent.com>
93592
93593         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93594
93595 2000-06-18  Jim Meyering  <meyering@lucent.com>
93596
93597         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93598
93599         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93600         `checking whether...' message to be consistent with that of the
93601         lstat test.
93602
93603 2000-06-18  Jim Meyering  <meyering@lucent.com>
93604
93605         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93606         Besides, these days every porting target provides a mkdir function.
93607
93608         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93609         needed. (this snippet comes from src/system.h).
93610
93611 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93612
93613         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93614
93615 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93616
93617         * lib/human.c (adjust_value): New function.
93618         (human_readable_inexact): Apply rounding style even when
93619         printing approximate values.
93620
93621 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93622
93623         * lib/human.c (human_readable_inexact): Allow an input block
93624         size that is not a multiple of the output block size, and vice versa.
93625         Reported by Piergiorgio Sartor.
93626
93627 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93628
93629         * lib/getdate.y (get_date): Apply relative times after time
93630         zone indicator, not before.  Reported by Todd A. Jacobs.
93631
93632 2000-06-13  Jim Meyering  <meyering@lucent.com>
93633
93634         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93635
93636         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93637
93638 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93639
93640         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93641
93642 2000-06-12  Jim Meyering  <meyering@lucent.com>
93643
93644         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93645         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93646         optional argument.
93647         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93648         the optional argument, `lib'.
93649
93650 2000-06-08  Jim Meyering  <meyering@lucent.com>
93651
93652         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93653
93654 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93655
93656         Rewrite largefile configuration so that we don't need to run
93657         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93658         AC_CANONICAL_HOST in configure.in -- jmm]
93659
93660         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93661         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93662         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93663         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93664         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93665         All uses changed.
93666         Instead of inspecting the output of getconf, try to compile the
93667         test program without and with the macro definition.
93668         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93669         for getconf.  Instead, check for the needed flags by compiling
93670         test programs.
93671
93672 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93673
93674         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93675
93676 2000-06-04  Jim Meyering  <meyering@lucent.com>
93677
93678         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93679         SunOS 4.1.4 for which gid_t is an unsigned type.
93680
93681 2000-06-03  Jim Meyering  <meyering@lucent.com>
93682
93683         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93684         now that autoconf requires that.
93685
93686         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93687         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93688         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93689
93690 2000-06-03  Jim Meyering  <meyering@lucent.com>
93691
93692         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93693
93694 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93695
93696         * m4/glibc21.m4: New file.
93697         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93698
93699 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93700
93701         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93702         newer, don't install charset.alias.
93703         * lib/config.charset: Change the Linux/glibc rules so they become empty
93704         on glibc-2.1 or newer.
93705
93706 2000-06-02  Jim Meyering  <meyering@lucent.com>
93707
93708         * lib/mountlist.c: Back out last change.  Instead, do this...
93709         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93710         me_dummy member using the same `ignore'-testing code.
93711         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93712         fs_type strings.
93713         From Mark D. Roth.
93714
93715 2000-05-29  Jim Meyering  <meyering@lucent.com>
93716
93717         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93718         mounts with the `ignore' attribute.  Based on a patch from
93719         Mark D. Roth.
93720
93721 2000-05-28  Jim Meyering  <meyering@lucent.com>
93722
93723         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93724         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93725         * m4/stat.m4: Likewise.
93726         * m4/lstat.m4: Likewise.
93727         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93728
93729         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93730         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93731
93732 2000-05-26  Jim Meyering  <meyering@lucent.com>
93733
93734         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93735
93736 2000-05-24  Jim Meyering  <meyering@lucent.com>
93737
93738         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93739         autoconf requires that.
93740         * m4/lib-check.m4: Likewise.
93741         * m4/jm-macros.m4: Likewise.
93742         * m4/strftime.m4: Likewise.
93743
93744         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93745         AC_CHECK_DECLS, now that autoconf requires that.
93746
93747 2000-05-22  Jim Meyering  <meyering@lucent.com>
93748
93749         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93750         * m4/lstat.m4: Likewise.
93751
93752 2000-05-22  Jim Meyering  <meyering@lucent.com>
93753
93754         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93755
93756 2000-05-20  Jim Meyering  <meyering@lucent.com>
93757
93758         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93759         (jm_PREREQ): Use it.
93760
93761 2000-05-18  Jim Meyering  <meyering@lucent.com>
93762
93763         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93764         back, too, since it may have been modified by allocate_entry.
93765         (hash_delete): Rewrite to use neither the assignment operator
93766         nor the comma operator in an if-expression.
93767
93768 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93769
93770         * lib/closeout.c:
93771         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93772         Remove; no longer needed.
93773         "quotearg.h": Add include.
93774         (file_name): Do not bother to explicitly initialize to NULL; it's less
93775         efficient on some hosts.
93776         (close_stdout_status): Remove test as to whether stdout was already
93777         closed; it breaks for the case "echo x | sort >&-".
93778         Quote file name colons.
93779         Do not assume that _("write error") lacks format strings.
93780
93781 2000-05-15  Jim Meyering  <meyering@lucent.com>
93782
93783         * lib/version-etc.c (version_etc_copyright): Update the copyright
93784         string used in all --version output.
93785
93786 2000-05-14  Jim Meyering  <meyering@lucent.com>
93787
93788         * lib/closeout.c (close_stdout_set_file_name): New function.
93789         (close_stdout_status): Use new file-scoped global.
93790         Return right away if fstat says the stdout file descriptor is invalid.
93791         * lib/closeout.h (close_stdout_set_file_name): Declare.
93792
93793 2000-05-10  Jim Meyering  <meyering@lucent.com>
93794
93795         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93796         (close_stdout_set_status): New function.
93797         * lib/closeout.h (close_stdout_set_status): Declare.
93798
93799 2000-05-09  Jim Meyering  <meyering@lucent.com>
93800
93801         * m4/gettext.m4: Rename this...
93802         * m4/libintl.m4: ...to this.
93803
93804 2000-05-08  Jim Meyering  <meyering@lucent.com>
93805
93806         * lib/long-options.c: Don't include closeout.h.
93807         (parse_long_options): Don't call close_stdout for --version.
93808
93809 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93810
93811         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93812         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93813         2.1.3 bug.  This avoids a clash when files like regex.c define
93814         _GNU_SOURCE.
93815
93816 2000-05-06  Jim Meyering  <meyering@lucent.com>
93817
93818         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93819         (AC_REPLACE_FUNCS): Add strnlen.
93820
93821         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93822         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93823
93824         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93825         AC_SEARCH_LIBS call for nanosleep.
93826         (LIB_NANOSLEEP): Set and AC_SUBST.
93827
93828 2000-05-06  Jim Meyering  <meyering@lucent.com>
93829
93830         * lib/strnlen.c: Undefine __strnlen and strnlen.
93831         [!weak_alias]: Define __strnlen to strnlen.
93832
93833         * lib/atexit.c: New file, from libiberty.
93834
93835 2000-05-06  Jim Meyering  <meyering@lucent.com>
93836
93837         * lib/closeout.c (close_stdout_status): Also check for errors on the
93838         stderr stream.
93839
93840 2000-05-05  Jim Meyering  <meyering@lucent.com>
93841
93842         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93843         AC_SEARCH_LIBS call for clock_gettime.
93844         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93845
93846         * m4/search-libs.m4: Update from autoconf.
93847
93848         su doesn't work on Solaris 2.6.
93849         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93850         <shadow.h>.  Reported by Dragos Harabor.
93851
93852 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93853
93854         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93855         memcpy instead of xmalloc, xrealloc, path_concat.
93856         (locale_charset): Treat empty environment variables as absent.
93857         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93858
93859 2000-05-04  Jim Meyering  <meyering@lucent.com>
93860
93861         * lib/getopt.c: Update from glibc.
93862         * lib/obstack.c: Likewise.
93863         * lib/obstack.h: Likewise.
93864         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93865         file
93866
93867         * lib/regex.h: Likewise.
93868         * lib/strndup.c: Likewise.
93869         * lib/strnlen.c: New file, from glibc.
93870
93871 2000-05-03  Jim Meyering  <meyering@lucent.com>
93872
93873         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93874
93875 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93876
93877         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93878         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93879         compile-time test, rather than inspecting host and OS, to
93880         decide whether to define _LARGEFILE_SOURCE.
93881
93882 2000-05-01  Jim Meyering  <meyering@lucent.com>
93883
93884         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93885
93886         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93887         Based on a patch from Bruno Haible.
93888
93889 2000-05-01  Jim Meyering  <meyering@lucent.com>
93890
93891         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93892
93893 2000-04-29  Jim Meyering  <meyering@lucent.com>
93894
93895         * lib/path-concat.c: Declare strdup only if it's not defined.
93896         * lib/canon-host.c: Likewise.
93897
93898 2000-04-28  Jim Meyering  <meyering@lucent.com>
93899
93900         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93901         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93902         is included first, then limits.h is included by locale.h by libintl.h.
93903         From John David Anglin.
93904
93905 2000-04-25  Jim Meyering  <meyering@lucent.com>
93906
93907         * lib/makepath.c (S_IRWXUGO): Define.
93908         (make_path): Always perform explicit chmod if MODE specifies any
93909         of the `special' permission bits.  Prompted by a bug report against
93910         install from Mate Wierdl and Joost van Baal.
93911
93912 2000-04-18  Jim Meyering  <meyering@lucent.com>
93913
93914         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93915         (jm_PREREQ): Use it.
93916
93917 2000-04-18  Jim Meyering  <meyering@lucent.com>
93918
93919         * lib/README: New file.
93920
93921         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93922         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93923
93924 2000-04-17  Jim Meyering  <meyering@lucent.com>
93925
93926         Get it right :-)
93927         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93928         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93929         Suggestion from Akim Demaille.
93930
93931 2000-04-17  Jim Meyering  <meyering@lucent.com>
93932
93933         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93934         the definition of it to rpl_strftime also defined-away the system's
93935         declaration.
93936
93937 2000-04-15  Jim Meyering  <meyering@lucent.com>
93938
93939         Use `C' to denote so-called `contiguous' files, the same way
93940         that tar does.
93941         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93942         (ftypelet): Use S_ISCTG.
93943         From Michael Deutschmann.
93944
93945 2000-04-14  Jim Meyering  <meyering@lucent.com>
93946
93947         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93948         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93949         clobbered.
93950
93951 2000-04-14  Jim Meyering  <meyering@lucent.com>
93952
93953         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93954
93955 2000-04-13  Jim Meyering  <meyering@lucent.com>
93956
93957         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93958         AH_VERBATIM to insert required #ifndef into config.h.in.
93959         Suggestion from Akim Demaille.
93960
93961 2000-04-12  Jim Meyering  <meyering@lucent.com>
93962
93963         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93964         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93965         Christian Krackowizer.
93966
93967         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93968         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93969         (AC_SYS_LARGEFILE): Require.
93970         (AM_C_PROTOTYPES): Require.
93971
93972 2000-04-08  Jim Meyering  <meyering@lucent.com>
93973
93974         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93975         names don't conflict.  Reported by Eli Zaretskii.
93976
93977 2000-04-07  Jim Meyering  <meyering@lucent.com>
93978
93979         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93980         sys/types.h, to work around system header problems on AIX 3.2.5.
93981         From Bruno Haible.
93982
93983 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93984
93985         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93986         bug.  Deal with the different error behavior of Irix iconv.
93987
93988 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93989
93990         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93991         IRIX if the installer said otherwise.
93992
93993 2000-04-05  Jim Meyering  <meyering@lucent.com>
93994
93995         Portability tweaks required for ultrix4.3.
93996         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93997         (jm_CHECK_DECLS): Add getutent to the list of functions.
93998         (_jm_DECL_HEADERS): Add utmpx.h.
93999         From John David Anglin.
94000
94001         * m4/strftime.m4: Back out the 2000-04-02 change.
94002         Instead of that change, simply undefine putenv in the test program.
94003
94004 2000-04-05  Jim Meyering  <meyering@lucent.com>
94005
94006         Portability tweaks required for ultrix4.3.
94007         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94008         getutent.
94009         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94010         * lib/canon-host.c: Declare strdup.
94011         * lib/path-concat.c: Likewise.
94012         From John David Anglin.
94013
94014 2000-04-04  Jim Meyering  <meyering@lucent.com>
94015
94016         Be more DOS 8.3-friendly.
94017         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94018         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94019         * lib/Makefile.am: Reflect renaming.
94020         Reported by Eli Zaretskii.
94021
94022         Use a temporary file name that won't clash with `charset.alias'
94023         in the DOS 8.3 name space.
94024         * lib/Makefile.am (charset_tmp): Define.
94025         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94026         (uninstall-local): Likewise.
94027         Reported by Eli Zaretskii.
94028
94029 2000-04-03  Jim Meyering  <meyering@lucent.com>
94030
94031         * m4/gettext.m4: Fix typo in comment.
94032
94033         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94034         textutils/configure.in).  Suggestion from Paul Eggert.
94035         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94036
94037 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94038
94039         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94040         variable in the shell rather than using putenv, which isn't
94041         portable.  This avoids the configure-time inter-test dependency
94042         on the potentially-renamed putenv function.
94043
94044 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94045
94046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94047         before checking struct stat.st_blksize, so that
94048         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94049
94050 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94051
94052         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94053         since strftime.c uses HAVE_STRFTIME to decide whether to use
94054         the underlying strftime.
94055
94056 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94057
94058         * lib/time/strftime.c (my_strftime): Make sure we call the system
94059         strftime, not ourselves, when invoking the underlying strftime.
94060
94061 2000-03-24  Jim Meyering  <meyering@lucent.com>
94062
94063         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94064         (charset_alias): Define.
94065         (install-exec-local): Factor out common code.
94066         (uninstall-local): Split lines longer than 80.
94067         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94068         (SUFFIXES): Define.
94069         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94070         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94071
94072 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94073
94074         * lib/config.charset: Output a line containing "Packages using this
94075         file".
94076         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94077         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94078         ref-del.sed): New rules.
94079
94080 2000-03-17  Jim Meyering  <meyering@lucent.com>
94081
94082         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94083         Otherwise, include <strings.h>
94084
94085 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94086
94087         * lib/unicodeio.c (utf8_wctomb): New function.
94088         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94089         format instead of in UCS-4 with platform dependent endianness.
94090
94091 2000-03-10  Jim Meyering  <meyering@lucent.com>
94092
94093         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94094         From Marco Franzen.
94095
94096 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94097
94098         * lib/savedir.c (savedir): Work even if directory size is
94099         negative; this can happen with some screwy NFS configurations.
94100
94101 2000-03-06  Jim Meyering  <meyering@lucent.com>
94102
94103         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94104         if it's NULL (because we ran out of memory).  From Bruno Haible.
94105
94106 2000-03-05  Jim Meyering  <meyering@lucent.com>
94107
94108         * lib/localcharset.c ("path-concat.h"): Include.
94109         (get_charset_aliases): Use path_concat instead of ANSI string
94110         concatenation.
94111
94112         * lib/unicodeio.h (PARAMS): Define.
94113         Use it to guard prototype.
94114
94115 2000-03-04  Jim Meyering  <meyering@lucent.com>
94116
94117         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94118         for lib/localcharset.c.
94119
94120 2000-03-04  Jim Meyering  <meyering@lucent.com>
94121
94122         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94123         installing into it.
94124         (uninstall-local): Uncomment this rule so `make distcheck' works
94125         once again.
94126
94127         * lib/unicodeio.c (<errno.h>): Include it.
94128         (errno): Declare if not defined.
94129
94130         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94131
94132         * lib/config.charset: New version, incorporating remarks from a linux
94133         i18n mailing list.  From Bruno Haible.
94134
94135 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94136
94137         * m4/codeset.m4: New file.
94138         * m4/iconv.m4: New file.
94139         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94140
94141 2000-03-03  Jim Meyering  <meyering@lucent.com>
94142
94143         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94144
94145 2000-03-02  Jim Meyering  <meyering@lucent.com>
94146
94147         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94148         the messages come out on separate lines.
94149
94150         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94151         rather than jm_CHECK_DECLARATIONS.
94152         * m4/decl.m4: Remove now-unused file.
94153
94154         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94155         geteuid.
94156
94157 2000-03-02  Jim Meyering  <meyering@lucent.com>
94158
94159         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94160
94161 2000-03-01  Jim Meyering  <meyering@lucent.com>
94162
94163         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94164         * lib/unicodeio.c: Likewise.
94165
94166 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94167
94168         * lib/config.charset: New file.
94169         * lib/localcharset.c: New file.
94170         * lib/unicodeio.h, lib/unicodeio.c: New files.
94171         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94172         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94173         (noinst_HEADERS): Add unicodeio.h.
94174         (all-local, install-exec-local, charset.alias): New targets.
94175
94176 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94177
94178         * lib/quotearg.c (ALERT_CHAR): New macro.
94179         (quotearg_buffer_restyled): Use it.
94180
94181 2000-02-27  Jim Meyering  <meyering@lucent.com>
94182
94183         * m4/check-decl.m4: Add getenv to the list.
94184
94185 2000-02-27  Jim Meyering  <meyering@lucent.com>
94186
94187         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94188         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94189
94190         * lib/backupfile.c: Guard inclusion of stdlib.h with
94191         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94192         Declare malloc if needed.
94193
94194         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94195         `#ifndef HAVE_DECL..'
94196         now that autoconf always defines the HAVE_DECL_ symbols.
94197         * lib/human.c: Likewise.
94198         * lib/same.c: Likewise.
94199         * lib/strtoumax.c: Likewise.
94200
94201         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94202         declaration check was not run.
94203         * lib/hash.c: Likewise.
94204         * lib/human.c: Likewise.
94205         * lib/same.c: Likewise.
94206         * lib/strtoumax.c: Likewise.
94207
94208         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94209         `.', then first look up the entire `.'-containing string as a login
94210         name.
94211
94212 2000-02-23  Jim Meyering  <meyering@lucent.com>
94213
94214         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94215         in place of my hack.
94216
94217 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94218
94219         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94220         (textint): New typedef.
94221         (parser_control): Member year changed from int to textint.
94222         All uses changed.
94223         (YYSTYPE): Removed; replaced by %union with int and textint members.
94224         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94225         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94226         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94227         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94228         (date, number, to_year): Use width of number in digits, not its value,
94229         to determine whether it's a 2-digit year, or a 2-digit time.
94230         (yylex): Store number of digits of numeric tokens.
94231         Reported by John Kendall.
94232
94233         (parser_control): Changed from struct parser_control to typedef (for
94234         consistency).  All uses changed.
94235
94236         (tID): Removed; not used.
94237         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94238
94239 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94240
94241         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94242         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94243
94244 2000-02-12  Jim Meyering  <meyering@lucent.com>
94245
94246         * lib/userspec.c (ISDIGIT): Define it.
94247         (isdigit): Remove definition.
94248         (is_number): Use ISDIGIT, not isdigit.
94249         <libintl.h>: Include.
94250         (_ and N_): Define.
94251         (parse_user_spec): Mark translatable strings.
94252
94253 2000-02-10  Jim Meyering  <meyering@lucent.com>
94254
94255         With these changes, nanosleep.[ch] are finally enough like the other
94256         lib/* replacement files to compile on a few more losing systems.
94257
94258         * lib/nanosleep.h: Don't include config.h.
94259         Remove prototype from declaration of nanosleep.
94260         (PARAMS): Remove now-unneeded definition.
94261         * lib/nanosleep.c: #undef nanosleep.
94262         (rpl_nanosleep): Rename from nanosleep.
94263
94264 2000-02-10  Jim Meyering  <meyering@lucent.com>
94265
94266         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94267         gnu_nanosleep to rpl_nanosleep.
94268
94269 2000-02-09  Jim Meyering  <meyering@lucent.com>
94270
94271         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94272         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94273
94274 2000-02-08  Akim Demaille  <akim@epita.fr>
94275
94276         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94277         `[' and `]' and remove uses of `changequote'.
94278         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94279         (AC_SYS_LARGEFILE): Likewise.
94280         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94281         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94282         of changequote.
94283         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94284         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94285         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94286         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94287
94288 2000-02-05  Jim Meyering  <meyering@lucent.com>
94289
94290         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94291         Remove explicit use of AC_HEADER_TIME.  It is required by
94292         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94293         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94294         in autoconf whereby the expansion of the latter ended up preceding
94295         the expansion of its prerequisite, AC_HEADER_TIME.
94296         Reported by Volker Borchert.
94297
94298 2000-02-03  Jim Meyering  <meyering@lucent.com>
94299
94300         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94301
94302 2000-02-03  Jim Meyering  <meyering@lucent.com>
94303
94304         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94305         rather than with `#if HAVE_UTMPNAME'.
94306
94307 2000-02-02  Jim Meyering  <meyering@lucent.com>
94308
94309         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94310         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94311         Reported by Eli Zaretskii.
94312
94313 2000-02-01  Jim Meyering  <meyering@lucent.com>
94314
94315         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94316
94317 2000-01-31  Jim Meyering  <meyering@lucent.com>
94318
94319         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94320         functions.  Add the time.h and sys/time.h headers along with the
94321         AC_REQUIRE'ment of AC_HEADER_TIME.
94322
94323 2000-01-31  Jim Meyering  <meyering@lucent.com>
94324
94325         * lib/nanosleep.h (nanosleep): Guard declaration with
94326         `#if ! HAVE_DECL_NANOSLEEP'.
94327         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94328         the declaration in that vendor's sys/timers.h.
94329         Reported by Christian Krackowizer.
94330
94331         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94332         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94333         (ISPRINT): Likewise.
94334         Reported by Tom Tromey.
94335
94336 2000-01-30  Jim Meyering  <meyering@lucent.com>
94337
94338         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94339
94340         * m4/prereq.m4 (utmp_includes): Define.
94341         Check for ut_user and ut_name members in both struct utmpx
94342         and struct utmp.
94343
94344 2000-01-30  Jim Meyering  <meyering@lucent.com>
94345
94346         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94347         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94348         header files where only utmpx.ut_user is declared.
94349
94350         * lib/readutmp.h (UT_USER): Define.
94351
94352 2000-01-29  Jim Meyering  <meyering@lucent.com>
94353
94354         * m4/lib-check.m4: New file containing library-related checks from
94355         fileutils and sh-utils (textutils had none).
94356
94357 2000-01-28  Jim Meyering  <meyering@lucent.com>
94358
94359         * m4/perl.m4: Change format of warning message to look more like that
94360         from the missing script.  Suggestion from François Pinard.
94361
94362 2000-01-25  Jim Meyering  <meyering@lucent.com>
94363
94364         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94365         well as time.h in the compile check.
94366         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94367         Fix typo in cross-compiling case: s/yes/no/.
94368
94369 2000-01-23  Jim Meyering  <meyering@lucent.com>
94370
94371         * m4/jm-macros.m4: Move df-related tests here from
94372         fileutils/configure.in
94373
94374         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94375         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94376
94377         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94378         s/space/ac_fsusage_space/.
94379         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94380
94381         * m4/ftruncate.m4: New file (derived from part of
94382         fileutils/configure.in).
94383         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94384         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94385
94386         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94387         AC_SUBST these here, rather than just in sh-util/configure.in, so
94388         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94389         all the same.
94390         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94391         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94392         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94393         (AC_SUBST(POW_LIBM)): Likewise.
94394         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94395
94396 2000-01-23  Jim Meyering  <meyering@lucent.com>
94397
94398         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94399         obstack.c.
94400
94401 2000-01-22  Jim Meyering  <meyering@lucent.com>
94402
94403         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94404
94405         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94406
94407         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94408         configure.in
94409         (AC_CHECK_HEADERS): Likewise for sh-utils.
94410         (AC_CHECK_HEADERS): Likewise for textutils.
94411         Merge the three lists of headers.
94412
94413         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94414         from fileutils' configure.in.
94415
94416         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94417         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94418         check-decl.m4.
94419
94420         * m4/check-decl.m4: Use #if rather than #ifdef.
94421         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94422         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94423         (_jm_DECL_HEADERS): Define new function.
94424         (jm_CHECK_DECLARATIONS): Require it.
94425
94426 2000-01-22  Jim Meyering  <meyering@lucent.com>
94427
94428         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94429         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94430         Required for some AIX systems.  Reported by Christian Krackowizer.
94431         [TESTING] (main): New function.
94432
94433         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94434         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94435         letters.
94436
94437         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94438         iswprint.
94439
94440         * lib/strverscmp.c (ISDIGIT): Define.
94441         (strverscmp): Use ISDIGIT, not isdigit.
94442
94443 2000-01-19  Jim Meyering  <meyering@lucent.com>
94444
94445         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94446         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94447         defines `struct timespec' in <sys/time.h>
94448
94449         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94450         Thanks to Akim for explaining.
94451
94452 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94453
94454         * lib/nanosleep.c (nanosleep):
94455         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94456         POSIX.1 doesn't require SA_INTERRUPT and some systems
94457         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94458         it's been part of POSIX.1 since day 1 (in 1988).
94459
94460 2000-01-17  Jim Meyering  <meyering@lucent.com>
94461
94462         * lib/interlock: Remove unused file.  Reported by François Pinard.
94463
94464 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94465
94466         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94467         alert, backslash, formfeed, and vertical tab unnecessarily in
94468         shell quoting style.
94469
94470 2000-01-16  Jim Meyering  <meyering@lucent.com>
94471
94472         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94473         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94474         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94475         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94476
94477 2000-01-16  Jim Meyering  <meyering@lucent.com>
94478
94479         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94480         because the latter didn't work.
94481
94482 2000-01-15  Jim Meyering  <meyering@lucent.com>
94483
94484         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94485         (AC_REPLACE_FUNCS): Add memcpy and memset.
94486         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94487         Add strpbrk.
94488         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94489
94490 2000-01-12  Jim Meyering  <meyering@lucent.com>
94491
94492         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94493         (jm_PREREQ): Use it.
94494         (jm_PREREQ_READUTMP): New macro.
94495         (jm_PREREQ): Use it.
94496
94497 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94498
94499         Quote multibyte characters correctly.
94500         * m4/c-bs-a.m4: New file.
94501         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94502         (jm_PREREQ): Use it.
94503
94504 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94505
94506         * m4/uintmax_t.m4: Port to autoconf 2.13.
94507
94508 2000-01-08  Jim Meyering  <meyering@ascend.com>
94509
94510         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94511         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94512
94513 2000-01-04  Jim Meyering  <meyering@ascend.com>
94514
94515         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94516         jm_STRUCT_DIRENT_D_TYPE.
94517         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94518         jm_STRUCT_DIRENT_D_INO.
94519         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94520         jm_STRUCT_UTIMBUF.
94521         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94522         renamings.
94523         * m4/utime.m4: Likewise.
94524
94525         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94526         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94527
94528 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94529
94530         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94531         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94532
94533 2000-01-02  Jim Meyering  <meyering@ascend.com>
94534
94535         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94536         remember if this is necessary.
94537
94538 1999-12-26  Jim Meyering  <meyering@ascend.com>
94539
94540         * m4/jm-macros.m4: Use it here.
94541         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94542
94543 1999-12-23  Jim Meyering  <meyering@ascend.com>
94544
94545         * m4/jm-macros.m4: Check for clock_gettime (moved from
94546         fileutils/configure.in)
94547         Check for gettimeofday.
94548
94549 1999-12-20  Jim Meyering  <meyering@ascend.com>
94550
94551         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94552         autoconf-2.14a-1999-12-20.
94553
94554 1999-12-19  Jim Meyering  <meyering@ascend.com>
94555
94556         * m4/lstat-slash.m4: New file.
94557         * m4/jm-macros.m4: Use the new macro:
94558         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94559
94560 1999-12-07  Jim Meyering  <meyering@ascend.com>
94561
94562         * m4/perl.m4: Require that File::Compare be available, too.
94563         Too many systems seem to lack it.
94564
94565         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94566         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94567
94568 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94569
94570         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94571         problem with the QNX 4.25 shell, which doesn't propagate exit
94572         status of failed commands inside shell assignments.
94573
94574 1999-11-17  Jim Meyering  <meyering@ascend.com>
94575
94576         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94577
94578 1999-11-07  Jim Meyering  <meyering@ascend.com>
94579
94580         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94581
94582 1999-11-06  Jim Meyering  <meyering@ascend.com>
94583
94584         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94585         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94586
94587 1999-11-05  Jim Meyering  <meyering@ascend.com>
94588
94589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94590         configure.in of textutils, fileutils, and sh-utils into this one
94591         (shared between those packages) file.
94592         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94593         AC_STRUCT_ST_BLKSIZE.
94594
94595 1999-11-03  Jim Meyering  <meyering@ascend.com>
94596
94597         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94598         of AC_CHECK_TYPE checks includes unistd.h.
94599         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94600         Suggestion from Akim Demaille.
94601
94602 1999-10-30  Jim Meyering  <meyering@ascend.com>
94603
94604         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94605         m4-quoted string.
94606         * m4/ls-mntd-fs.m4: Likewise.
94607         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94608         * m4/jm-winsz1.m4: Likewise.
94609
94610         * m4/const.m4: Remove file, since the fix made it into the experimental
94611         version of autoconf.
94612         * m4/mktime.m4: Likewise.
94613
94614         * m4/check-type.m4: Remove file, now that the latest version of
94615         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94616
94617         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94618         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94619         AC_CHECK_TYPE.
94620
94621 1999-10-04  Jim Meyering  <meyering@ascend.com>
94622
94623         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94624
94625 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94626
94627         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94628         2.95.1 bug with HP-UX 10.20.
94629
94630 1999-09-17  Jim Meyering  <meyering@ascend.com>
94631
94632         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94633         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94634         due to missing strdup (against sh-utils-2.0).
94635
94636 1999-08-29  Jim Meyering  <meyering@ascend.com>
94637
94638         * m4/jm-macros.m4: Require jm_BISON.
94639         * m4/bison.m4: New file.
94640
94641 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94642
94643         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94644         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94645
94646 1999-08-05  Jim Meyering  <meyering@ascend.com>
94647
94648         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94649         to avoid conflicts with `conftest' on 8+3 filesystems.
94650         Suggestion from Eli Zaretskii.
94651
94652 1999-08-04  Jim Meyering  <meyering@ascend.com>
94653
94654         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94655         fileutils and sh-utils (textutils's getline test was inadequate).
94656         (AM_FUNC_GETLINE): Run this test.
94657         (AC_CHECK_FUNCS): Check for getdelim.
94658         Reported by Bob Proulx.
94659
94660 1999-08-02  Jim Meyering  <meyering@ascend.com>
94661
94662         * m4/jm-macros.m4: Add a comment.
94663
94664 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94665
94666         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94667         <inttypes.h> defines strtoumax as a macro (and not as a
94668         function).
94669
94670 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94671
94672         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94673         that we can shift, multiply and divide unsigned long long
94674         values; Ultrix cc can't do it.
94675
94676 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94677
94678         * m4/mktime.m4: New file, which is a preview of what should appear
94679         in the next public autoconf release.
94680
94681 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94682
94683         * m4/lfs.m4: Remove this file.
94684         * m4/largefile.m4: New file.  It contains the old contents of
94685         lfs.m4, except that all names with prefix AC_LFS have been
94686         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94687         compatible with future autoconf versions.  Also, some minor m4
94688         quoting problems have been fixed.
94689
94690 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94691
94692         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94693         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94694         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94695         and simplify the shell code.
94696
94697 1999-08-01  Jim Meyering  <meyering@ascend.com>
94698
94699         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94700         m4.
94701
94702 1999-07-20  Jim Meyering  <meyering@ascend.com>
94703
94704         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94705
94706 1999-07-15  Jim Meyering  <meyering@ascend.com>
94707
94708         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94709
94710 1999-05-22  Jim Meyering  <meyering@ascend.com>
94711
94712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94713
94714 1999-05-20  Jim Meyering  <meyering@ascend.com>
94715
94716         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94717         Add a colon after each `then' in case $4 is empty.
94718
94719 1999-05-16  Jim Meyering  <meyering@ascend.com>
94720
94721         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94722
94723 1999-05-10  Jim Meyering  <meyering@ascend.com>
94724
94725         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94726
94727         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94728         AC_FUNC_MKTIME.
94729
94730 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94731
94732         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94733
94734 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94735
94736         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94737         not CPPFLAGS, so that linking works correctly in IRIX.
94738
94739 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94740
94741         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94742
94743 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94744
94745         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94746         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94747         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94748         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94749         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94750
94751         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94752
94753 1999-04-20  Jim Meyering  <meyering@ascend.com>
94754
94755         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94756         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94757         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94758
94759 1999-04-18  Jim Meyering  <meyering@ascend.com>
94760
94761         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94762         * m4/jm-macros.m4: Use it.
94763
94764 1999-04-06  Jim Meyering  <meyering@ascend.com>
94765
94766         * m4/strftime.m4: Remove test for %f.
94767
94768 1999-03-29  Jim Meyering  <meyering@ascend.com>
94769
94770         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94771         superset of the AC_TYPE_* checks in the textutils, fileutils,
94772         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94773         AC_TYPE_PID_T.
94774
94775 1999-03-28  Jim Meyering  <meyering@ascend.com>
94776
94777         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94778         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94779         replaced e.g., in the *.sh files of the sh-utils.
94780
94781 1999-03-20  Jim Meyering  <meyering@ascend.com>
94782
94783         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94784         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94785         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94786
94787 1999-03-19  Jim Meyering  <meyering@ascend.com>
94788
94789         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94790
94791 1999-03-12  Jim Meyering  <meyering@ascend.com>
94792
94793         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94794
94795 1999-03-07  Jim Meyering  <meyering@ascend.com>
94796
94797         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94798         declared.
94799
94800 1999-02-17  Jim Meyering  <meyering@ascend.com>
94801
94802         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94803         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94804
94805 1999-02-07  Jim Meyering  <meyering@ascend.com>
94806
94807         * m4/group-member.m4: New file -- extracted from sh-utils'
94808         configure.in.
94809
94810         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94811         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94812
94813 1999-02-06  Jim Meyering  <meyering@ascend.com>
94814
94815         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94816         * m4/fnmatch.m4: Likewise.
94817         * m4/getgroups.m4: Likewise.
94818         * m4/lstat.m4: Likewise.
94819         * m4/malloc.m4: Likewise.
94820         * m4/putenv.m4: Likewise.
94821         * m4/realloc.m4: Likewise.
94822         * m4/regex.m4: Likewise.
94823         * m4/stat.m4: Likewise.
94824         * m4/strftime.m4: Likewise.
94825         Suggestion from Alain Magloire.
94826
94827         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94828         * m4/fnmatch.m4: Likewise.
94829         * m4/getgroups.m4: Likewise.
94830         * m4/getline.m4: Likewise.
94831         * m4/lstat.m4: Likewise.
94832         * m4/malloc.m4: Likewise.
94833         * m4/memcmp.m4: Likewise.
94834         * m4/putenv.m4: Likewise.
94835         * m4/realloc.m4: Likewise.
94836         * m4/regex.m4: Likewise.
94837         * m4/stat.m4: Likewise.
94838         * m4/strftime.m4: Likewise.
94839         Suggestion from Alain Magloire.
94840
94841         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94842         an argument.
94843
94844         * m4/regex.m4: Add a run-time Test for proper operation of
94845         re_compile_pattern.
94846
94847 1999-01-31  Jim Meyering  <meyering@ascend.com>
94848
94849         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94850
94851 1999-01-30  Jim Meyering  <meyering@ascend.com>
94852
94853         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94854
94855         * m4/jm-mktime.m4: Make this a wrapper around the official
94856         AM_FUNC_MKTIME rather than my private copy, now that the official one
94857         is up to date.
94858         * m4/mktime.m4: Remove file.
94859
94860         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94861         * m4/uptime.m4: Likewise.
94862         * m4/uintmax_t.m4: Likewise.
94863
94864 1999-01-28  Jim Meyering  <meyering@ascend.com>
94865
94866         * m4/jm-macros.m4: Use jm_AFS.
94867         * m4/afs.m4: New file (from fileutils' configure.in).
94868
94869         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94870         * m4/chown.m4: Likewise.
94871         * m4/d-ino.m4: Likewise.
94872         * m4/d-type.m4: Likewise.
94873         * m4/fnmatch.m4: Likewise.
94874         * m4/getgroups.m4: Likewise.
94875         * m4/gettext.m4: Likewise.
94876         * m4/jm-mktime.m4: Likewise.
94877         * m4/jm-winsz2.m4: Likewise.
94878         * m4/lcmessage.m4: Likewise.
94879         * m4/ls-mntd-fs.m4: Likewise.
94880         * m4/malloc.m4: Likewise.
94881         * m4/memcmp.m4: Likewise.
94882         * m4/putenv.m4: Likewise.
94883         * m4/realloc.m4: Likewise.
94884         * m4/st_mtim.m4: Likewise.
94885         * m4/strftime.m4: Likewise.
94886
94887 1999-01-16  Jim Meyering  <meyering@ascend.com>
94888
94889         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94890         (ARGMATCH_DIE_DECL): Define.
94891
94892 1999-01-12  Jim Meyering  <meyering@ascend.com>
94893
94894         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94895         Reported by Lars Hecking.
94896
94897 1999-01-10  Jim Meyering  <meyering@ascend.com>
94898
94899         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94900         gross kludge.
94901         * m4/inttypes_h.m4: Likewise.
94902         * m4/lstat.m4: Likewise.
94903         * m4/malloc.m4: Likewise.
94904         * m4/readdir.m4: Likewise.
94905         * m4/realloc.m4: Likewise.
94906         * m4/st_dm_mode.m4: Likewise.
94907         * m4/stat.m4: Likewise.
94908         * m4/utimbuf.m4: Likewise.
94909         * m4/utimes.m4: Likewise.
94910
94911         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94912         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94913         comments in config.h.in are meaningful.
94914
94915         * m4/jm-macros.m4: Require autoconf-2.13 here.
94916
94917         * m4/regex.m4: By default, don't use the included regex.c on systems
94918         with glibc 2.  Suggestion from Uli Drepper.
94919
94920 1999-01-02  Jim Meyering  <meyering@ascend.com>
94921
94922         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94923
94924 1998-12-18  Jim Meyering  <meyering@ascend.com>
94925
94926         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94927         Based on a suggestion from Lars Hecking.
94928
94929 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94930
94931         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94932
94933 1998-11-16  Jim Meyering  <meyering@ascend.com>
94934
94935         * m4/lfs.m4: Double-quote the `uname...` expression.
94936
94937 1998-11-14  Jim Meyering  <meyering@ascend.com>
94938
94939         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94940         * m4/stat.m4: Likewise.
94941
94942 1998-11-03  Jim Meyering  <meyering@ascend.com>
94943
94944         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94945         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94946
94947 1998-10-18  Jim Meyering  <meyering@ascend.com>
94948
94949         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94950
94951 1998-10-17  Jim Meyering  <meyering@ascend.com>
94952
94953         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94954         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94955         calls for those previously hard-coded headers.  Instead, take a new
94956         parameter.
94957         (jm_CHECK_DECLARATIONS): Reflect interface change.
94958         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94959         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94960
94961         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94962
94963 1998-10-14  Jim Meyering  <meyering@ascend.com>
94964
94965         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94966         instead of "TZ=America/Vancouver".  From Paul Eggert.
94967
94968 1998-10-11  Jim Meyering  <meyering@ascend.com>
94969
94970         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94971         This adds a test for a recently added compatibility fix for mktime.c.
94972         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94973
94974 1998-09-27  Jim Meyering  <meyering@ascend.com>
94975
94976         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94977
94978         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94979         ../configure.in, including a change from Gordon Matzigkeit to allow
94980         cross-compiling for the Hurd.
94981
94982         * m4/glibc.m4: New file/macro to test for the GNU C Library
94983         versions 1 and 2.  From Gordon Matzigkeit.
94984         Indent.
94985
94986 1998-09-21  Jim Meyering  <meyering@ascend.com>
94987
94988         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94989
94990 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94991
94992         Port nanosecond-resolution times to UnixWare 2.1.2 and
94993         pedantic Solaris 2.6.
94994
94995         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94996         AC_STRUCT_ST_MTIM.
94997         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94998         Generate name of ns member, instead of just 1 or undef.
94999         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95000
95001 1998-08-15  Jim Meyering  <meyering@ascend.com>
95002
95003         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95004         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95005         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95006         instead of jm_TYPE_SSIZE_T.
95007
95008 1998-08-12  Jim Meyering  <meyering@ascend.com>
95009
95010         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95011
95012 1998-08-02  Jim Meyering  <meyering@ascend.com>
95013
95014         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95015         in acconfig.h manually.
95016
95017 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95018
95019         * m4/st_mtim.m4: New file.
95020
95021 1998-07-28  Jim Meyering  <meyering@ascend.com>
95022
95023         * m4/utimes.m4: Undef stat.
95024
95025 1998-07-25  Jim Meyering  <meyering@ascend.com>
95026
95027         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95028         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95029
95030 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95031
95032         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95033         uid and gid actually remain unchanged.
95034
95035 1998-07-07  Jim Meyering  <meyering@ascend.com>
95036
95037         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95038
95039 1998-07-04  Jim Meyering  <meyering@ascend.com>
95040
95041         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95042         to prove that this macro can be used in packages without regex.c.
95043
95044 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95045
95046         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95047         is to be used.
95048
95049 1998-07-03  Jim Meyering  <meyering@ascend.com>
95050
95051         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95052
95053         * m4/gettext.m4: New file -- from gettext-0.10.35.
95054         * m4/lcmessage.m4: Likewise.
95055         * m4/progtest.m4: Likewise.
95056
95057         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95058         * m4/jm-macros.m4: Require the new macro.
95059
95060 1998-06-29  Jim Meyering  <meyering@ascend.com>
95061
95062         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95063         for the definition of NGROUPS (used in a system header included
95064         by sys/mount.h).
95065
95066 1998-06-28  Jim Meyering  <meyering@ascend.com>
95067
95068         * m4/ls-mntd-fs.m4: New file.
95069         * m4/fstypename.m4: New file.
95070
95071         * m4/jm-macros.m4: Require the new macro.
95072         * m4/jm-glibc-io.m4: New file.
95073
95074 1998-05-19  Jim Meyering  <meyering@ascend.com>
95075
95076         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95077         * m4/lchown.m4: New file.
95078
95079         * m4/Makefile.am.in: New file.
95080         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95081
95082 1998-05-14  Jim Meyering  <meyering@ascend.com>
95083
95084         * m4/Makefile.am (EXTRA_DIST): Add them.
95085         * m4/jm-macros.m4: New file.
95086         * m4/utimbuf.m4: New file.
95087
95088 1998-05-12  Jim Meyering  <meyering@ascend.com>
95089
95090         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95091
95092 1998-05-11  Jim Meyering  <meyering@ascend.com>
95093
95094         * m4/isc-posix.m4: New file.
95095
95096 1998-05-10  Jim Meyering  <meyering@ascend.com>
95097
95098         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95099
95100 1998-05-09  Jim Meyering  <meyering@ascend.com>
95101
95102         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95103         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95104         with automake.
95105
95106         * m4/ssize_t.m4: New file.
95107         * m4/mktime.m4: Remove file -- the new automake has this now.
95108
95109 1998-04-26  Jim Meyering  <meyering@ascend.com>
95110
95111         * m4/assert.m4: New file.
95112         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95113
95114 1998-04-05  Jim Meyering  <meyering@ascend.com>
95115
95116         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95117         (jm_PREREQ): Use it here.
95118
95119 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95120
95121         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95122         in acconfig.h.
95123
95124 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95125
95126         * m4/prereq.m4: New file.
95127         * m4/error.m4: New file.
95128         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95129
95130 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95131
95132         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95133         cache-check for the same variable -- that defeated the purpose of
95134         the test; the test program was never run.  This was a problem only
95135         on systems with losing getline functions -- HP-UX 10.20 is one.
95136         Reported by Bjorn Helgaas.
95137
95138 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95139
95140         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95141
95142 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95143
95144         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95145
95146         * m4/const.m4: New file.  Use an initializer in this declaration
95147         typedef int charset[2]; const charset x;
95148         Reported by Bob Glickstein.
95149
95150 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95151
95152         * m4/chown.m4: Fix reversed types on -1 args to chown.
95153         From Kaveh Ghazi.
95154
95155 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95156
95157         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95158         Add lseek and memchr.
95159
95160         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95161         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95162         have a 20-character limit on names.
95163
95164 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95165
95166         * m4/inttypes_h.m4: New file.
95167         * m4/uintmax_t.m4: New file.
95168         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95169
95170
95171         -----
95172
95173         Local Variables:
95174         coding: utf-8
95175         End:
95176
95177         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95178
95179         Copying and distribution of this file, with or without
95180         modification, are permitted provided the copyright notice
95181         and this notice are preserved.